all groups > flash (macromedia) > november 2005 >
You're in the

flash (macromedia)

group:

Navigation problems


Navigation problems FirstNforthFinger
11/28/2005 11:37:25 PM
flash (macromedia): Hello :)

Im having trouble. Ive made a flash form that works very nicely. When the form
is sent the Submit button takes you to frame 4 of the movie 'Contact.swf'.

Contact.swf is a movie thats just one page of my site. And every page is
loaded into the main site 'Main.swf'

So when the Submit button is clicked and the timeline goes to frame 4 I have a
small scrolling animation to represent that somethings working and a text field
displaying 'Re-directing...' Id like to after about 40 frames (roughtly
3seconds)
have a frame that automatically, without any button press ect.. loads Frame 3
of the scene 'Home' which is in the 'Main' movie.

So how can i get a movie to fetch a scene and frame from the outa movie (the
movie that 'Contact.swf' is loaded into.)

I hope this is possible.

Sorry if that doesnt make much sence, Its as clear as i can explain it :\

Thanks!

Also, in this code:
on (release) {
_root.gotoAndStop("aboutprofile");
}

What does _root. actaually do? It does the job and fixed a problem but i dont
understand it.

Reguards!

Marc :)
Re: Navigation problems urami_
11/29/2005 7:52:19 AM


[quoted text, click to view]

if the main.swf is level zero than you give the frame you like to target some
label name like "home_label"
and call it using _level0.gotoAndPlay("home_Label");


[quoted text, click to view]


Root means the main timeline of the movie you are currently running.


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: Navigation problems FirstNforthFinger
11/29/2005 12:02:54 PM
Thankyou urami_ :)

But i still really need to know how to control the main movie from inside
anouther thats been loaded into main.

If you dont think this is possible then please let me know. If you know how
then share! It is Christmas :P

Reguards,

Marc
Re: Navigation problems urami_
11/29/2005 11:37:05 PM


[quoted text, click to view]

Sure is possible just need to know the exact arrangement that you have, meantime, some samples:

main.swf load one.swf in level 123, to control one.swf you will use action from main.swf
_level123.action here
If the one.swf is loaded in movie clip holder instance name HOLDER than from main.swf you
will use _root.holder.action here

If you want to refer from one.swf to main.swf
_level0.action here



--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: Navigation problems FirstNforthFinger
11/30/2005 5:27:08 PM
wow I very vaguely understood the example. Let me explain the setup i have.

main.swf is the main site and on frame 3 of Scene 'Contact' I have:

LoadMovie 'contact.swf' level 1.
(not written like that) :P

Contact.swf has 2 frames (minus the preloader) frame 1 is the form, Frame 2 is
the 're-direction' Movie clip. Inside the re-direction movie clip on frame 40 i
have a blank keyframe that im trying to make the 'main.swf':

gotoandplay Scene 'home' Frame 1 (If you will)

I hope this explains my movie.
ill email you a link to my movie if you would like to see what i mean.

I hope you can help :)

Reguards,
Marc
Re: Navigation problems urami_
12/1/2005 12:00:00 AM

[quoted text, click to view]

Can't target scene names with action script regardless what the manuals might say.
Scenes are included upon export so the names will be gone.
you need to add label name to a frame you like to target and use the label
in your action. For instance, in level zero, the main movie, you like to target
label name on main timeline, call HOME.
The action would be :
_level0.gotoAndPlay("home")

Now, if the label is inside movie clip call MYMovie than you would call it
using
_level0.MYMovie.gotoAndPlay("home");

more clear ? :)




--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: Navigation problems FirstNforthFinger
12/1/2005 12:22:35 PM
Thankyou very much :)

I will try this 2nite :D

Hope its works!!

Re: Navigation problems FirstNforthFinger
12/1/2005 8:07:06 PM
oh, your a legend! thanks so much!

Re: Navigation problems Zubaran
12/2/2005 9:44:54 AM
Ho there
AddThis Social Bookmark Button