|
From: cshaulis on 21 Apr 2008 09:04 Here is the scenerio. I have a homepage and a subpage. On the subpage I have a flash movie. I am wondering if it is possible to link to different frames/sections of the flash movie from the homepage. I have searched around and can't seem to find anything. Hopefully I have been clear on what I am trying to accomplish. Not sure it is possible but anything you all can do to help will be greatly appreciated! :beer;
From: JcFx.Eu on 21 Apr 2008 10:27 This is quite easy. Here's one way" 1. Your sub-page needs to be active (so .asp or .php or Asp.Net). It needs to accept the target within your flash movie as a parameter (e.g. subpage.aspx?target=second_screen) 2. Your sub-page needs to write the passed in target to your flash object, either through the .swf query string or through the External Interface or through flashvars (e.g. movie.swf?target=second_screen) 3. Your flash movie needs a variable to hold the target and a method to handle the target passed in. You can't just pass in a frame number or label, you need a piece of actionscript to handle the target variable and take appropriate action (e.g. if(target == "second_screen") gotoAndPlay("your_frame_name_here")); This code needs to be wrapped in a function that you call when your movie loads (like main();), unless you are using ExternalInerface in which case it needs to be in a function called by the EI. Exactly how you access the flashvar passed in will vary between AS2 and AS3, see livedocs for details, and you can of course do more complex things than gotoAndPlay() in your navigation function. Hope this helps. Jude Fisher JcFx Limited http://www.jcfx.eu
From: cshaulis on 22 Apr 2008 09:08 Thanks much. I will look into it and try it out. Thanks again!!
|
Pages: 1 Prev: Characters with accents Next: Load Movie from another Domain |