Results 1 to 3 of 3
Thread: Button code / beginner help
-
March 29th, 2012, 06:04 PM #12Registered User
postsButton code / beginner help
HI there,
Can anyone help a beginner: I have already tried various codes that I found by searching from the net but nothing seems to work...
So I need to get a code for my flash CS3 button (which will sit in the website I am doing with Dreamweaver). I want to link the button "minni" to the file "minni.html" (i.e. just a link to another page on the website).
Would really appreciate your help
-
March 30th, 2012, 03:45 AM #2Hope it helps.Code:
import flash.net.*; import flash.events.MouseEvent; minni.addEventListener(MouseEvent.CLICK, onMouseClick); function onMouseClick(event:MouseEvent):void { var url:String = "minni.html"; // this should be the absolute path of the webpage var req:URLRequest = new URLRequest(url); else navigateToURL(req, "_blank"); }
-
March 31st, 2012, 06:41 PM #32Registered User
postsThank You!
Thank you so much giobongio for your help, really appreciate it!! I got the buttons working now, although just one minor thing - had to take the 'else' out of else navigateToURL(req, "_blank");as flash was saying there was a 'syntax error'. Anyhow, could not of done it without you, so a big thank you!!

Reply With Quote

Bookmarks