|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > putting some action on an instance of a movie clip |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|