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




Controlling Mulitple Clips Logic



I've got 5 clips loaded in a movie, with 5 buttons for selecting each clip. _alpha = 0, except the first choice which is set to 99 which loads as the default choice.

I'm using a tween function class for transistions, and I'm trying to figure out the logic of how to evalute which clip is at 99, so that when button 5 is clicked, i can fire the tween function to fade the clip that is visible and then I can use a call back to fire the fade for the selected clip.

I found a couple of examples, but the logic wasn't making sense.

thoughts?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-28-2006, 08:10 PM


View Complete Forum Thread with Replies

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

Controlling Mulitple Movies...Best Way?
Hello,
Thank you for your help and support. The file is too large to put on here so Im gonna have to describe it to you. Thanks for the patience. This is for a portfolio Im creating.

As basic as possible:
I have a "next" and "Back" button which are connected to a "TV". I did the whole: (with infomovie being my instance name)

(Attached is picture of Next Button)
on (release) {
infomovie.nextFrame();
}

This worked fine. But when I went to a different subject, I wanted to use the same effect. I tried duplicating...but it copied over the other subject. I then tried to change the Instance name. But the movie would continue to play eventhough there was a Stop. Very weird and way confused!! Is there an easier route!!?? If so would you please explaim...Im new to mulitple movies!! Thanks for everything!!!

One other thing to consider...
On the movie...there is a bunch of frames with Stops...so when i click it goes frame 1, stop, (click) frame 2....(Attached is a picture of the Movie)(Hence the example above) Any suggestions would be wonderful!!!
Jason

Playing Mulitple Movie Clips At Once
Hi. I have a website that I'm designing in Flash 8 and I need a way so that when I press a button it goes to a frame it creates two new emptyMovieClips and plays the two movies at the same time. I have it working with just one movie clip and the code I have is:

<as>on (press) {
gotoAndPlay("mar");
this.createEmptyMovieClip("original_mc", depth++);
mcA = ["IceAd_next_mc", "Marriott_fade_mc"];
index = 0;
xx = 448;
yy = 105;
mc = this.attachMovie(mcA[index], "mc", 0);
mc._x = xx;
mc._y = yy;
trace(mc);
this.onEnterFrame = function() {
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
mc.removeMovieClip();
attachMovie(mcA[index], "mc", 0);
mc._x = this.xx;
mc._y = this.yy;
}
}
};


}
</as>

I also can make it work for the second movie clip alone, but not together the code for the second movie clip is just below. Is there a way to combine the two so that they both play at the same time?

<as>this.createEmptyMovieClip("text_mc", depth++);
mcA = ["ICE_txt_mc", "MAR_txt2_mc"];
index = 1;
xx = 217.5;
yy = 367.5;
mc = this.attachMovie(mcA[index], "mc", 1);
mc._x = xx;
mc._y = yy;
trace(mc);
this.onEnterFrame = function() {
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
mc.removeMovieClip();
attachMovie(mcA[index], "mc", 1);
mc._x = this.xx;
mc._y = this.yy;
}
}
};
</as>


Thanks!

Alpha Setting On Mulitple Movie Clips
I have pic1 -> pic6 movie clips in my flash movie. code which works in alpha 0 of a symbol pic4:


ActionScript Code:
for(var i=1;i<=6;i++){ var fish ="pic"+i;trace(fish);pic4._alpha = 0;}

code which doesn't to blank all of them.


ActionScript Code:
for(var i=1;i<=6;i++){ var fish ="pic"+i;trace(fish);fish._alpha = 0;}

trace although is reporting fish as pic1 pic2 etc etc.

So bewildered.

Cheers...

Logic Problem: Trying To Adjust X And Y Of Clips Based On Mouse Location
Hey All,

I am trying to alter some code that I borrowed from a dock-menu posted here on Kirupa.

I dynamically laid out movie clips in rows and columns to form a larger rectangular panel of clips.

I'm trying to enlarge the clips on mouse over, and actually I figured out this part of it...but as the clips enlarge, I want them to move away from each other so that the one with the mouse over is clearly visible, in other words, the x and y position of all the other clips are suppose to adjust. This is where I'm stuck with the logic!

I was sort of trying to get the same effect of a dock menu and also copy the effect of this site (go to options and select grid) - if any one can explain the math and logic of this, wow!

http://www.oneover.com/

Any suggestions? Thanks so much!

Here's my attempt:

//************************************************** *******

centerx = Stage.width/2;
centery = Stage.height/2;
piborder = 8;
panelitems = [];


//************************************************** *******
//make panel of movie clips
total_panels = 192;
panel_columns = 12;
panel_rows = 16;
panel_holder = createEmptyMovieClip("panel_holder", 2);
panel_holder._x = 170;
panel_holder._y = 120;
makePanel();

function makePanel() {
bw=34; //left-right spacing of buttons
bh=34; // top-bottom spacing for buttons
j = 16 // number of buttons per row = how many columns

for (var i = 0; i<total_panels; i++) {
var panel = panel_holder.attachMovie("panelitem","panel_item"+ i, 2000+i);
panel.id = i;
// applies dropshadow filter to object panel
panel.filters = [myDropShadowFilter];
//place dynaimcally created movieclips in rows/columns
panel._x = 0 + bw * (i % j);
panel._y = 0 + bh * Math.floor(i / j);
panelitems.push(panel);
}
};


//************************************************** *******
// mouse over stuff
panel_holder.onEnterFrame = function () {
var panel_height = 0;
var panel_width = 0;
for (var i = 0; i<total_panels; i++) {
var xxm = panelitems[i]._xmouse;
var yym = panelitems[i]._ymouse;
var xm = Math.sqrt(xxm*xxm+yym*yym);
if (xm<50) {
_global.mouse_over = i;
panelitems[i]._xscale = panelitems[i]._yscale += ((200-xm)-panelitems[i]._yscale)/3;
}
else {
panelitems[i]._xscale = panelitems[i]._yscale += (100-panelitems[i]._yscale)/3;
}
panel_height += panelitems[i]._height;
panel_width += panelitems[i]._width;
}

/* THIS IS WHERE I'M STUCK, I CAN'T FIGURE OUT THE LOGIC HERE TO MAKE THE MOVIECLIPS IN THE PANEL HOLDER ADJUST THEIR X AND Y BASED THE POSITION OF THE MOUSE - I WAS TRYING THIS CODE WHICH I BORROWED FROM A DOCK MENU, BUT AS YOU CAN SEE, THE CURRENT LOGIC OF THIS ALIGNS THE CLIPS IN A DIAGONAL:

panel_height += (total_panels-1)*piborder;
var p_ypos = Math.round(centery-panel_height/2);
for (var i = 0; i<total_panels; i++) {
if (i>0) { p_ypos += panelitems[i-1]._height/2 };
p_ypos += piborder+panelitems[i]._height/2;
panelitems[i]._y = p_ypos;
}
panel_width += (total_panels-1)*piborder;
var p_xpos = Math.round(centerx-panel_width/2);
for (var i = 0; i<total_panels; i++) {
if (i>0) { p_xpos += panelitems[i-1]._width/2 };
p_xpos += piborder+panelitems[i]._width/2;
panelitems[i]._x = p_xpos;
}
*/

};

Controlling Instances In Movie Clips From Other Clips
I am trying to get a button on my level 2 in my main movie to point to a frame inside a movie that has been loaded in on level 3 on the main movie. I have tried all different kinds of combinations and no success. I even tried putting the level 3 movie in an empty movie clip on the root, and naming the instance "music", and then writing in the button _root.music.GotoAndPlay(3); I need it to target frame 3 in my level 3 movie. Should I put the level 3 movie in its own empty movie clip? I was able to get the button to unload movie3, but I don't want it to dissapear, I just want it to go to frame 3 in the movie clip to turn off the music.. You can see what I mean at the address below. I have my audio player in the bottom right with an on/off that works fine, but when I go to the link in my site "Music" there are some downloadble MP3's, and when you click on one I want the "equalizer bars" you see in the audio in the lower right corner to stop, and it means I need it to go to frame "3" of tha movie clip for that to happen, just like it does when you click on "off" in the audio movie. Anyway, sorry this is long winded, but wanted to make sure it was clear as to what I am trying to do..

Thanks in advance,... Here is the link

http://www.incogneato.tv/stales


Mike

Controlling Clips Inside Clips.
Hey.

This is just a sample set up from a full page i'm building. This is the only thing left and i'm stumped.

Synopsis:

4 movie clips attached dynamically through for loop.
Each assigned a specific value through use of "b" + i. (b0, b1, b2, b3);
Each containing a clip inside called opt + i (variable innerClip);

i'm trying to make innerClip change when the b+i is rolled over. I've used trace to check if innerClips are being called proplery and they show up just fine.

For ease of use it's only trying to get to frame 2 of innerClip in each.

Any ideas?

I get this my clients site is done.

Thank you in advance.

-hal0gical

p.s. in the final site the movieclips i'll be changing are text with perfect fades.

Controlling Clips Inside Clips.
Hey.

This is just a sample set up from a full page i'm building. This is the only thing left and i'm stumped.

Synopsis:

4 movie clips attached dynamically through for loop.
Each assigned a specific value through use of "b" + i. (b0, b1, b2, b3);
Each containing a clip inside called opt + i (variable innerClip);

i'm trying to make innerClip change when the b+i is rolled over. I've used trace to check if innerClips are being called proplery and they show up just fine.

For ease of use it's only trying to get to frame 2 of innerClip in each.

Any ideas?

I get this my clients site is done.

Thank you in advance.

-hal0gical

p.s. in the final site the movieclips i'll be changing are text with perfect fades.


Code:
for ( var i = 0; i < 4; i++) {
var temp = this.attachMovie("menus","b"+i,depth++);
temp._x = 10;
temp._y = 10 + (40*i);
temp.gotoAndStop(i+1);
temp.id = i;
temp.innerClip = "opt"+i;
temp.onRollOver = function() {
this.innerClip.gotoAndStop(2);
}
temp.onRollOut = function() {
this.innerClip.gotoAndStop(1);
}
temp.onRelease = function() {
trace(this.id);
trace(this.innerClip);
hi_txt.text = "what the $#^@?" + this.innerClip;

}

}
}

Controlling Movie Clips
Hi, Im in dire need of help in creating eather a action script that can play a movie clip thats on a higher level. The movie clip needs to start when the user rollovers a button and stop when the user rolls off. Any help at all would be great! If theres no way to do that or you know another way please give me some ideas.


Thanks,
Shawn J.

Controlling Numbered Clips
This is something I always have problems with.

Movie clip on stage called list. Inside that clip are several clips, song1-song20. Each "song" clip is two frames long. The first frame is plain, the second frame highlights the clip. I start with list.song1.gotoAndStop(2).

I have a button that I want to scroll through the clips, i.e. on first press list.song2 would go to frame 2, and tells list.song1 to go to frame 1. On each press of the button I would like this to highlight the next song and reset the previous. Right now I have this set up with tell Targets, but I'd much rather have it work the right way.

Controlling Clips In Different Scenes
I know how to play a frame on a clip on my movie by using:

tellTarget{
_root.clip_name.gotoandPlay(frame)
}

but I how do I control a clip on a different scene? Or do I have to keep my whole movie in one long scene?

Thanks in advance.

Controlling Multiple Clips...help?
I have a 5movie clips as a menu in my move, ech is a two frame clip containing a btuoon on frame 1 and oan off state for the button on frame 2.

they are, Artists, News, Events, Recordings and Contact

Each button plays a corresponding movie clip, so when Artsits is clicked, the ArtisitsClip plays, which contains the content for that section.

Each clip has the following action script : eg ArtistClip

onClipEvent(load){
this.rewind=false;
}

then inside ArtistClip and empty clip containing

onClipEvent (enterFrame) {
if (_parent.rewind==true) {
_parent.prevFrame();
if (_parent._currentFrame==1) {
_parent.rewind=false;
}
}
}

Then the Artist button does the following:

on (release) {
_root.menuMC.ArtistsMC.rewind = false;
_root.menuMC.ArtistsMC.gotoAndPlay("startClip");
this.gotoAndStop("inactive");



this plays the ArtistClip, and sets the button to inactive.

Now, when i click another button, i.e News i can make the AtistClip reverse and play the newsClip

on (release) {

_root.menuMC.ArtistsMC.rewind = true;
_root.menuMC.artistButton.gotoAndStop("active");
_root.menuMC.NewsMC.gotoAndPlay("startClip");
this.gotoAndStop("inactive");
}

what i want to do is make the next clip, i.e newsClip wait until the previous clip has reversed before it starts playing. This would need to be the case for all the clips

any help would be much appreciated.

Many thanks, hope this makes sense

Controlling Movie Clips
Can anyone tell me how to use actionscripting to tell a button to activate a movieclip at a certain frame in that movie?

What I want to achieve is this - I have a button in one corner of the screen which when rolled over will start a movie (at a certain frame in that Movie Clip) in another part of the screen.

Controlling 2movie-clips At Once
Hello all,
If anyone could answer this next question i'd be saved so please help me...
I have a button that controls a movie-clip's location and looks like this:

on (release) {
locationx = 0;
locationy = 257.5;
}

The problem is that i'd like to add another action controlling a another movie clip located in the same scene. So i've tried many things and the one i thought was OK isn't:

on (release) {
locationx = 0;
locationy = 257.5;
with (sous-menus) {
gotoAndPlay(6);
}
}

In fact, that action brings me to the loading scene frame 6 and plays!
So my question would be how can i tell a specific button to do one thing with a movie-clip and then tell another movie-clip to go to IT's own frame 6 and play.
To give you an idea of the way my site works, i have menus on the top and a horizontal slidding picture just beneath so when i click on a menu the picture slides to it's appropriate spot AND (this is what does not work) a movie clip at the bottom should also play and give us the submenus depending on which menu i've clicked on top...

Anyways if anyone has an answer it'd be cool to help me out.
good day to all
Priff

Controlling Multiple Clips
Am controlling the main timeline from a movieclip within it, like this:

on (release) {
tellTarget (_root)
gotoAndPlay("01");
}

This works fine, until I then call that .swf into another (ie, its a section that I load into a bigger site). It looks like the '_root' command is trying to control the master timeline, not the one of the movie that has just been loaded. Is this to do with levels? What should I be doing?

Thanks in advance. And Merry Christmas!

Rick

Controlling Movie Clips
Let me see if I can condense my situation here. Relatively new to Flash (for starters)

Anyway I created a movie clip, wich contains two visual layers, one is a rectangle and the other is its mask. Basically the animation is used to create the visual of a door opening. The rectangle / door is actually the object that moves in the clip, not the mask. This way the, door handle moves across the screen correctly.
Now one option I can't take advantage of is having the door actually on the main timeline and then have the mask in the movie clip. I say I can't because behind the door is something I don't want revealed up front.

I created a button on the maintime line to call the movie clip by instance name. Now the problem - Hit the button the first time, it opens the door correctly. Hit the button the second time it closes the door. Possible I'd want a button to close the door but not in the same button (Although I suppose it could make life easier .
After I created the button with the call to the instancename.play, I found that it play repeatedly. I then added another stop action to the movie clip at the end of the time line.

I'm not sure what attachmovie / releasemovie does but perhaps that is the way I need to go ?

Thanks
Stuart

Controlling Movie Clips
can anyone tell me how to use conditions to control a movie clip, e.g. if movie clip is at frame 10 play, else go to frame 20.

Controlling Movie Clips
Hello,

Im trying to make a kind of sound toy, but using video clips(with sound) instead, and making it interactive so the user can change the volume, transparency of the video and basically any other effects that can be applied to a video clip. I suppose the closest thing is like a vj interface, so you can mix video clips with sound, turn them on/off and have them loop in sync. I have had a look at making volume and pan sliders and was wondering if similar code can be used with video to alter the alpha etc, other than that i have nooo idea what to do! can anyone help????? - thanks

Controlling Movie Clips
Hello,

Im trying to make a kind of sound toy, but using video clips(with sound) instead, and making it interactive so the user can change the volume, transparency of the video and basically any other effects that can be applied to a video clip. I suppose the closest thing is like a vj interface, so you can mix video clips with sound, turn them on/off and have them loop in sync. I have had a look at making volume and pan sliders and was wondering if similar code can be used with video to alter the alpha etc, other than that i have nooo idea what to do! can anyone help????? - thanks

Controlling The Movie Clips
hi,

I've make 2 movie clips, mc1 and mc2 , and put them in seperate timeline in scene 2 , mc1 in the first timeline and mc2 in the second timeline (both them are in the separate layer). what I want to do is to have the mc1 clip play first and followed by mc2 and of course without actionscript it will play directly to mc2. so how could I tell the timeline to play the first clip (mc1) first before jump to play the second (mc2) ?

any help is very-very appreciated...thank in advance

Controlling Movie Clips
need quick help with a project of mine...
look in to the attatched file:
in layer "mull" is a movie clip called "punktimullike" that contains another movie clip called "punktimullike11" that contains a dynamic text box (var - "punkt")
in layer "pilt" the last frame contains a movie clip with instance name "kysimused" and there you can see, that near number "1" is a grey button. The problem is, that when i press this button, the movie clip "punktimullike" has to start playing and that dynamic box (var - "punkt") has to contain "3"


simple:
when i press the button (layer "pilt", frame 48), a number "3" must start moving up from the mouth of the fish.

Thnx a lot to the person who can help me with that.

Controlling Dynamic Clips
hi everyone,

i've got a list of dynamic movie clips that when each one is clicked will reveal an image. to indicate which image has been selected, i want to display a border/outline/highlight around that particular clip.

of course, when someone clicks one clip, i want the current highlight to turn off when the new one is clicked, so there is only one at a time.

i'm trying to avoid an enterFrame solution but not sure if I can set up a listener that checks to see if another clip has been clicked.

what's the best way to attack this problem?

thanks in advance!

Controlling Movie Clips
I'm working on a project with a simple pause and play button that controls the action on the main timeline. However, when I click pause any movie clips that are loaded continue playing while the main timeline stops.

I know it's a simple work around, but I'm lost. Any help would be greatly appcreciated as I'm under a time crunch.

Here's the lines I'm using to stop the action:

on (release) {
gotoAndStop(2);
tellTarget ("_root") {
stop();
}
}


The pause and play button are a separate movie clip.

Thanks

Controlling Movie Clips
I'm fairly new to flash and I'm wondering if it's possible to have buttons which could speed up or slow down imported movie clips whilst playing. Any suggestions appeciated.

Controlling Movie Clips
Hi, im quite new to actionscripting and buttons (althoughI have done a few hand made animations in the past)

What I have started is a website based off a keyboard (5 black keys and 7 white keys) What I want to happen is when you press the black keys a little menu to pop out and then you can press the white keys to go to make pop up flash windows with dynamic content in them

I know this is a lot so im taking it step by step and what I'm doing next is the menu part. what Iw as going to do is to create a movie clip for each sub menu. I am hving problems though. I'll post a new question each time one is answered ^^

Thank you for any help, it is greatly appreciated

So my first question is :

When my movie loads up my movie clips start playing and looping, how can I fix this?

Controlling Movie Clips Help
I have a bunch of buttons inside a movie clip that automatically plays and stops on the last key frame. So when I click on the buttons I want them to play a movie that is embeded in that movie clip. Why isnt this working?

on (rollOver) {
_root.index_mc.skincare_mc.gotoAndPlay (2);
}

index is the initial mc. then skincare is inside index and I want it to play on frame 2.

Controlling Movie Clips
Hi All,

I'm pretty new to Action Script so I apologise if what I'm after will be obvious to most of you but I'm making a real meal of it....

Here goes..

I have a bunch of movie clips, all 10 frames long. What I want is to have three buttons on stage - back, play and forward. The back button will play the previous mc and stop the forward button will play the next mc and stop and the play button will start at the current mc and play them all one after another and at the end go back to mc1. I want this to be as much in action script as possible so that the order (which might change frequently) isn't fixed by the mc's position on a timeline.

I'm not sure how best to tackle this and would be most grateful for any pointers or example code that does something like my requirement.

Many thanks in advance.

Controlling Movie Clips?
Greetings.

I have a movie clip (MC01) with audio, buttons, dynamic text and other interactivity. I need to place another movie clip (MC02) containing audio, buttons, dynamic text, etc. on top of MC01. When MC02 is on top of MC01 I need to pause audio and turn off all interactivity, buttons, etc. in MC01 temporarily, then resume everything once MC02 is closed.

Any suggestions on how to do this?

Thanks!

Controlling AttachedMovie Clips
I'm kinda new to using attachMovie and i was wondering how to control attached movies to do things onEnterFrame. Also if there's a better way of writing this please let me know. Example:


Code:
_root.attachMovie("boxMC", "boxMC", _root.getNextHighestDepth());
_root.boxMC._alpha = 0;
_root.boxMC._x = 100;
_root.boxMC._y = 100;
now what if i wanted that to fade from 0 to 100 in intervals of 10.
i thought i could write a function for it but apparently my function skills aren't the greatest. I had something like


Code:
var fadeIn:Function = function(){
_root.boxMC._alpha += 10;
}
fadeIn();

Controlling Movie Clips
is there any way to write a script that can be applied to all movie clips in another movieclip? so for example inside the box_mc are lots of mc's that i want to add one bit of code to. is there a way to apply it to all of them without having to add the code to each one?

Controlling Movie Clips
Alright, I'm an amateur.  I'm using Flash Pro 8.  I started off making my pages in movie clips.  The problem I'm having is getting my movie clips to play.  My main page is titled "main_mc". I have two buttons on the page.  My second page is titled "ssfpmain_mc".  main_mc is on my scene1 page as a seperate layer "main".  ssfpmain_mc is on my scene1 page as a seperate layer titled "ssfpmain".  When I click on the button in "main_mc" I want it to play "ssfpmain_mc".  So on the button I put on (release){_root.gotoAndPlay ("ssfpmain", 1);}  Obviously this is not the correct code because when I click the button it is not playing the movie.  Can someone help me.  I was thinking I should have just created each page in seperate scenes, but I really don't feel like rebuilding this page.  And everytime I try to copy the layers in my movie clip, and then stick them in there own scene, everything gets out of place.  Anyways, like I said, I'm an amateur.  Please help.

Thanks,

nofx1728

Controlling Movie Clips
hi,
i have a picture , a grave yard picture , i am trying to animate differnt parts of it i have animated a bell of the church, now i have an eerie sort of music, in whch a bell tolls from time to time, i have made a movie clip of the bell animation, also the music has been put in another movie clip.now i want the bell animation to work as soon as the bell tolls in the music.
i tried several thing but i won't tell u ( cause its emabarassing :))anyway, can anyone guide me a liitle bit (well a lot actually i am not a very good programmer).how can i control the movie clip of bell animation to work in syncrohnization with the music.
thanx in advance
gilc


More Help With Controlling Clips From Other Clips
thanks to hose of you trying to help... things are still not working:

scenario: i am trying to hide a 4-button control panel with a tab over it that says "controls". my goal is to have the user rollover the "control" tab, triggering an invisible button that plays movie clip, sliding the control tab up, revealing the buttons underneath.

I have 3 layers: top is the invisible button. middle is the clip of the control tabs movement (with a 'stop' action holding it in place). bottom is the hidden buttons.

Here is the action I have addressed to the invisible button:

on(RollOver){
_controltabslider.gotoAndPlay(5);
}

ultimately, when the user rolls over, the playhead in my 'controltabslider' clip should go to frame 5 and play, showing the tab moving up and revealing the buttons. BUT IT DOES NOT!!

can anyone help? i am an actionscript newbie...

Controlling Movie Clips In Different Scenes
This maybe incredibly easy, but i quickly need help.
I have a button enclosed within a movie clip in scene 1 and i want that button to control a movie clip in scene 2 i.e scale or move.How do i target it? It has to be scene based and not using load movies (to long a story to go into).
If anyone can help me quickly, I'd be incredibly grateful
thanx

Controlling Duplicated Movie Clips
hi,

On the scene I want 2 insects.I scripted one insect movie,when you click it,it gets crushed.Then ý duplicate it but when ý click on the second movie clip ,still first one crushs.Can you tell me what to do to crush the second one?Sorry,this is the second message but I couldn't get any help from the first one.
Thanks

Controlling Those Damnable Movie Clips
Hi....a question regarding movie clips. I have one nested in the main timeline and I want it to play when the mouse rolls over it. I've tried rigging this several different ways, including putting the movie in the 'over' state of a button. Is there a way to do it without using a button as well? Perhaps some type of superadvanced actionscript I don't know about...thanks for your input.

-Allie (Flash 5)

Controlling Movie Clips With Variables
I am trying to make a flash movie that, depending on the variable, will display a different frame of a movie clip.

ex: <embed src="flash.swf?page=web">

Then, in the flash movie, something like:

If (page="web")
Go to and Stop (5)
End If

But it won't work. Any ideas? Thanks!

Help Controlling Unruly Movie Clips
I have a movie with "sections" on the main timeline. There is a movie clip that starts to play at the beginning of each section. The main timeline controls each movie clip as well as a loaded swf of audio clips. Each section stops on its own and then I have forward and back buttons.

The problem is that when I use the back buttons (for example from section 5 to section 4), there seems to be some strange interaction with that movie clip (5) where it plays or interrupts the other section (4). Is there some sort of rewind movie clip or stop movie clip or something to that effect that I can do?

CONTROLLING MOVIE CLIPS - Help Needed
hi there

Basically, have a movie clip ('clip1')

Want to do 2 things ...

when mouse is over the clip, want it to fade in (from 50 to 100%)
when mouse rolls out, would like it to fade out (from 100 to 50)

been working on it, but having a little difficulty

SO FAR - able to set the alpha to change on MouseDown, but not able to get it back after that ...

Ive been experimenting with 2 buttons, both changing the _alpha setting of the clip('clip1') on button Release(or rollover) - although not a fade - only able to set a one off _alpha change (eg. set to 70% or whatever) - MAKING ANY SENSE ???

Can anyone help with this?

Any time and suggestions are greatly appreciated

Cheers
G

Controlling A Range Of Movie Clips
I am trying to build a "flash card" system to help memorizing Japanese signs (Hiragana). Its function is very simple: It displays a hiragana, and when the user clicks the mouse button, it reveals its name. The application would cycle through the alphabet.

This, I want to do with actionscript, and try to implement it with some sort of array (of the alphabet), in a loop. It COULD be done just with keyframes, but that'd be clumsy and dirty. I would like to do this in a clean and sensible manner, so that the code could be re-used, for other alphabets.

I've tried a few different things, such as setting variables to have the name of the movie clips that in turn contain the hiragana and its name, but movie clips have to be placed on the stage, in order for me to reference them by a name, so that does not seem like a sensible way to go.

Any pointers at all, would be greatly appreciated. Thanks guys.

Controlling Movie Clips With Buttons
Hi,

I'm trying to control several movie clips with buttons where, the over state plays a clip(easy enough)but the rollout state plays another clip, that fades the button. I just can't figure it out, where the actions go. etc.

Are there any tutorials handy for what I'm looking to do?

Sorry if the question is insultingly simple.
Thanks!
blk

HELP: Controlling Multiple Movie Clips
Can somebody please tell me if there is a way to control multiple or all of the movieclips at once, (not the timelines, just a simple instruction like play() or gotoandstop() ) except the main movie clip ?

I mean, I can just put a tellTarget to each of the movieclips, but what if it's just a simple instruction for 20 or 30 movie clips ?

I tried with:
tellTarget(all){
play();
}

but that screwed the whole movie.

Thanks.

Controlling _root Through Movie Clips
I need to know how I can control _root through movie clips.
ex: in a movie clip, theres a button, and when you push it, it activates this code:

on(release){
_root.gotoAndStop(5)
}
it it not possible to control the _root through a movie clip in that way? Because that code doesn't work.

Controlling Multiple Movie Clips
I've got some script that i want to use to control 5(to 500 if need be) but is doesn't work on more than one movie clip. Previously, i would have just duplicated the script and changed the instance name. It doesn't work with this script(because of the .onEnterFrame). Does any one know how to send this script to multiple movie clips?

back_btn.onRollOver = function() {
first_mc.onEnterFrame = function() {
this.prevFrame();
}
}
back_btn.onRollOut = back_btn.onReleaseOutside = function() {
delete sqr_mc.onEnterFrame;
first_mc.stop();
}

the first_mc being the name of my instance.

Controlling Attached Movie Clips
Is there some reason I cannot attach a movie clip with code like this:

for (count=0; count < itemCount; count++){
canvasMC.attachMovie("itemMC", "item" add count, count);
}

and then control that movie clip using:

canvasMC["item" add count].gotoAndStop("stopped");

?

This doesn't seem to work...is it a problem to control attached movie clips?

Thanks in advance...

Controlling Multiple Movie Clips
Is there anyway I can send a 'Tell Target' command to more than one Movie Clip at the same time?

Controlling Movie Clips _alpha
HI,

Flash MX.
I have a Flash project with a MovieClip with a glowing icon on rollover.

"air " is the name of the instance in the main timeline. There is a clip inside "air" (named "airCH") that actually fades in and out.

I'm using this to get it to Glow. This script lives on maintimeline - frame 1.

air.onrollover = function() {
this.gotoAndPlay("fadeIn")
}

and this to get it to fade

air.onrollover = function() {
this.gotoAndPlay("fadeOut")
}

There is a frame in the main Timline that I want to "stop" bring the _alpha up full.

Can you please help me understand how to do this? I've tried attaching this to the "air" clip at this frame.

onClipEvent (enterframe){
air.airCH.gotoandplay("fadeIn")
}

to no avail...

Many Thanks

Mindy

Controlling Actions In Movie Clips
I am attaching a fla

I have been trying for days to get it so when the user clicks on the
rotate flower faster button, the flower rotates at twice the speed as when the user clicks on the start flower rotation button.

I also wanted to have two additional buttons.... one to change the color of the sphere in the center of the orange flower from green to
pink, and one to change the color back to green.

I am coming to the pros for this one... I am at a complete loss as to how to accomplish this.

peachy

Controlling Externally Loaded Clips
I am trying to tell an externally loaded clip to go to another frame in the movie. I have loade the clip into an empty movie clip on my main stage, and then I want to put an action on my main timeline that tells the externally loade clip to go to a certain frame in the clip.. Does anyone know the code for this? I tried giving the emptyclip an instance name, and then referencing the instance to go to a certain frame, but it does not work, It ignores it completely.

Mike

Controlling Externally Loaded Clips
I am trying to tell an externally loaded clip to go to another frame in the movie. I have loaded the clip into an empty movie clip on my main stage, and then I want to put an action on my main timeline that tells the externally loaded clip to go to a certain frame in the clip.. Does anyone know the code for this? I tried giving the emptyclip an instance name, and then referencing the instance to go to a certain frame, but it does not work, It ignores it completely.

Mike

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