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




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



DevShed > Flash Help
Posted on: May 9th, 2004, 10:34 AM


View Complete Forum Thread with Replies

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

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

Duplicating MC With Ramdom Start Location?
Please someone help me with this one,...

I have a button, and i want to.. when it is pressed, make it duplicate a movie clip, and set this new mc a ramdom start location (ok this look simple, but i cant make it work), that would be very nice...please , I need it badly

If u can also, id like to know if i can make the duplicate movie start at the mouse current x,y axis in a easy way...thanks.....

Snapping To Location And Object Duplicating / Deleting
Hi... As you can tell, I'm new here, and I wanted to know if someone could provide me with some assistance. What I am trying to do is create a SWF file to make Pokemon cards. (Don't laugh, please...)

First, I want to set up is a grid of lockable locations and Energy symbols...

http://pokemonpalace.net/tcg/images/...-col-basic.jpg

Now, the idea is to have invisible movies over each of the transparent gray circles on the left side. The movie clip to be 10 frames, 1 blank at the beginning, and the other 9 being the Energy symbols. Then, from an area of symbols (nine different Energy symbols of equal size), the user would drag a copy of the movie clip (or button) containing the Energy symbol to the transparent gray circle. When the cursor is released, and the Energy collides with the movie, the symbol being dragged would disappear, and the movie clip would advance to that frame. (On a layer above it is a button to return it to the first blank frame, in case the symbol is misplaced and needs to be deleted.)

This is the first step in my project. Any assistance would be very much appreciated.

How Do You Set Specific Location Of A Imported MC?
how do you import a swf and set the X and Y properties? how would you write that?

thanx in advance.

ReDD

Download To Specific Location
If you read my last thread about a voice controlled site, then you already know my problem. I need to know how to make certain files go to a specific place on a visitor computer. I need them to go to a certain file in their liberary automatically after they hit a link to download the files. Just like when you download an upgrade or software from the net.

Do I need to use an Installer Maker Application, like the one made by StuffIt? Or do I need to use a powerful script like Perl or XML?
Please help!!!!!!

Thanks fellow Flashers!

Place Swf At Specific Location
Flash Version : Flash MX
ActionScript : 2.0(I think?)

Hi everyone,

I have a main.swf and I want to load another swf inside main.swf.
I have some problem to place my second swf at the right place.
By default it's aling top of my main.swf.
I would like to play with _x and _y.

Do I have to do it in main.swf or in my second swf?

What is the way to do it

Thanks

Load .swf To A Specific Location
Hi all. Having a problem loading an external .swf to a specific location in AS3.

This ia the code I am using currently.

"
function iGoogle(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("get_this_info.swf"));
}
igoogle_btn.addEventListener(MouseEvent.MOUSE_DOWN , iGoogle);
"
I have tried to create a blank movieclip (info_space) and load it into there but I think AS3 is a bit different and can't get it to work. (see below)

"
function iGoogle(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("get_this_info.swf", "info_space"));
}
igoogle_btn.addEventListener(MouseEvent.MOUSE_DOWN , iGoogle);
"

If anyone could help I would really appreciate it. Would love to know how to load to specific x/y coordinates too if you know how.

Thanks in advance!!!

Loading .jpg Specific Location
just wondering if there was a way to load a .jpg image file in a specific location of my movie, and if so is there a way to attach a preloader to it ?

Loading From Specific Location
I have looked for this (so you don't think I was lazy) and only found like 2 articles on it. And they weren't really answered. Plus this is a really stupid question. I have multple files and folders (about 100) and would like to organzie them nicely instead of one big happy family. Only problem is that when I call the files from a specific folder(easy ), it never works! It only works if I call it directly from the website(pain ). Can someone please explain this.
Thanks always!!!!!



ActionScript Code:
on (release) {
     getURL"http://www.messenjahmedia.com/temp/uyc/interact
/interact.htm","_blank");
}


I's like to do something like this...


ActionScript Code:
on (release) {
    loadVariables("text/matt_w.txt");
}

Load Movie To A Specific Location
I know this is elementary stuff for you flash action script buffs out there.. but, if you're so good.. perhaps you can tell me how do I load movie to a specified location in the movie?

I have a box on the upper right corner of the movie and navigations on the left.. I want to just load a movie in the box ..

help.. if you can.

Load Movie To Specific Location
I'm using a load movie function to load an external swf file. The size of the external file is smaller than the mother file. So I want this file to load up in a specific spot in the flash movie, which is inside another instance in the mother flash file. How do I go about doing this??

As of know the load movie just pops up in the top left corner of the main movie.

Thanks
Caleb
http://www.e-simpson.net

Inserting Text At Specific Location
Does anyone know how to insert text in a textbox based on cursor location information? For example you type in some text in a flash movie text box, then you click somewhere in the box and click on a button. The button insterts some word pre-set where the user positioned the cursor. Is this even possible?

How To Set A Specific Location For Load Movie?
Well, I've been working around with the load movie command stuff, so I can load external/other .swf files but what I can't figure out is how would I put it in a specific location? Not with the Level.

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.

Attach External Swf In Specific Location
hi all... i need some help on how to load an external swf movie in a specific X and Y position.... thanks

Streaming From A Specific Location Within A File
Hi everybody,

I'm a newbie here so please be patient if this is a trivial question.
What I need to know is the following: can I start streaming a video/audio file from a specific location (like a timestamp) with Flash Media Server?
More precisely, the idea is this: I want Flash Media Server to establish a connection with another server (remote server) to receive some information like a file name and a time stamp. After this I want Flash Media Server to start streaming (to a simple client, like always) that file from that specific moment indicated in the "packet" it received from the other server. Can this be done? Is it hard?

Thank you so much,
Francesco.

Loading An External .swf In Specific Location
How can I load a external .swf into a specific location and set size on my main movie? I currently am using the actionscript, loadMovieNum("intro3.swf", 1);

My problem is that I am taking an intro that I don't have the .fla for and its just loading it randomly on the main timeline. So whats happening is the intro is taking up 100% of the main movie timeline and thus interfering with the rest of the content.


I would like to somew how load it in to a set mc size. Any help or suggestions is really appreciated.

Open New Window With Specific Size And Location
Hi,
I am trying to open a new window on my
top right corner off my screen with a specific size ????
I know it should be done in Java. but
I have no idea how to do it....

Returning A Movie Clip To A Specific Location
Hello,

I have a movie which allows people to drag and drop multiple objects - one at a time - into a target area. The objects are all Movie Clips. If the user drops an object into the target area then it stays there, but if they drop it outside the target area then it automatically jumps back to its original (set) position outside the target area.

What I would prefer is if the Object could smoothly glide back to its original location rather than the sudden jump. It would be even better if it could set off really quickly and then gradually slow down to stop in its set position.

Any help or advice anyone can give would be greatly appreciated.

Thanks,
Dave

Locating X-Y Coordinates, Then Animate To Specific Location
Here's my dilemma...

I have action script code that bounces a ball around the stage. This animation is fine and works like a charm. What I would like to do is at a specific point in the movie have the ball move to a specific point on the stage and remain static.

I have tried different action script methods that move the ball to a specific distance but I cannot figure out how to move the ball to it's final resting place. If I tell Flash to animate to point 475 which is the _x center point of my movie the ball will move forward from it's current location 475 pixels instead of moving to point 475 on my stage. I.E. - If the ball is located at point 600 I can get it to move 475 pixels forward to point 1075. I don't want this... I want the ball to move backwards to point 475 even though it's current location is at 600. If the current location is at point 100 I want it to move forwards to 475. If the current location is at point 900 I want it to move backwards to point 475.

I think what I need to do is locate the X and Y coordinates of the ball at that specific moment in time AND then using those captured values animate the ball to it's final resting place. Unfortunately, I don't know how to accomplish this.

Please help.

Analogue Clock For Specific Location/time
I need to create an analogue clock that shows a specific countries time. Not user system time.

Can soemone point me to examples fla's or tutes online?

Any help appreciated. Thanks.

How Can I Move A Movie Clip To Specific Location?
I have a movie clip "map" and I want to move it to specific location here is my code:

map._xscale = 470;
map._yscale = 470;

map._x += -1350;
map._y = -230;

The code above does move the map to the localtion I want but no animation no movement it's just flick

I want to have the movieclip to "move with simple animation not just warp"

How do I do that?

Thank you

Choo

Load Movie Make It Go To Specific Location
I'd like to load a movie (separate file) into an existing file, but I'd like to make it go to a specific location within the loaded movie.

Example: I have a home page file that has thumb nail images that I'd like to lnk to respective portfolio pieces from another file.

Is this possible to do with ActionScript?

Audio Not Playing When Played From A Specific Location
Hi,

I have been trying to build play/pause functionality in Actionscript 3.0. It usually works fine, but seems to skip audio when i try to play sound from a particular location.

Basically, play/pause works fine till only half the total length of audio has played, but afterwards it just jumps to the last location and calls sound complete handler. Not sure if I am doing anything incorrectly.

Can there be anything wrong with the audio file that I am using? Any thoughts and pointer would be highly appreciated.

TarXXXXXX







Attach Code

package {
import flash.display.Sprite;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.text.TextField;
import flash.events.*;
import flash.text.TextFieldAutoSize;

public class SoundChannel_stopExample extends Sprite {
private var snd:Sound = new Sound();
private var channel:SoundChannel = new SoundChannel();
private var button:TextField = new TextField();

public function SoundChannel_stopExample(_this:Object) {
var req:URLRequest = new URLRequest("sample.mp3");
snd.load(req);

button.x = 10;
button.y = 10;
button.text = "PLAY";
button.border = true;
button.background = true;
button.selectable = false;
button.autoSize = TextFieldAutoSize.CENTER;

button.addEventListener(MouseEvent.CLICK, clickHandler);
_this.addChild(button);

snd.addEventListener(Event.COMPLETE, completeHandler);
}

private function clickHandler(e:MouseEvent):void {
var pausePosition:int = channel.position;

if(button.text == "PLAY") {
trace("Sound start : " + channel.position);
channel = snd.play(pausePosition);
channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
button.text = "PAUSE";
}
else {
trace("Sound stop : " + channel.position);
channel.stop();
button.text = "PLAY";
}
}

private function soundCompleteHandler(e:Event):void {
trace("Sound complete : " + channel.position);
button.text = "PLAY";
}

private function completeHandler(event:Event):void {
trace("completeHandler: " + snd.length);
}

}
}

How Do You Load Movies/clip At A Specific Location In A Movie?
hello .
can someone tell me how to load a movie clip or movie at a specific location within a movie? any help is appreciated thanks you very much

Placing Flash Video In Specific Location On Web Page
Hi-

Basic (I think) question here regarding Flash video on a web page created with DW8. I am trying to figure out how to have several thumbnail images on the right hand side of the page link in such a way that when they are clicked they will play the corresponding Flash video file in a player window on the left hand side of the page (something like a YouTube page layout). It seems like it should be simple enough to link the thumbnail images to the videos and then have the videos play in the player at a preset location on the page, however, I'll be darned if I can find anything on the Adobe site, tutorials, or the Web in general that addresses just how to do this. Maybe I'm just putting in the wrong search terms. Anyway, if you have any suggestions, tips or tutorials you can recommend I would surely appreciate it.

-=SB

Send An Object To A Specific Location On Main Stage?
im still pretty new to the terminology for this program, so my attempts to search for this topic have been unsuccessful.

I have a movie clip within another movie clip and I want one of the objects in the embedded movie clip to end at a particular spot on the main stage. Is this possible?

thank you so much in advance.

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 (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.

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.

Moving And Duplicating A Action Script Drawing
I can move and duplicate a hand drawn movie clip but I can't get it to work with an action script drawing... What I want to do is draw a box, duplicate the box 10 times, have the boxes move around the screen at random directions and speed... additionally to bounce off walls back... here is where I have left off... anyone willing to help and tell me how you did it?

mc = createEmptyMovieClip("mc",0);
mc.beginFill("0xBBBBBB",100);
mc.lineStyle(4,0xFF0000);
mc.moveTo(0,0);
mc.lineTo(0,10);
mc.lineTo(10,10);
mc.lineTo(10,0);
mc.lineTo(0,0);
mc.endFill();

this.onEnterFrame = function () {
for (c=1;c<10;c++) {
duplicateMovieClip ("mc", "mc" + c, c);
setProperty ("mc" + c, _x, getProperty("mc"+c,_x) + c);
}
}

Duplicating Clip Code - Dynamic Naming And Moving - Syntax Error
This code should duplicate a clip, and increase the name by 1. What am I doing wrong?


Code:
duplicateMovieClip(thWin1, "thWin"+[_root.thWinNum], this.getNextHighestDepth());
thWin+[_root.thWinNum]._x=thWin+[_root.thWinNum-1]._x+54.8;
Thank You,
-Kirk II

Moving An Object To A Specific Point
Hello, I thought this would be a simple thing to do but I was wrong :-(. I would like to move a movie clip one from coordinates to another using ActionScript, at a constant speed. Example (0,0) ----> (300,250) at a speed variable that i would be able to set. I can do this by using motion tweens but I MUST use actionscript.

Thanks in advance :-)


/edit BTW, i have searched the forum but i keep finding threads about easing an object to a specific point, and I cant figure out how to do it at a constant speed. Thanks.

Moving Duplicated Mc's To Specific Keyframes
I am having trouble with my movieclip's that have been created via duplicateMovieClip(). Though I change to specific keyframes before duplicating the movieclip, and I ensure that the movieclip being duplicated is on a keyframe... the problem continues. I can't seem to get my duplicated movieclips to stay on specific places of the timeline. If i go "Dubug > List Objects", it says that all my duplicated movieclips are at Frame 1. I don't understand why they always go there. Once created, there are visible throughout the entire timeline. How can I move them around the timeline?

Thanks and hope that makes sense.

Moving To A Specific Frame In A Movieclip
hi everyone. I have a problem and I've looked everywhere for a solution but haven't found one yet. I'm trying to move the playhead to a specific frame inside a movieclip but can't find any code that will allow this to happen.

In more detail: I have 5 movieclips that act as my main pages on my main timeline. from inside let's say, from the 5th movieclip on frame 100 i want to move out of this clip and into the 3rd movieclip BUT NOT to go to frame 1 but move to frame 50 of the 3rd movieclip. I've tried everything but no matter what happens the first frame is always displayed, and i don't want that.

Any ideas on how to jump to a specific frame inside a specific movieclip?

Moving To A Specific Frame In A Movieclip
hi everyone. I have a problem and I've looked everywhere for a solution but haven't found one yet. I'm trying to move the playhead to a specific frame inside a movieclip but can't find any code that will allow this to happen.

In more detail: I have 5 movieclips that act as my main pages on my main timeline. from inside let's say, from the 5th movieclip on frame 100 i want to move out of this clip and into the 3rd movieclip BUT NOT to go to frame 1 but move to frame 50 of the 3rd movieclip. I've tried everything but no matter what happens the first frame is always displayed, and i don't want that.

Any ideas on how to jump to a specific frame inside a specific movieclip?

Loading A New Swf AND Moving To A Specific Named Frame.
I know how to load in a new swf file but what I haven't been able to figure out how to move the play head to a specific named frame.

The situation:

User is in swf#1.
User clicks button.
Swf#2 replaces swf#1 AND playhead moves to named frame.

Is it possible to pass a variable from swf#1 to swf#2 before swapping them out so that onLoad code in swf#2 could check the variables value and determine where it needs to go?

Moving A M/c Using KeyDown Then Stopping At A Specific Point
Hi - I'm moving a m/c left and right on a screen using the onClipEvent (keyDown) command successfully. But here is a simply, but maddening thing that I need to fix. How do you stop the clip from moving when you reach a specified limit on the far left or right of the screen? Say _x = 35 and _x = 500 I want the clip to move in between these two numbers. How do I do it??

ta

frank

Moving Multiple Objects To A Specific Coordinate?
I nhave got a nav bar designed in Flash MX - when the cursor rolls over one of the buttons, a small movie symbol moves to a set cordinate. On roll out it returns to its original position. The script on the movie symbol is:

onClipEvent(enterFrame){
this._x+=(_root.xpos-this._x)/4;
}

the script on the button is:

on (rollOver) {
_root.xpos=16;}
on (rollOut) {_root.xpos=0;}

This is fine, but how do I introduce a second movie symbol to move to a second coordinate?

Cheers
Matt

Dynamic/moving Background To Specific Points
Hi all,

Example: How often did you see police officers when you didn't want to see them and at the moment that you need them....they aren't there !?

Exactly the same what i have now with a flash technique.

I did try to draw something that might explain it a little better.
What i saw before on other sites and also tutorials that covered it was that you have a scene with buttons and a large background (expanding outside of the viewing borders)
And once you push a button then it goes to specific points in that background.

Here is a drawing


What i tried to draw was this.
In the first picture you have a green box (representing the large background) , red (representing what the viewer can view) and blue boxed buttons.
You also see numbering 1 to 4 in orange circles and they are the points to where the scene animates / moves to , once a user presses the button.

In the first picture, number 2 is pressed, as you can see the orange 2 is in the red viewers box.

When you look at picture 2 , the number 1 is pressed....so that orange circle 1 is now viewed.

i know some of you already know this effect but i have no clue how this is called and where i could find an example

Anyone can help ?
(sorry for my crappy drawing, and i hope its clear what kind of technique i'm talking about)

Big thanks in advance

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 An MC To A Specific Stage X,Y Point By The Click Of A Button
Hi there
Does anyone know how to move an MC to a specific point on on the stage?

For example I have a draggable MC sat on a stage (760 by 540)
what I want to happen is when a button is clicked the dragable MC moves automatically (by sliding - not jumping - just so that it is smoother) to say stage value: X:150, Y:200

BTW - MC is called box (not that it makes much difference)
Please note that it is important that the MC slides to the new point, rather than just reappearing at the specified XY location

Cheers dudes
Breaker

Moving Window To Specific Coordinates On Button Click
I need code that tells a window/box/object in my site to move to certain coordinates when a button is clicked.

Yea...I'm new to actionscript

Thanks

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