| | |
Rollover button with hyperlink??
Please support our Graphics and Multimedia advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hello everyone!
I'm making some rollover buttons in flash, and I could use some help. I have this button that has text on it e.g home, contact and stuff like that, and I would like to make this text an hyperlink. I couldn't find a tutorial for this
.
Could you give me a hint, because I'm a bit stuck and deadline is near
I'll attach the looks of the button (in OVER state).
P.s. I tried getURL but it doesn't work (or I didn't use it properly).
Thanks
Cheers!
I'm making some rollover buttons in flash, and I could use some help. I have this button that has text on it e.g home, contact and stuff like that, and I would like to make this text an hyperlink. I couldn't find a tutorial for this
.Could you give me a hint, because I'm a bit stuck and deadline is near

I'll attach the looks of the button (in OVER state).
P.s. I tried getURL but it doesn't work (or I didn't use it properly).
Thanks

Cheers!
“The spread of civilisation may be likened to a fire; First, a feeble spark, next a flickering flame, then a mighty blaze, ever increasing in speed and power.”
0
#6 Oct 12th, 2009
I assumed that your button name as homeBTN and add the code in the timeline actions.
You can use _blank instead of _self to open in new window.
Hope this helps!
Graphics and Multimedia Syntax (Toggle Plain Text)
homeBTN.addEventListener(MouseEvent.CLICK,TestURL); function TestURL(e:MouseEvent):void { var serverpath:String="http://www.yahoomail.com"; var urlrequest:URLRequest=new URLRequest(serverpath); navigateToURL(urlrequest,"_self"); }
You can use _blank instead of _self to open in new window.
Hope this helps!
•
•
Join Date: Jul 2009
Posts: 106
Reputation:
Solved Threads: 1
0
#8 Oct 12th, 2009
•
•
•
•
I assumed that your button name as homeBTN and add the code in the timeline actions.
Graphics and Multimedia Syntax (Toggle Plain Text)
homeBTN.addEventListener(MouseEvent.CLICK,TestURL); function TestURL(e:MouseEvent):void { var serverpath:String="http://www.yahoomail.com"; var urlrequest:URLRequest=new URLRequest(serverpath); navigateToURL(urlrequest,"_self"); }
You can use _blank instead of _self to open in new window.
Hope this helps!
0
#9 Oct 13th, 2009
Oh, I noticed one thing - _self doesn't work in my case, only _blank, i tried _parent and _top also but only _blank seems to work, any ideas why??
“The spread of civilisation may be likened to a fire; First, a feeble spark, next a flickering flame, then a mighty blaze, ever increasing in speed and power.”
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- hyperlink in asp net (ASP.NET)
- img rollover help (JavaScript / DHTML / AJAX)
- internet explorer rollover button troubles (HTML and CSS)
- button with hyperlink....how? (Java)
- Print button using rollover images (JavaScript / DHTML / AJAX)
- first website doesnt work well? (HTML and CSS)
- Mouse over buttons on .js file? Urgent-help (JavaScript / DHTML / AJAX)
Other Threads in the Graphics and Multimedia Forum
- Previous Thread: Dynamicaly loading JPG (or other format image) into an Actionscript 3.0 Movie clip
- Next Thread: Site Change Help
| Thread Tools | Search this Thread |
3d 10 actionscript3 adobe adobeacrobat adobereader air ajax amazon amf apple button cart childprotection cloud dashboard dell design dojofoundation dreamweaver ebay eclipse ecommerce elasticcomputecloud embed endorsement extra family flash flash-develop flashlite flex free harddrive iamthwee ibm illustrator imflash intel interactivemap javafx javascript laptop legal map micron microsoft mobile monitoringsoftware moonlight multimedia myspace nand news novell panorama pdf pedophiles photoshop photosynth php safety sandisk security shopping silverlight solidstatedrive sproutcore ssd streaming swf table ukmap unload unwanted video vulnerability web white.space xml zend zephyr zeroday






