Jump to content

Flash header, need to create a link to location on the same page.


Recommended Posts

Hi,I've got an html page with a flash header on it. In the flash header I've got buttons that I need to set up links to different locations on the same html page. In html I would use the <A HREF="#location" and <A NAME="location". How do I achieve this type of thing with the link in the flash header.Thanks!Ted Vieira

Link to post
Share on other sites

Do you know how to make buttons in flash? Also do you know about the on(click) functions? if not just rummage in W3 and find out first.Basically you need to just go on the button:

on(click){getURL("#location", "_top");}

Simple :)

Link to post
Share on other sites
Do you know how to make buttons in flash? Also do you know about the on(click) functions? if not just rummage in W3 and find out first.Basically you need to just go on the button:
on(click){getURL("#location", "_top");}

Simple :)

Yeah, this seemed right to me too. In my Behaviors Panel, I selected the button, clicked on the "+", selected "web page" and typed in "#services" (I even tried "index.html#services"), and selected "_top" but it doesn't work. :-( Anything I might be doing wrong?Thanks again,Ted(I'm using flash mx 2004)
Link to post
Share on other sites
  • 2 months later...
Do you know how to make buttons in flash? Also do you know about the on(click) functions? if not just rummage in W3 and find out first.Basically you need to just go on the button:
on(click){getURL("#location", "_top");}

Simple

Yeah, this seemed right to me too. In my Behaviors Panel, I selected the button, clicked on the "+", selected "web page" and typed in "#services" (I even tried "index.html#services"), and selected "_top" but it doesn't work. :-( Anything I might be doing wrong?Thanks again,Ted(I'm using flash mx 2004)
I am using Flash MX 2004, and your probem appears to be using on(click) - I used on(release) in its place, and it works.
on(release){getURL("location", "_top");}

-- mind, if this isn't what you need... it works for me. for example, the value in quotes there as location, you'd use index.html#services instead.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...