Actionscript syntax not displaying as it should?

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9088
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Can you be more specific please?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Colors are all wrong. What I posted in that link should look like this colorwise:

var link:URLRequest = new URLRequest("http://www.mydomain.com"); //i.e. equate the URL with a variable you can use later.

your_button_instance_name.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void
{
navigateToURL(link);
}
your_button_instance_name.buttonMode = true;

In Actionscript keywords are blue, strings are green, comments are gray. Can't recall that there are any other color highlighting than that.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.