simobk
06-15-2005, 04:15 PM
Hi,
This is some really weird problem... It's been an hour I am trying to figure it out, but I don't know why, it feels like it's something really stupid that I can't find.
It's a simple gotoAndPlay :
_root.mainContentMC.portfolio.gotoAndPlay(2);
This works ONLY if I place the code in _root.mainContentMC.portfolio or a deeper level. It doesn't work on _root, _root.mainContentMC or any other.
What happens is it does go to the frame, but doesn't play from there... As if it did a gotoAndStop();
- Tried naming the frame and addressing the frame's name, doesn't work.
- Tried absolute and relative addressing, doesn't work.
- Tried changing the MC's instance name, doesn't work.
- Tried sending other instructions (gotoAndStop, _alpha...), IT WORKS...
I really have no idea on what's causing this...
Thanks for any help,
Simo
--------------
EDIT :
Actually, I made some tests, and the gotoAndPlay works if I attach the code to a button, but not if I attach it to a frame.
I attached here a stripped version of the FLA where I removed everything but the main parts.
On frame1 of _root, I placed :
_root.mainContentMC.portfolio.gotoAndPlay(2);
And on the button on the _root level, I placed :
on(release)
{
_root.mainContentMC.portfolio.gotoAndPlay(2);
}
The code on the button does go and play, but the code on the frame does just a gotoAndStop(2)
???
Any idea?
This is some really weird problem... It's been an hour I am trying to figure it out, but I don't know why, it feels like it's something really stupid that I can't find.
It's a simple gotoAndPlay :
_root.mainContentMC.portfolio.gotoAndPlay(2);
This works ONLY if I place the code in _root.mainContentMC.portfolio or a deeper level. It doesn't work on _root, _root.mainContentMC or any other.
What happens is it does go to the frame, but doesn't play from there... As if it did a gotoAndStop();
- Tried naming the frame and addressing the frame's name, doesn't work.
- Tried absolute and relative addressing, doesn't work.
- Tried changing the MC's instance name, doesn't work.
- Tried sending other instructions (gotoAndStop, _alpha...), IT WORKS...
I really have no idea on what's causing this...
Thanks for any help,
Simo
--------------
EDIT :
Actually, I made some tests, and the gotoAndPlay works if I attach the code to a button, but not if I attach it to a frame.
I attached here a stripped version of the FLA where I removed everything but the main parts.
On frame1 of _root, I placed :
_root.mainContentMC.portfolio.gotoAndPlay(2);
And on the button on the _root level, I placed :
on(release)
{
_root.mainContentMC.portfolio.gotoAndPlay(2);
}
The code on the button does go and play, but the code on the frame does just a gotoAndStop(2)
???
Any idea?