Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Targetting frames from a flash movie

Status
Not open for further replies.

smiler

Programmer
Jun 15, 2001
3
IE
Hi,

I have an animation running in one frame of a 4frame frameset. I have a link within this animation, but i want the target page to open in a different frame. Does anyone know how to do this with flash?

thanks...
 
The following code opens the link in the same frame:

getURL ("yourlink.html", "_self");

Now if you just replace the "_self" by the name of your frame, it should work. Don't forget the ""s, otherwise Flash will think it's a variable name and not a string.

Hope this helps...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
sorry haslo, I'm an experienced designer and this is my first use of FLash, so could you clarify somethings:

Where do i put the code?

There is no reference to a link in the html code?

I was trying to use an onclick event but i didnt know where to put it!!

Ian



<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--CLICK FOR SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS SPECIAL OFFERS -->

<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; WIDTH=110 HEIGHT=150>
<PARAM NAME=movie VALUE=&quot;test.swf&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;test.swf&quot; quality=high bgcolor=#FFFFFF WIDTH=110 HEIGHT=150 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;</OBJECT>
 
The onclick approach is just about right - but you can't tell flash via the HTML code what it should do or not (well, actually you can, but it's pretty compliated to do so and involves scripting)

Create a button in Flash, using the F8 key, then double-click on it and you'll get into the action inspector (I don't know if it's really called this way...). There you can just double-click the getURL command and enter your parameters.

Hope this helps...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top