Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Delayed Movieclip Navigation



Hi All,

I am working on some schematic animations and need to implement some button driven navigation with a slight difference from the norm that I can't figure out how to do...

I'd like to play a movieclip which would then pause halfway through. The user would then be able to click one of a selection of buttons which would trigger the movie clip to start playing again and then load the next movie clip based on the button pressed. This means I could show the intro of the animation and then following a button press, show the outro before moving to the next selected clip.

Hope that makes some sense...I kinda know what I'm after but at a loss how to do it so any advice would be gratefully received...

Many thanks,

Steve



SitePoint > Design Your Site > Flash and Actionscript
Posted on: Apr 3, 2007, 02:17


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Delayed Movieclip Navigation
Hi All,

First post so forgive me if it doesn't make much sense...

I am working on some schematic animations and need to implement some button driven navigation with a slight difference from the norm that I can't figure out how to do...

I'd like to start playing a movieclip which would then pause halfway through. The user would then be able to click one of a selection of buttons which would trigger the movie clip to start playing again and then load the next movie clip based on the button pressed. This means I could show the intro of the animation and then following a button press, show the outro before moving to the next selected clip.

Hope that makes some sense...I kinda know what I'm after but at a loss how to do it so any advice would be gratefully received...

Many thanks,

Steve

Navigation With Movieclip
I am having a hell of a time with this navigation.

I have buttons that run in a scrolling movie clip on the right side of the stage. I want the main timeline to play another movie clip that contains the content of that section when the user clicks on the scrolling buttons. I have tried everything that i know to do (which isn't much) and nothing is working...

Any suggestions?

www.u1design.com/test

Movieclip Navigation
anyone knows where i could get some information about movieclip navigation, parents, etc...

thanks

MovieClip Navigation?
I know this is a very simple question and it has a very simple answer. I am having a brain fart and I cannot figure this out to save my life.

I have the following code below. The problem is I am trying to access a certain navMc and I tried navMc[i] but I am getting an error. I know I can acces it by:

navHolder["nav_mc" + 3]

But I just want to know if I can access it with navMc?


Code:
var navHolder:MovieClip = _root.createEmptyMovieClip("navHolder", 0);

for(var i:Number = 0; i < navLength; i++)
{
var navMc:MovieClip = navHolder.attachMovie("nav_mc", "nav_mc" + i, i);
}

Movieclip Navigation
anyone knows where i could get some information about movieclip navigation, parents, etc...

thanks

MovieClip Telltarget Navigation
I'm having problems working out how to move between movieclips. I have a movieclip with a button and I want to use that button to jump 3 movieclips back but not all the way to the main timeline.

Once there I need it to jump to a keyframe and play another movieclip there.

Any direction, help, guidance greatly appreciated

hope it makes sense!

TIA
Deborah

in the example I want to jump from PPweb01 (button on frame 28) to PPMovie01 frame 2 and play that movieclip.

[F8] Buttun/Movieclip Navigation
This is how my movie is laid out. I have a clip called topBanner inside a clip called mainClip inside a clip called mainIntro. topBanner has a button called news. The actionscript for that button is

Code:
on(press)
{
_root.mainIntro.mainClip.newsClip.gotoAndPlay(1);
}
On the third frame of mainClip there is a movieclip called newsClip however this code doesn't go and play newsClip like it should.


Code:
on(press)
{
_root.mainIntro.mainClip.gotoAndPlay(3);
}
This code DOES play newsClip because it is in frame 3, however if I use this code, once newsClip is playing, if I click the button with the same actionscript it doesn't start newsClip again, instead I believe it pauses at frame 1.

[CS3] Movieclip Timeline Navigation
Hello, can anyone tell me how to go to a certain frame after a movieclip plays within a single frame?

Movieclip Timeline Navigation
can anybody tell me what the correct code is to place at the end of the movieclip timeline or on the frame in the main timeline to get the movie to go to the next frame after a movieclip has played?

Movieclip Timeline Navigation
im fairly new to flash but want to get into actionscript 3.0. the problem i have is that i have a 20 frame movieclip in a single frame and a button on this frame also. i have written a statement so that when the button is clicked the movieclip plays. however, at the end of the movieclip the movie just stops and it won't go to the nextFrame or any other frame in the timeline. i was wondering how you get it to do this. i have tried something like

myMovieClip_mc.addEventListener(event.Event, moveFrame);

function moveFrame(e:event):void{
gotoAndStop(4);
}

but im not sure what event to use or if this is even close to being right. can anyonehelp me? thanks, tom.

Movieclip To Scene Navigation?
Hi guys I've been trying to get these buttons to work from within a movieclip in scene one to goto scene 2, i thought it was simple but can't get it to work, help.
I've been using code:

on (release)
{
_level0.gotoAndStop("scene2",1);
}

Cross Movieclip Navigation
Here is how my movie is set up.
Frame one -> MovieClip #1
Frame two -> MovieClip #2
within each movieclip there are 10-15 frames.

Here's the problem.
I want to be able to go from frame one in MovieClip#2 to the last frame in MovieClip#1,
via a button click.

any Ideas?

MovieClip Navigation Issue
Greetings All! All comments welcome in resolving this issue. I wish I could post the swf, however, it is a project for work so I will try and explain as best as possible.

I'm working on an online demo. My intro swf has 3 frames that contain movie clips each movieclip in their own seperate layer (layers 1, 3, 5).

Now layers 2 and 4 are my "Next" buttons.

Here's the problem: when I click the "Next" button to play the next movieclip (in frame 2), the navigation continues to the next frame (frame 2), but does not stop. It goes through all 5 frames of the main swf. So basically you get a quick view of the correct movieclip, but instead of playing the movieclip in frame 2, it flashes frame 2, then the movie clip in frame 3, and so on.

I've used the gotoandStop code, but it doesn't stop. Oh and forget about clicking the "Back" button. The whole thing just goes berzerk! haha

Please, any assistance would be greatly appreciated! If you require more clarification please refer to the online banking demo of Bank of America. I am trying to replicate their navigation with "Next", "Back", and "Pause" buttons.

I'm trying to keep this as one swf file with several scenes. This way, I will only need one preloader instead of several preloaders with the loading of every external swf file.

Thank you all in advance!
n3wbi3

Movieclip To Scene Navigation?
Hi guys I've been trying to get these buttons to work from within a movieclip in scene one to goto scene 2, i thought it was simple but can't get it to work, help.
I've been using code:

on (release)
{
_level0.gotoAndStop("scene2",1);
}

Cross Movieclip Navigation
Here is how my movie is set up.
Frame one -> MovieClip #1
Frame two -> MovieClip #2
within each movieclip there are 10-15 frames.

Here's the problem.
I want to be able to go from frame one in MovieClip#2 to the last frame in MovieClip#1,
via a button click.

any Ideas?

MovieClip Navigation Issue
Greetings All! All comments welcome in resolving this issue. I wish I could post the swf, however, it is a project for work so I will try and explain as best as possible.

I'm working on an online demo. My intro swf has 3 frames that contain movie clips each movieclip in their own seperate layer (layers 1, 3, 5).

Now layers 2 and 4 are my "Next" buttons.

Here's the problem: when I click the "Next" button to play the next movieclip (in frame 2), the navigation continues to the next frame (frame 2), but does not stop. It goes through all 5 frames of the main swf. So basically you get a quick view of the correct movieclip, but instead of playing the movieclip in frame 2, it flashes frame 2, then the movie clip in frame 3, and so on.

I've used the gotoandStop code, but it doesn't stop. Oh and forget about clicking the "Back" button. The whole thing just goes berzerk! haha

Please, any assistance would be greatly appreciated! If you require more clarification please refer to the online banking demo of Bank of America. I am trying to replicate their navigation with "Next", "Back", and "Pause" buttons.

I'm trying to keep this as one swf file with several scenes. This way, I will only need one preloader instead of several preloaders with the loading of every external swf file.

Thank you all in advance!
n3wbi3

_root. And Movieclip Navigation Problems
Probs a straight forward solution to this but its been doing my head in for some time...

I'm new to movieclips, last week I learnt how to use the _root. to direct my buttons to a frame on the main timeline, rather than the frame within the movie clip.

Now, however, I have a MovieClip within a MovieClip and I want to direct a button within the child clip to a frame within the parent clip. The _root. action takes me back to the main timeline, but is there an equivalent to take me a frame within the previous timeline, rather than the main timeline. Alternatively, perhaps a way I can specify the timeline I want to direct the user to?

Thx for your time
Lev

Scrolling A Navigation Menu (movieclip)
hi,

i have got a little problem. I have a navigation menu that is almost complete. All my buttons and animation are in a movieclip and this one sits at the main timeline together with the bg. Some of the buttons contain submenus. Now, sometimes when i push a button, the submenu is of such a length that it doesn't fit anymore in the movieclip. I can't expand the movieclip because i want my site to be able to fit in a resolution of 800*600.
What i now wanted to do is to provide 2 blue small arrows on the right side of the menu whenever the menu doesn't fit in the movie (so when it fits the arrows are gone). Anybody got an idea? I'll but my .fla for download so you know what i mean.
I have looked at this tutorial http://www.flashkit.com/tutorials/In...-683/index.php and it is very good. But 1. my contents is already made and the crosshair is in the middle and not at the top. 2. i don't want to use a scrollbar, just 2 little blue arrows.

Also another strange thing. My buttons are placed correctly, but sometimes when i rolled over a button when another submenu was open, it displaced itself. Now i don't have it anymore, only with the first button it still goes that way. Anyone got an explanation for that? Check it out to know what i am talking about.

Can anyone help me???
thnx
Spirit Wolf

Easing Movieclip Navigation...am I Missing Something?
http://www.actionscripts.org/tutoria...em/index.shtml

This is the tut i was following, but don't see any actions in the source file...yet when i publish it, it works flawlessly. WHERE ARE THE ACTIONS?

where did i put my excedrin?

Movieclip/goto Frame Navigation
Hi all,

im building my first flash site and i have a movie clip with two embedded buttons in it. What i need to know is how to naviagte to a different frame from the embedded buttons. Or if anybody knows how to get scenes to work from movie clips that would be even better. Here is the link to my site so you can see what i mean. Rollover the digital and 2dartwork menus to see what i mean.

http://www.wideopenwest.com/~kbrowe8086/

any and all help would be greatly appreciated

Navigation Problem - Movieclip/button
hi guys, i'm sure the answer to this is quite simple, but i'm a beginner with flash so bare with me.

basically, i have a nagivation menu that uses movieclips and buttons to allow a small animation to play on mouseover of the button. whenever i try to set the "geturl" command to link the button/movieclip to a specific url, the link will work, but the animation will not play.

any ideas?

thanks...

Navigation Loading Movieclip Wrong
Wow, well, I am not completely new to Flash, but am not real experienced. I more or less know how to create animations with it, with a pre-loader if necessary. I am now working on my first full flash website & am trying to create the navigation. That said, I can't quite get it to work correctly. This actionscript stuff is frustrating me. I want to get it so that when you roll over one of the buttons, it plays a small animation that flashes on top of the button. I seem to be close, but can't quite get it to work correctly.

I have attached the file I have so far. The first 2 buttons have animation attached. The first one I thought worked, but it seems to not work on the first time you roll over it. The second one, just keeps on repeating when you hold the mouse over the button. I would like it to just animate once each time the mouse is over it. Hopefully that makes sense. Any help would be awesome & if you could explain what the heck I am doing wrong for future reference...even better. Thanks!!

Jeff

Navigation - Button Inside Movieclip
I have a movieclip, on rollover the MC a menu slides out and MC stops at frame two where buttons are lcoated on an extended menu.

my code:


Code:

_root.mc_test_one.onRollOver = function() {
_root.mc_test_one.gotoAndStop(2);
}

_root.mc_test_one.onRollOut = function () {
_root.mc_test_one.gotoAndStop(1);
}

// extended menu

_root.mc_test_one.btn_one.onPress = function () {
getURL("http://www.yahoo.com","_blank");
}
stop();
the link on the btn_one instance does not want to work, anyone have any ideas? pls help

P

Precomposed Movieclip Navigation This._parent
Hello,

I've got a precomposed movieclip animation and on certain frames I want to trigger the _parent of the current clip to navigate to another frame.

I used to be able to do this._parent.gotoAndPlay() but now when I try this I get an error:

Warning: 1058: Migration issue: The property _parent is no longer supported. Use the DisplayObject.parent property instead..

Any suggestions?

thanks,

frank grimes

Anchoring Navigation To Resizing Movieclip
hey ya'll

i'm trying to do something which is probably relatively simple. however, i'm having big troubles figuring it out.

i want my 'navigation' movieclip to stay anchored to the left hand side of my resizing 'box'. so that when the box resizes, the navigation moves along with it.

if anyone has any bright ideas i would greatly appreciate it.

many thanks,
_grennex

Anchoring Navigation To Resizing Movieclip
hey ya'll

i'm trying to do something which is probably relatively simple. however, i'm having big troubles figuring it out.

i want my 'navigation' movieclip to stay anchored to the left hand side of my resizing 'box'. so that when the box resizes, the navigation moves along with it.

if anyone has any bright ideas i would greatly appreciate it.

many thanks,
_grennex

Navigation Transitions / Movieclip Fading In/Out
Does anyone know of a tutorial or actionscript that will allow me to make a one movieclip perform an animation then fade out, and then another movieclip fade in. These actions will take place on the click of button. HELP. Here is an example of this effect... www.jrecords.com

Using MX, Need To Export To 4: How Do I Control Inter-movieclip Navigation?
Aiight folks - this should be pretty simple. I'm cruising around in Flash MX pretty well now, but I need to make a movie that is Flash 4 compatible. Not having any major issues except one - I need to control the main clip's navigation through child movie clips, and the logical choice, _root.gotoAndPlay(100), doesn't work, as the _root part wasn't implemented in Flash 4. It doesn't like _parent either.

So how do I get a child movie clip to control the main movie's navigation in Flash 4? This is the code I'm using on an invisible button inside the child movie clip. Works fine in Flash 5/6.


Code:
=========FLASH MX VERSION=========

on (rollOver) {
this.gotoAndPlay(6);
}
on (rollOut) {
this.gotoAndPlay(2);
}
on (release) {
_root.gotoAndPlay(115);
}


=========FLASH 4 VERSION=========

on (rollOver) {
gotoAndPlay(6);
}
on (rollOut) {
gotoAndPlay(2);
}
on (release) {
????.gotoAndPlay(115);
}




I'd also like to be able to have one child clip control navigation inside another child clip, but that one isn't as critical (the solution is probably closely related)..


Thanks for your suggestions!

(CS3) Slide Navigation From Button Inside A Movieclip?
Hi all,

I've got a Flash Slide project with a complicated nested slide setup. I use navigation buttons that directly reference slide names to navigate about the app.

My problem is I can't seem to get buttons created inside movieclips to properly navigate to other slides the same way buttons directly on the stage work.

i.e. a button on the stage with code


Code:
on (load)
{
btn_01.onRelease = function()
gotoSlide(Slide01);
}


Will properly navigate to Slide01

But if I have a button inside a movieclip, none of the code I've tried will navigate. The button triggers because my trace throws my debugging text, but navigation to the specified slide does not work.

I've tried loading the above code to the movieclip frame where the button resides, to the stage's action script, and on the button itself I've tried


Code:
on(Release)
gotoSlide(Slide01);



Either I'm not putting the code in the right place (and I think I've tried everywhere at this point) or there is some sort of unique syntax for refrencing a slide from inside a movieclip that I'm uynaware of.

Either way I'd be very thankful for any help I might receive. Thanks in advance,

Movieclip.onhittest Problem And Browser Navigation
Dear all,
i have 2 questions to ask for help:
Question 1:
I have 2 movie clips, FrontObstacle and ShootTarget. Partial area of shoottarget is hide out by FrontObstacle movieclip.
I created another cursor movieclip and wrote out a hittest actionscript at ShootTarget movieclip:
OnClipEvent(mouseUp)
{
if (this.hitTest(_root._x, _root._y, true))
trace("ShootTarget hitted");
}
When i test it and shoot at the area hidden by FrontObstacle, the output window will show the message. So, How can I make that only area that is not hidden by FrontObstable will be hitted?

Question 2:
From flash movie, how can i navigate to the others url in same explorer without poping up new window?

thanks

Delayed Mc
Hy there,
I'm currently working on a project under MX2004, on my home containing buttons to diff menus I'd like to activate a movie clip after lets say 3 to 4 seconds of mouse inactivity.
Any ideas how to do such a thing?
thanks for your help.

Time Delayed
Hello everyone.

I want to be able to continually activate a single movie clip at a randow time interval. The movie clip will be a blinking eye. Does anyone know how to code this action? I've got the code for random action and time delay, but I'm not quite good enough to mix the 2.

Thanks

yeffer

Rollover: Can 'Go To URL' Be Delayed?
On the mouse click, I would like a 2-3 sec. sound to play, and then have the 'Go To URL' trigger take place. Is this at all possible? Thanks for any assistance.

Delayed Timing
Right now I am using a movie to fire off 8 smaller movies 1sec apart in a wave. The main movie plays for 12 frames, tells smallmovie1 to play, plays another 12 frames and tells smallmovie2 to play, and so on. Is there a way to do this with code rather than placing these smaller movies inside a bigger one?

thanks,
greg

Delayed Animation
hiya, ia have a Flashtyper animation, but i want it to start after everything else on my web page loads - how do i do it?
thankx

Preload Bar Delayed
I'm having a minor problem with a preloading bar.

I have used the tutorial found at flashkit on the following address:
http://www.flashkit.com/tutorials/Ac...-597/index.php

My problem is that it shows only when about 70% of my movie has been loaded. I get to see the last 30% of my movie being preloaded, which means that there's a lot of waiting time before the user will know that the file is being preloaded.

Is there any solution to that or do I simply have to use another method for preloading?

LoadVariables Delayed
Hi all,

Iam trying to load a set of variables from a php file,below is the code that i have been using to load the variables from the php file.

The problem is that the data dosent get loaded the very first time i access my flash file. The data gets loaded and the flash file works fine from the second time ...... as far as i know the problem is that the varibales are getting delayed to load into the flash file.

Can anyone help me out on this .......


Here is the code that i have been using ..

This goes in frame 1

loadVariables("http://www.demo.com/Category.php", this, "GET");

The rest goes at frame 20

if (e<=Number(tcount)) {
duplicateMovieClip(_root.middle.cat_name.cat_butto n, "cat"+e, e);
new_xpos = (_root.middle.collection.cat_name.cat_button._y)+x tpos;
setProperty("cat"+e, _y, new_xpos);
cimage_name = this['cimg'+e];
ctext_intro = this['cintro'+e];
ctext_con = this['cconcl'+e];
c_name = this['cname'+e];
c_id = this['cid'+e];
this["cat"+e].img_name.text = cimage_name;
this["cat"+e].img_desc.text = ctext_intro;
this["cat"+e].img_catid.text = c_id;
this["cat"+e].cat_text.text = c_name;
xtpos = xtpos+20;

}


this is where i generate the menu buttons based on the data i get from the php file.

Kindly anybody help me out of this...

thanks

Delayed Start
I have a site up and running (digitalhero.com.au) that starts with a logo that stays until you mouse over it, I would like it to start automatically after 5 seconds (or whatever). Can I do this with some actionscript or do I have to add loads of blank frames into the relevent bit of the timeline?

Delayed Loop?
Hi all -

I've got a movie clip that I'd like to have shift over say, 75 pix in a certain increment when a button is pressed.

I set up a for statement:

on( release ){
for( i=0; i<75; i++){
onClipEvent( enterFrame ){
_root.mainCreator.main._x ++
}
}
}

but as I'm sure you can imagine, it flew through it, and it appeared as if the movie shifted all in one big step. I tried fooling around with the getTimer() function a bit to try and specify a delay, but have had no luck. Anybody have any suggestions?

tia
msquito

Delayed Load
I am using the following code to load a randomly chosen .swf into two empty clips at the same time.

randomImage="BGimage"+(random(40)+1)+".swf"
_root.BaseImageMC2.loadMovie(randomImage);
_root.BaseImageMC1.loadMovie(randomImage);

It all works fine, bu they do not load exactly at the same time, and this is causing someweird things to happen.

I want to load the .swf into an invisible, or offstage clip first, and once the load is underway,say 25% complete, have it begin loading the the two other empty clips. This will smooth the transitions I think.

any thoughts?

Thanks, sumsum

Delayed Load
How do I load a swf into a target, tell the target to be at a certain _x and _y, and have the loaded swf fade in after 10 seconds?

Delayed Mouseover
I searched everywhere and couldn't find something to do this:

I need the mouseover to be delayed by about 2 or 3 seconds because I have a list of items and when user mouses over the text for that list I want a description to show. Problem is it's hard because they have to go around the text to not fire the wrong item... if it were delayed user would have a chance to make a selection properly and then that info would be shown.

I hope that's a clear explanation... if not just say so and I can post an example.

Thanks!

Delayed Action In CS3 AS3
Another problem from a newbie....

I have a button that links to a URL but before it redirects the page I would like to have this action delayed about 3 or 4 seconds while a movie clip finishes.

Have an idea but don't have a clue. Would really appreciate the help.

Thanks

Delayed Pre-Loader
Hi, my preloader does'nt start working until almost 30 percent into the load. I understand this to be because of the sound clips I have set up to be exported for ActionScript.

A tutorial told me to force include them somewhere before the main movie. How do I do this?

Graham

Publishing Delayed
I recently switched from Flash MX to Flash 8. One thing I noticed was that projects in Flash 8 take a long time to publish.

I started a new project in Flash 8 last week, and the larger the project becomes, the longer my publishing time is. Of course, larger projects should take longer to publish. However, I have larger, more complex projects built in Flash MX that publish within a few seconds.

My new Flash 8 project takes about 10-15 seconds to publish, and causes Flash to lockup during that time period. Sometimes I get a pop-up from Windows asking me to end-task the program. At first I thought there was some sort of never-ending-loop in my project, but I have not been able to locate it. I've noticed this problem in every Flash 8 project I've started since switching from MX.

Has anyone else experienced similar delayed publishing times? If so, did you find the problem or a way around it?

Delayed EVENTS
Okay the set up:

I attach several movieClips to the stage based on the number of objects in an array.

Code:
Gallery_Images_array = [{Image_mc:"my_Image1"},{Image_mc:"my_Image2"},{Image_mc:"my_Image3"},{Image_mc:"my_Image4"}];
I use a FOR LOOP to cycle through the array and attach the MC. I put a scale tween from 0% to 100% as the MC are added but, the problem is HOW DO I GET THE MOVIE TO WAIT UNTIL THE PREVIOUS CLIP IS DONE TWEENING BEFORE BEING ADDED?

Delayed Sounds?
I'm using a simple audio file of a bouncing ball, however it seems as though it plays with a slight delay. Particularly when it has to be played shortly after another. I want to know if it's something of Flash or if I can help it by optimising the code or audio file. I have uploaded the file I'm talking about, www.kirl.nl/ball2.0.html.

I have pasted the relevant bits of code below.

At the top of the file I declare : bounceSound = new Sound(this);

Code:
function playBounce(ball):Void
{
...
bounceSound.attachSound("bounce");// play sound
bounceSound.start();
}
And the function I call every time the ball hits a wall.

Delayed Loadvars.
Well met to you all.

I am having a little trouble with some LoadVars, inpaticular, with the amount of time it takes for them to load.

the flash application is sending strings for processing, and then retreiving them back for concatinating into a HTML document.

The problem propagates itself, when the user enters a short string after entering a long string. the short string gets processed and returned first, and then the long string. This makes the data all come out in the wrong order.

Are there any suggestions for a work around for this?
i have thought about restoring the data back to an XML doc, and then processing it into HTML from there. but still i will run into the problem of some loadvars returning in the wrong order.

HELP!

Delayed Preloader
Hi all, i need ur help

I got problem with preloader. When progress bar come to 100%, the movie not appeared immediately but delay about 4 seconds.The movie file size loaded about 500 kb, here is the code :

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
loadMovieNum("BCR_unusedItem.swf",0);
}
}



many thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved