ActionScript 2.0 :: Save/Load Flash Based On X Y Coordinates Of Movie Clips?

Mar 12, 2010

I am developing a tool for analysis where you drag specific events onto a special wheel to analyze events based on time of day etc. I had a few users testing it and they asked for a save and load feature. I have done as much as I can at this point and am just growing confused. Can one of you experts take a look at my .fla and see what can be done...I think I am close but just can't figure it out. Also, if you can provide comments on cleaning up my code would be nice too.

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Get Movie Clip To Save Coordinates?

Nov 28, 2009

what i am trying to do is create a game that works on the same bases as battle ships but the difference is that its just at a single grid size scale so basically you only have to hit 5 squares in the 8x8 square grid. The trouble i am having is that i have set it up as a movieclip and i cant seem to get it to same the positions on the side that i select on (named the players side) it works fine for the otherside and will hit the 'enemy squares' and you can win the game but never loose the game that the problem.

View 0 Replies

ActionScript 2.0 :: Changing Behavior Based On Y, X Coordinates Over A Movie Clip With OnMouseMove

Sep 22, 2009

I was thinking that it will be an easy task but something is not right. Here is what I am trying to do. I want to be able to run a function if the mouse is moved over certain areas of the movie clip on stage. Based on which area of the movie clip the mouse is moved I'd like to be able to trigger different behaviour. Below is the code which I was thinking shoud do it:

Code:
var posY:Number;
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {

[Code].....

For some reason, the trace statement is ran always when the mouse moves regardless if it is over the movie clip or not. It also only shows the first trace statement. It is never chaged even if the mouse is in the different areas of the movie clip.

View 5 Replies

ActionScript 2.0 :: Changing Behavior Based On Y, X Coordinates Over A Movie Clip With OnMouseMove?

Sep 23, 2009

I was thinking that it will be an easy task but something is not right. Here is what I am trying to do. I want to be able to run a function if the mouse is moved over certain areas of the movie clip on stage. Based on which area of the movie clip the mouse is moved I'd like to be able to trigger different behaviour. Below is the code which I was thinking shoud do it:

ActionScript Code:
var posY:Number;
var mouseListener:Object = new Object();

[code]......

View 0 Replies

ActionScript 2.0 :: Place 35 Movie Clips In Random Order On Stage In Specific XY Coordinates?

Nov 12, 2009

I have 35 movie clips named mcMyObject1, mcMyObject2, etc. to mcMyObject35Each time the playhead enters the frame this code sits on, I want all of these 35 movie clips to be placed on the stage in random orderI want each one of these 35 movie clips to land on one of these X coordinates: 57, 187, 317, 447, 577, 707, 837 and on one of these Y coordinates: 53, 183, 131, 443, 573. (It's a 7 x 5 grid)Movie size is 1024 x 768Here's my code, which doesn't work:

stop();
var myXArray=[57, 187, 317, 447, 577, 707, 837]; //cordordinates for x
var myYArray=[53, 183, 313, 443, 573, 573, 573]; //cordordinates for y

[code]......

View 8 Replies

AS3 :: Flash - Save XY Coordinates?

Jul 21, 2010

I have a widget that looks like an equalizer, the scrubbing on the slider is working. When I relaunch the swf file everything resets.

What can I do to save the setting.

View 1 Replies

IDE :: Position Movie Clips Based On Browser Resizing?

May 26, 2009

Is it possible to do what this tutorial shows but instead of having your mc�s be positioned related to the stage, have them be positioned related to the browser window?

[URL]

View 2 Replies

ActionScript 3.0 :: Created Multiple Movie Clips Based On The Xml File?

Nov 19, 2009

i am taking text from xml file,I have created multiple movie clips based on the xml file. i have placed 5 movie clips to left side and 5 movie clips to right side.Now i have to drag the left movie clip to the right side and i have to drop it on respective movie clip to match the target and i have to get the output as "correct" if the match is found. But for my below code i am getting only the "wrong" as output ,i dont know where is the error

[Code]...

View 0 Replies

Actionscript 3 :: Flash - Load Random Movie Clips Into Animation?

Sep 24, 2009

making a simple animation with about 10 "coins" on screen. I have a movie clip that animates another movie clip flipping over. I want to pull a random movie clip from the library into the nested clip so that on each "flip" a random coin face comes up.I've put all the clip names into an array (coin1,coin2,coin3,etc.)I think it would be described as _root.coin_container.coin_animation.random_coin_hereThere will be 10 coin_container's on the main stage, with coin_animation nested inside. At the beginning of the animation a random movie clip from the array should be called into coin_animation, then coin_animation will run through a few frames, repeat, call another random movie clip and repeat.

View 2 Replies

ActionScript 2.0 :: Unload/Load Movie Clips In Parent Movie From Buttons In Child Movie?

Feb 12, 2009

I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.

View 6 Replies

ActionScript 3.0 :: Adobe AIR Nested Tables - Save The Information For A Layout Of Movie Clips On Stage

Jul 24, 2010

I am trying to save the information for a layout of movie clips on my stage. I am using the sqlite functionality in order to be able to save the layout to the local database. Each layout consists of several movie clips. My plan was to store pertinent information regarding these movie clips (such as x and y position) in order to be able to reload some new clips in the exact same place.

My problem here is that I want to create just one row in my database for each layout, but I want one column in that row to store the information for each of those clips (in a single row). Is there some kind of nested table functionality in sqlite?6564

View 2 Replies

ActionScript 2.0 :: Load Movie Based On Different URL?

Apr 6, 2011

I wanna make a swf movie which changes according to the page that published. I have a wordpress page and it has different (8 languages). On each language page my swf looks the same... I want that it changes in each language page for example it calls a behavior on and it calls another action oni tried this code:

function getURLhttp() {
var urlPath = ExternalInterface.call("window.location.href.toStr ing");
urlActions();

[code].....

View 0 Replies

ActionScript 2.0 :: Load Movie Based On Url Page

Apr 5, 2011

I wanna make a swf movie which changes according to the page that published. I have a wordpress page and it has different (8 languages). On each language page my swf looks the same... I want that it changes in each language page for example it calls a behavior on url...and it calls another action on url...

View 8 Replies

ActionScript 3.0 :: Save The Mouse Coordinates Upon MouseClick?

May 20, 2011

I am making a game where when I click a movie clip on stage and the man will walk to that area. The man only moves one space when click, so it works if you continualy click the mouse. I just want to click the mouse 1 time and the character walks to that spot. Here is my code,

clickObject.addEventListener(MouseEvent.MOUSE_DOWN ,record_Mouse);
function record_Mouse(event:MouseEvent):void {
var record_MouseX:Number= mouseX;[code]........

/*I tried a loop for these last two lines, but it did not work, maybe I am doing it wrong, or maybe there is another solution? I also tried to return the value of man.x and man.y into a ENTER_FRAME event which does not seem possible with AS3*/

man.x+=vx;
man.y+=vy;
}

View 2 Replies

ActionScript 3.0 :: Load All Movie Clips?

Nov 30, 2011

I have a "map_mc" movie clip that has over 500 movie clips(counties). I also have the countynames in xml format. I want to be able to

1. in a loop get a list of all movie clips

2. and in a dynamic text box assign the county name to the movie clip (from xml).

Is it possible to get the names of all movie clips and then assign the countynames?

I have the xml part semi working and on mouseover can display the name but is stuck on the movie clip part.I am trying to avoid typing all the county names  and in the future will be adding census and other data to the xml.

View 4 Replies

ActionScript 2.0 :: Load Two Movie Clips At Once?

Apr 22, 2004

I am trying to load a opening box animation and simultaniously text on top of the animation, is that possible?

View 1 Replies

ActionScript 3.0 :: Plot Graphics Based On Map Coordinates?

Dec 15, 2010

Basically he have a lot of ships, that he need to plot on a map. The map is just a picture of europe, but the information for each ship is given in coordinates (longitude and latitude), and he want to know if there is a way to plot each ship (represented by a small red dot) on the picture map of europe using the coordinates already given.

Otherwise he would have to go into google earth and locate each position, and then add it, which would be pretty time consuming after a couple hundred ships.

If there are no easy way to do this, would there then be another way to convert the longitude/latitude coordinates into a x/y coordinate system for the picture of the map? (if we know what area the picture covers on the map)

View 12 Replies

ActionScript 3.0 :: Load Multiple Movie Clips?

Oct 28, 2008

how to load multiple movie clips on the stage? My ActionScript 3 are as below:

I declared a movie clip - "mcPhotoFrame" (i.e. an instance of "mcPhoto" movie clip) and would like to load all the pictures on the stage but after finished loading, only the last photo shows on the stage.

View 4 Replies

ActionScript 2.0 :: None Of Movie Clips Will Load Saying Theres An Error

Nov 22, 2010

I made website last year using Actionscript 2, and everything was working fine, its been uploaded to the net and works brilliantly. Now when I've come back and opened it now, none of the movie clips will load saying theres an error. I haven't touched it since then, and have no idea why its not working, all the external .swf files are still in the same folder, and all of them work perfectly alone. I've just started making a new website where I'm also trying to get the main file to load an external file on a movie clip layer, but its not working?

View 3 Replies

ActionScript 3.0 :: Check An Objects X,y Coordinates Based On Where It Is On The Stage?

Aug 12, 2011

Is there a way to check an objects x,y coordinates based on where it is on the stage, vs. where it is in the movie clip that is on the stage?

need this to compare with the mouse for instance.

View 2 Replies

ActionScript 2.0 :: Change An Object's _rotation Based On The Xy Coordinates?

Jun 4, 2006

how do i change an object's _rotation based on the xy coordinates of another object (so it is facing it)?

View 3 Replies

ActionScript 2.0 :: Aligning Clips Without Using X Or Y Coordinates?

Jul 3, 2009

[URL]The black square is "square_mc", it's X/Y is at its center/center point.The blue circles are all inside a clip called "circles_mc", it's X/Y center is NOT at its center/center of the circles -- in fact, it could be 100 or 200 or 300 pixels to the left, right, top or bottom of where the blue circles are within it.

I need to align and scale the circles_mc over the square_mc to fit within the edges of the square_mc. But I can't use the circles_mc X/Y information to position it.How do you do that? I can get the scaling right, but I don't know how to align them one over the other as I described.

View 2 Replies

ActionScript 2.0 :: Tracking _x _y Coordinates Of Different Clips?

Jan 9, 2007

I've got a movie clip, with another clip (let's say its a rectangle) nested inside it. Now I've got another movie clip on the _root of my movie that I want to track to the _x, _y of the rectangle. I want it to follow the rectangle when the rectangle's parent is dragged or scaled.

i'm having trouble targeting the _x / _y of the rectangle relative to the stage rather than its relative _x / _y relationship with its parent. is there a way to find these values?

View 1 Replies

ActionScript 3.0 :: Load Movie Clips Into Random Positions?

Mar 24, 2010

I have three movie clips on my stage. Their names in my library are a1_mc, a1_mc2, and a1_mc3. Each of those movie clips on my stage has a different instance name. All of these are connected with an actionscript in the same file.Now, I'd like the movie clips to appear at a random position every time, they are loaded.

I already tried to make a new array and solve this issue with the sort() command. However, that did not work out properly. The positions and instance names of the movie clips on my stage are as follows:

a1_mc
instance name on stage: a1
position on stage: X = 20.0 | Y = 140.0

[code]....

View 1 Replies

ActionScript 3.0 :: Wait To Load Certain Movie Clips Or Frames?

Feb 9, 2010

I have seen flash sites that wait to load different parts of the flash file until you click on a link, thereby starting a loading graphic that then loads the content you're looking for. I can't find any information on how to do this, and I'm guessing I just can't find the right terminology.

View 11 Replies

Professional :: Load Movie Clips From External .swf File?

May 14, 2010

I need to load files from the library of another .swf file (AS3). How to accomplish that?

View 1 Replies

ActionScript 1/2 :: Making Movie Clips Load First Priority?

Mar 15, 2011

I was wondering how to make any type of movie clip load at first priority, as I have a preloader bar and text, which load almost last.
 
Is there anyway to make this possible?

View 5 Replies

Randomly Dynamically Load Images Into 4 Movie Clips

Jul 29, 2009

I am designing a website and have for locations I would like to load a random image from the same folder. Goals we'd like to accomplish with this:

1. We want images to load randomly from same folder
2. We don't want any duplicate images on the page at any one time
3. We have different size movie clips they are loading into.

Is there a way to accomplish this? What script do I use to resize the .jpg to fit whatever movieclip it's loading into and how to I tell it not to load an image that is already loaded in another movieclip?

View 1 Replies

ActionScript 2.0 :: Load Multiple Movie Clips Into Empty_mc

Nov 30, 2006

I need to load multiple movie clips one after the other into an empty_mc. Im going to load one, and then once thats has finished playing I want to load #2, then #3, then #4, ... etc. There are probably a couple ways that I can do this. Is it possible to stick a gotoandPlay at the end of the first mc to load the 2nd movie clip in its place on a higher level so it goes on top of it? Would it better to use the load/unload movie syntax?

View 2 Replies

ActionScript 2.0 :: Using Empty Movie Clips To Load Movies

Jul 20, 2009

I am in the process of building my new website and am having some loading issues. Here is a bit of info. gallery_stage This is the main movie that I am loading everything into. This movie is places in the center of an html page in the portfolio section of my site. gallery_menu.swf this is the navigation menu that I am loading onto the 'stage'. Currently it loads insode of a container 'menuload'. This is the code that I'm using to load it.

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved