all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

Navigate to Frame or Frame Label


Re: Navigate to Frame or Frame Label Rover
7/7/2004 5:02:57 PM
flash actionscript:
[quoted text, click to view]

The external SWF will always "open" on frame 1. Are you saying that the
particular frame you will want to send the SWF to will vary? If so, I
suggest this:

/**************************************
Script for _parent movie:
**************************************/
this.targetFrame = 3;
this.emptyClip_mc.loadMovie("external.swf");


/**************************************
This script goes in frame 1 of the external SWF.
Frame 1 is otherwise empty.
**************************************/
this.gotoAndPlay(_parent.targetFrame);
//the above assumes play action wanted.
Navigate to Frame or Frame Label Robner
7/7/2004 9:13:17 PM
Hi

I have a large flash presentation for the web, and cannot put all of the
slides in one flash file for download speed issues. RIght now the 23 slides
are divided up into 5 different .swf files. I am wondering if there is a piece
of action script like loadMovieNum which can also include a frame number or
frame label. I can do this in Director, but have been unable to find the code
in FLASH.

I want to call an external FLASH file and instead of opening up on frame 1 I
would like to tell the movie where to open up... Either a frame number or a
frame label.

Hoping someone can help me with this seemingly simple request.

Thanks

Robner
Re: Navigate to Frame or Frame Label YocheG
7/7/2004 10:05:00 PM
Why don't you put an empty screen with a "stop()" on the first frames of your
external movieclips. When the swf has finished loading, you just jump to your
desired frame using gotoAndPlay("FirstSlide").


Re: Navigate to Frame or Frame Label Robner
7/8/2004 2:44:01 AM
Hi

Thank you for your reply! Let me see if I understand this correctly...

/**************************************
Script for _parent movie:
**************************************/
this.targetFrame = 3; ----------------------------------does 3 represent the
frame# - Would "text" represent a label target
this.emptyClip_mc.loadMovie("external.swf"); ------does emptyClip_mc
represent the name of an empty mc instance



Re: Navigate to Frame or Frame Label Robner
7/8/2004 2:55:37 AM
Hi RocheG

Each external .swf has 5 frame labels in it. When going forward through the
presentation all external .swfs open up correctly on its frame #1 and play.
But... When you navigate backwards say from label #11 (external.swf #2) to
label #10 (external.swf#1) you wind up on label#6 because that is frame #1 for
that external .swf. I need to tell the the playback to jump ahead from frame#1
to label#10 in this example.

Sometimes I will need external .swf #1 to open up and play the first slide,
but when the next external .swf #2 opens, going back one slide will require the
last slide of external .swf #1 to open up and play.

I might be confused, but it seems that the solution you reccomended will
always send the playback ahead to the same frame. Is this understanding
correct?
Re: Navigate to Frame or Frame Label Rover
7/9/2004 7:38:36 AM
[quoted text, click to view]

The 3 is in integer form and so represents a frameNum. "3" would also
interpret as a frameNum, as you can't use numbers for frame labels. "_3",
or some variant, would work as a label.
emptyclip_mc is an instance name of an empty movieclip symbol.

AddThis Social Bookmark Button