Moving (teleporting) A Movieclip To A New Location.
Hmmm, it is late and I am pretty tired out right now. Do you guys know of a way to make it so when a movieclip (The moveable "character" in my side scroller) hittests another movieclip the character is moved (teleported) to a new location? Thanks guys, I really appreciate it.
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-07-2006, 06:17 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving A MC To A Random Location
two questions actually....
1st...On a mouse over...I want a movie clip to move to a random location on the stage.
2nd...somewhat related...I want to be able to click...anywhere on the stage...and the movie clip goes there.
I know how to do this with "easing"....but I want the movie clip to follow a path...not a straight line.
In other words...if I had a maze....and I clicked somewhere in the maze....the movie clip would follow the maze to the location.
Too much to ask?
Any help would be appreaciated!
Thanks!
Moving Different Objects To One Location
Howdy, i have the following problem
First Object: x100 y100
Second Object: x400 y400
Thrid Object: x200 y200
when a counter reaches a certain number they all have to move to
x300 y300
how can i do this via AS??
any help
thanx in advance
Moving A MC To A Random Location
I want to move a Movie clip....to a random location on the stage...based on when a user does a mouse over on the Movie clip.
In other words.....if I had a little box...in a movie clip...sitting on the main stage...and you mouse over it...I want it to "slide" to another location...but I want it to be totally random...
What type of code do I use?
Any suggestions would be appreaciated.
Thanks,
Mark
Moving A MC To A Random Location
I want to move a Movie clip....to a random location on the stage...based on when a user does a mouse over on the Movie clip.
In other words.....if I had a little box...in a movie clip...sitting on the main stage...and you mouse over it...I want it to "slide" to another location...but I want it to be totally random...
What type of code do I use?
Any suggestions would be appreaciated.
Thanks,
Mark
Moving Flash From One Location To Another
A customer of ours has asked us to copy their existing site as they are unable to get hold of the developer who originally built it and they need to update the site.
We used Httrack and this has copied everything exactly and when I run the site on my machine it runs fine, however when I put the site on our server on a sub domain it doesn't load the flash movie even though it is pointing to the right place
Code:
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/s...s/flash/swflas
h.cab#version=6,0,29,0" width="518" height="104">
value="swf/swf.swf">
<param name="quality" value="high">
<embed src="swf/swf.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="518"
height="104"></embed></object>
Moving Site To New Location But Always Looks At Old Links
I have made a site in dreamweaver with a flash navigation bar.
Clicking on a button in the flash nav bar loads a new html page below it.
However, when I transfered the whole thing from my drive to the internet the buttons were still looking on my hard drive for the pages.
(macintoshHD/users/jennie/sites/olympus/home.html).
I had to go back into Flash and re-do all the links to correspond to the web site address: (www.olympus-automation.co.uk/home.html)
This was fine, but now the client wants to put the site on all his salesman's PDA's but of course the PDA is now looking for the files on the Internet even though they're all stored in it's memory.
Is there any way of making the files work in the same way that Dreamweaver does? Dreamweaver is intelligent enough to figure out that when you move a site to a new location, all the relevant files have moved with it....
Any help would be appreciated as I'm in the brown sticky stuff - big time!
Jennie Flowers
Alive Studios
admin@alivestudios.co.uk
Moving An Object To Another Objects Location
hi, i am creating a vertical shooter adaptation.
i am trying to create the enemy units to fire in a direction at the main unit.
The problem is that the bullet follows the main unit instead of moving in a straight direction where the unit used to stand.
I am using timers for creating the animation and i have tried changing the rotation of the bullets. I have got it to rotate in the direction i want it to but it doesnt move there.
i am also trying out this temp object thing where an object is left at the main units last location and the bullet travels to that location. its not working yet but i am going to give it another try.
Duplicating Mcs And Moving To A Specific Location
hi in this fla i have a square duplicating it self going to the right when it reaaches a certain value it goes down one "line" the problem is when it goes down it won't duplicate and move the _x value.. or something like that ...check the fla
any help really really appriciated!!
thanks ahead, z00m
Attaching A Movieclip At A Specific Location Inside Another Movieclip
Hello all,
I am trying to attach a movieclip(a) inside another movieclip(b). When (a) is attached it is always attached at the top left corner OR if I use getNextHighestDepth() then the movieclip (a) is attached randomly at different locations. I would like (a) to be attached at the centre of the parent movieclip or at a specific location inside parent movieclip.
Please help me with this. Me a newbie to actionscripting.
Thanks,
Nish
Moving Clips To Specific (x,y) From An Unknown Location
Okay Flash Gods... I have a clip that is floating about the stage... now when I release a button I want the clip to travel to a specific point on the stage... by travel I mean I want to see the clip move to the point.. not immediately appear to it.
I'm using Flash MX (not 2004)
-Pez
AS2 MovieClip Location In Parent MovieClip
Hi,
I'm trying to create a sliding background using images converted to movieclips.
I have created a movieClip:
imageLoader (which includes)
image1_mc
image2_mc
image3_mc
image1_mc is the beginning image on the stage. When I click on image2_btn I'm trying to get it to have
image2_mc push image1_mc off the left side of the movie. same for image3_btn would push image2_mc
off the movie.
Here's the kicker. When image1_mc is on screen and I click image3_btn I want it to push image1_mc off the left
side of the movie.
what is the best way to do this? do you know of a tutorial I can't find that shows how to do this?
thanks,
sky
Movieclip's Location
Hi all,
I would like to ask how i can get a x position of an object which reside in a movie clip to a global x position
MovieClip Location (x And Y)
Yo guys and gals, im trying to load a movie clip from the libary and get it to match the x and y coordinates of the move of which it is called from. I.e roll over Home movieclip and then this movieclip appears over the home movie instance.
Here is my code:
on (rollOver) {
targetX = Home._x;
targetY = Home._y;
_root.attachMovie("Button_Effect",BeClip1,0);
BeClip._x = targetX;
BeClip._y = targetY;
}
thanks in advance legion.
p.s sorry if it is a stupid question lol.
MovieClip Location (x And Y)
Yo guys and gals, im trying to load a movie clip from the libary and get it to match the x and y coordinates of the move of which it is called from. I.e roll over Home movieclip and then this movieclip appears over the home movie instance.
Here is my code:
on (rollOver) {
targetX = Home._x;
targetY = Home._y;
_root.attachMovie("Button_Effect",BeClip1,0);
BeClip._x = targetX;
BeClip._y = targetY;
}
thanks in advance legion.
p.s sorry if it is a stupid question lol.
Setting The Location Of A Movieclip
I've figured out how to load a movie to a level, but the problem is that it appears in the upper left corner. I've tried to use the _x property to place it where I want it to be but I can't figure out how to make that work. Can someone give me the syntax to use the _x and _y properties to place my movie? Do I have to go to expert mode to do what I'm describing here? I'm using flash 5.
Also if I want to have a single bitmap appear with a button click do I have to make it a .swf and use loadmovie? Or is there a simpler way to do that?
Thanks in advance.
[Edited by orgreeno on 10-28-2001 at 09:33 AM]
Run Another Movieclip In Another Location When Mouseover?
Hi everybody!
You know that effect, on DVD when you are in the chapter selection interface. You highlight eg. chapter 1 and above a frame with at picture starts moving and you see a little of that chapter. Sometimes with sound even. Is that possible in flash??? Well I know it ist cause Xiao Xiao from stick figures death theater uses that effect. It's supercool! You just hold the mouse over the picture and it starts moving. When you click it, it brings you to exactly that part of the movie and you can sit back and watch your favourite chapter. As I love animations and use flash primarily for that it would be a great help if anyone could figure this out or just knew how to do. It would really boost up my movies.
Pleeeeeasssse! Heeeelp meeeee!
Controlling A Movieclip From Another Location
to control a movieclip from another movieclip, is it:
on(whatever)
_root.movieclip.whatever();
}
and to control the timeline that ur in aswell as the other time line is it:
on(whatever){
gotoAndPlay()
_root.movieclip.whatever();
}
MovieClip _rotation Changes Location
When I draw my object ( in this case a triangle ) and then set the _rotation property, the movieclip moves the x to 0; Is there any way to preserve the x,y location of a movie clip after rotation?
i have attached an example. Please let me know. thanks.
Extends MovieClip - Location Error.
Whenever I try to access the _x and _y positions of my class that extends MovieClip I get diffrent results then they are... does anyone know whats going on???
Here is my code - red highlight is were problem is.
Code:
import mx.utils.Delegate;
import mx.events.EventDispatcher;
import mx.transitions.Tween;
import mx.transitions.easing.*;
class Duck extends MovieClip
{
private var talk:Boolean;
private var dName:String;
private var speed:Number;
private var i;
private var counter:Number;
private var parent:MovieClip;
private var home:MovieClip;
private var sComp:Boolean;
//mix-ins
private var dispatchEvent:Function
public var addEventListener:Function
public var removeEventListener:Function
public function Duck()
{
this.talk=false;
dName=this._name;
speed=90;
parent = this._parent;
home = this;
counter = 0;
i = null
sComp = false;
EventDispatcher.initialize(this);
}
function IsTalking():Boolean {return this.talk;}
public function MoveRelitive(x,y,time)
{
//_x and _y values dont correspond here.
var t:Tween = new Tween(this, "_x", Regular.easeOut, this._x, this._x + x,time,true);
var t2:Tween = new Tween(this, "_y", Regular.easeOut, this._y, this._y + y,time, true);
t2.onMotionFinished = Delegate.create(this, function() {this.dispatchEvent(new DuckEvent(DuckEvent.FINISHED_TALKING));});
}
function SayString(sText:String, sPrittyText:String, sound:String)
{
if(!this.talk)
{
var s:Sound = new Sound(this);
s.attachSound(sound);
s.start(0,1);
s.onSoundComplete = Delegate.create(this, function() {this.sComp = true;});
i = setInterval(Delegate.create(this,LipIt),speed,sText);
counter=0;
this.talk = true;
var narroration:String = dName + ":" + sPrittyText;
parent.N.narr.text = narroration;
}
}
function IsVowel(letter:String, letterN:String):Boolean
{
letter = letter.toLowerCase();
if(letter == "a" ||
letter == "i" ||
letter == "e" ||
letter == "o" ||
letter == "u" ||
letter == "y")
{
if(letter == "e" && letterN==" ") return false;
if(IsVowel(letterN," ")) return false;
else return true;
}
else return false;
}
function LipIt(sText:String)
{
if(counter < sText.length)
{
var letter:String = sText.charAt(counter);
if(IsVowel(letter, sText.charAt(counter+1)))
{
home["Lips"].gotoAndPlay(2);
home["Lips"].play();
}
counter++;
}
if(counter >= sText.length && sComp)
{
this.talk = false;
clearInterval(i);
sComp = false;
this.dispatchEvent(new DuckEvent(DuckEvent.FINISHED_TALKING));
}
if(sComp)
{
this.talk = false;
clearInterval(i);
sComp = false;
this.dispatchEvent(new DuckEvent(DuckEvent.FINISHED_TALKING));
}
}
public function SetMood(mood:String)
{
switch(mood)
{
case "Suprised":
{
this["Eye"]._yscale = 150;
}
break;
case "Angry":
{
this["Eye"]._yscale = 40;
}
break;
case "Normal":
{
this["Eye"]._yscale = 100;
}
}
}
}
Sequential Location For Attaching A Movieclip
Hi,
I am trying to attach a movieclip inside another movieclip.
I have read that they can be attached into the target movieclip at a random location or a particular location. (_x, _y).
How can I attach movieclips sorted (location wise) sequentially into the target movieclip?
I mean, first attached movieclip takes the top place in the movieclip and the second movieclip is attached just below the forst one?
I am a newbie and have no clue. Can someone show me a direction and help me please??
The target movieclip is a simple rectangle shape positioned vertically.
How To Stop Movieclip On Specific Location
Hi everyone,
I have attached mainmovie1.fla please check it and reply me.
there is down movieclip which i want to stop on specific location like up movieclip. up movieclip is working ok.
there is on marquee movieclip also want to work like marquee tag in HTML.
Please help me.
thanx in advance.
waiting for reply.
Movieclip - Button - Location On Stage
Fellow Gurus!
I am using Flash 8.
I rendered some boxes on the stage. One is for a menu and another is for graphics. The idea is to have a picture pop-up in the graphic box whenever one passes a mouse over a button in the menu (which is in the menu box).
I have added movie clips to each button’s mouse-over. The movie clips contain a picture (at least for now). Thus when you pass a mouse over the button, a picture pops up. That is the easy part.
Now, I could simply reposition the movie clip until it appears within the graphic box. My problem is – I have a bunch of buttons and they may or may not be placed in the menu in exact positions. If I were to change a button’s position, the movie clip’s position is relative to the button and not the stage thus it would have to be repositioned as well.
Therefore, the pop-up pictures within the movie clips which are within the buttons must all pop-up in the graphic box regardless of where I place or reposition the buttons.
Let’s say I have the graphic box located at x=500 and y = 120.
Let’s say the button’s name is First_btn.
Let’s say the movie clip’s name is OneTest_mc.
And, I can bring it on stage in order to add an instance name of perhaps TestOne.
Now, I have looked at localToGlobal and globalToLocal. I am not sure which one work for my situation.
I am assuming that I can add AS2 to the movie clip’s (OneTest_mc) timeline – if that is not where it goes - let me know.
I have looked at the various scripts on the Internet and all they do is confuse me, namely because they are rotating graphics, etc. In another words, they complicate the examples. What I need is a script to add to each button/movie clip to make them all place the pop-up graphic in the box regardless of where the button is located.
However, I do not just want a piece of script. I would appreciate some explanation of the code so I can learn from it – not just giving me a fish but teaching me how to fish.
Thanks in advance,
Bill
Dynamically Pulling Up MovieClip Location
Hey there,
I've got a question for you guys. Is there a way to dynamically pinpoint a movieclip location? For example, if I had a button tucked away in:
ActionScript Code:
_root.opening.menu.buttonClip1.myButton
... is there a way to pull up this location using an 'on(release)' ? Demonstration:
ActionScript Code:
onRelease() { _root.myVar = this._currentLocation;}// where 'this._currentLocation' = _root.opening.menu.buttonClip1.myButton
Thanks,
William
Control MovieClip Via Mouse Location
Hi all - I am new to the forum, and have been searching for a tutorial to assist me in bulding something like Nike's skateboarder site - the animation of the riders section, check it out:
http://www.nike.com/nikeskateboarding/v2/main.html
Be sure to navigate to the RIDERS to view the animation - the mouse location changes the position of the rider.
How is this done? Is there a tutorial?
I created something using simple invisible buttons to control a MC,
http://www.brutalgiftland.com/gooshi.swf
but I know I need to write functions, vars, etc in actionscript to control a MC via mouse location!?
Correct?
Not too advanced - so please help if you can!?
thanks a bunch, M
Getting A Draging Movieclip's Previous Location
I'm wondering if there's an easy way to get the PREVIOUS x and y of a movieclip that's being dragged by the user. That is to say, the x and y the mc had before flash moved it with the mouse handler.
Dynamically Pulling Up MovieClip Location
Hey there,
I've got a question for you guys. Is there a way to dynamically pinpoint a movieclip location? For example, if I had a button tucked away in:
ActionScript Code:
_root.opening.menu.buttonClip1.myButton
... is there a way to pull up this location using an 'on(release)' ? Demonstration:
ActionScript Code:
onRelease() { _root.myVar = this._currentLocation;}// where 'this._currentLocation' = _root.opening.menu.buttonClip1.myButton
Thanks,
William
Movieclip Load Location And Static Variables
Hi
When I use the "loadMovieClip" it actually loads the (0,0) point of the new movie, to the center of the clip... is there any way to go around it beside changing the movie itself and playing with the _x property?
and another question...
is there a way to keep a static variable for all the frames? right now Im using dynamic text and modify it. but I bet I just missed the right way to do it.
Thanks in advance,
Niva
Nested MovieClip Location Relative To Stage
Hi All,
I have the need to calculate the x,y location of nested movieClips relative to the stage. For example, lets say ...
clipA is at 100, 100
clipB is nexted within clipB a and its x,y within clipA is 200,200
So visually clipB appears to be at 200,200 but when I trace ..
trace("clip a.b " + a.b._x +" "+ a.b._y);
I get ... clip a.b x,y >> 156 156
I need to find out clipB's x,y relative to the stage at 0,0.
Any ideas?
I could do the math on the width and height of each movieClip but what if I have multiple nestings? Me thinks there must be an easier way.
TIA,
RandyS
Moving An Embedded Movieclip To Another Parrent Movieclip.
First the heirachy.
Code:
|----(MC1)
|
(_root)-----|
|
|----(MC2)----(MC3)
When I click on MC3 I need it to create a duplicate of itself inside MC1 so that it looks like this:
Code:
|----(MC1)----(Copy of MC3)
|
(_root)-----|
|
|----(MC2)----(MC3)
I can't use .attachMovie() since I need the script to be duplicated also. So I need to use .duplicateMovieClip() and somehow move the duplicate to the
Moving From One Html/swf To An Exact Location In Another Html/swf
Please help.
I'd like to move from one URL that contains a Flash movie to an exact location of another URL's Flash movie. Moving from URL to URL is easy to do, but I'd like to go to a specific location in the new URL. Something like ... from: test.html (which has flash movie) to: whoopdiedoo.html (which has flash movie) and I'd like to immediately go to "frame 20" or to a label called "stuff" or to "Scene 3", "frame 6", within the whoopdiedoo.html Flash movie. Is this possible to get a very specific location in a getURL command? To Help out how about this is used as the example.
Assume I'm presently on ... test.html (test.swf ... and I've released the button in test.swf that will direct me to the exact location of another .swf in a different .html.)
What will the code be to have the On Release of the button direct me to ...
#1) different.html (containing diff.swf and frame 70) or
#2) dfifferent.html (containing diff.swf and Scene 2, frame 70) or
#3) different.html (containing diff.swf and Scene 3, Label of "dog")
Assuming all pages are in the same folder.
Flash MX 2004
Thanks ... Gord
How Do I Get A Moving Movieclip Stop At Another Movieclip
I got two questions, im using the movement code from the "RPG inventory and movement" tutorial. This is the code:
onClipEvent (load) {
moveSpeed = 19;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown (Key.UP)) {
this._y -= moveSpeed;
} else if (Key.isDown (Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown (Key.LEFT)) {
this._x -= moveSpeed;
}
}
Is there anyway i can put something so the movieclip wont move through another movieclip with the tag "wall" for example. And one oter: How do i make it so that if the movieclip moves into another movieclip with the tag "exit" for example, it will switch frame?
How Do I Get A Moving Movieclip Stop At Another Movieclip
I got two questions, im using the movement code from the "RPG inventory and movement" tutorial. This is the code:
onClipEvent (load) {
moveSpeed = 19;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown (Key.UP)) {
this._y -= moveSpeed;
} else if (Key.isDown (Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown (Key.LEFT)) {
this._x -= moveSpeed;
}
}
Is there anyway i can put something so the movieclip wont move through another movieclip with the tag "wall" for example. And one oter: How do i make it so that if the movieclip moves into another movieclip with the tag "exit" for example, it will switch frame?
How To Move An Object Slowly And Smoothly From Location 1 To Location 2?
Hi,
I am new to ActionScript. I wish to use ActionScript to move an object slowly and smoothly from location 1 to location 2.
I learned that I can use the following to move an object to location 2 (x2, y2):
mThisObject.x = x2;
mThisObject.y = y2;
However the object just "swift" from location 1 to location 2, not moving slowly and smoothly from location 1 to location 2.
Could some experts here provide a guideline for me?
Thanks and best regards
Alex
Moving A Movieclip
i just want the movie clip to move when u press a button,
press LEFT key=movie clip slides left
etc.
Moving A Movieclip
i have 4 buttons, they are located next to each other, although not at equal intervals, their _x locations are:
A=30
B=80
C=110
D=190
i have another movieclip with an instance name of "dash". the original _x location of dash is 0.
here is what i need to do:
1. on rollover, of any of the buttons, "dash" needs to move to that button (example: i rollover C, "dash" should move to _x=110.)
2. on release, "dash" should stay above the selection.
3. on rolloff, if the button is not hit, "dash" should return to its previous location.
this needs to work between any of the buttons, A to D, C to A, etc.
thanks in advance for any help.
Moving Movieclip
How would I be able to hold down the left mouse button and move the movieclip until the button is released. I can get it to move, however, when I hold it down it carries out the operation once but doesn't continue to move when held down.
Sorry, im new to actionscript.
Moving A Movieclip
i want to know how to move a movie clip on the stage using buttons.
e.g. a button for left, button for right when the user presses these a movieclip in the background moves (movieclip moves right when left is pressed and left when right is pressed) if ya get what i mean!
so the user controls where they are looking on screen!
Ive got an idea for a project but need to know this before moving on!
Any help?
[F8] Moving A Movieclip
Hey there, I'm using Flash 8. Anyways, I'm having some issues with the code below. Right now the movie clip moves then plays halfway down. I don't want that. I want it to play, then move when I hit b1. So for example, when I hit b1, I want MC_Main to have already appeared, and played, then drop, and have MC_Photo move in, then when it's done moving, it can play, when MC_Main has dropped all the way. Am I on the right track or do I need to add some more code?
Let me know if that is confusing or not.
Again thanks for the help
PHP Code:
stop();
MC_Photo._visible = false;
MC_Resume._visible = false;
MC_Print._visible = false;
MC_Video._visible = false;
MC_GraphicD._visible = false;
MC_WebD._visible = false;
MC_Contact._visible = false;
MC_Main._visible = true;
b1.onRelease = function() {
MC_Photo._visible = true;
MC_Photo.play();
MC_Resume._visible = false;
MC_Resume.gotoAndStop(1);
MC_Main._visible = true;
MC_Main.gotoAndStop(1);
MC_WebD._visible = false;
MC_WebD.gotoAndStop(1);
MC_Video._visible = false;
MC_Video.gotoAndStop(1);
MC_Print._visible = false;
MC_Print.gotoAndStop(1);
MC_GraphicD._visible = false;
MC_GraphicD.gotoAndStop(1);
MC_Contact._visible = false;
MC_Contact.gotoAndStop(1);
//Movieclip GotoAndPlay Behavior
this.MC_Photo.gotoAndPlay("1");
//End Behavior
};
MC_Main.onEnterFrame = function() {
if (MC_Main._y < 550) {
this._y +=8;
}
};
b1.onRollOver = over;
b1.onRollOut = out;
b1.buttText.buttonText.text = "Photography";
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(7);
}
Movieclip Moving
1st time post here...hehe...
can any1 give me a tutorial juz like this website?http://www.4thavenuejones.com/
i want like it moving the image...
Moving Movieclip With AS
Hi!
I'm quitre new with Flash and especially with AS. Allthought I have programmed another languages before. Well, I'm making simple animation, and I would like to move one symbol with action script. In my animation, ant runs to the left. Because this background must move to the right. Well, I have two problems. Firstly, how I can move backround symbol to the right? I tried something like:
earth.x+=4; and earth._x+=4;
after looking one example. However it won't work. Another problem is that earth's right side should appear from left when it is outside of stage's border so there don't appear white areas.
Example picture:
http://i10.tinypic.com/43gpbpg.png
As you can see, background appears from opposite side and follows itself. how I can do that?
Thank you very much! Help is appreciated
Moving Movieclip
What I'd like to do is have a movieclip slide into position when the user rolls over it and slide back when the user rolls off of it. This movieclip would house buttons that I could then click to navigate to different parts of my site.
When using the onRollOut action and onRollOut action for this movieclip I then lose the ability to target the buttons inside of this movieclip using an onPress function. From what I've read, it has something to do with button event capturing. Does anyone have code that will allow for a work around?
Thank you...
Moving Movieclip
What I'd like to do is have a movieclip slide into position when the user rolls over it and slide back when the user rolls off of it. This movieclip would house buttons that I could then click to navigate to different parts of my site.
When using the onRollOut action and onRollOut action for this movieclip I then lose the ability to target the buttons inside of this movieclip using an onPress function. From what I've read, it has something to do with button event capturing. Does anyone have code that will allow for a work around?
Thank you...
Moving A Movieclip In AS?
I noe this is very possible, I am just sooo dumb is AS
I want to rotate an object in AS because i think moving it manually is a waste of time
Thanks a lot!
-Dean
Movieclip X And Y While Moving.
Yellow again, I got a quick question , if I want to make a movieclip (for the sake of clarity we will call it mc1) match another movieclip's (mc2) x and y coordinates while mc2 is moving how would i do that?
Anyhelp is much appreciated, thanks in advance legion
Is Movieclip Moving?
im trying to make a function that tells me if my movieclip is moving
Code:
var thisPosition:Vector = new Vector(this.px,this.py);
if(thisPosition.x == lastPosition.x && thisPosition.y == lastPosition.y){
//movieclip isnt moving!
}else{
//inMotion = true;
}
lastPosition = new Vector(this.px,this.py);
but it doesnt work! how come? im using as3 btw
Moving A MovieClip
Question, I have a Movie Clip say McA and I insert another Mc called B into McA. McA has the registration point dead center. Therefore McB I believe has its registration point at the top left right. Therefore, how do I move the McB to be exactly over McA.
Assumption both Movie Clips are the same size, height=39, width=74. Also McB has a image in it. I tried using the _x & _y properties to align McB with McA but McB won't move at all.
I'm I missing something?
Moving A Movieclip In AS?
I noe this is very possible, I am just sooo dumb is AS
I want to rotate an object in AS because i think moving it manually is a waste of time
Thanks a lot!
-Dean
Movieclip X And Y While Moving.
Yellow again, I got a quick question , if I want to make a movieclip (for the sake of clarity we will call it mc1) match another movieclip's (mc2) x and y coordinates while mc2 is moving how would i do that?
Anyhelp is much appreciated, thanks in advance legion
Moving A Movieclip?
Lets say I have a circle mc on the root level, and on the same level, another mc thats a box..is it possible to duplicate the circle mc, and have it be a child of the box mc? im having a real hard time with this, can anyone help?
|