Forum Moderators: open

Message Too Old, No Replies

External link to .swf at a certain scene

         

trunkims

6:09 am on Jul 6, 2006 (gmt 0)

10+ Year Member



I'm creating a website in flash, I have my home page linking to an external html page that loads my swf file, now how do I link the home button on that page to link back to the home page at a different scene or frame

The links on the HOME (index.html) page:
Print-Contact-Digital-->When clicking on Digital it is scripted as getURL ("alldigital.html") the other two links are within the swf file

So how do I get the home button on that page to link to say the print page which is at on a different scene in the home.swf file

Does it make sense?

trunkims

1:27 am on Jul 14, 2006 (gmt 0)

10+ Year Member



::bump::

jay5r

1:59 am on Jul 14, 2006 (gmt 0)

10+ Year Member Top Contributors Of The Month



You'll need to embed the swf file in a page that is capable of scripting (such as PHP). Then you can pass a variable to the page, and then from the page to the swf. It would look something like this...

The link to your home page would be formatted like:

htttp://www.example.com/index.php?scene=2

Then within index.php you'd call the .swf file something like this...

/flashmovie.swf?scene=<?php echo urlencode($scene)?>

Then within your flash movie you'll find you can reference a variable named 'scene' that you can use to jump to the scene in question.

It's been a while since I've done anything like that so those details might be a little off, but they'll be close and the bottom line is that it's possible with a little work.