Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Web Design & Development Web Design & Development
Search Search
Search for:
Tech Support Guy > > >

Help with linking buttons on Flash CS5.5


(!)

CrazyComputerMan's Avatar
CrazyComputerMan has a Photo Album
Computer Specs
Member with 13,649 posts.
THREAD STARTER
 
Join Date: Apr 2007
Location: England, UK :)
Experience: Advanced
30-May-2011, 05:35 AM #1
Help with linking buttons on Flash CS5.5
Tried everything that i think it should work but it isnt.

Tried added timeline with this code

myBtn.onRelease = function() {
getURL(http://www.yda.org.uk/events/events.html);
};

Still dont work. They will be on that path when i upload new website.Why?

Last edited by CrazyComputerMan; 30-May-2011 at 05:51 AM..
CrazyComputerMan's Avatar
CrazyComputerMan has a Photo Album
Computer Specs
Member with 13,649 posts.
THREAD STARTER
 
Join Date: Apr 2007
Location: England, UK :)
Experience: Advanced
30-May-2011, 05:38 AM #2
The button name is events_btn

Added AS to the layers. Probably why itsnt working.

Last edited by CrazyComputerMan; 30-May-2011 at 05:51 AM..
ccube's Avatar
ccube ccube is offline
Computer Specs
Member with 145 posts.
 
Join Date: Jun 2010
Location: Turn left at Antarctica
Experience: I void warranties.
30-May-2011, 06:20 AM #3
The AS3 code format that CS5 uses is very different to the AS2 code you have there. Try this:

Code:

events_btn.AddEventListener(MouseEvent.CLICK, goToURL);
function goToURL(event:Event):void{
navigateToURL(new URLRequest("http://www.yda.org.uk/events/events.html"), "_blank");
}
All of the AS for a project should go on a layer dedicated to AS, makes it easier to find (not searching through frames)
CrazyComputerMan's Avatar
CrazyComputerMan has a Photo Album
Computer Specs
Member with 13,649 posts.
THREAD STARTER
 
Join Date: Apr 2007
Location: England, UK :)
Experience: Advanced
31-May-2011, 02:12 AM #4
Can i replace "_blank" with "_self" as i want to open it in same window.

Thanks
CrazyComputerMan's Avatar
CrazyComputerMan has a Photo Album
Computer Specs
Member with 13,649 posts.
THREAD STARTER
 
Join Date: Apr 2007
Location: England, UK :)
Experience: Advanced
31-May-2011, 08:10 AM #5
Tried code above but error appear as

Might help as tried to use Code Snippets.but have to use ActionScript 3.0 and Adobe only given me option to use AS 1.0 & 2.0.
Attached Thumbnails
Help with linking buttons on Flash CS5.5-ydaproblem.jpg  
CrazyComputerMan's Avatar
CrazyComputerMan has a Photo Album
Computer Specs
Member with 13,649 posts.
THREAD STARTER
 
Join Date: Apr 2007
Location: England, UK :)
Experience: Advanced
01-Jun-2011, 06:17 AM #6
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑