|
|
| dogbitex 2005-08-22, 7:22 pm |
| im new to flash and im having problams all the time.
i used a tutorial from http://www.cbtcafe.com/flash/flyout...lyoutmenus.html
im having a problam with linking the buttons to go to a specific scene from
within the movie clip.
as linking im using
gotoandplay("art", 1);
but all it does is goto the begining of the clip.
is there a way so it could work on the base layer and not on the movie clip,
that is
when i press a button in the clip we go to the root and goto a differant scene?
| |
| tralfaz 2005-08-22, 7:22 pm |
| "dogbitex" <webforumsuser@macromedia.com> wrote in message
news:decv5v$f1l$1@forums.macromedia.com...
> im new to flash and im having problams all the time.
>
> i used a tutorial from
> http://www.cbtcafe.com/flash/flyout...lyoutmenus.html
>
> im having a problam with linking the buttons to go to a specific
> scene from
> within the movie clip.
Switch to frame label navigation. When you click on a timeline frame
there is a properties box where you can enter a frame label. Then to
jump to that label from anywhere in your program you can do it like
this...
on(release)
{
_root.gotoAndPlay("someFrameLabel");
}
This will work regardless of where the code is but scene name
navigation is only reliable when used at root level.
tralfaz
| |
|
| I think what you're using in your actionscript is redundant.
When you use the "gotoAndPlay" command you can reference where the movie skips
to either by the frame label name:
gotoAndPlay("art");
or by the frame number:
gotoAndPlay(1);
It looks to me like what you're doing is confusing Flash and it's going to
frame 1 rather than to the frame that is labeled "art".
If you want to make your movie switch to a completely different movie clip in
your file, you would reference it like this:
_root.art.gotoAndPlay(2);
Where this would play frame 2 of the movie "art".
HTH
| |
| dogbitex 2005-08-22, 7:22 pm |
| i need it to go to another scene
| |
|
| Is the scene on the same layer, in the same movie clip? If so:
gotoAndPlay("art");
Is the scene in a different movie clip? Make sure that movie clip has an
instance name and then:
_root.clip_instance_name.gotoAndPlay("art");
| |
| dogbitex 2005-08-22, 7:22 pm |
| well i found a solution for this.
just copied the movie to the main timeline and now scene transfer works.
but i have a differant problam now,
theres something in the script thats making it go slow or so it tells me.
"a script in this movie is causing flash player 7 to run slowly.if it
continues to run , your computor may become unresponsive
do you want to abort this script"
i think its the differant menus in the same timeline
| |
| dogbitex 2005-08-22, 7:22 pm |
| ok, no problam. fixed it.
code seemed to change at the start ,instead of saying stop(); it said gotoandstop..
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |