Hi Group,
I'm having so much trouble with this duplicatemovie function!
I've gotten it to a point where it works, although I'm not too sure why it
works like this and not the other ways... Anyway...
I can't get a loadMovie function to work no matter what I've tried. Here's
my code at the moment...
I have image names and X Y coordinates coming from a dataset...
var i = 1;
if (_root.menu_ds.Type == 1) {
while (_root.menu_ds.hasNext()) {
newName = "button_"+i;
duplicateMovieClip(dupButton, newName, i);
eval(newName)._x = menu_ds.HorizontalPos;
eval(newName)._y = menu_ds.VerticalPos;
eval(newName).butState.up.loadMovie("up.jpg");
eval(newName).butState.down.loadMovie("down.jpg");
eval(newName).butState.disabled.loadMovie("disabled.jpg");
eval(newName).butState.onPress = function (){
this.gotoAndStop(2);
}
eval(newName).butState.onRelease = function (){
this.gotoAndStop(1);
}
++i;
menu_ds.next();
}
}
And could anyone explain why
this.[newName]._x = menu_ds.HorizontalPos;
doesn't work?
Many thanks...
Don
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com