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




Multiple Mc Control With Navigation Bar



I am trying to load multiple MCs on one screen. I am using a singular navigation bar to do this with. Each button press:
on(release) {
tellTarget ("_root.mc.firstmovie"){
gotoAndPlay(2);
}
}

Unless I add in an additional script to gotoAndPlay(1); //blank screen, each movie will appear on top of the next. I am using this method to try and stay working with embedded movies. Would I be better off to use an empty movie container to switch, and can I somehow still refer to a 'hidden' movie within an empty movie container so I do not have to reference an external swf?

If so, is this correct (for each button):
on(release) {
loadMovie(http://www.mysite.com/swf/test1.swf, instanceNameofemptyclip);
}
How would I create that empty clip?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 02-13-2004, 04:05 AM


View Complete Forum Thread with Replies

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

Multiple Mc Control With Navigation Bar
I am trying to load multiple MCs on one screen. I am using a singular navigation bar to do this with. Each button press:
on(release) {
tellTarget ("_root.mc.firstmovie"){
gotoAndPlay(2);
}
}

Unless I add in an additional script to gotoAndPlay(1); //blank screen, each movie will appear on top of the next. I am using this method to try and stay working with embedded movies. Would I be better off to use an empty movie container to switch, and can I somehow still refer to a 'hidden' movie within an empty movie container so I do not have to reference an external swf?

If so, is this correct (for each button):
on(release) {
loadMovie(http://www.mysite.com/swf/test1.swf, instanceNameofemptyclip);
}
How would I create that empty clip?

[F8] Control Multiple Movies With Same Navigation
Hi all. Been a few weeks since I've been on the forum.

What I am trying to do:

I have a movie (doesn't everyone lol) and I have a navigation panel on the left. I have several (like 70) smaller movies I wish to control with the navigation. I am loading each of these smaller movies every 5 frames with empty.loadMovie script. I need to be able to refer to each movie as they are loaded.

Basically the function of this project is a digital archive of employees. Each movie represents an employee. The navigation is static and has several selection such as General Info, Resume, Schooling, ect. The movie loads, the user enters a password, they are presented with a dropdown and from there can choose which employee they need information on. If they choose Scott Harper the navigation would need to refer to the frames inside the loaded movie to go to the different selections (General, Resume, etc) for Scott. If another employee is selected from the dropdown the navigation should work for whomever is selected.

Is there a better way to do this? I am using combobox listings for the employee selection, spacing the individual employees every 5 frames and loading a separate, very basic, movie for each employee which pulls dynamically from a text file to populate the information. The employee movies will be 5 frames where each frame represents the information from each tab on the navigation. I am trying to make this very simple for someone else with little FLASH knowledge to add more employees to in the future.

Thanks for any comments or suggestions.

Navigation Control
I have Movie Clips (each at 500 x 475) that slide in from the right of the stage when the arrow buttons are pressed.

What do I need to apply to the arrow buttons to disable them when the final movie clip appears on the stage? At the moment, the MCs keep scrolling to the left when I press the button.

The code on the Right Button:

Code:
on (release) {
_root.targetx = _root.targetx-500;
_root.targety = 0;
}
The code on the Left Button:

Code:
on (release) {
_root.targetx = _root.targetx+500;
_root.targety = 0;
}

The code on the set of Movie Clips:

Code:
onClipEvent (load) {
_root.targetx = 0;
_root.targety = 0;
speed = 4;
_root.onEnterFrame = function() {
_x += (_root.targetx-_x)/speed;
_y += (_root.targety-_y)/speed;
};
}
onClipEvent (enterFrame) {
if (_y == targety && _x == targetx) {
delete this.onEnterFrame;
}
}
Here is the file for you to view:
http://www.toofly.com/bearcreek/gallery.swf
Hope I explained myself clearly.

Navigation Control For Swf (not Flv)?
I need to create a navigation control for swf files. I know there are many, and even a default navigator is available for flv files, but has anyone made one for swf files? I need to be able to pause, restart, stop and zoom to full screen, 200% and back to 100%.

Thanks

Navigation Control With Key Presses
I'm seriously getting ties in knots with this!

What I've found to be a sticking point is this: I'd like pressing the keys 1-9 to take the movie to the beginning of different scenes but any other key pressed to take the movie to the next frame of the current scene (to enable a slideshow).

Can anyone show me the most trouble-free way to get this to work?

Thanx in advance...

Navigation Control With External Swf's
I got a problem, hoping you guys can help me out!!
I'm currently building a demo tour in flash, I created
a main swf that has an intro and navigation. Each
link on the main.swf calls a loadMovie and loads each
section with external swf's in an empty movie clip.

What I'd like to add is 2 buttons, which are next and
back, giving the user the flexibility of going through
each section, using these 2 buttons. Its just that
since each section is an external swf file, I'm not
sure how to script the 2 back and next buttons....

any suggestions?? Need this real bad, real quick!!

Thanks!!

Navigation Control With External Swf's
I got a problem, hoping you guys can help me out!!
I'm currently building a demo tour in flash, I created
a main swf that has an intro and navigation. Each
link on the main.swf calls a loadMovie and loads each
section with external swf's in an empty movie clip.

What I'd like to add is 2 buttons, which are next and
back, giving the user the flexibility of going through
each section, using these 2 buttons. Its just that
since each section is an external swf file, I'm not
sure how to script the 2 back and next buttons....

any suggestions?? Need this real bad, real quick!!

Thanks!!

AS2 - MC Navigation / Scene Control
What's up everybody? Merry Christmas, and happy holidays to you all.

I'm in the process of re-designing my website. I've got a question though, and I've gotta get the answer before I return to my place, as I don't have internet there currently

I realize this may seem rather elementary to some of you, but I was wondering if I can have buttons inside a movie clip that control the scene in which the movie clip is in. I want the buttons on press to make the scene skip to another keyframe, while leaving the MC timeline untouched. Should I use tellTarget? Is it possible?

Was my explanation clear enough? If anyone can shed some light on this little matter, that would be an awesome Christmas present

Browser Control - Navigation Buttons
hey flash gurus,

i need to find the information for
controling the navigation buttons
in internet explorer or netscape.
Back,Forward,reload, etc.

I'm not sure it it is java or actionscript.

very humbly,
mike

Mouse Positioning To Control Navigation
Hi,

Maybe I'll have more luck here...
I've been trying duplicate this particular tutorial:
Controlled Navigation

I finally got the fla copied except for making the scrolling buttons stop when moused-overed or moused-down... I think the key is getting these factors right:

if (xmousepos1-98 && ymousepos1<-33) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-98 || ymousepos1>-33) {
play ();
____________________________

Is there an easier way to get them just "exactly" right?

I've attached my own fla for your perusal...thanks!

Simple Navigation/Control Question
I've got a 20 frame movie I'd like to allow a user to play forward and backward one frame at a time(it's a tutorial). I've laoded this movie clip in the first frame of my main move. I've got forward and back buttons in another layer of my main movie. I've already dowanloaded/tried andrew_s's play anything backwards -this works fine if I want continuous play, but I want the user to be able to go frame by frame. The only other way I can think of doing this is by putting the buttons on every frame of the movie and using frame labels -but i was hoping to do something more efficient.

Thanks,

G

Timeline Control With Navigation Question
Can you control the main time line of your movie with currentframe + 1 (or) currentframe - 1 ? Because I tried this:


Code:
on(release) {
_root._currentframe + 1
}
but it would not do anything, other then stopping movie from playing.

I added this actionscript to a button on the main stage; that is not in a movie clip - it is a regular shape/image.

I want to be able to go backward and forward in my main time line without having to specify the a goToAndPlay("FramesNameHere") or goToAndPlay(1).

Please Help: Slideshow With Navigation Control With Rollover
Hello--I promise I've done a very thorough search. I've been away from Flash for a while and I'm at a loss. I'm hoping someone will be able to guide me in the right direction.

I'm making a slideshow consisting of 25-33 images. The slideshow needs to "auto-launch,"--begin as soon as the user visits the URL. We will be adding or replacing images in the future, so I need to make something flexible in this regard. I'd like to accomplish the following:

1) Each image will display for a set duration of time (e.g., 2 seconds)
2) At the end of the slideshow, it will return to the first image and cycle through indefinitely.
3) Upon rollover (over an image), the slideshow will pause;

And...
*Only* upon rolling over the image that's currently showing, a navigation control will appear beneath the image, showing:
a) the name of image;
b) where they are in the slideshow [e.g., 1 of 33];
c) previous and next controls; and
d) static text [contact info].

Finally, when one clicks a "close" button or something or another (or, just roll off the "navigation control" area...whichever is easiest and/or more intuitive), the slideshow will resume where it was last paused.

I was working with Kirupa's XML slideshow tutorial, when I (belatedly) realized that one cannot implement rollOver actions using XML. (This is the extent of my familiarity with XML. )

I'm wondering what method I should take to achieve the above criteria--putting each image and description in external swfs that loads one after another, somehow using XML, or keeping the entire slideshow in one big swf, or some other cleaner and smarter method that I'm unable to come up with.

I greatly appreciate your input in advance. I'm at a complete loss at this point, and I'm grateful for any guidance.

Thank you so much!
macgirl

Load Movie / Navigation / Control
ok i've tried this a few ways and nothing is really working out for me. i dont know a lot about code, and was wondering if anyone had any suggestions.

i have 20 flash movies w/ short animations. in the end i want them to all play one after the other like one long animation, this will be backed by a long soundtrack. i want a pause/play control for the entire production.

i cant figure out a good way to set this up.

i started by making a new movie w/ my nav and loading my swfs into a blank mc . it worked fine. loaded my first movie and the pause/play worked. but i couldent get my nav bar positioned over the loaded movie. i tried moving the layers and looking into levels but i couldent get it.

my next problem is i put a load movie function at the end of the first animation swf to tell it to load the next animation--once i did that my pause/play dident work


i also tried to just copy and paste them into one long timeline but thats a pain to try and reposition everything and make the frames right

any ideas on how to set this up???!

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!

Movie Clip Control, Navigation Issues
navigation control question (help please)

Hello, i'm having trouble with multi button controled movieclip, I'm trying to make a rollover activated animation ( i think it is 40 frames) and the animation will play, then stop at a predetermined location, when you roll "out" of that button the movie clip should play back to the original(start) position. but if you roll over another button, it will move to position... and react the same with each buttons.

I uploaded a fla for a more comprhensive explanation, considering i've been working for the past 15 hours, my englis idn't whud id wons wus.

http//:www.exactpixel.com/rolling_over.fla

i've tried a few different ways to imitate this, but each has pissed me off and i have to have a working demo by friday, otherwise i'd take my time and try a few more methods but i still have the rest of the damn thing to put together, tons of animations.... blah

oh yeah, thank you all.

Using Flash Navigation To Control A Separate Swf File
I'm trying to get one swf file (the navigation) to control a separate swf file on the same html page. Here is an example of what I'm working on:

http://www.raggmopprecords.com/McKen...cefontTrue.htm

If you hit "Dawning Spirits" in the pull-down menu it replaces the pulldown movie with the Dawning Spirits swf file. This doesn't surprise me because I used:
loadMovie( "ds.swf", "_level0");

But I want it to replace the Sacred Heart swf file below.

Actions Layer Will Not Control Navigation Buttons
I created a flash menu inside my header for the website, and here is my problem, only some of my buttons are working. About half work, and half do not. When I click on the button, nothing happens. All the buttons are named and spelled correctly, but yet they WILL NOT work. Please tell me what I doing wrong here. Here is my code:

//home button
home_btn.onRelease = function() {
//Goto Webpage Behavior
getURL("

Multiple Swf Navigation
Hi,

i'm creating a site in flash. i have 4 different swf and a main.swf.

the user will start in main.swf and after clicking on a button in the navi-menu, page1.swf will start loading.

my problem here is i can move forward in navigation.
eg. main>page1>page2 etc.

but i can't jump from page to page or even move back to main.
eg. main>page1>main

should i put the AS in the button? currently the structure works, buttonclick>KeyFrameinMaintimeline>jumptoSwf <---

in the keyframe,

this.createEmptyMovieClip("container", 1);
this.loadMovie("page1.swf","container");

this is the same for the rest of the swf.

can anyone help me out? or point me to a thread that has the same problem?

[F8] Website Navigation With Multiple SWF's
Hi there,

Previously, with smaller sites I've authored I would have only created one swf file, embedded into my index.html page.

However I'm working on a content rich site at present and have decided to create separate SWF's for each page and embed each on separate html files.

In terms of navigation and linking, is it best to simply use the following AS on each of my navigation buttons contained within the SWF's?

on(Release){
getURL("http:///www.sitename.com/html/page2.html")
}

Is this sufficient/ best practice ?

Most grateful for any assistance.

Many thanks

Q.

Multiple Swf Navigation Issue
Hey all,

Firstly I'd like to thank all of you for reading/responding.

Heres my problem.

I'm trying to create a site that calls up content when the user wants it instead of building the whole site and making the filesize huge.
I have a main swf file that is acting like a shell for a site. The shell produces a navigation system that I want to call up the content swf's. Each navigation "link" changes the variable based on where i want it to go. Inside the shell I have a short animation which brings up a window that the content(other .swf's) will go into.

index.swf = the shell ,. at first,. the variable(area) is set to 1 so the home page is called when the user comes in.
HOME LINK = sets the variable to 1 = want it to call up home.swf = which is the home page content
ROSTER LINL = sets the variable to 2 = want it to call up roster.swf = roster page content
etc.. etc..

each link will have the corresponding varible change to it:

HOME LINK:
on (press) {
area = 1; (or whatever the case may be)
window.Play(1);
}

index.swf has the variable in it = var area:Number = 1;
then, inside the MC(window) that brings up the window I have a frame with the following AS:

if (area == 1) {
this.createEmptyMovieClip("whatever", 999);
whatever._x=85;
whatever._y=1; [[these are for placement obviously]]
loadMovie("home.swf", whatever);
} else {
gotoAndPlay(31); [[this makes the window dissappear]]
}

so technically,., the shell opens up the window for the conent, then based on which link i click on, it should change the variable hense changeing the .swf that gets loaded.

I can get the content to load in no problem if there isn't a IF condition at all. But if theres no IF condition, i can't tell flash to open up the .swf i want it to based on the users link choice right? What IS happening on the other hand is that the code above performs the ELSE even though the variable(area) is set to 1. All of this makes sense in my mind but i'm a flash noob so my logic could be all wrong based on the workings of flash lol

Any ideas?

Control Multiple MCs At Once
is there a way that I could control multiple MCs at once with only a few lines of code?
I have 12 MCs, all inside one MC on the _root timeline.
The twelve buttons are labeled btn1, btn2, and so on, up to btn12.
Could I use something like:

buttons = [btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btn10, btn11, btn12];
buttons._x = 10;
buttons._y = 10;

To move them all at once?

Multiple Timelines + Navigation For A Site
I'm using Flash4, building a site as i learn from scratch.

I've got the drawing basics down and have now moved on to the navigation part of my site. I'm not worried about what it looks like, just getting the mechanics right.

i've planned out the site on paper and i have lots of different menus needed to form the heirachy.

I'm planning on using one main movie which holds a background and the first main menu bar at the top of the 'tree'. There are two buttons on this menu.

hitting these two buttons will launch seperate movies on the left. these movies are made up of other buttons which launch the information pages - as seperate movies - to the right. All the movies slide into place using tweening.

So basically i have lots of movies, one for each menu and product/information page all being launched and controlled with actions in other movies

My questions are, am i doing the navigation in a sensible way? are there any other or better ways to build a navigation structure into a site?

I have made one button on the first movie load another movie using actionscript but the loaded movie doesn't show in the main timeline. some unwanted things happen when i test the movie as a whole, it works but some of the tweening is off.

Can I not see all the movies i have loaded, in the timeline window?

how do i work with it and organise it properly as there are going to be loads of seperate movies all over the place!

Your advice and experience on building the navigation would be cool!

Thanks a load!

Navigation Common To Multiple Scenes
Ok... I'm not "new" to Flash, but I wouldn't consider myself an expert yet. I've just started to create files which are large enough to warrant more than one scene. What is the right way to create background and navigation elements which are common to each scene? I've tried creating a movie clip with buttons which link to labeled frames (I know you can't target a frame number from an mc), but that doesn't seem to work.

I would post an example, but I haven't gotten too far. I don't want to create extra work for myself when I finally figure this out.

Any suggestions?

Thanks!

Question About Multiple Swfs/navigation
So I have 10 different sections for my site (10 swfs) however for the "main" page which is "home" it has a little animation in the beginning. However in the navigation when users click on "home" I want it to skip the animation and skip towards end of the movie. Is there a way I can load a swf and target them to a certain frame?

Load Multiple .swf Under Main Navigation
Hello,

Is there a way to load multiple external .swf while keeping the main navingation on top at all times? Basically, I want to keep my nav buttons available and visible while the other movies load underneath them.

see rebeccataylor.com as example. Notice how the .swf loads underneath the nav buttons.

Thanks alot.

HTML Navigation With Multiple Swf File
I am trying to set up a HTML web page and embed a swf in that page. I have four swf, I need to access the swf whem I click on the navigation (html LINK)
I have created four link on the html page.


Do I have to create four html pages, Or is it possible to access different swf in one html page.

Note: clicking the html link, the swf should play on the same position of the html page.

Can anyone help or tell me the web site to get source code or tutorial, please help

thanks

Navigation On Multiple External Swf Files.
Hello everyone,

I have a file (main.fla) which loads external movieclips on it,using an empty movieclip as loader (loader_mc).Now,I want to create a navigation,with two buttons (previous / next) which will allow me to navigate through the external movieclips.
So,I have created these two buttons.For the "next" button I am using this code,to load the first external swf file (example1.swf):

Code:
on (release) {
if(this._parent.loader == Number(this._parent.loader_mc)){
loadMovieNum("example1.swf",this._parent.loader_mc);
} else {
this._parent.loader_mc.loadMovie("example1.swf");
}
}
This is a simple code,taken from the behavior.
So,everything is fine till now.The first ext.swf loads correctly.
Now,what code do I need to use,in order to be able to load the second ext.swf file (example2.swf) when the "next" button is clicked?

Thanks in advance

HTML Navigation With Multiple Swf File
I am trying to set up a HTML web page and embed a swf in that page. I have four swf, I need to access the swf whem I click on the navigation (html LINK)
I have created four link on the html page.


Do I have to create four html pages, Or is it possible to access different swf in one html page.

Note: clicking the html link, the swf should play on the same position of the html page.

Can anyone help or tell me the web site to get source code or tutorial, please help

thanks

Multiple Sound Control
hi!
friends
i got a problem in sound control
i am running multiple sounds at a time they are looped 4times 5 times according to the sound and i want one of the sound to be fade off at particular frame and rest of the sounds will be go on playing
how do i do that in flash 5
please help me

Control Multiple Buttons
hi,
i have 5 buttons each toggles a variable true/false. initial value is false. so i want that if button1 is selected var1 is set to true and all other variables (var2, var3, ...) are reset to false.

i can do it the long way :

button1.onRelease = function(){
var1=true
var2=false
..
}
and do the same with each button and it will work ok, but i'm sure there's a better way. i can't imagine doing this to 50 buttons instead of 5

any ideas? i'd appreciate any help
thanks

Multiple Movie Control
Hi,

sorry if this is a pretty basic question, I just haven't been able to find anything about it in searches.

I'm trying to have one SWF control another one. For example: When 1.swf gets to a certain frame I want to make the symbol "button" in 2.swf turn invisible...

They will both be in the same HTML file, so would it be as simple as saying _root.button._visible = false; ? or do I have to do something special to specify that it's an object in another SWF?

Hope this makes sense.

Thanks

Multiple Button Control
I'm trying to manage 11 buttons I have on my stage. I have numerous, ridiculously long codes for each button, which look like this


Code:
s1.onRollOver = function() {
s1.gotoAndStop("over");
};
s1.onPress = function() {
s1.gotoAndStop("down");
};
s1.onRollOut = function() {
s1.gotoAndStop("off");
};
s1.onRelease = function() {
s1.gotoAndStop("down");
loadMovie("vanities/s1.swf", holder);
s1.enabled=false;
s2.enabled=true;
s3.enabled=true;
s4.enabled=true;
s5.enabled=true;
s6.enabled=true;
s7.enabled=true;
s8.enabled=true;
//s1.gotoAndStop("off");
s2.gotoAndStop("off");
s3.gotoAndStop("off");
s4.gotoAndStop("off");
s5.gotoAndStop("off");
s6.gotoAndStop("off");
s7.gotoAndStop("off");
s8.gotoAndStop("off");
};


What I'm trying to get here is when one button is clicked, whichever other button is in a down state will go back to its off state.

Can anyone offer any advise to help me clean this kind of code instead of having such a long mess??

Thanks!

Multiple Animations Control
Hi! Weird problem... I have 12 movieclips (small animations of a guy putting a shirt from beginning to half - where it stops- and taking it out from half to end) that can be chosen to play. Problem is: When user chooses to play next clip, (guy putting other shirt) previous one should play from half to end and then play next one from beginning to half... Got it?
Is there some kind of action that could play any movieclip (in the case of the previous animation, from half to end) and then loads and plays a specific one?

I thought of putting it all in a single timeline. But is there a way to tell flash "gotoAndPlay frame 45 AFTER playing till frame 25" ?
frame 45 is hypothetical, thatīs really why I coundnīt put a gotoAndPlay action in the end of each animation because I donīt know which shirt is going to be chosen by the user...
Iīd have all animations in one movieclip. Each shirt would have it's action referred to it's part in the animation. So, the user has just finished to see the guy in the animation wear the green shirt (which is, let's say, from frame 20 to 30 and undresses from 31 to 40).
Now he clicks on the yellow shirt, which animation goes from frame 60 to 70 (putting on) and 71 to 80 taking off.
So my yellow shirt button should have something like a simple play(); and after 10 frames gotoAndPlay frame 60.
Is this possible?? Help!

Multiple .flv Audio Control
I have 2 .flv's in a banner. I want to have the audio for BOTH .flv's turned off.
So this way, the user is only seeing both of the videos play without any audio. But the catch is, the user will need to have the ability to turn the audio on or off for either .flv. So this way they can hear the audio for which ever .flv they choose to hear the audio for.

any suggestions?

[F8] Multiple Volume Control
I have multiple flvs loading into multiple mcs. All good. I have set up a mc to hold the sound obects and set the volume to 0. So there are 9 video thumbnails with no sounds and then when the thum is clicked it plays the associated flv full screen in another mc. I have set up the sound mc and object for the big flv but when i set the volume to 100 for that one ALL the sound objects play at 100... instant headache

Im sure its a problem with how im assigning the sound objects to the mcs but i just cant see it. Have a look at the code and tell me your thoughts.

openVid is the function for the onRelease for the video thumbs and setupVideo sets up all the thumbnails.


Code:
function setupVideo() {

for (var k:Number = 1; k<(NVIDS+1); k++) {
var mc:MovieClip = thumb_holder_mc["th"+k];
mc.attachMovie("single_thumb","videoMc",mc.getNextHighestDepth());
var nc:NetConnection = mc["connection_nc"]=new NetConnection();
nc.connect(null);
var ns:NetStream = mc["stream_ns"]=new NetStream(nc);
ns.setBufferTime(4);
mc.videoMc.my_video.attachVideo(ns);
ns.play(VIDPATH+vidnames[k-1]+".flv");

//code for muting the flvs....
this.createEmptyMovieClip("vSound",this.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound[k]);
so.setVolume(0);


ns.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.Stop") {
this.seek(0);

}
};

}


}


// thumbnail click (onrelease) handler

function openVid() {



var mc2:MovieClip = video_holder_mc;
mc2.attachMovie("video_mc","bigMc",mc2.getNextHighestDepth());
var nc2:NetConnection = mc2["connectionnc"]=new NetConnection();
nc2.connect(null);
var ns2:NetStream = mc2["streamns"]=new NetStream(nc2);
ns2.setBufferTime(4);
mc2.bigMc.vid.attachVideo(ns2);
ns2.play(VIDPATH+"boombox.flv");


this.createEmptyMovieClip("vidSound",this.getNextHighestDepth());
vidSound.attachAudio(ns2);
var snd:Sound = new Sound(vidSound);
snd.setVolume(100);



ns2.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.Stop") {
ns2.close();
mc2.bigMc.vid.clear();

}
};
}

How Do You Control Multiple Timelines?
so i have this nav im working on and im having trouble with the script and it running the timeline in the navigation as well as the main timeline. for example would something like this be ok?

this.PROFILE.onRelease = function () {
PROFILE._parent._parent.gotoAndPlay("PROFILE");
}

this.PROFILE.onRelease = function () {
PROFILE._root.gotoAndPlay("PROFILE");
}


so that the button runs both timelines? doesn't seem to be working for me and i don't know why...

Plz Help.....How To Control Multiple Timeline
Hi

I want to load two external swf files in one main movie. i wana have a button in movie1 which can control the timeline of movie2 when both movies are loaded in a main movie. i am using loadmovie to load the swf's in main movie.

Please help this is urgent.

Thanks in advance

Control Multiple Sounds
I have several different sounds on one page, (which are spoken definitions of words) attached to buttons. All work fine, but if the user clicks on one button, then another, both sounds run at once.
How else can I control these sounds, so that only one plays at a time.
I really would appreciate some help, possibly some actionscript would do it, but unfortunately I don't know how to do that.

Navigation: Movie Clip With Multiple Buttons
I have created a movie clip with multiple buttons. Each button has been assigned a different action that navigates the movie to different scenes. When I place the movie clip onto a scene and run the movie, the main timeline ignores the assigned actions. When I run the movie clip itself, the actions run properly.

Or, is there a better way to setup a navigation button?

Any suggestions?

Thanks

Multiple MC Navigation Problem That's Driving Me Batty...help
Hi all. I already posted this on the general help forum, where it promptly got buried w/o an answer. I figured this would prolly be a better place to post it, so here goes. I apologize in advance if this question doesn't make sense...I'm horribly bad at explaining things...

Here's my question:
I have a movie in which the menu is a separate movie clip, and I've successfully figured out how to call new movie clips to load on the main stage from the menu MC by using _root.GoToAndStop("framelabel"), which gives me exactly what I want for each link on the menu.
However, the MCs that I'm calling up with the menu are draggable and minimizable text field windows, so I'm running into a few problems.
Namely: (1) I've got the maximize/minimize stuff all sorted, but how would I go about assigning a button to be a "close window" kind of thing, and how would I make it work?
and, most importantly,
(2) With the frame label thing, I can only have one of the textfield window MCs called up at a time. I'd like to be able to have all of them onscreen at the same time, but can't seem to figure out how to do so.

I'm quite convinced that I'm probably going about it in entirely the wrong way, but I can't seem to find any tutorials or anything about this problem. Arrgh!

Any assistance that could be provided would be lovely. Cheers.
-m krankota

Loading Multiple Movieclips Using Menu Navigation
Hiya,
I'm creating a website which has a main menu, whereby clicking each menu item loads a child swf file into the parent movieclip. For each movie clip that loads, there is a preloader.
The loading of the clips appears to work fine at first, but it seems that if you switch to another frame on the timeline before a child swf has fully loaded, it has trouble remembering/working out how much is loaded and how much is yet to load, and the percentage bar displays NaN% instead of an actual percentage.

The coding I've used on each timeline frame that corresponds to a page in hte navigation is roughly the same on each page, simply using different variables and loading the child swf into a different empty movie clip. An example of the code is as follows:


stop();

mov_photo.loadMovie("flash/photo/photo.swf");
loadPhoto.onEnterFrame = function() {
var g = mov_photo.getBytesLoaded();
var h = mov_photo.getBytesTotal();
var percent = Math.round(g/h*100);
loadphoto = percent+"%";
if (g==h){
mov_photo.gotoAndPlay("start");
gotoAndPlay("photopageloaded");
}
}


The site as it currently stands can be found at www.test.alexbimpson.co.uk

Can anyone tell me why it gets confused if I switch between pages before they're fully loaded?

Thanks for your help!





























Edited: 10/24/2007 at 05:07:51 AM by abimpson

Control Multiple Sounds In Movie?
Hey all ya FLashies,

The problem I'm having is making my volume control be able to control all the sounds in my game.

My game contains 4 scenes whereby each scene is a SWF file. Each one is loaded when the player

clicks on chosen destination located on the Map. What I've created is an MC called "soundMC". Each

frame contains a different sound. What I want to do is each time a new scene is loaded I want the

sound for a specific scene to start playing, but I want the sound to also be controlled by the volume

control.

Can anyone help with this???? All help greatly appeciated and welcomed. (; if u need the FLA plz let me know

Oh by the way I'm using flash MX if that's any help.

Sound Control For Multiple Scenes
Hi all,

I've posted this thread in the sound forum, but let's see if I have more luck here.

I'm still working with Flash5. I have a movie with, let's say 5 scenes. After the first scene, the movie will jump to different scenes based on buttons clicked. Each scene has different bg music (sound loop mc) playing as soon as the scene begins. I want to have a button on the stage that can mute or turn off all sounds on all scenes. StopAllSounds seems to work for only that one scene and not others that follow. I need a "mute" button would be present on all scenes. Is this possible (to control sound on multiple scenes from one button)? If so, can anyone tell me what action script would allow me to do this? Appreciate any help.

SKY 90006

What Is The Easiest Way To Control Multiple MC At One Time?
I have 10 instances of 1 MC on the stage. That MC has a slide open and close type of animation with a stop() action to seperate the 2 movements. Any one clip can be open at a time so I need to be able to close any other MC that is open at the same time. Is there a way to find out which one is open and close it? Below is what I have on the button now to open or close the MC. All the MC are named btn1, btn2, btn3..... btn10. btnMode is var for my toggle action. Maybe I can check to find out if any of the vars "btn?Mode" are equal to false? I don't know how to handle this one. Any help would be great... thanks!!

on (release) {
if (_root.btn1Mode == true)
_root.btn1.gotoAndPlay("open");
else
_root.btn1.gotoAndPlay("close");

_root.btn1Mode = !_root.btn1Mode;
_root.gotoAndPlay("one");
}

Sound Control On Multiple Scenes
hello
i have a fla with multiple scenes. i want to put a loop on the first scene and be able to turn the loop on/off throughout all the other scenes. i've tried various things but i'm a novice at this stuff. my biggest problem it seems is that i can turn the sound off but when i switch scenes the sound comes back on.
does anyone have a suggestion?

Sound Control In Multiple Windows
OK, Let's try this one...

I've been through all the tutorials, FLA's etc, even looked at other sites for Sound tutorials. I can now stop, start, fade in, fade out, control, play backwards, and use actionscript to load variables. None of that helps.
When my Webpage loads, I have an SWF file as my banner, with sound. When the webpage intially loads, i use the "Body Onload" command to generate a centered popup window. here's the issue:

I don't want the sound in my main page to start until the user closes the popup window. I've tried everything, I think; "On Unload; Newsound:attach_parent" Load Variable;target_Parent". Putting the sound in Frame #2 of the Main page clip, and "OnUnload_parent.Play (2)" etc... I just can't get it!! I don't think I can do this, because the two browser windows aren't actually linked at all in the user's PC. Any suggestions??

Mouse Control Multiple Movies - X And Y
Don't really know where to start with this one.

I have 3 mcs that contain fullbody shots of people (pngs no bkgs).

These 3 mcs are arrange so that the #1 is right in your face the second one is behind #1 and #3 is behind #2 giving the user a sort of depth to there screen.

As the user moves left to right I want #1 to move opposite the mouse and #2 and #3 to move with the mouse but in different amounts.

Any ideas tutorials on how to do this is appreciated.

Control Multiple Movie Clips
Hello

I'm not used to creating complex flash files, but I can see that I need to.

I have three movie clips which I want to be able to play independently. I also want to be able to play them all at the same time, it's to demonstrate bending and moments for engineering.

I thought the best way to tell flash which movie to play and to use up the least amount of screen space was to use a check box, when it's selected, the buttons controling the relevant movie clip are made visible. movie2_mc, movie2_mc, all_mc.

Each movie has 4 points in it when there is a stop. I would like the buttons that are controling the movie clips to be greyed out when the movie is running and to be active when the movie stops, but I don't know how to tell flash to check if the movie is running or not.

my scripting is a bit primitive, I know that I should be thinking about using arrays etc because there is a lot of repetition in the code.

any help would be appreciated.

Here is the code for the check box which shows the controls to play all three movie clips at one time and the code for the buttons.


//hide buttons
playAll._visible = false;
goBackAll._visible = false;

//set up listener

all_chk.addEventListener("click", all_chkListener);

all_chkListener = new Object();

// click event handler

all_chkListener.click = function() {
if (all_chk.selected) {
goBackAll._visible = true;
playAll._visible = true;

} else {
playAll._visible = false;
goBackAll._visible = false;
}
};

the button code:

//start to play
on (Release){
one_mc.play();
two_mc.play();
three_mc.play();
}

//stop playing
on(Release){
one_mc.gotoAndStop("1");
two_mc.gotoAndStop("1");
three_mc.gotoAndStop("1");
}

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