Reply
Adding a Link to a Flash Media Object in Dreamweaver
Old 04-13-2008, 08:47 PM Adding a Link to a Flash Media Object in Dreamweaver
Jasonpv's Avatar
Experienced Talker

Posts: 42
Is there and easy way to add a link to a flash media object in Dreamweaver or does that need to be added to the button somehow in flash? How would you go about adding a link to a button in flash? Thanks for any help...
Jasonpv is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-13-2008, 09:05 PM Re: Adding a Link to a Flash Media Object in Dreamweaver
Skilled Talker

Posts: 81
Location: New York
In dreamweaver
insert > media > flash

i am not sure what you mean...
NYChaoS is offline
Reply With Quote
View Public Profile Visit NYChaoS's homepage!
 
Old 04-13-2008, 09:22 PM Re: Adding a Link to a Flash Media Object in Dreamweaver
Jasonpv's Avatar
Experienced Talker

Posts: 42
I have the flash media inserted but I plan on using this as a button so I need to link it to another page...not sure how to do that with flash media object though.
Jasonpv is offline
Reply With Quote
View Public Profile
 
Old 04-13-2008, 10:18 PM Re: Adding a Link to a Flash Media Object in Dreamweaver
LadynRed's Avatar
Super Moderator

Posts: 6,065
Location: Tennessee
You need to create the button IN the flash file itself.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-13-2008, 10:28 PM Re: Adding a Link to a Flash Media Object in Dreamweaver
Jasonpv's Avatar
Experienced Talker

Posts: 42
I have done that but what actionscript is needed to link to url?

This is what I have tried:

Code:
this.reserve_btn.onRelease = function()
 {getURL("reserve.html");
}
I am getting a compiling error when I goto test movie in flash:
Code:
1180: Call to a possibly undefined method getURL.
and with the above code my button's stop action no longer works. It keeps looping back on rollover instead of stopping at the end of animation.

Last edited by Jasonpv : 04-13-2008 at 10:30 PM.
Jasonpv is offline
Reply With Quote
View Public Profile
 
Old 04-13-2008, 11:46 PM Re: Adding a Link to a Flash Media Object in Dreamweaver
Jasonpv's Avatar
Experienced Talker

Posts: 42
ok, got it.

My problem was I was using action script 2 commands when compiling with actionscript 3. Here is the correct actionscript 3 code:

Code:
function gotoPage(event:MouseEvent):void
{
var pageURL:URLRequest = new URLRequest("reserve.html");
navigateToURL(pageURL,"_self");
}

button.addEventListener(MouseEvent.CLICK, gotoPage);
Jasonpv is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Adding a Link to a Flash Media Object in Dreamweaver
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13921 seconds with 13 queries