Home arrow Message Forum
Message Forum
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Turn movieclips into buttons? (1 viewing)
_GEN_GOTOBOTTOM Post Reply Favoured: 0
TOPIC: Re:Turn movieclips into buttons?
#35
sstark (Admin)
Admin
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Re:Turn movieclips into buttons? 2007/10/25 18:08 Karma: 0  
you're on the right track.

Yes, you have to first give each of the buttons instance names... I like to use a sequence naming scheem, like btn_0, btn_1, btn_2 ect so that I can easily address them through a loop. Then, I would code like this:

Code:

  var links:Array = new Array(  "link_url_1.html",  "link_url_2.html" ); for(x=0xlinks.lengthx++) {  _root["btn_"+x].my_index x;  _root["btn_"+x].onPress = function(){   getURL(_root.links[this.my_index], "_top"«»);  } }



I hope that helps.

Post edited by: sstark, at: 2007/10/25 18:09

Post edited by: sstark, at: 2007/10/25 18:17
--
Local Administrator
Site - StevenStark.com
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Turn movieclips into buttons?
dwella 2007/10/25 17:37
    thread link
thread linkthread link Re:Turn movieclips into buttons?
sstark 2007/10/25 18:08
_GEN_GOTOTOP Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Random Portfolio Listing

Save-On-Mortgage

Save-On-Mortgage

www.save-on-mortgage.ca
Category: Finance


New Jobs

No items in list
There are 86 items & 53 categories in the 'Portfolio Manager'
There are 37 posts in the Message Forum.