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
FlashKit > Flash Help > Flash General Help
Posted on: 02-23-2003, 10:57 PM
View Complete Forum Thread with Replies
Sponsored Links:
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
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
Movie Clip Inside Movie Clip Link To Url Issue
I have created a scrolling row of banner ads that reacts to the mouse. I had some help getting the images to load in using an xml document and also to pass the url from the xml. My problem is the button funtion is blocked as the button movie clips need to be placed inside the scrolling movie clip in order to get it to scroll. Is there anyway I can get these buttons to work? I have attached my fla, please help!
Thanks for your time,
Glenn
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
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
Movie Clip Instance Problem
Hey guys, I'm kinda new to Flash and actionscripting and I'm trying to set up a virtual DJ station. I have all my movie clips, and I still need to import the sound clips, but I've run into a bit of a jam. I'm trying to use the same movie clip twice, as two instances, but when I edit one, it edits the other. I'm wondering if I will have to make a movie clip for each turntable, or if theres a way to have two instances of one movie clip be treated as individuals
Any help would be great, thanks!
John
View Replies !
View Related
Can I Add A New Property To A Movie Clip Instance?
hi all, here is my question:
I ve created a mc(contains a simple picture), can I add a new property to this mc by using addProperty?
Here is something I want to do:
///////////////////////////////////////////////////
_root.pic.prototype.setQ = function(value){
this.xxx = value;
}
_root.pic.prototype.getQ = function(){
return this.xxx;
}
_root.pic.prototype.addProperty("quality", _root.pic.prototype.getQ, _root.pic.prototype.setQ);
/////////////////////////////////////////////////////
I fail to do so......
View Replies !
View Related
Creating A Movie Clip Instance?
First of all, I'm new to Flash and the forums so hi everyone !
Okay, so I created a bullet movie clip, and I'm just wondering how could I make it so that when the user clicks anywhere on the screen with the mouse, it creates an instance of the bullet.
Thanks!
View Replies !
View Related
Movie Clip And An Instance Thereof
I thought that a clip created by drugging a library clip onto the stage is
a copy in sence that changes to this copy would not propagate back to the
library clip.
I have a library clip with noAS code in it.
I drugged a copy onto the stage and edded onClipEvent (mouseDown)
Then I created another copy using attachMovie and this other clip reacts on
mouseDown though the parent library clip still shows no AS code.
SHould it be like that?
View Replies !
View Related
Movie Clip And An Instance Thereof
I thought that a clip created by drugging a library clip onto the stage is
a copy in sence that changes to this copy would not propagate back to the
library clip.
I have a library clip with noAS code in it.
I drugged a copy onto the stage and edded onClipEvent (mouseDown)
Then I created another copy using attachMovie and this other clip reacts on
mouseDown though the parent library clip still shows no AS code.
SHould it be like that?
View Replies !
View Related
Dynamic Instance For A MOVIE CLIP
Hi Please help me!!!!!!!!!!
I am creating dynamic Movie Clip using as3, but I don't have any idea about dynamic Instance name, please give me some idea that how I can assign Instance name for a movie clip.
I am waiting your reply.
Thanks
Sushil Kumar
View Replies !
View Related
Play Instance Of Movie Clip
hi all - -
i have created a movie clip and want it to play when a particular button is released. i also want to be able to control its x & y coordinates. i tried attachMovie but i don't think that's the function for what I'm trying to do. any help would be much appreciated, thank you!
View Replies !
View Related
Searching For An Instance Of A Movie Clip?
I'm working on a website I did not create and I'm trying to locate an instance of a movie clip. There's a function on my buttons which call:
_root.newSec = "gallery.swf"
I have no idea where 'newSec' is, and I need to know for other reasons. Is there a way to search my flash document, or timeline for this instance? Thanks.
View Replies !
View Related
Variables In Movie Clip Instance
Hello,
I have a problem trying to define a variable in a movie clip instance from a button in another movie clip.
Currently, I have MyMC1, and in MyMC1 I have loaded another movie MyMC2...
There is a button in MyMC1 which I want to be able to cause MyMC2 to resume play and establish a new variable. I have the part where the playhead resumes in MyMC2, but not the part about defining a new variable. The code on the button in MyMC1 is this:
Quote:
on(press){
this.MyMC2.play();
this.MyMC2.onEnterFrame = function(){
var skipcontentend:Boolean = new Boolean();
skipcontentend=true;
}
gotoAndPlay(14);
}
The playhead in MyMC2 does move forward when the button is pressed, and the playhead in MyMC1 skips to 14... however, the variable skipcontentend is not established in MyMC2.
Any help?
View Replies !
View Related
Showing A Movie Clip Instance.
Hi,
I want to show a movie clip instance on the main stage while a streaming MP3 is buffering. Basically I have created a little loading text clip to show when the MP3 is buffering to notify users of this fact. I need to show it when a user clicks a button to choose a particular MP3 and then have it hidden again when the buffering is done and playing commences. There will be about 10 MP3's on the movie to choose from so I need to be able to do this for all of them individually.
Does anyone know if this is possible? If so any clues as to how it might be done. Very new to Flash so any help would be great.
Cheers
View Replies !
View Related
Help Targeting External .swf To Movie Clip Instance
So my script works BUT I see that flash of my movie clip instance before the .swf plays. I read that you must make the movie clip instance layer a guide layer, so it hides the instance and you only see the .swf. But when I do that, my external .swf doesn't work (or I don't see it) either? The guide layer all makes sense, but for the life of me I can't figure out why that won't work.
Thanks!
Linda
View Replies !
View Related
Capturing The State Of A Movie Clip At A Particular Instance?
Hi! Can anybody help me with this!
I have a movie with a heavy actionscript code running in the first few frames. I am using this movie into another main movie and eveytime I do so, the script gets executed and this slows down the main movie load time.
What I want is if I could capture the state of the first movie after a certain number of frames and ...say it can be saved in a .swf fromat. I can use this into the main movie. This will remove the load time, I think.
Can anybody suggest how to go about it ? or if any other way to get rid of the load time ?
Thanks! Please help!
maven5.
View Replies !
View Related
Addressing A Movie Clip Instance From A Loaded .swf
Perhaps this is easy, but in online stuff I've found I have not found an example. Wish to send my site live this Friday so would love it if someone could answer quickly. I have tried very hard to explain my problem below -- please stay with me....
I have a main .swf which is my site (site.swf)
this has up/down arrows to turn pages and return home.
When it starts, site.swf loads an external .swf (eg homepage.swf) into a movieclip instance on the main timeline of site.swf called 'themedia' no probs there it loads fine.
.
To turn pages from within site.swf (the main movie) I have a movieclip instance called 'flipbook' (on the main timeline). This has all the loadmove details to load other pages like page1.swf, page2.swf etc into 'themedia'. The arrows mention above work fine with this.
***PROBLEM IS HERE******
My problem comes when I've gone to author home.fla of which the exported home.swf is then loaded into my main movie (site.swf) as described above:
I have a button within home.swf which needs to tell the 'flipbook' movieclip instance on the main timeline of site.swf to advance one frame (thus loading a new clip into 'themedia' movieclip instance.
Q: How do I address a movie clip instance on the main movie timeline from a loaded .swf which has been placed inside a clip* within that main file???
I hope someone has had experience with this ?? If I can't work out how to address clips like that for this function, some of the cooler things I wish to do have no chance of happening.
El_Stupid
*(load movie 'home.swf' target="_root.themedia") etc etc
View Replies !
View Related
Duplicate Movie Clip New Instance Problemo :)
Hi, I am new to AS and have what seems like a major problem just wondering if anyone could help me out Please !!!
I am duplicating a movie clip around 50 times which works fine the problem is I want to place the newly duplicated clip which is being loaded into its own level directly next to the previous one in all new instances. So the new clip is always directly next to the older one. (Left, right, top or bottom - it does not matter).
duplicateMovieClip(box, box+i, i); - works fine.
The problem I have is I am not sure how to reference it.
Does this make sense?
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
Trying To Assign A Dynamic Name To A Movie Clip Instance...
just trying to get the syntax right trying to do the following:
i've got anywhere from 4-8 instances of a movie clip, determined by loaded variables, which are named "section1", "section2", "section3", etc. the number of instances of these clips is determined by variable "numsections". each of those instances fades onto the stage in sequence and i have a totally different movie clip that is going to do something once the final instance has completely faded in. initially, i thought i could accomplish this task like so:
onClipEvent(enterframe){
if(_parent.section[Math.floor(_parent.settingsholder.numsections)]._alpha>99){
dadadumdadumdadda...
}
}
but even when i know that numsections=5 and test this way:
onClipEvent(enterframe){
if(_parent.section[5]._alpha>99){
dadadumdadumdadda...
}
}
...it doesn't work so i know the brackets are not working as i thought they would. anyway, what's the proper syntax for this?
thanks
View Replies !
View Related
Detect Which Movie Clip Instance Is At Certain Point?
For a Flash project I'm building, I'm basically trying to acheive the function of Director's mouseMember property in Flash - to return either the name of the MC instance that the mouse is currently over or intersecting with on the stage, or to find out what MC instance (if any) exists at a certain point on the stage.
I have a grid of (up to) 30x100 cells. I need to find out which cell is under the mouse so I can manipulate it if a certain parameter is true (each cell is a different instance w/ unique instance name, and each row is a MC also w/ unique instance name, so a sample path to a particular cell would be _root.row5.cell32).
I have tried a number of techniques, using the Mouse properties, as well as using a 2x2 dragged MC for detection, but can't quite get it to work how I need it to.
I have too many cells for it to be realistic to repeat throught all the cells on mouseMove using .hitTest with either a point or the dragged MC. I can't set a _root variable (e.g. - "currentCell") whenever a cell is rolled over, because this needs to work even when the mouse is down (dragging), and rollovers don't register when that is happening.
So...is there any way to say "give me the instance name of the MC that has this point within it" or "give me the name of the instance that is currently intersecting with this other MC instance?"
Thanks,
Tommy
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
Movie CLip Instance Names As Strings
If I have a variable which contains a string, can I use that string variable to reference the movie clip instance of the same name???
eg.
//movie clip gotoandStop
q01.gotoAndStop(1);
// assign value to question
var question = "q01";
// reference to question
question.gotoAndStop(2);
Can this be done??
Cheers,
mmasci.
View Replies !
View Related
Movie Clip Instance Not Playing Correctly
I've got a series of walkcycle animations in a movie clip which I'm using in combination with key presses to make the character walk across the screen. When I press up, left or right the clip plays the relevant frame so the character faces and walks in the right direction. There are only two walkcycle clips in reality, despite the four directions. The other two directions are instances of the first two clips flipped horizontally to face the other way. Now this is working fine for the clip that is facing away from the user. However for the clip that walks towards the user something strange is happening. When I press "left" the clip works and loops through the animation correctly. When I press "down" the clip plays an instance of the same clip flipped in the other direction but it won't play the whole timeline! As a result the character limps or hops across the screen in that direction.
So I tried to make a separate movie clip that was facing that direction without flipping, and it still did the same thing! I've changed it back to the way it was, and I've searched and searched for conflicting actionscript.
Can someone take a look and tell me if its just my stupid computer/keyboard playing up, or whether I've just overlooked something. Its driving me mad, and I want to move on to something else! I'm using FlashMX2004
Thanks people!
View Replies !
View Related
Access Instance Inside Movie Clip
Hi all iam khader ,
Really i have small problem ,which is how can i access an instance inside movie clip,
i tried to wirte the following
_root.movieclip1.instancename ;
when i wrote this code it just access the movieclip1 and it dosn't arrive to the instancename inside it so how i control this instance using action scrip in flashMx
thanx alot
View Replies !
View Related
|