|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dynamic Menu Trouble
I have a dynamically generated menu that I have created. The menu will generate correctly, but I cannot get it to go to any frame other than 2. It is probally something stupid. Any help would be greatly appreciated.
images = new Array("test1.jpg", "test2.jpg"); imageCount=images.length; offset=40; for (i=1;i<=imageCount;i++){ _root.nav.buttons.createEmptyMovieClip("clip_"+i,i); _root.nav.buttons["clip_"+i].createEmptyMovieClip("button_"+i,i); _root.nav.buttons["clip_"+i]["button_"+i].loadMovie("images/"+images[i-1],i); _root.nav.buttons["clip_"+i].onPress = function(){ _root.gotoAndStop(i-1); } if(i!=1){ _root.nav.buttons["clip_"+i]._y = _root.nav.buttons["clip_"+(i-1)]._y+_root.nav.buttons["clip_"+(i-1)]._height+offset; } } |
|
#2
|
|||
|
|||
|
Howdy...
![]() You could try this... PHP Code:
|
|
#3
|
|||
|
|||
|
CyanBlue,
Thank you for your reply. Between then and now I put together this code, and it is working for me. images = new Array("test1.jpg", "test2.jpg); imageCount=images.length; offset=40; for (i=0;i<=imageCount;i++){ _root.nav.buttons.createEmptyMovieClip("clip_"+i,i+1); _root.nav.buttons["clip_"+i].createEmptyMovieClip("button_"+i,i+1); _root.nav.buttons["clip_"+i]["button_"+i].loadMovie("images/"+images[i-1],i); _root.nav.buttons["clip_"+i].onPress = function(){ _root.gotoAndStop(parseInt(this._name.substr(5))+1); _root.display=_currentframe; } if(i!=1){ _root.nav.buttons["clip_"+i]._y = _root.nav.buttons["clip_"+(i-1)]._y+_root.nav.buttons["clip_"+(i-1)]._height+offset; } } thanks anyway |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Dynamic Menu Trouble |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|