• 0

I need a script (IF it exists)


Question

I'm working in Flash CS4 AS2. I have 5 different swf that will load in 5 different HTML files, but in some of them, I need the swf to load in a specific frame (i.e. not frame one but frame 15). Is there any script that I can put in my HTML files that allows me to do this?

I wouldn't normally do this, but they're client requirements.

Thanks.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Not really understanding what you saying. Your gonna have to offer up more detail. Are you trying to set the starting point of the swf at frame 15? If that is the case as soon as the swf enters its first frame (before any other logic) call....

gotoAndStop

Regards

Chad

Link to comment
Share on other sites

  • 0

Thanks for your answer, it might work if nothing else is possible, but what I really need is this: Basically I have 5 "identical" swf files (from only one FLA) that will load in 5 different HTML files. Because my swfs are identical, I need swfs 2 - 5 to load at frame, lets say, 5, 10, 15 and 20 while swf 1 serves as "home" loading at frame 1. Now, this is a hybrid web site, not full flash, so my client is asking me to do this so he can position the web site on search engines, and that's why I need to know whether there's some kind of script or something that I can put in the HTML files that allows me to achieve what my client wants.

I hope I was a bit more clear this time :p

Thanks.

Link to comment
Share on other sites

  • 0

Thanks for your answer, it might work if nothing else is possible, but what I really need is this: Basically I have 5 "identical" swf files (from only one FLA) that will load in 5 different HTML files. Because my swfs are identical, I need swfs 2 - 5 to load at frame, lets say, 5, 10, 15 and 20 while swf 1 serves as "home" loading at frame 1. Now, this is a hybrid web site, not full flash, so my client is asking me to do this so he can position the web site on search engines, and that's why I need to know whether there's some kind of script or something that I can put in the HTML files that allows me to achieve what my client wants.

I hope I was a bit more clear this time :p

Thanks.

If you have the .fla file then why don't you publish the 5 needed swf files using gotoAndStop (or another method) to change the start of each file? So...

Set the starting frame of the fla file for frame one then publish swf 1.

Change the starting frame in the same fla file and publish swf 2.

Etc...

That way you will have the 5 needed swf files and each one will start at what ever point you told it to before you published it.

Then insert them in two respected html files.

From what I am gathering that is what you need. If I am reading this wrong then I apologize.

Regards

Chad

EDIT: I have read you description a couple times and I feel like this is your solution and should not be hard to accomplish at all.

Link to comment
Share on other sites

  • 0

I too don't understand why you can't just do what Chadsxe said. But if you really want to keep the SWF files identical, you could just pass a parameter to your Flash object in the HTML for which frame it should play.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.