Tuesday, November 9, 2010

How to link swf file to another swf file?

How to link swf file to another swf file?
How to link flash file to another flash file?

Question:
I have created a .swf file that contains up to 10 scenes, and realized that it takes too long to publish, or even to test movie. So now I've decided to create a new .swf file. How do I use the on(release) command on my buttons in my first .swf file to link to my second .swf file?

Example:
I have 2 files <first.swf> and <second.swf>.
I want a button in <first.swf> to link to the <second.swf>.


Answer:
Put this script on your button actions-frame for first.swf file:

on (release) {
loadMovieNum("second.swf", 0);
}

Adobe Flash CS4

No comments:

Post a Comment