flash code
- Started
- Last post
- 8 Responses
- colour
i have this code in a frame trying to load in another swf.
can anyone suggest why its not working properly plz
btn_zoom.btn_cross.onRelease = function () {
loadMovie("projects/01.swf",3);
}thanks
- Ravdyk0
where is it suposed to load to? You aint really telling the function that are you?
- colour0
thought the 3 was doing that.
i want it to load in the root - so it will come in over the site
[if that makes sense]
- ftravieso0
I'm so over Actionscript :¬/
- mightyj0
may be a dumb question but it's hard to tell the issue without the file so are you clicking on a button named btn_cross that is inside of btn_zoom? If not then just take the loadmovie out of that function. I'd also suggest loading the movie into an empty movie clip. You will have more control, currently it looks like you are loading it into a level.
- PonyBoy0
that '3' is your target movieClip... meaning - you should have a movieclip on the timeline w/an instance name of '3'...
... which I would change to 'three', btw :)
- woodyBatts0
In my flash work, I presume you are using AS2, I would create a movieClip called "container" on the main timeline, then load whatever I needed there, so my code would be :
myButton.onRelease = function(){
_root.container.loadMovie("myAwe...}
hope it helps
- fyoucher10
What's 3 for? If you mean level 3, use loadMovieNum instead of loadMovie. On the other hand, if 3 is a movieclip's instance name, do what Ponyboy says. Change the movieclip 3 to a string name instead of a number ("three_mc"), u can't have mc's with instance names that start with a number. Then just do three_mc.loadMovie("projects/01...