Hi I have a question that I have looked everywhere to find the answer for and would really appreciate your help. I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.
I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting. Am I loading it right? Stupid question I know but surely its possible somehow!!
Ok, you cannot just import a swf into the Fla for it to work.
You need to use loadMovie(); so swf2 loads into swf1
You could place an emptyMC in your main swf and give it an instance name (ie. emptyMC) and use
loadMovie("swf2.swf", _root.emptyMC);
I don't understand I've given it the instance name, checked the path, checked your code, made sure no names have been confused, taken the movie clip and put it onto the screen, made the screen bigger, tried it with other images and they come up but I still get the error message ... do I have to set up something beforehand?
thank you for the replies... no I am not confusing actionscript 2 with actionscript 3, although I don't mind either way!
I have a file called 0.swf to be loaded into my movieclip instance called movie on the first frame. I just can't get my head round the syntax. The best I can think of is
Sorry that doesn't work, I have tried lots of tutorials and still have no idea how to arrange the syntax so that onClipEvent(load) recognizes the function of loadMovie(); which loads the instance of my movieclip. Never thought this could be so hard. Thanks for your response though I appreciate it
Thank you but your example did what I was afraid of, the compiled fla runs through the externally loaded swf without paying attention to the coding within it... I'm completely lost at this stage and better look for another way to do what Im doing
Here is what I am trying to embed with its scripting into another fla it is in actionscript 3 but I thought that embedding it within actionscript 2 wouldn't make much difference
I'm aware that I probably won't be able to transfer much (if any) information between each swf, but I just want it to work for now
ok, I have to admit, I'm lost as to what your trying to achieve.
I understand the code, but don't understand things like, why you use import gs.*; 3 times.
What is the final outcome of your flash movie?
import gs.* is tweenlite. The purpose of the movie should be fairly self-explanatory..
I would like to know how to compile this file and have it running as a workable swf within another fla, so I could compile other swfs and have them running into each other. So if I had ten examples of what I gave you, then I could import them into one fla and have them follow each other in sequential order upon each swfs completion.
So if they are made in actionscript 3 then only actionscript 3 will recognize them? Ok I will look into that