Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sat Nov 21, 2009 5:01 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ]  Bookmark and Share
Author Message
 Post subject: Multiple pic URL links
PostPosted: Wed Mar 25, 2009 2:18 pm 
Offline
User avatar

Joined: Sun Mar 02, 2008 6:21 am
Posts: 22
Location: USA, Michigan
I have kind of a follow up question what would the procedure be if I had like a slide show and each slide when you clicked on it there would be multiple links this is the code I have so far:
My slideshow instance names are pic_000_mc to pic_004_mc


Code:
var link_000:URLRequest = new URLRequest("http://www.somelink.com");
var link_001:URLRequest = new URLRequest("http://www.somelink.com");
var link_002:URLRequest = new URLRequest("http://www.somelink.com");
var link_003:URLRequest = new URLRequest("http://www.somelink.com");
var link_004:URLRequest = new URLRequest("http://www.somelink.com");

// here is where I get stuck I'm not sure what to add for the listener since there is like 5 buttons
addEventListener(MouseEvent.CLICK, onClick,false,0,true)
function onClick(event:MouseEvent):void
{
   pic_000_mc.navigateToURL(link_000);
   pic_001_mc.navigateToURL(link_001);
   pic_002_mc.navigateToURL(link_002);
   pic_003_mc.navigateToURL(link_003);
   pic_004_mc.navigateToURL(link_004);
}


I know there is a better and more efficient way to do this then to have all five different functions and listeners. Does any one have any idea?

_________________
JT


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley