Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 2003, 03:47 PM
rippedangelwing rippedangelwing is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 4 rippedangelwing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
putting some action on an instance of a movie clip

hi, I have a small problem. I made a scene in which 6 movie clips are duplicated and created according the values of an array. In each movie clip there is an button. the problem is that with the way I am trying to do it, the buttons don't work. What I want to do is when you click on each button of each movie clip to go and open the URL that is on the Links_array variable. With the following code, that doesn't work. The code is the one that follows:

var i;
var yposition;
var depth;
var menu;

theMenu="Products,Quality,Technology,Contact,Forums,Search"
theLinks="products.asp,quality.asp,technology.asp,contact.asp,forums.asp,search.asp"
theImages="test.JPG,RiverSumida.JPG,Rhododendron.JPG,test.JPG,RiverSumida.JPG,Rhododendron.JPG"

Menu_array=theMenu.split(",");
Menu_length=Menu_array.length;
Links_array=theLinks.split(",")
Links_length=Links_array.length;
Images_array=theImages.split(",");
Images_length=Images_array.length;


depth=-1;
i=1;
yposition=0;
xposition=300;
Menu._visible=0;

//Dynamic Menu Creation
for(i=0;i<Menu_length;i++){
duplicateMovieClip(Menu,"Menu" add i,depth);
setProperty("Menu" add i,_y,yposition);
setProperty("Menu" add i,_x,xposition);
set("Menu" add i add ".myText",Menu_array[i])
_root["Menu" add i].myImage.mySecondImage.loadMovie(Images_array[i]);
_root["Menu" add i].myLink.onRelease=function(){
getURL(Links_array[i],"_SELF","POST");
}
depth++;
yposition+=80;
}


I would appreciate any answer. Thank you

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > putting some action on an instance of a movie clip


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway