maked my fla
- Started
- Last post
- 6 Responses
- rasko4
can some kind person make me a simple .fla where there is a blank movie clip on the stage which loads a swf with a button on it.
On the main timeline there is an action that tells the button in the swf to onRelease make the main timeline go to say frame 5 that has a picture on it.
so the code would be something as simple as:
stop();
loadMovie("buttons.swf", this.buttonholder);
onRelease.gotoAndStop("end", this.buttonholder.button1);or something
I cant get this to work.. I'm stupid
any help muchos appreciatos!
- cucumbrrr0
Just a little clarification, is the button supposed to be contained inside the swf you are loading? If so, why don't you but the button actions inside that swf? And just have it do _parent.gotoAndPlay(whatever); ?
- rasko40
yeah its inside the swf.
thing is I cant do that cos I have this more complicated nav where it is using a function that needs to come from the main timeline..
but I cant seem to target the button correctly so I'm asking for a simple fla to see where I am going wrong.. be great if you could thanks!
- cucumbrrr0
I'm at school right now, otherwise I would throw together something for you. What if you wrote a funtion on the main time line that had the gotoAndPlay action inside of it. And on the button in the loaded swf, you simply call the function on release? Maybe I'm missing something...
- rasko40
yeah maybe that would work, only I'm not a coder at all so I'm getting in a tangle.. thanks tho.
anybody else?
- rasko40
oh go on, I'll give you something.
- rasko40
ok apparently the problem is that I need to make sure the button is completed loaded before I can call any actions on it, how would I best do this? (simply)