IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> Flash is pissing me off, AS3 HELP
berkshire0
post Nov 23 2008, 11:30 PM
Post #1





Group: Members
Posts: 40
Joined: 17-October 06
Member No.: 344



So WTF, Flash totally went to crap. I created an elaborate Flash video only to find out that you cannot link buttons like you could in older versions.

So here is where I am at: I've created buttons and I'm on the "Hit" part of the button and I'm trying to put an action to it. I want to link them to other websites but I'm not having any luck.

Here is the script I found online to use now:

myButton.addEventListener(MouseEvent.CLICK, onMouseClick);

function onMouseClick(e:MouseEvent):void
{
var request:URLRequest = new URLRequest(”http://www.myspace.com/lostjulymusic”);
navigateToURL(request,”_blank”);
}

When I put that in though, it disregards other actions that are in there. Why did they make it so complex? EFFING A
Go to the top of the page
 
+Quote Post
woody
post Dec 1 2008, 03:58 PM
Post #2





Group: Moderators
Posts: 2,499
Joined: 23-February 06
From: El Paso Texas
Member No.: 32



CODE
[b]myButton.buttonMode = true;[/b]
myButton.addEventListener(MouseEvent.CLICK, onMouseClick);

function onMouseClick(e[b]vt[/b]:MouseEvent):void
{
var request:URLRequest = new URLRequest(”http://www.myspace.com/lostjulymusic”);
navigateToURL(request,”_blank”);
}


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 30th October 2025 - 09:44 PM
Skin made by: skeedio.com