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?
#34
dwella (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Turn movieclips into buttons? 2007/10/25 17:37 Karma: 1  
Hi Ive created a menu with movieclips and now I need to make them into buttons so I can browse my site. If I remember correctly I need to give the movie clips instance names right? Ive forgotten the code to make the buttons clickable, to make them go to different pages... Anyone wanna help me out?
Thanks!
  The administrator has disabled public write access.
#35
sstark (Admin)
Admin
Posts: 29
graphgraph
User Online Now 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.
#484
rslifE01 (User)
Platinum Boarder
Posts: 1042
graph
User Offline Click here to see the profile of this user
G1QGex1w 2011/11/17 19:05 Karma: 0  
Hi, I'm not home because I've gone on a BLOODY RAMPAGE! When wow gold I get home, and CLEAN OFF THE BLOOD, I'll be sure buy wow gold to give you a call. If I haven't ALREADY COME OVER, cheap wow gold that is. (Coughing loony laughter.)If there is very much gold, then rift gold the value of the gold falls and the value of the buy runescape gold items will go up training players to spend more gold in runescape gold for sale items than they should normally pay. Any how, it really does everquest 2 platinum not make too much variation in-play. What it has to do, ffxiv gil is to equalize the playing field for the occasional world of cheap rs gold the Warcraft gamers. There are many wow gold sellers, and its basic aim is to make a difference gold prices and real money of every gold seller. Since the snowstorm prohibited 76,000 more accounts and left 11 more million gold from the play, we saw ransom prices variation from $40 for 1000 gold, all the manner up to $200 for gold 1000.It’s our ultimate goal to provide the best service to our customers worldwide.
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
Powered by FireBoardget the latest posts directly to your desktop

New Jobs

No items in list

Recent Forum Posts

1: zqGUML10 (6)
2: bQZslBYy (10)
3: xtleg1Nq (17)
4: qZBV89kk (15)
5: FksQyTBJ (1)
6: WDIA0c8H (1)
7: 4GSaAIlh (1)
We have 26 guests online
There are 90 items & 53 categories in the 'Portfolio Manager'
There are 1280 posts in the Message Forum.