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




Scrubbing Navigation For Movie Clips?



Does anyone know where I can find a component or an example of how to build a scrubbing navigation bar where users can play, stop, pause, rewind, etc. a MOVIE CLIP as if it were a Quicktime movie or something of that nature?

I've seen scrubbers that work for FLVs and SWF files, but this a late addition the client has requested and I wanted to see if I could do this without having to restructure my whole movie.



FlashKit > Flash Help > Flash MX
Posted on: 12-06-2004, 02:08 PM


View Complete Forum Thread with Replies

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

Scrubbing Navigation For Movie Clips?
Does anyone know where I can find a component or an example of how to build a scrubbing navigation bar where users can play, stop, pause, rewind, etc. a MOVIE CLIP as if it were a Quicktime movie or something of that nature?

I've seen scrubbers that work for FLVs and SWF files, but this a late addition the client has requested and I wanted to see if I could do this without having to restructure my whole movie.

Navigation & Movie Clips
in my header navigation i have a differnt "text phrase" to go w/ each button. i made each static text phrase a movie clip. there is a "fader" clip that is a mov. clip of just a colored box fading in and out to simulate a transition between the text phrases as you click thru the buttons..
my problem is once a text mc is loaded into the black mc (holderload) you can see the rest of the text clips which are positioned beneath it. i tried to make them w/ a back ground then and that dident work either. im not sure if my problem is the Code or how i have the layers positioned? can anyone help me out? is there a way you can play mc's right out of the library w/o having them on the time line?

any suggestions? thanks.


variations of this code is on my buttons:

on (press) {
_root.fadeclip.gotoAndPlay(2);
nav = "profile";
}



this is the code in the "fader" clip:


if (_root.nav == "contact") {
loadMovie("_root.contactclip", "_root.holderload");
}
if (_root.nav == "clients") {
loadMovie("_root.clientsclip", "_root.holderload");
}
if (_root.nav == "services") {
loadMovie("_root.servicesclip", "_root.holderload");
}
if (_root.nav == "profile") {
loadMovie("_root.profileclip", "_root.holderload");
}

Navigation & Movie Clips?
in my header navigation i have a differnt "text phrase" to go w/ each button. i made each static text phrase a movie clip. there is a "fader" clip that is a mov. clip of just a colored box fading in and out to simulate a transition between the text phrases as you click thru the buttons..
my problem is once a text mc is loaded into the black mc (holderload) you can see the rest of the text clips which are positioned beneath it. i tried to make them w/ a back ground then and that dident work either. im not sure if my problem is the Code or how i have the layers positioned? can anyone help me out? is there a way you can play mc's right out of the library w/o having them on the time line?

any suggestions? thanks.


variations of this code is on my buttons:

on (press) {
_root.fadeclip.gotoAndPlay(2);
nav = "profile";
}



this is the code in the "fader" clip:


if (_root.nav == "contact") {
loadMovie("_root.contactclip", "_root.holderload");
}
if (_root.nav == "clients") {
loadMovie("_root.clientsclip", "_root.holderload");
}
if (_root.nav == "services") {
loadMovie("_root.servicesclip", "_root.holderload");
}
if (_root.nav == "profile") {
loadMovie("_root.profileclip", "_root.holderload");
}

Handling Navigation Within Movie Clips
Hello -- I have a long (2400 frames) movie clip embedded in a Flash animation. In this clip, the user clicks one of five icons, each of which navigates to a different section -- designated by Frame Label -- within the clip. At the end of each section, I use
Actionscript Code:
gotoAndPlay("start");
to take the timeline back to the Frame Label "start" at the beginning of the clip.

I developed this as a separate Flash file, then converted it to a movie and added it to the end of an existing animation.

My problem is that, although the movie clip played fine on its own, adding it to the existing animation has caused it to behave unpredictably. Sometimes it will go all the way back to Frame 1 of the main timeline, even though I inserted the clip at Frame 451 (in other words, I can't find anything in the actionscript that would tell it to do this). Sometimes it will show snippets of the frames that precede 451 in the main timeline. I can't discern a pattern in this behavior.

I've checked the actionscript and there are no instances of multiple frames with identical labels. Am I just using a bad approach here with respect to how I'm handling the movie clip?

Any suggestions are welcome.

Thank you!

--J

Empty Movie Clips - Navigation Issue
I'm pretty new to site building so bare with me.

I'm building a site with empty movie clips on each page to provide navigation to other pages. I'm testing linkage between two pages, (home page and news page) When I load the home page, everything works fine, I click the link to my news page, and it loads in fine, BUT when I click back to home from the news page, the home page starts playing nested movie clips that should NOT be auto-playing.

So basically, I have nested movie clips that decide to play when I click to my home page from another page. If I load the home page by itself however, it functions properly. Why are these nested clips playing?

Here is the action script for the nested movie clips as an example:

_root.rightChair.onEnterFrame = function() {
if (mouse_over_rightChair) {
_root.rightChair.nextFrame();
} else {
_root.rightChair.prevFrame();
}
};

Basically they should not be playing unless a mouse rolls over them.
Thoughts anyone?

-Stephen

Movie Clip Navigation....how To Get Clips To Function Others
Hi

heres whats going on.

I have a work page.

it loads a movie clip with a sliding background.

there are four movie clips inside that sliding background

there are four buttons that controll which page to slide to.

question 1. i have an mp3 player on one of the sliding backgrounds. i would like the player to stop when i slide out of that page.

question 2. on one of the pages i have movie clips that are acting as buttons. I am loading vars from a text file...the page works on its own but when it loadis into the work page the text disappears...but the getURL and roll over work.....

okay, i think i understand whats happening...its something to do with accessing the correct paths... i think....hope...you name it

so the big question...how do i access movie clips nested deep inside other movie clips....

if this is a big jumbled mess let me know and i'll try and be more succinct

i can't post the fla because its not my file to post...you can visit the mess at http://www.artboyinc.com for the visual reference


if you've gotton this far thanks....

ponyack

[F8] Movie Clip Navigation By Movie Clips?
I have a movieclip of a navigation menu that folds out, then I want to add movie clip buttons inside that navigation menu, but when clicked they won't follow the link, it's like they're underneath the main hit area for the MC..... Any ideas on why?? Thanks

Help How To Continue Sound Across Multiple Movie/navigation Clips?
I'm basically building my first real Flash project--please bear with me if this is a bonehead question. My searches for a solution for this have come up empty.

Basically, I've got one of those music on/off things on a navigation bar. It's default is "off". But when the user clicks "on", I want the song to keep playing even if they are moving from link to link. Unfortunately (when the user clicks from link to link using my my "goto" action) the music stops (goes back to the default). I can't seem to figure out how to keep the music playing through these goto actions.

I have the music movieclip on a separate layer in my main timeline/scene, and the navigation links in little movies staggered in my timeline with labels. I don't know what else to say about this, but I'd be happy to provide any additional info.

This is hard to explain--but if anyone has any suggestions on where I might begin to fix/troubleshoot this, tutorials, etc., that would be great.

TIA!
Scott

Scrubbing A Movie
I was certain that this type of problem would have been previously discussed here or in a tutorial. I have looked quite a bit and could not find anything that puts all the pieces of my puzzle together.

Here it is:

I have an Embedded Video in a container movieClip.

As the movie is playing (looping), I would like the movie to stop at the current frame whenever I click and hold the mouse down within the area of the container. Furthermore, I would like to be able to scrub the movie backward if I drag my mouse to the left within the container and as I reach the left end of the container, the movie is at the first frame. And similarly, I would like to scrub forward if I drag to the right within the container and as I reach the right end of the container, the movie is at the last frame. On top of this daunting task, I would like the movie to resume playing from wherever I have released the mouse.

Here is a file that I have started and I am pretty much at a loss as to where to go now. I know it has something to do with where the mouse is relative to either side of the container, but...how does one get it to work?

http://www.culshaw.info/junk_drawer/scrub.zip

Basically, I would like to emulate the functionality of the QuickTime Player - the one where you can grab the slider and drag it left or right to scrub in either direction and then upon release of the slider it resumes playing.

I do not understand the media components in MX 2004, maybe this type of thing is "easy" to program in to one of those modules?

Please help.

-john

Scrubbing A Movie
I was certain that this type of problem would have been previously discussed here or in a tutorial. I have looked quite a bit and could not find anything that puts all the pieces of my puzzle together.

Here it is:

I have an Embedded Video in a container movieClip.

As the movie is playing (looping), I would like the movie to stop at the current frame whenever I click and hold the mouse down within the area of the container. Furthermore, I would like to be able to scrub the movie backward if I drag my mouse to the left within the container and as I reach the left end of the container, the movie is at the first frame. And similarly, I would like to scrub forward if I drag to the right within the container and as I reach the right end of the container, the movie is at the last frame. On top of this daunting task, I would like the movie to resume playing from wherever I have released the mouse.

Here is a file that I have started and I am pretty much at a loss as to where to go now. I know it has something to do with where the mouse is relative to either side of the container, but...how does one get it to work?

http://www.culshaw.info/junk_drawer/scrub.zip

Basically, I would like to emulate the functionality of the QuickTime Player - the one where you can grab the slider and drag it left or right to scrub in either direction and then upon release of the slider it resumes playing.

I do not understand the media components in MX 2004, maybe this type of thing is "easy" to program in to one of those modules?

Please help.

-john

Scrubbing A Movie?
here's the deal. i have a movie that is a demo of software, with a narration going on. they want to have controls so you can pause, play, stop, previous frame and next frame. those are basic controls that i don't really have a problem with. they also want to have a slider bar at the bottom with the controls like when playing a quicktime or something, how can i make this so you can "scrub" the slider across the demo and have the audio still synced and the animations??

any input would be appreciated on this. i can't seem to get a clear thought on how to do it.

-brad

How To Remove All Movie Clips/array: Movie Clips Carry Over To Next Frames/ Scenes
Hi: I am creating a small game. So far so good, but only problem I have come across is when I jump to another frame or scene, previous movieclips (using an array) that are still running carry over to the next frame/scene.

See attached if you have some time- start clicking on answers in the game, and when time runs out some movie clips that are still running will remain on top of my end frame and carry over to the next scene as well.

Is there any sort of remove all movie clips or "clear all" type of actionscript?

thanks in advance!

Maintaining Event Behavior For Movie Clips Nested In Movie Clips
Is there any way to maintain a clip's event callbacks when said clip is nested in a parent clip that has its own definitions for those callbacks?

In other words, if clip B has a definition for .onPress and clip A has a definition for .onPress, is there anyway to maintain clip B's definition if it is nested in clip A?

I have tried doing it by making clips into movie clip subclasses but it doesn't work... but how do components work then?

Navigation Between Two Clips
I'm having some trouble with the following code. I'll explain what it looks like. I have a password login that is a 1 frame movie clip. When you sign in successfully, you are either a member or a director. What I want to happen is when you sign in as a member, the menu movie clip, which is stopped on the first frame for the guest features, goes to the second frame that has member features. And if you sign in as a director, it goes to the third frame and stops, showing all of the features. I've got it all set up, but I cant get it to change frames when you sign in.

Here's the code:

// The movie clip I want it to use is called menu
// The movie clip I'm using is called privatesite - it's the login
// They're both in the parent frame on the same frame

on (release, keyPress "<Enter>") {
level = "";
function securityEval (level) {
if (level != "") {
signinstatus = "working";
_menu.gotoAndStop(level);
}
}
if (username eq "reco" & password eq "guy") {
level = 3;
securityEval(level);
}
}

When you first click the button, it sets level = null. Then defines the function of securityEval(level), then checks the username and password. If the username and password match what is shown in the code, and the level doesn't equal zero, signinstatus says "working", and the menu SHOULD go to the value of level, which in this case would be 3.

I am running flash 5.

And how to I type the code so it's indented?

Thanks!

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Accessing To The X And Y Coordinates Of Movie Clips Inside Of Other Movie Clips
lets say I have a movie clip with an instance name of "char" and another movie clip inside it with an inctance name of "ball" and when I try this I get zero:

_root.char.ball

why?

thanks in advance because you flashkit users know everything about flash in and out.

Movie Clips Within Movie Clips: Text Link Problem
Hello.

I have a Movie Clip that is my main one with another Movie Clip inside of it. In the subordinate Movie Clip, I wish to have text linking frame (13) to frame (14) for instance. The problem that manifests is that while buttons is the subordinate Movie Clip link to frames within it with no complications, the text link from 13 to 14 with its respective code links to the last frame (would be 14) in the main Movie Clip.

Am I doomed to convert all text links to buttons in the subordinate Movie Clip or is there (what I am praying for) a code to work around this and keep frame links confined to the subordinate Movie Clip? I would appreciate any help that anyone can offer regarding this problem. Many Thanks.

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

External Movie Clips With Multiple Menu Movie Clips
It's pretty late and I don't think i have enough time to search this question in the forums but here I go. Sorry If I upset someone for making a topic that already exists.

I have a main timeline that im importing an external movie clip in. This external movie clip is named "members" it has several buttons that load other external movie clips into a window within "members" . What do I need to do to make this work. Do I need to use "this, _parent, _root, level(s) or "whatever.swf". If you can help me out that will be great. I'll make it up to you down the road. No sexual favor please.

I'm using flash mx 2004 btw.

Thanks in advanced

Navigation In Flash Player Between Clips
Hi,

I have a file in which a horizontal menu helps the user go from one section to another. Each section calls a movie clip to play on the main timeline. The main movie only has one frame.

I would like to use back and next button so the user can view the last place he visited. This website is played entirely without using a browser (only plays with Flash player).

Is there a way to have back and forward buttons in my movie?

Newbie here

Thanks,

Luke

Navigation In Flash Player Between Clips (2nd Post)
Hi,

I have a file in which a horizontal menu helps the user go from one section to another. Each section calls a movie clip to play on the main timeline. The main movie only has one frame.

I would like to use back and next button so the user can view the last place he visited. This website is played entirely without using a browser (only plays with Flash player).

Is there a way to have back and forward buttons in my movie?

Newbie here

Thanks,

Luke

Actionscript 2.0 Xml Navigation Problem Loading External Clips
I am trying to open external movieclips via actionscript and xml. Does anyone know a good tutorial on loading external movieclips via xml?

Thanks

[MX04]Movie That Works Fine When Clips Apart Acts Strange When Clips Are Together.
Hi,

I have a pretty basic movie in which a ball moves along a track.

The track is made up of 3 sections & all I want the movie to do is trace an ID number (num) that is an individual property of that clip when it goes over it.

In the first movie attached below “trackOne” the whole thing works great! However in the other movie “trackTwo” I have moved the clips closer together & the whole thing has gone crazy with the following issues.

1.)The “trace” command fires on every “onEnterClip” event

2.)A text field that is used to show the ID number only changes when the ball is fully over the clip not as it first touches it, as it does in the first movie

3.)Although the ball is full off a clip it keeps tracing it’s ID number together with the new clips number?

Anybody able to help me on this?

Screwy Stuff With Movie Clips Within Movie Clips
This is kind of difficult to explain but here it goes...
I have created a Barney's like slide site and have gotten it to work fine. the problem I'm having is when I take scroll text box and try to place it on the movie clip that is going to be the part of the site that is going to slide out.

The whole thing slides fine and the scroll box is visible. However, the text is not visible therefore I'm not sure if the up/down buttons are actually working.

The scroll box is a movie clip itself with "on(release)" commands on the buttons. The "onClipEvent" commands are added to the textbox when the scroller movie clip is brought into the slider movie clip.

Is this something that just isn't supposed to work or I am doing some thing dreadfully wrong?

Thanks in advance,
Fakeout

Is It Ok To Duplicate Movie Clips Inside Movie Clips?
is it ok to duplicate movie clips inside movie clips? Seems to be a problem here...

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Intersecting Movie Clips/ Dividing Movie Clips
I've bee trying all day to find out how to find the intersection point on two moive clips with non linear lines in them.
If I use the Hit Test method it seems to recognise only the hit point when the imaginary rectangle arounf the two clips collide. Is there any way of determining the point where the lines themselves cross over.

If not I think I've got another method but I can't figure it all out.

I know at what x point the lines will cross over (the more horizontal of the two lines will be crossed every by one of the verticle lines every 1/108th of it's width) but I can't determine exactly where the Y co-ordinate of this line will be at the time.

I could sort this out if I was able to delete all of the more horizontal move clip except the point of intersection I'm looking for, I'd then then be able to determine the y co-ordinate at this point. But I havn't been able to determine how to delete a move clip for example from x=0 to x=51 but leave the rest of the movie clip on the screen.



Any help with this would be much appreciated.

Cheers

Scifo

Creating Movie Clips Inside Movie Clips
Hello,

I am having difficulties creating movie clips within other movie clips. The following works to create a movie clip on stage with no problems...


Code:
//Create movie clip and load image into it
_level0.createEmptyMovieClip("tn1",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"tn1");
However, I want these movie clips inside another movie clip (mcPics1). For this I attempt...


Code:
mcPics1.createEmptyMovieClip("tn2",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"myPics1.tn2");
Can anyone tell me where I have went wrong?

Thanks!

Targeting Movie Clips Inside Of Movie Clips
I am a AS3 newbie and am working on an animated cell phone text demo for my company's web site. I have three phones, each are a movie clip with a time line animation. The three phones are all inside of another movie clip where I animate their intro. I have a stop on the first frame of each of the three cell phones so that their screens are static as they fall into place. Their animations begin on the second frame of each of their respective time lines, and I would like the animations to begin when the phones are clicked. I'm not sure if these clips should be targeted from the main time line with the rest of the global script or if it should be on the time line of the nested MC. Even if I knew where to put it, I'm not really sure exactly what the script should be. Please help! My boss wanted this done last week!!!

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

How To Make Movie Clips React To Other Movie Clips?
I'm designing this menu system that has four square buttons in a horizontal line. The premise of the menu system is when one button is clicked that button expands horizontally and the other buttons shrink horizontally and slide to the right. How would I go about doing this with actionscript? I'm using Flash 8 and Actionscript 2.0.

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

Problems Creating Movie Clips Within Movie Clips
Okay, I'm creating yet another game and need to create a vehicle. So I wanted to create one movie clip for the vehicle and within that movie clip create multiple movie clips for all of the parts.

So I created a new symbol, let's call it vehicle and then within that area I created all of the vehicle parts as symbols within that symbol. At least I think I did. Anyway, when you look at the library, sure enough you see all of parts for the vehicle and the vehicle itself. Within actionscript, however, I can create an instance of the vehicle. I can create instances of all of the parts, but not the vehicle.

The reason why I was going this route is that I wanted more realistic movement. I wanted certain parts of the vehicle to move depending on what the user did, but not other parts. Can anybody shed some light on this subject? Thanks in advance.

Embedding Smart Clips In Movie Clips Causes Crashes...?
i noticed that if you use more than one of those drop-down menu smart clip in the common library, you can't see all the choices...

e.g.
drop in one instance
then another directly below it.
publish the movie
select the third or fourth choice from the second drop-down
let go so that your choice is selected
now re-select the second drop-down menu...
the other choices are hidden by the menu above it.

this is also the case if you try the procedure in reverse...
i.e. if the second instance is on a higher z-plane, the choices in the first will be hidden.

it seemed logical to drop the smart clip into a movie clip then use mc.swapDepth to set the z-index

got swapDepth working perfectly
(thanks, Mac8myPC): http://www.flashkit.com/movies/Scrip...98/index.shtml

but as soon as you put an instance of the smart clip into a movie clip, flash (5 for mac, PPC, OS 9.1, g4 466, 384MB) crashes as soon as you try to publish/export/test movie.

i tried it in a button as well... same thing

i've been trying to rebuild the menu in a normal movie clip form but it seems like more pain than it's probably worth...

any suggestions?

thanks in advance,
--cera

Movie Clips Inside Move Clips. How To Control?
I have an object in this case a foot with toes on it. the toes animate as well as the whole foot moving with the nails on it. I have instance names assigned for all the mc's problem is that the toes are buried about 3 layers down inside the foot_mc so they will move with the foot as well. When I assign a function to them the error compiler does not know where the nails are . What is the best way to fix or re-do this layout?

I am a total newbie to Flash and AS3, so any help would be great


I FIGURED IT OUT.

Scrubbing Mp3
I have an mp3 player for audio product demos based on several different players. I have been trying to implement a scrubber for some time now looking at various examples and attempting different variations on the math for what "cue" or my new point in time is equal to, but to no avail. I have had many different results and many different code variations regarding the scrubber, but at best when clicked the scrubHandle as I have named it jumps back to the start. I have a feeling it has something to do with my cue, but I'm not sure. I would greatly appreciate any input on this.

code:
progbar._xscale = 0;
scrubHandle._x = 42;
demoText._visible = true;
var scrubInterval;
var songInterval:Number;
var amountLoaded:Number;
var mySound:Sound;
var duration:Number;
var paused:Boolean = true;

function playTrack(source,stream):Void{
mySound = new Sound();
mySound.loadSound(source,stream);
songInterval = setInterval(songProgress,100);
}

mySound.onSoundComplete = function():Void{
_root.progbar._xscale = 0;
scrubHandle._x = 42;
clearInterval(songInterval);
mySound.stop();
mySound = new Sound();
playstop_butt.gotoAndStop (1);
paused = true;
}

function songProgress():Void{
//soundLength = mySound.getBytesTotal();
amountLoaded = mySound.getBytesLoaded()/mySound.getBytesTotal();
progbar._width = (mySound.position/mySound.duration)*amountLoaded*350;
scrubHandle._x = mySound.position / mySound.duration*amountLoaded * 345+42;
}

scrubHandle.onPress = function() {
clearInterval(songInterval);
scrubInterval = setInterval(scrubit,10);
startDrag("scrubHandle",true,42,scrubHandle._y,389 ,scrubHandle._y);
}

scrubHandle.onRelease = scrubHandle.onReleaseOutside = function() {
clearInterval(scrubInterval);
songInterval = setInterval(songProgress,10);
stopDrag();

}

function scrubit() {
cue =(349 /(scrubHandle._x-42))/mySound.duration;
mySound.play(cue);
}

playstop_butt.onRelease = function():Void{

if(paused){
//playTrack(_root.mp3Filepath, true);
playTrack("ms_basses2.mp3",true);
mySound.start(cue,1);
playstop_butt.gotoAndStop(2);
paused = false;
demoText._visible = false;
}else{
mySound.stop();
delete mySound;
_root.progbar._xscale = 0;
scrubHandle._x = 42;
mySound = new Sound();
playstop_butt.gotoAndStop(1);
paused = true;
demoText._visible = true;
}
}

Scrubbing
When i scrub to my video i see only the 'flagged' frames. but in some of my flv's the ammount of frames that i get to see is so low. How can i get more 'flagged' frames in my flv's?

I hope you understand what i mean, the amount of flagged frames is critical for the app that i'm making.

Scrubbing
I need to be able to stop people from scrubbing forward but continue to allow them to scrub back. I can't seem to find example of the classes I need to be able to do this. If possible I would like to contiue to use the skins that Flash already has instead of creating my own.

Scrubbing The Timeline
you know, like the fast forward button on a vcr.

anyone know how i can control the timeline of a movie from a slider. as in, i drag this button to the right and the timeline of a movie advances the in proportion to the number of pixels the button moves.

so far i'm working with something like this:

onClipEvent (mouseMove) {
handle = new Object();
handle.x=this._x;
_root.ball.globalToLocal(handle);
_root.movie. ????frameNumber???? =handle.x*.1;
}


i don't know what it is but i imagine there must be some property i can put in the middle there that will represent the timeline frame number.

ideas?
thanks,
col

[F8] Scrubbing An Animation
I'm curious if anyone knows how i can scrub through a series of frames so it plays an animation but only when the user clicks and scrubs on it. More precisely i have a series of buttons in a circle, i want to be able to scrub so that the circle rotates and the buttons in the back come around to the front so then the user can access them. The buttons coordinate to parts on an engine and i want the engine to spin around also with the buttons so the user can turn it around to see the backside of it. I didn't know if this would be simple enough to do, i know i've seen it done before, just don't know where i would start. I hope this is clear enough. If anyone could get me started in the right direction i would greatly appreciate it. Thanks in advance!

Scrubbing The Timeline
Hi, I'm using flash 8 professional, and I'm wondering if there's a way to view exactly what's happening in the movie, by scrubbing the timeline.

Currently, when I have a movieclip on stage that has it's own timeline (say 10 frames) and I've created 10 frames in the main timeline on the layer with the movieclip on, when I scrub the timeline, it only shows the first frame of the movieclip.

I've seen a online tutorial video where the dude is scrubbing the main timeline, and you can see the animation of the movieclip playing in the main area.

He is using flash MX2004 - does anyone know how I might achieve this in flash 8? Getting all my different movieclips to align in the main timeline are a right nightmare, cos I can't see what any of them are doing when I scrub the main timeline!

Scrubbing Through Timeline
If I have an animated cartoon and I want to create a set of play controls for it, then what's the easiest way to go about coding a little timeline marker you can drag left and right with the mouse, to scrub along the movie's timeline?

Any help would be appreciated, thanks!

Dynamic Scrubbing For Flv
Hi, this is my first time posting, but i'm really stumped on this one.

I'm working on a flash portfolio site for myself, and it heavily relies on some flv files implanted in it, right now i'm working with preloaded video files, not progressive downloads.

My problem is i would like to have the timeline of the video controlled dynamically through the position of the mouse on the stage. I have tried linking the mouseX to the playheadTime, and the seekToSeconds() functions of my flvPlayback, and it has obviously not worked. And i realize there are certainly limitations to how much you can control video, but does anyone know a workaround so that i could achieve the desired affect?

would i possibly have to have the video play in the stage timeline, and control that dynamically?

Scrubbing Multiple FLV's
Hi,

I'm trying to knock together an online video editing tool, not unlike the ones on YouTube and Yahoo, basically where a user can upload their own videos, then edit and join them together. I've got the core application built, so the user can appear to edit the length of their videos down, then all the video info, duration, url, inpoint, outpoint etc are stored into an array for our server side software to use and render out a video sequence.

Where I'm running into problems is when the user gets to the preview stage, this is before the final video is rendered so I need to use the video details array to string the flvs together into their sequence, so they can check it then go back and change if they need too. I've got the preview working so they can watch the sequence from start to finish no problem, but when a user tries to scrub the timeline, the entire preview breaks down where the videos join together.

I've got vague ideas of how to get this to work (but nothing actually working for me yet), but just thought I'd post here to see if anyone out there has tackled building an application like this, and run into similar problems, or could suggest how I might tackle stringing the flvs together so that the timeline can be scrubbed?

Cheers

Audio Scrubbing
i am working on an intro, but am finding it difficult to sync audio with action. When playing the movie from the timeline, the audio plays through entirely, rather than stopping when the playhead stops. Does mx support audio scrubbing in the timeline?

invisible

Progress Bar Scrubbing Help
hello,

i have an mp3 player that uses a progress bar to scrub back and forth. For some reason though, when i click the progress bar, instead of scrubbing, it goes to the end and stops playing.


here is my actionscript:


Code:
startMove = function () {
stopPlayback();
progressBar.onEnterFrame = function () {
if (btTrack._xmouse / btTrack._width * 100 > 100) {
}
if (100 <= 0) {
var local1 = 0;
}
_pos = _snd.duration / 1000 * (local1 / 100);
progressBar._xscale = local1;
};
};
stopMove = function () {
delete progressBar.onEnterFrame;
startPlayback();
};
any ideas as to why it is behaving this way?

Thanks!

-Keith

Code Help -- Swf Scrubbing
So I watched the tutorial on how to make a scrub bar through an flv movie. However, I just need to make one that will work with the timeline in my .fla. I'm a beginner when it comes to code but here's what I tried. Needless to say it didn't work. This is just the part where I was trying to get the bar to move with the animation. Oct is an movieclip (an octagon that is tweening across the screen). 30 is the total number of frames in the tween. Scrub is the movieclip that is the bar i want to move. 322.9 is the width of the bar that scrub is moving along.

Any help would be greatly appreciated! Also, if anyone actually knows how to make it so I can click the bar and drag that would be awesome!
Raphael

var i:Number = oct._currentframe;

while (i<30) {
scrub._x = oct._currentframe/30 *322.9;
var i:Number = oct._currentframe;
}

Scrubbing Command
Dear flashers,

I'm using the basic video player as presented in the tutorials. The problem I have is the following: I need to scrub the video directly to 2.00 minutes (for example), using a link outside the swf/flv. Will this be possible just using html or do I need something else to reach this?

I'd really appreciate some usefull information about this.

Thanks in advance,

Sam Maldonado.

Aligning Movie Clips To Movie Clips Within Movie Clips?
hi, i want 2 align a movie clip, with a movie clip nested within a movie clip using actionscript. When I try to do this it aligns to the top of the screen. I know movie clips have like different _y and _x cooridnates relative to the stage or whateva or something like that. Neway any one know how to align movie clip with another movie clip within a movie clip like for instance:
_root.ball._y =_root.square.triangle._y
and get them 2 be at equal positions on the stage. If u understand please help
Tanx in advance4

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