jamesbooth
02-28-2006, 02:31 PM
I hope this is a very easy question to answer, im a designer and im having a go with some coding, but so far its not comming along as i wish.
I have a main site.swf which i have loaded 3, pic1.swf, pic2.swf and pic3.swf into it, using the tutorial from here.
then on each of the pic?.swf's i have added a button so that once clicked will animate the pic?.swf's down and out of the way of the ones infront or behind.
but the code i have come up with doesnt seem to work. i was hoping that some one could try and help me sort out my huge problem.
pic1.swf is on _level3 // at the top
pic2.swf is on _level2 // in the middle
pic3.swf is on _level1 // at the bottom
this is on the button from the middle layer pic2.swf
on(press)
{
if (_level0._level1._currentframe == "up")
{
_level0_level1.play();
}
if (_level0._level3._currentframe == "up")
{
_level0._level3.play();
}
}
on the pic?.swf files there is a preloader one frame one which plays to frame 5 which is called "up" where the image is visible. then there are another 5 frames to a stop(); command where the image has moved back to a hidden position.
I have a main site.swf which i have loaded 3, pic1.swf, pic2.swf and pic3.swf into it, using the tutorial from here.
then on each of the pic?.swf's i have added a button so that once clicked will animate the pic?.swf's down and out of the way of the ones infront or behind.
but the code i have come up with doesnt seem to work. i was hoping that some one could try and help me sort out my huge problem.
pic1.swf is on _level3 // at the top
pic2.swf is on _level2 // in the middle
pic3.swf is on _level1 // at the bottom
this is on the button from the middle layer pic2.swf
on(press)
{
if (_level0._level1._currentframe == "up")
{
_level0_level1.play();
}
if (_level0._level3._currentframe == "up")
{
_level0._level3.play();
}
}
on the pic?.swf files there is a preloader one frame one which plays to frame 5 which is called "up" where the image is visible. then there are another 5 frames to a stop(); command where the image has moved back to a hidden position.