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




HELP Movie Clip Sending A Variable To Control Another Mc



Hopefully someone can help with this menu I have created, I have uploaded the files here:

http://www.crayonmonkeys.com/help

What I want to happen is when the bouncy menu comes to a standstill, the menu selections should appear (epolitix.com etc)

When I click on the next button i.e Print I want the menu to go up then bounce down again then the print menu selections appear.

This is probably very easy but I seem to have flashers block there are 3 buttons and 2 movie clips

Thanks all



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-18-2002, 10:45 AM


View Complete Forum Thread with Replies

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

Sending Variable To Movie Clip...
Hi all - need to know... is it possible to send a variable from a movie clip say on level 1 to another movie clip on level 3? Be great if you could, doesnt seem to work using "SEND" or "GET" tho - pls help! thax in advance - yoonks

Sending A Variable From Movie Clip To Main Movie
In flash MX is there something like private variables and global ones?
I am asking this because I want to be able to open up a menu when you click on a button, and then according to which ever button you picked in the new menu you'd have a variable returned into the original movie. The new menu is in a movie clip.

How would I go about this? Is there some sort of code word for variable that is global not private?

Sending Variable To Another Movie?
I have a movie in _level0 with a variable ( val = 1; )

I want to acess that var in another movie loaded in _level1?

I've tried this in _level1 movie:

val =_root.level0.val

With no luck.

Charlie...

Sending Variable From One Movie To Another
So here's my problem. I'm trying to develop a calendar (Movie1). Then in my menu/navigator(Movie2) I want to display the current weeks activities. so I will need to be sending some type of variable from Movie1 to Movie2, would i be using some form of Tell Target? Will Flash do this? Should I be looking into Generator? any information would be a GREAT help!

Sending A Variable To Movie, How?
I would send variable into movie clips.. how can i?... I used to use " fscommand " but it doesn't work properly with all browser.. Moreover, I found that "atomfilms.com" use some technic to send variables to movie clip.. look at this url "http://atomfilms.shockwave.com/bin/content/video.jsp?id=little_guy_boating" ... I would know how "atomfilms" can do it. Can anyone answer my question?

Sending A Variable To A Flash Movie - But The Movie Is In A Different HTML Frame
As the title suggests...

I have no problem passing variable from Dreamweaver into flash, if the movie is in the same frame as the action to send the variable.

However,

I now need to send a variable to a flash movie which is not in the same frame as where the command via java is coming from.

I thought that I could just refrence the movie in the other frame like this:

window.document.mainFrame.theMovie.SetVariable(wha tever)

this does not work....

any ideas?

mainFrame is the frame name of the framke holding the movie.

Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.

How Can I Control A Movie Clip Which Was Loaded In To A Empty Movie Clip On Level 0
how can i control a movie clip which was loaded in to a empty movie clip on level 0 the name of the movie is 'imagemc.swf' and 'imagemc' for the empty movie clip on level 0. the movie doesn't have a movieclip name, how am i going to tell target the movie?

Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.

1. A main movie clip that has a target empty movie clip where an external swf loads.

2. A menu movie clip that is built from button symbols and has its own timeline.

3. The external movie.

When a user clicks on the menu, the external swf loads into the empty movie clip target.  This part works fine. Here's the code:
on (release) {    
    loadMovie ("Lesson1.swf", "_root.container");
}

I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads.  I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.

Any  help you can offer will be much appreciated.

Thanks
Sheila



Sending Variable From Html Page To Flash Movie
Is it possible to send a variable from html page to a flash movie when user clicks an <A HREF> link? If so, how?

Thanks.

Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.

So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)

But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip

thaks
Vakarm

Sending To A Different Frame From Within A Movie Clip
I want to do something very simple, but it seems that Flash 4 can't do this. Please tell me that it can. All I want to do is this: I have a movie clip, and within that clip is a button. I want it so that when you click the button it goes to a frame outside of the movie clip, in the actual movie.

Here's a little drawing if you don't understand:
__________________________________________________ __
| | / |
_________________ ________________ |
| | | | |
| Regular movie | ------> | Movie Clip | |
| | | | |
----------------- ---------------- |
| |
| |
/ |
________________ |
| | I want it to go |
| Button | -----------------
| |
----------------

Sending Variables To A Movie Clip
I'm trying to make a news bar that will continue to loop no matter what else is happening so I made a movie clip called "newsbar" with a dynamtic text box. I'm going to load the variables from a text file. I can load them into the main movie but i can't send them to the "newsbar" movie clip. I'm a newbie to actionscript but i'm learning as I go so any help would be greatly appreciated.

Control A Movie Clip From A Drag N Drop Movie Clip
I need a script that allows the user to control the timeline of a MC from a drag-able MC.

Basically I want a MC that drags is constrained to the x position with a limited movement of say 100 Pixels, as the drag MC is moved along it controls the play position of a tween in a different MC.
So when you push the Drag MC back and forth it moves the second MC play position back and forth.

a great example of this is at http://fable.lionhead.com/fable.html
on the pop up book parts

Movie Clip Inside Movie Clip - Control From Timeline
hello all.

i have a movieclip (instance name: mov1) with a movieclip (instance name: mov2) inside of it.

mov1 is on my main timeline. I want to control mov2 from the main timeline. how can i do it?

i am trying what i thought would work which is
_root.mov1.mov2.stop();

How Do I Control A Movie Clip Thats On Stage From A Nested Movie Clip
I have been lookin for a solution for this for a while now. How do I access a movie clip thats on the stage from a nested movie clip? root doesnt work like it used to with AS2.0, is there a way? Any help would be highly appreciated

Sending Parameters To Extend Movie Clip
Hi, is it possible to send parameters to a extend movie clip class constructor? I put the class name in the linkage box under the movie properties, but i'm not sure how i would also send it parameters?

HELP - Converting A Clip To Control A Movie Clip Raher Than Getting A Url - HELP
I've downloaded a movie from the FLASHKIT open source which scrolls to a link when the user types what they are looking for which is great!- see details below

+ + + + + + the clip im trying to convert + + + + + +

Search Window

http://www.flashkit.com/movies/Utili...27/index.shtml

2000-05-03 8.91

Search window with complete funcionality; resizable window with resizable scrollbar , arrow and enter keys functionality implemented, word find. Open source modified from Active Search by Degrees. By Nenad Markovic

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
NOTE- IM USING flash 5 so its automatically updating the scripting when i open the fla file
+ + + + + + + + + + + + + + + + + + + + + + + + + + +




But i want the clip to give a Teltarget and goto comand in order to allow the user to navigate a flash movie rather than linking to external URLs

but i cant get the bastard thing to play ball- ive tried email the original author if the script but their eamil address in no longer valid

please help im on deadline
ross

ross@sevencreative.co.uk



NOTES



HERE IS THE SCIPT I THINK I SHOULD BE CHANGING


on (press) {
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
pressTime = getTimer();
trace (pressTime);
if (Number(n)<>Number(/:selectedButton)) {
setProperty ("over", _visible, true);
setProperty ("../button" add /:selectedButton add "/over", _visible, false);
/:selectedButton = n;
/:selectButtonNew = n;
} else if (Number(pressTime-pressTimeOld)<200) {
// extract button number
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
location = eval("/:link" add n);
getURL ("http:/ /" add location, "_blank");
}
pressTimeOld = pressTime;
}
on (release, keyPress "`") {
setProperty ("../button" add n, _visible, true);
}
on (keyPress "`") {
k = 0;
while (Number(k)<Number((1300-CPUlag))) {
k = Number(k)+1;
}
setProperty ("../button" add n, _visible, true);
setProperty ("over", _visible, false);
}




AND THIS IS WHAT IM TRYING AND IT DOESN'T WORK



on (press) {
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
pressTime = getTimer();
trace (pressTime);
if (Number(n)<>Number(/:selectedButton)) {
setProperty ("over", _visible, true);
setProperty ("../button" add /:selectedButton add "/over", _visible, false);
/:selectedButton = n;
/:selectButtonNew = n;
} else if (Number(pressTime-pressTimeOld)<200) {
// extract button number
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
location = eval("/:link" add n);
tellTarget ("nav") {
gotoAndPlay ("http://" add location);
}
}
pressTimeOld = pressTime;
}
on (release, keyPress "`") {
setProperty ("../button" add n, _visible, true);
}
on (keyPress "`") {
k = 0;
while (Number(k)<Number((1300-CPUlag))) {
k = Number(k)+1;
}
setProperty ("../button" add n, _visible, true);
setProperty ("over", _visible, false);
}

Sending Stuff To Front And Back In A Movie Clip
Okay I haev a movie clip, but I need some parts to be "Send to back" so it will look right with other parts in the rest of the flash movie.

Can I do that?

Sending Email Problems Address Movie Clip
Hi

Hope someone can help, am new to flash, and trying to setup a contact page which is working, however this contact page is loaded as level1 movieclip, (i.e. Modular) I have used the example from http://www.kirupa.com/developer/actionscript/flash_php_email.htm which when running the contact page by itself works fine, however as soon as i use within a loaded level it never goes to the Thank you page, but does send the email, the part which is causeing problems i believe is

onClipEvent(data){
// show welcome screen
_root.nextFrame();
}

I have change the _root to level1 but still no success, any ideas?

J

How?sending An Action To A Movie Clip From A Keyframe On A Different Timeline. How?
hello,

I am making a thing on my flash animation with a 3d planet spinning. When you move your mouse over it the planet will stop and contact info comes up, and when you rollOut the planet continues spinning and the contact info fades away. I have everything working but i cant get the planet to stop spinning when i do this because the button controls the fade but the planet is just spinning in the backround, hard to explan. Anyways i need to be able to send a stop and play action to the planet movie clip behind the button to stop. i need to send an action from Scene 1>universal>destinationclip>world. from a keyframe on the destination clip. Please help.
thank you

dmorr

How?sending An Action To A Movie Clip From A Keyframe On A Different Timeline. How?
hello,

I am making a thing on my flash animation with a 3d planet spinning. When you move your mouse over it the planet will stop and contact info comes up, and when you rollOut the planet continues spinning and the contact info fades away. I have everything working but i cant get the planet to stop spinning when i do this because the button controls the fade but the planet is just spinning in the backround, hard to explan. Anyways i need to be able to send a stop and play action to the planet movie clip behind the button to stop. i need to send an action from Scene 1>universal>destinationclip>world. from a keyframe on the destination clip. Please help.
thank you

dmorr

Sending Vars To A Dynamic Text Field In Movie Clip.
SO how can I do that? I'm looking for some script to attach to a button that sends a varent to a dynamic text field. But the dynamic text field is in a movie clip so it can be sent via php script. Will I have to move said button into the movie clip? If so I would still like to have a clue what script to attach to the button. Ta for reading!

Movie Clip Control Other Clip, Actionscript Help
How do I make a movie clip control another movie clip? In this case, when I click on the green box(Movie1), the blue box(Anim1) will move. I added "Stop()" to the first frame of Anim1. I think I got the actionscript right, any idea what's wrong?

Variable To Control Movie
Howdy,

I'm trying to load a variable from an external source (text file) and what I had hope to do was that is the variable is greater then a certain value I would like the movie to play different section on the time line within a movie clip. Could anyone give me some advice to read the variable, I've been able to make the text display but all I really want to do is have the varaible determine which part of the movie to play.

Below is the snippet of the code I'm using, thanks in advance:


PHP Code:




loadVariables("count.txt", this);
if (COUNT>10) {
    gotoAndPlay(10);
}







123

Can A Button In A Movie Clip Control A Different Movie Clip?
I'm working on a web page with a draggable menu which is in its own movie clip. Can the buttons in this menu affect different movie clips or the main page?

Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?

Control The Main Movie From Withen A Movie Clip
I have this movie, it has a movie clip in it, in side the movie clip is a button. How could I use the button in side this movie clip to control the main sceme timeline?

please help.

Movie Clip Control
In my main scene i have a button and on rollover effect i want to to go to a certain frame in a movie clip.

I know this can be done as i did it a long time ago i just wish i can remember how

Thankz Rob

Movie Clip Control
I have this code for a Mc follow mouse and its working ok!

mouse_x = _xmouse;
setProperty (_root.follow, _x, mouse_x+((getProperty(_root.follow, _x)-mouse_x)/1.2));
mouse_y = _ymouse;
setProperty (_root.follow, _y, mouse_y+((getProperty(_root.follow, _y)-mouse_y)/1.2));

but i want that the movie clip "follow" do not follow the mouse, but do exactly the opposite movement of it!
Ex: If i move the mouse to left, it moves to rigth...
I will appreciate your help guys!
thank you...

Control Movie Clip
plz tell me how i can control head or frames of movie clip
from main movie through draging mouse.

Movie Clip Control Within Swf....
I have a movie clip within a movie clip.

Links.movie clip within mainmenu.movieclip

How do i call movie animation in mainmenu.movie clip with button within links.movieclip

i've labeled clips...

mainmenu - "mainmenu"
and animation-"animation"

and tried on(press){animation.gotoAndPlay(2)}

but it didn't work.

how do i start animation?

animation is beeing placed inside the mainmenu,together with the links from which i'm trying to control it.

Thanx!

Movie Clip Control
I'm having a problem with a movie clip inside a movie. The problem is that when you click on the movie button it animates but underneath of the next movie clip layered on top of it. Is there a way to make this move clip "come to the front" over top of any other movie clips when it is active.

If I am not explaining it well...you can go to http://www.havensplace.com
and click on the "links" button to see what I'm talking about. after the links.swf file comes up click on the "Travel" folder and you will see the animation and the "Friends" folder is on top of it.

I know that you can use levels when loading other swf files but can you use them inside a swf to control multiple movie clips???

Thanks in advance for any help you might offer.
Bob

Control Movie Clip?
How can I start and stop a Flash movie clip that has attached code that starts with onClipEvent (load), etc. I want to start and stop it externally - from a frame action. The usuual stuff (movieClip.stop ()), etc, doesn't seem to work.

Thanks.

Pete Giotta

Movie Clip Control
Hi there
I have a preloader scene (dont sigh yet!) the preloader is fine however i am trying to link the percentage loaded 'txtPercent' to the movie clip 'loadedboxbar' 1 - 100 frames. I.E 1% = frame 1, 5% = frame5. Im hoping someone here could shed a litle light on the problem for me.

Many thanks
Dave

Movie Clip Control
How can I make a button play the next frame of a movieclip on the main mc? What I mean is that I have a menu of buttons and each button on the main mc is going to play a certain frame for the clip when clicked. Thanks for the help.

Using One Movie Clip To Control Another
I've got an instance of one movie clip (instance name: cockpitpanel) that I've grouped (several groups "deep") with another clip instance and button.

I've put this code into the event handler for the button:
on (press) {
_parent.gotoAndPlay("audio");
}

"audio" is a label in the cockpitpanel instance. Sound is supposed to start playing then.

It does not. Any ideas?

Movie Clip Control
i have a left to right scrolling menu.
how do i stop it on mouse over & then animate it again on mouse out

hope someone can help--
ps got flash mx

Movie Clip Control
I'm using flash mx
I have a scene with movie clips every other frame
the frames are labled 0040, 0045, 0050, 0055 etc.
I need to get my movie clips when they are finished playing to navigate back to the main timeline and go to the next frame label

I have tried to use, in movieclip 0040
onClipEvent (enterFrame) {
_root.gotoAndPlay ("0045");
}

and
_root.gotoAndPlay ("0045");

my movie clips are 0040 0045 0050 0055 etc.
when movie clip 0040 gets to the end, I want it to go to frame label 0045 in the main scene which is "main" and so on.

my problem is that I cant get the last frame action "right in the head".
does anyone have any ideas?

NineSpine...

Movie Clip Control
I have several movie clips that I want to play randomly during the main movie. Using tell target or with on the main timeline does not make the movie clips play. I can set them up to play when a button is pressed not from a frame action. Any help would be appreciated.

Thanks

Movie Clip Control
Hey, was just wondering if this was possible...

It is in no way actionscript but you get the idea...


Code:
on(release){
if
_root.MC_MOVIE is @ frame 5
then
_root.MC_MOVIE.gotoandplay("fade out")
else
do nothing
}
What is the syntax if this is possible, maybe I have to use 'current frame'?

Robb

Movie Clip Control
on (press) {
control.nextFrameAndStop();
}


control is a movie clip, does that make sense? im such a newb

Movie Clip Control
I have a portfolio site with several buttons. when clicked they will tell a corresponding movie clip to play revealing that area of my portfolio. all the clips are on the stage and instance names are entered, frame one of each clip is blank and the clips are all stopped at frame 1. when clicking on a button, is there a way I can tell ALL OTHER clips that contain portfolio area to go to frame 1 and stop in one line of script rather than individually?

Thanks, Jeff

Movie Clip Control
hey

i would like to have an animation on loading of a movie clip, when a menu button is clicked. then once the user press's another menu button, play an exit animation before loading the next movie.

so how can i script a button to tell a movieclip to finish playing before loading the next movie the user wants? bearing in mind it could be any one of 5 movies currently on screen or being loaded.

cheers..

Control One Movie Clip By Another?
Hi,

I have a website with a a table divided into 3 parts,
a header cell with the "Topnav" movie,
a leftnav cell with the "Leftnav" movie,
and a main content cell.

view here :

http://www.innovents.org/oss

The header cell contains a flash movie with buttons for sections of the website.

The leftnav cell contains subsections for each of the main section of the website,
Ie: In the "Topenav" movie there is a "Media" button, when that is clicked, I need the leftnav movie to advance to a frame which will display 3 more buttons, Photos, Audio and Video.

I have found a tutorial that mentions something about how to do this, but the code doesnt work,

http://www.flashkit.com/tutorials/Ac...-966/index.php

Does anyone have any ideas how i can use the Topnav movie to control the Leftnav movie?

Thanks

Ollie Griffiths

Movie Clip Control (take Two)
My appologies for the confusion on my last post. Rather than force feeding anyone a layered & nested mess, I took my culprit movie clip out of the FLA and dropped it into it's own fresh one - much easier to understand.

The problem is:
in order to have an 'over-state' animation play fully (instead of dying once 'mouseOut' occurs) I placed the following code on a movie clip (rather than a button):
on (press) {
this.gotoAndPlay("d10");
}
on (rollOver) {
this.play();
}
the problem lies in that 'on press' (or 'on relese') the playhead isn't advancing (I have a series of named frames d1 thru d12)

here's the stripped down FLA...

Movie Clip Control
I am building a site where my main window is a sphere in the center of the screen. My buttons rotate to a certain point (the bottom of the sphere) when you click on them. Obviously the button closest to the bottom would not have to travel as far as the button that is farthest from the bottom. So what I need is a script to apply to the button that will tell the timeline that has the rotation animation to play at a certain point and then stop at a certain point without putting stop actions on the timeline of the rotation animation. Essentially a gotoandplay(1)andstop(20) script. Also I am aware that this my be the stupidest question in the world. While working on this problem it seemed that it would be the simplest thing to do. What can I say? Im stupid

Movie Clip Control. Please Help.
Hello, I was am having trouble making a movie clip controll the root time line. I have created a movie clip that acts as a transition between scenes of my movie. At the end of the MC (transition) I need an action that will progress my movie to the next scene. If any one can help I would really appreciate it.

Thanks!

Movie Clip Control HELP
Hey everyone. I am brand spankin new to actionscript. Im working with 2.0 in flash mx 2004. I have a movie clip I have made that I want to play forwards and backwards depending on which one of 5 buttons you hit on the screen. the clip is 150 frames long and its broken into 5 stops. button 1 would be assigned to frame one, button 2 to frame 30, button 3 to frame 60 etc. I want the movie to play from whatever point on the timeline it is on, to whatever point on the timeline it is called to, forwards or backwards depending on which section of the timeline it is called to next. for example: if it is on frame one, and you hit button 5 i want it to play forwards to frame 150. then if you hit button 3, i want it to play backwards from frame 150 to frame 60. how do I do this? any help would be greatly appreciated thanks!

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