all groups > macromedia flash sitedesign > october 2007 >
You're in the

macromedia flash sitedesign

group:

flash buttons that navigate to html files in same folder as flash movie?



flash buttons that navigate to html files in same folder as flash movie? CoCo Loupe
10/4/2007 2:13:15 PM
macromedia flash sitedesign: I'm completely new to Flash and AS3.......

however, i've managed to build a simple "intro" flash movie that has buttons
on it that need to navigate to non-flash, DWCS3 based site files.

when i go into the button in flash, if i select text in the button there is a
spot in the properties panel that allows for a URL link...i enter the name of
the html file but it doesn't work......but this URL property field is not
available to the entire button....

so i started looking at AS because i'm pretty sure i need to use events and
event listeners....BUT all of the tutorials only cover getting an external URL
or linking to a frame within a flash movie......none of them cover linking to
an existing HTML file in the same folder.......(ie., to access the meat of the
website through the flash intro buttons....)

help?

the movie is at www.methods.com/msite07/site07_intro_more.html if you'd like
to take a look....the animated buttons need the link functionality.......

Re: flash buttons that navigate to html files in same folder as flash movie? ptgraphics
10/4/2007 7:05:58 PM
I am new to Flash and Dreamweaver and I have a similar problem. I created a
little movie in flash that plays before everything. I put a "button" on the
bottom to click to go to the next "home" page. I created the states of the
button in Flash and I put the URL into the down state. How do I get Dreamweaver
to go to the link? The states work but when I click on the link in my browser
the button (or word) just "shakes". What am I doing wrong? Thanks,

Pat
Re: flash buttons that navigate to html files in same folder as flash movie? wezzy104
10/9/2007 3:56:40 PM
Re: flash buttons that navigate to html files in same folder as flash movie? alan arthur
10/11/2007 12:28:54 AM
This is relatively easy.
You're using a text link, which is pretty feeble.
You need to create your buttons as "buttons", not graphic (you can change this
in the Library/Properties)
Then, unlock the layer with the button.
click on the button to highlight it
Open the Action Script window
From the list on the left, select "on" and then use the code completion tools
to add "release", which will fire an event after the mouse is clicked on the
button.
Then, in the "browser" function list, pick "getURL", fill in the URL and
select "_blank" for window

Now, when the user clicks the button, your URL will be launched in a separate
window.
You definitely want to use button events rather than text links. They're much
more flexible and have many more options.

Hope this helps...
AddThis Social Bookmark Button