Dynamically Calling Movie Clip Instance
Hi there,
I'm trying to reference an instance of a movie clip without using the exact name. This is hard to explain so I'll give you the example:
I have 6 movie clips: (mc_movie1, mc_movie2, mc_movie3...etc)
I also have 6 buttons. when I press button two for example variable 'button_pressed' is set to 2.
Now, I'm trying to affect the movie clips depending on which button is pressed.
so what I want to know is how to write, for example : mc_movie(button_pressed)._x =100;
....where the (button pressed) value will mean this action will affect mc_movie2
if it was a string it c would be: "this is string number" + button_pressed +" of 6"... so how can i achieve this when it's an instance name?
very hard to explain, hope you guys understand and can help!!
cheers
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-17-2005, 12:43 PM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamically Calling Movie Clip Instance
Hi there,
I'm trying to reference an instance of a movie clip without using the exact name. This is hard to explain so I'll give you the example:
I have 6 movie clips: (mc_movie1, mc_movie2, mc_movie3...etc)
I also have 6 buttons. when I press button two for example variable 'button_pressed' is set to 2.
Now, I'm trying to affect the movie clips depending on which button is pressed.
so what I want to know is how to write, for example : mc_movie(button_pressed)._x =100;
....where the (button pressed) value will mean this action will affect mc_movie2
if it was a string it c would be: "this is string number" + button_pressed +" of 6"... so how can i achieve this when it's an instance name?
very hard to explain, hope you guys understand and can help!!
cheers
View Replies !
View Related
How To Change Instance Name Of Movie Clip Dynamically?
Dear,
Is there any way to change instance name of movie clip dynamically?
Suppose, there are...
Button A named 'a1'
Button B named 'b1'
Button C named 'c1'
Movie Clip named 'm1' with instance name 'm1'. (this constains button 'c1').
if I press Button A then, I want to show movie clip 'm1' with instance name 'm1'
And if I press Button B then, I want to show movie clip 'm1' with instance name 'm2'
To make a long story short, I want to change instance name of movie clip dynamically.
Is this possible?
Thanks in advance,
Yung
View Replies !
View Related
Dynamically Creating Instance Name Of Movie Clip
Hi everyone
a shove inthe right direction very much needed.
I have a movie clip (Lets call it mc01.swf) that I am loadin on my main movie.
this movioe clip is loaded inside an empty container in my main movie. the contaner mc han instant name "contmc"
I want to stop the loaded Mc i.e mc01.swf whcih is loading inside the empty container.
any idea how i can target the time line of teh loaded movieclip??
thanks for your help
P.S. im using flash MX
View Replies !
View Related
Want Opening Movie Clip Instance To Close Underlying Movie Clip Instance
Just so you all know, I'm one of three people in our company that uses Flash and I'm considered "the expert". However, we don't do more than a few Flash projects a year, so my scripting knowledge is very, very green. Thanks in advance for your patience.
I have 22 buttons that play an assigned movie clip from the library. I suspect I'm building these things the wrong way (probably true), but here is how each button is constructed....
Each instance that I'm calling a button is actually identified as a movie clip intance with a button in it. It sits on its own layer. When I double-click an instance, several layers are displayed, the majority of which belong to the presentation of the movie clip. The clip lasts five frames.
The first frame consists of blank keyframes for each layer except for one layer that has stop() assigned to the frame and another layer with the actual button. The layer with stop() at frame 1 is then blank for the next three frames, and then another stop() on frame 5 (the last frame).
The button layer lasts all five frames. Here's the script for "display1980":
on (rollOver) {
_root.display1981.gotoandstop(1);
_root.display1982.gotoandstop(1);
_root.display1983.gotoandstop(1);
.
.
.
_root.display2003.gotoandstop(1);
_root.display2004.gotoandstop(1);
_root.display2005.gotoandstop(1);}
on (release) {
_root.Play();
play();
}
For each instance, there is no line of script that refers to itself. In this example for display1980, "_root.display1980.gotoandstop(1);" is not used.
As I mentioned earlier, each instance is on the main stage on its own layer. I've done this with only eight of my instances, so there are now eight layers. (There are--in fact--more than eight layers, but those are not part of this issue.)
The script I created does the job of getting rid of any previously displayed movie clip, but I created a new conumdrum: If I rollover any other button, the currently displayed clip closes. I've tried replacing "on (rollOver)" with "on (press)" but that doesn't work.
Like I said, I suspect I'm buildng this wrong. Is what I built a waste of time, or can it be salvaged? Or, is there a much better and efficient way (and I suppose there is) that can be described so that my green experience can absorb to good effect?
View Replies !
View Related
Calling Function On Movie Instance?
Say I have a movie clip called viewer.
Inside "viewer" I have a function defined in frame 1:
function foo(){
trace("foo called");
}
Then I do this:
this.attachMovie("Viewer", "window", 0);
window._x = 100;
window._y = 100;
window.foo(); //this doesn't work
Why window.foo() doesn't work?
The "viewer" movie is shown, but the foo
function is not called.
I think I am missing some basic concepts of flash...
Thanks.
View Replies !
View Related
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
View Replies !
View Related
Dynamically Load Text Into Movie Instance
I have looked all over for a way to do this and can't seem to find one.
I have a movie clip with a text box in it. I want to place three instances of this movie clip on a web page and have each instance have different text in the text box. The instances are menu choices, so I want each on them to open a new web page.
My question is, how can I dynamically load different tet into each instances text box.
P.S. I am fairly new to flash.
View Replies !
View Related
[F8] Problem With Attaching Movie Clips With Dynamically-generated Instance Names
Will something like this create and attach separate movie clips onto the stage with different Instance names?
Because I'm having a problem where each one of the attached movieClips will display the exact same information, which would be the information sent to the last movieClip created. I'm assuming that my problem is that I'm creating their Instance names incorrectly, since when I try to trace the names out (eg panelIndex0), it comes out as undefined.
code: for (currentPanel=0; currentPanel<totalPanels; currentPanel++) {
// identifies and creates appropriate Instance name for the current panel
thisPanel = eval("panelIndex"+currentPanel);
// creates the new panel with its own Instance name (eg panelIndex0, panelIndex1, ...)
attachPanel = attachMovie("GameDescriptionPanel", thisPanel, this.getNextHighestDepth());
}
Is there any way to find out if my panels are indeed coming out with different Instance names?
View Replies !
View Related
Calling A _root. Variable Of A Movie Clip That Is Loaded Into Another Movie...
My problem is I have two movie clips that i'm working with. The child-clip has a variable and a movie at _level10 (the base of it) that I would like to call when the child-clip is loaded into the parent-clip. I tried _level10.variable but that did not work. And commonly _root brought me to the _root of parent.
How can I get around this?
P.S.
I know there was a way in Flash 4 that you could call instances backwards (//instance) or something like that. But I haven't used Flash 4 in a LONG while.
Plz Help
View Replies !
View Related
Calling A Movie Clip
This is hard to explain, I apologise if it's been covered, if it has, I can't find it.
Anyway,
I created my normal navigation bar out of buttons. When one of the buttons is 'clicked', I want a second navigation bar to pop up elsewhere on the screen. To keep the site simple, I want to make the movie clip for the second navigation bar seperate from the first. How do I get the first navigation button to 'call' another navigation bar.
Thanks
View Replies !
View Related
Using On() With A Movie Clip Instance
I tried applying the following action to a movie clip instance:
on(rollOver){
myVar="1";
}
myVar gets set, but the movie clip doesn't run if the on() action is present. Is on() only supposed to be used with button instances? Is there a way to achieve the results of using on() successfully with a movie clip?
Any advice is appreciated.
View Replies !
View Related
Help With Movie Clip Instance
I have some buttons in my movie that are made from a moive clip so that it will stay in the down state when you click. They work great until i use them to loadmovie then the rollover state and click state stop working. you can see in my movie that number 1,2,3 load a movie but there is no rollover , the rest of the buttons look as they should when you roll over and click .
link ot movie:
http://christinedesign.com/flash/buttontest.html
link to fla
http://christinedesign.com/flash/buttontest.fla
View Replies !
View Related
Movie Clip Instance
Currently, I'm reading Phillip Kerman's "Flash MX in 24 hours" One of the exercises is to place actions on a movie clip instance. In the book reads 1)create a movie clip with some animation 2)Place this movie clip onstage and test the movie 3) Back in Flash, select the instance of the Movie Clip onstage and open Actions Panel (the task is to have an instance load onstage and then stop) The exercise asks in the 2nd instruction to place the movie clip onstage (also it notes that the timeline will have only 1 frame) How do I create animation and then move it onstage? I test the movie, it loads, but the action isn't stoping the movie. Help
Russell
View Replies !
View Related
Calling A Variable From Within A Movie Clip
the answer to this question must be simple and i have made a hard honest attempt to find the answer myself. i cant find it in the book i have so i was wondering if u ppl could help me out.
i have several scenes and the first one loads and the user can click one of 5 links done, and then it takes them to another scene with another navbar. what i want to do is assign a variable to the scene thats says what scene(or page) it is, i need this so i can use it in a if else statement in the nav bar mc code to figure out which scene is loaded, that way a user clicking the same button as the page he or she is on will not have any effect. i need the actionscript for it.
oh yeah btw, i stopped writing this message twice cause of ideas i had that might work, and guess what, they didn't i really need your help
thankx in advance.
dave
View Replies !
View Related
Movie Clip Calling Scences
I have created a drop and drag movie clip menu system which on it's drop down menu has a series of options which by using invisible buttons link to other scenes within my movie.
However the when i use any of the following code it completely ignores the scene command but does recognise the frame command
on (release) {
gotoAndPlay ("inspiration", 1);
}
or
on (release) {
_root.gotoAndPlay ("inspiration", 1);
}
Any ideas?
View Replies !
View Related
Calling Movie Clip Methods
My movie has one simple movieclip. it simply has one function defined on its timeline:
function test() {
trace("hello silly")
}
The clip's linkage is set to "test". I then instantiate the clip in the main movie timeline:
attachMovie("test", "test1", 0)
This is cool. However, calling the function with:-
test1.test()
on the main timeline doesnt work. I've read through Moock's ASDG pages 314,5 which appear to say I'm doing the right thing.
Anybody care to help please, Ive tried everything!
View Replies !
View Related
Calling Scenes From A Movie Clip
I'm using a drop down style menu which is a MClip. When adding an action to a button within this movie clip to call another Scene within the movie, it does not work. In other words the typical:
on (release) {
gotoAndPlay ("Scene 1", 1);
}
action does not work. Anyone had any experience with calling movie scenes from buttons located within a movie clip?
In help would be great....I have tried _root. and _level0. syntex.
Thanks,
FEW
View Replies !
View Related
Calling A Function Within A Movie Clip
On my main timeline, I have a movie clip located on frame 3. Inside that
movie clip I have a function. My goal is to call that function from frame 4
of my main timeline.
I have tried the following code with absolutely no results:
_root.myMovieClipName.myFunctionName();
Any suggestions?
View Replies !
View Related
Calling A Movie Clip To The Stage
Hay all,
Okay i learned how to do this in school like 6 months ago, but i totally forget how. Little help.
I have to make the MC exported for action script i know that. then its like"
loadMovieNum("Mymovie",4)
but i cant get this to work right and i think there has to be some sort of x/y values in there somewhere to.
Thanx All
View Replies !
View Related
Help Calling Function From Movie Clip
Basically myset up is this, in the main timeline on the first frame I load the function fadeBGAudio and the mp3, now when I reach a certian frame on the main timeline, my menu which is in a movie clip loads (menu_mc). In the menu are several buttons any one of which I need the fade sound call to operate from.
This is my fade sound code. How can call the fucntion from with in my menu_mc?
Code:
// variables for sound object
var bgVol = 100;
var bgVolMin = 0;
var bgVolMax = 100;
var bgVolInc = 5;
///////////////////////////////////////////////////
// this function fade the background music down or up
function fadeBGAudio(upDown, sndObj) {
this.onEnterFrame = function() {
if (upDown == 1) {
// Fade the audio up
bgVol += bgVolInc;
if (bgVol<=bgVolMax) {
sndObj.setVolume(bgVol);
} else {
sndObj.setVolume(bgVolMax);
delete this.onEnterFrame;
}
} else {
// fade the audio down
bgVol -= bgVolInc;
if (bgVol>=bgVolMin) {
bgsound.setVolume(bgVol);
} else {
bgsound.setVolume(bgVolMin);
delete this.onEnterFrame;
}
}
};
}
/*
// call function to fade IN the BG audio
fadeBGAudio(1, bgsound);
// call function to fade OUT the BG audio
fadeBGAudio(0, bgsound);
*/
On my menu button in the menu_mc I have this:
Code:
on (release) {
//////////////////////
for (var i in _root) {
if (typeof (_root[i]) == "movieclip") {
removeMovieClip(_root[i]);
}
}
///////////////////////////////
//stopAllSounds();
_root.fadeBGAudio(0, _root.bgsound);
_root.gotoAndPlay(1);
}
View Replies !
View Related
Calling Movie Clip With Actionscript
following a sample fla i found and can't seem to call a movie
clip to play on button release. one question i have is, can you call a movice clip that is in the library or do i have to drag it onto the stage somewhere? using the tellTarget handler does the movie clip need to have linkage defined for me to be able to call it?
nevermind figured it out
thanks for the help
View Replies !
View Related
[CS3] Using [AS2] Calling Out A Movie Clip From The Library
Okay, I did a search and didn't find the answer i'm looking for. Maybe I don't know what i'm looking for (on so many levels).
so here's my problem:
i have a cloud in my library and not on my stage (could be if i need it to be). i also have a movie clip that infinitely generates random numbers from 1 to 100. When different numbers come up a creature on the stage does different things.
what i'd like to do is everytime my radom generater hits, say 50, to have a new cloud appear on my stage in a random location (i'll then later make it float across the stage).
i sent up the linkage to export of action script with the identifier of "cloud".
so far this is what i have:
//randomizer runs and...
if (randomNumer == 50)
{
randomXpos = Math.ceil(Math.random() * 100);
randomYpos = Math.ceil(Math.random() * 100);
"cloud"._x = randomXpos;
"cloud"._y = randomYpos;
}
i know that this part is wrong:
"cloud"._x = randomXpos;
"cloud"._y = randomYpos;
but i'm sure don't know what right is! lol
thanks!
View Replies !
View Related
Calling Function In Movie Clip
Hi, I'm tired now of searching about it, I'm gonna ask it this way :
First: Can we do?
Second: if yes, how?
What I'm trying to do is creating function into a movieClip.
Like :
function foo(message:String)
{
trace(message);
}
And call it externally like :
_root.myMC.foo("Hello World");
PS : ho, and I put this function at layer1 first frame of the movie clip, where should I put it?
Because after this I'm gonna have to duplicate this MovieClip and call functions to do action on it... Like populating the menu, etc.
Any idea? Thanks
View Replies !
View Related
Calling Undefined Movie Clip
i dont know the syntax for this (if it is at all possible)
if i take user input from two buttons, and store them as vars...
inputA = "blue";
inputB = "red";
based on this user input...can i then access the corresponding movie clip (i will have many in my scene) with the name "bluered"?
obviously, this hasn't worked :
inputA+inputB._x=1000;
-i'm trying to be economical with code, as there will be many combinations of colours and many movie clips in the scene.
View Replies !
View Related
Calling AS2 Interactive Movie Clip In AS3
Hello,
I have an interactive movieclip called "AS2Clip" which was programmed in AS2. So when this movieclip is loaded within an AS3 application, does the AS2 native code still functions as it would if it was loaded within an AS2 Application?
I would highly appreciate your wisdom on this.
Thanks.
View Replies !
View Related
Calling A Button Within A Movie Clip
I'm using movieClipLoader to load swfs into my main page and everything works fine as long as all of my buttons are not within a movie clip. How do I get my movieClipLoader to respond to buttons within a movie clip?
Here's the code of tried that is not working:
ActionScript Code:
movieClip.movieClip2.button.onRelease = function () {
_level0.myMCL.loadClip("contact2.swf", 5);
};
View Replies !
View Related
Calling Movie Clip From Different Frame....
Hi all,
I have a situation that can be done in two diffent ways but none of those work how I liked it....I would really appreciate all your help.
Here is my problem:
1) I have a frame with 5 buttons, when users click on a button, I've called it to _root.myMovieClip.gotoAndStop(2); --> the problem is that, there is a back button the that MovieClip and i would like to know how to initiate the back button to go back to the frame where I have 5 buttons.
2) The same problem can be be done in another way, I have 5 buttons in Frame 1...when users click on a button, I call it to MovieClip.gotoAndStop(2) from Frame 2,, that way I can use the Back button easily. The problem is that I do not know how to write AS that can call movie clip from different Frame.
I would like to ask for your help. Thank you so much. I hope this is not confused anyone.
Thanks,
Ngoc
View Replies !
View Related
Button Instance And Movie Clip..... HELP
ok, here is my problem. i am trying to add a movie clip to a button. see what i want to do is make it so that when you roll over the button a flashy little movie comes on behind it. then when you roll out the movie goes away. so here is what i did, by the way i am using windows and flash 5, ok so i right clicked on the instance of the button that i want to use and in the actions i put an on mouse event and check the rollover button. then i add a loadmovie and load the movie on level1. the i put in the other on mouse event and check the rollout button then i add the unloadmovie. ok everything works fine. now here is my problem. when the movie loads it loads in the upper left hand corner, which is not where i need it to be. so i try to use a couple of setproperty's but that don't work. so how do i position the movie where i need it to be, PLEASE HELP!!!!!
this is what i have so far. and i have tried putting the setpropety right under the loadmovie and it don't work. and i can't put the setproerty in the next frame cause the movie won't load if i do that because i have to create another key frame. JUST SOME ONE PLEASE HELP ME!!!!
on (rollOver) {
loadMovieNum ("OverAnimi.swf", 1);
}
on (rollOut) {
unloadMovieNum (1);
}
View Replies !
View Related
Movie Clip Instance Problem
Im slowly getting there. Im having a problem with the movie clips still. What im trying to do is have a menu system that loads in the different movie clips.
I have my intro and menu where i want them. But when i assigned an instance to the intro mc and then tell a button in the menu, for a new mc to take its place. The new mc shows up in the bottom right hand corner. Instead of replacing the original.
I just can't understand instances, they seem perfectly logical yet, they aren't working.
Jim Miesner
View Replies !
View Related
Replacing An Instance Or Movie Clip
Is there are way to replace an instance or movie clip with a click of a button??
ex:
I have an instance on screen and when I click a button I want to replace it with a movie clip that is not on the screen but is in the library.
Is there a way to do this??
The way I have this movie working now is there are 100 movie clips on the screen with their alpha levels at 0.
When I click the button the alpha level on the desired movie clip/instance changes to 100. Thus it is visible.
This is very inefficient.
Is there another way????
Please help . > .
View Replies !
View Related
Movie Clip Instance In Button In MX
Hi there,
I just started using MX to load JPEG Images with the loadMovie(); from a web server. All good. Now though I positioned a movie clip inside a button and is seems not to load Jpegs into it and when I insert a target path flash does not show me the instance of the movie clip within the button... something I am missing?
View Replies !
View Related
Is It Possible To Have An Instance For The Duplicated Movie Clip?
I totally lost. In the game I am trying to create the shooter shoots with arrows to an object. If the arrow hits this object then the gotoAndStop command should be assigned to go to the next frame. I cannot figure out how to assign this command, because the instance name is for duplicated movie clip. I am wondering if someone can help. I assume if I will have the correct name of the instance for this duplicated arrow I will able to assign the gotoAndStop command.
Many thanks in advance!
Here is my code:
Code:
//The code I applied to the object which arrow can hit.
//This code should direct to the next frame if this object was hit
//by the arrow. I know here is the problem - the instance name
//is not right
if (this.hitTest(_root["arrow"])) {
_root.gotoAndStop("next frame");
}
//This code I applied to the shooter object.
onClipEvent(load) {
moveSpeed=5;
_root.arrow._visible=false;
arrowCounter=1;
scrollx=_root.mainGround.ground._width/3;
scrollStart=false;
maxArrows=1;
depthCounter=1;
}
onClipEvent(enterFrame) {
// shoot arrow
if (Key.isDown(Key.SPACE) and (arrowCounter<=maxArrows)) {
arrowCounter++;
_root.arrow.duplicateMovieClip( "arrow"+depthCounter, depthCounter );
_root["arrow"+depthCounter]._visible=true;
depthCounter++;
if (depthCounter>maxArrows){
depthCounter=1;
}
}
//The code I applied to Arrow.
onClipEvent (load) {
arrowMoveSpeed = 20;
this._y = _root.cupid._y-49;
this._x = _root.cupid._x-20;
}
onClipEvent (enterFrame) {
if (this._name<>"arrow") {
this._x += arrowMoveSpeed;
if (this._x>600) {
_root.cupid.arrowCounter--;
this.removeMovieClip();
}
}
View Replies !
View Related
Movie Clip Instance Issue
Okay, I have several instances of a movie clip in my movie. The movie clip that the instances are contain a movie clip within that movie clip, which I have given an onmouseup event. When the movie starts, I set a variable in each instance to a different value. But when I click on any of the instances of the clip, it triggers the onmouseup event for all of them, not just one. This makes no sense to me because they are all different instances, and in the mouseup event, I just have a trace that spits out the variable value that's being set.
Can someone please help explain why this is happening and how I can have several instances of the same movieclip in my movie that can only trigger that one instances specific value when it's clicked?
I've attached a test file of what I'm talking about.
thanks a lot. Mark
View Replies !
View Related
Instance Of Movie Clip Keeps Repeating...HELP
I'm trying to insert several mcs into my website that are buttons flying onto the stage. I can't get them to fly in without repeating when the root timeline loops - how can I fix that? I have some other things going on in other layers that I want to loop, but I don't want the mc buttons to loop.
View Replies !
View Related
Movie Clip Instance Problem
Hey there,
I've been having this problem with naming movie clip instances, and it seems very stupid but I can't figure it out.
I made a movie clip of a phone, which has some frames for ringing, and then some frames for being picked up off the receiver. I dragged it onto the timeline and named it 'ph' in the instance name section. Then in the action section of that keyframe (not the actions for the phone movie clip) I added some code to have the phone play the frames I wanted to:
ph.gotoAndPlay(8);
When I test the scene, nothing happens. It doesn't jump to the desired frames. It would appear to ignore that code entirely. Then if I go back into that scene, click on the phone, add that same code to the phone and run it, something different happens. First, it will throw an error saying that I can't put code in the movie clip unless it's in an event, but then it will execute the code in the way I want. In order to get rid of the error, I click on my phone movie clip, delete that code, leave the original code in the keyframe, and it works. So basically, all I do, is add the code to the movie clip, then delete it, and my movie starts working. Does this happen to anyone else? I can't figure out why this would be. I'm using FlashMX2004, but I believe I had a similar problem in FlashMX.
Thanks for any help, and if something needs to be clarified, just lemme know.
-skiz
View Replies !
View Related
OnClick New Movie Clip Instance
I'm using
PHP Code:
onClipEvent (load) {
startDrag(this, true);
}
on an instance of a symbol in a movie. How can click somewhere in the flash movie and have a symbol be placed there. This will happen a lot, as I intend to use the movie symbols to create the effect of splattering eggs on the background. Any ideas?
View Replies !
View Related
Non-responsive Movie Clip Instance
Ive recently posted this problem, but I apparently didn't express myself clearly.
First I want to thank all those who have tried to help me. I did learn better means of writing syntax.
Now, the problem. I have a movie clip with 5 instances on one frame. The function of these instances is to be _visible or not and to be specifically positioned according to a particular button action. All this works fine.
When I move to the next frame and attempt to use 5 new instances of the same movie clip (named differently than the 5 on the previous frame), nothing happens.
I've managed a work-around by making a new movie clip for the new frame- this works. But I need this mc for multiple frames and this method would be cumbersome.
All ideas are welcomed with thanks.
View Replies !
View Related
A Multiple Instance Of One Movie Clip
Firstly I'm working in Flash 5 and my skills are rudementary.
Attached is a sample multiple choice exam. Yes, I know there's a smart clip available for multiple choice tests. I haven't been smart enought to use it.
My problem is once I've made all the instances (1 to 5) of movie clip "answer dot" visible by clicking the invisible buttons and go to the next page, none of the susequent instances (6 to 10) of the same movie clip respond to the script.
Why?
View Replies !
View Related
Movie Clip Instance Control
I am trying to do a simple animation in which I have stars in the sky which brighten and dim at random times. I have created a movie clip, on which the brighten and dim tween starts at frame2 and frame1 is just a stop() command.
Then on the main stage, I have two layers. One in which I have dragged several instances of the movie clip and one for actionscript. The movie clip instances are named "star1","star2", and so forth. There is just the one frame in both layers.
I cannot get it to do anything on the instances from the actionscript layer. This is the code I am trying to use to test it and it does absolutely nothing.
Code:
_root.star1.goToAndPlay(2);
Thanks for any help
View Replies !
View Related
Movie Clip Instance Question
Question:
Shouldn't I be able to create one MC in my library and drag multiple instances of it onto Stage and edit each instance individually w/o affecting the other instances on Stage, each w/ unique instance names and other different MC's inside it?
Everytime I try to do that, if I change one instance, it changes the other instance also, even though they have different instance names, but they share the same MC "parent" symbol in the library....how do I accomplish this?
View Replies !
View Related
Giving A Movie Clip An Instance Name
I'm creating a menu with actionscript by making movie clips. I've got the menu part down, I'm just trying to get the menu to be scrollable. I've got a scrollbar already built, but I need to give the movie clip an instance name in the actionscript somehow I think. Any ideas? Sorry, I'm a flash noob.
View Replies !
View Related
Movie Clip And Instance Name Error
Hello there. I constantly meet the same problem by making my thumbnail gallery.
What I want to do is to create an enlarged preview of my picture by passing my mouse on its own thumbnail like a tooltip but for image.
So I import from library an image (thumbnailed) convert it to movie clip and in the Mclip stage I use action script with on rollover action. But I always get the same error : on rollover only for button instance. Do I have then to convert my image as button ???
I am lost . Please help me, I'm getting nuts. : (
THANKS !!!!!!!!!!
View Replies !
View Related
Creating An Instance Of A Movie Clip?
Hi, hopefully someone can answer this beginner question.
When a button is pressed, I'd like to make an instance of a movie clip (called "square") at X=100, Y=100.
I'm guessing it would be
on(press){
CODE FOR CREATING AN INSTANCE OF A MOVIE CLIP????
}
thanks for the help!
View Replies !
View Related
Movie Clip Instance Name In Variable
Hello
I attach MCs within actionscript but I don't know how to use them. For example:
PHP Code:
for (i=1; i<5; i++){
attachMovie("mc1","mca" add i,i);
setProperty("mca" add i, _x, i*100);
// how can I control clip "mca1"..., for example how can I change txt box inside "mca1...
// it works with setProperty, but that's it.
}
I need something like:
PHP Code:
mca1.txt.text="abc"
but mca1 is a variable. Or
PHP Code:
for (i=1; i<5; i++){
temp = "mca" add i
attachMovie("mc1",temp,i);
setProperty(temp, _x, i*100);
->*** temp.txt.text="abc" ***<-
}
So, how can I use MC within a temp variable. Thanks.
View Replies !
View Related
|