ActionScript 2.0 :: Load At A Specific X And Y Coordinate?

Jan 11, 2007

Is there a way to use an loadMovieNum code at the beginning of a frame and make it load at a specific x and y coordinate? When I use this code it doesn't work...

[AS]
loadMovieNum("bodyline.swf", 5);
this._x = 43.3;
this._y=130;
[/AS]

It changes the coordinates of the main background image, not the position of the movie it just loaded. I tried something like this....

[AS]
loadMovieNum("bodyline.swf", 5);
"bodyline.swf"._x = 43.3;
"bodyline.swf"._y=130;
[/AS]

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Move Children To A Specific Coordinate?

Dec 2, 2009

How do you move a child, For example, I use the drawRect command, and have a rectangle, how do I have it move

View 1 Replies

ActionScript 2.0 :: MX04 To Make The Mouse Cursor Start At A Specific Coordinate Upon Enterig A Scene?

Jun 6, 2010

I'm trying to make a game of sorts. I have a button that you need to click that is in the center of the screen. Upon clicking it, it goes to the next scene.What I need here is for the mouse cursor to start in the upper right-hand corner of the stage of the second scene whenever said button is clicked. Not just a movieclip of a cursor, but the actual mouse itself, since it needs to be able to click a button on the other side.Below I've included an example of what needs to be done (not my actual game, but it shows the problem that I'm having. IT IS AN MX2004 FLA FILE.

View 3 Replies

Actionscript 3 :: Find Coordinate Of Child In Its Parent's Coordinate System?

Mar 31, 2010

I have 3 square. smallest square s3 is inside s2. s2 is in side s1. each is 10px larger [code]how can I find the coordinate of child in its parent's coordinate system?

View 1 Replies

ActionScript 2.0 :: [FMX] Load Movie Into Certain Coordinate?

Aug 7, 2007

I am loading a swf into my website using loadMovie on level 1 (which i am not sure is the best way) and it shows up in the upper left hand corner by default i guess. how do i give it the coordinates so that it appears where i want it to.

View 1 Replies

ActionScript 3.0 :: Load Specific SWF At Specific Frame By Default?

Sep 21, 2009

Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:

Code:
//About Us Button
function test2(evt:Event):void{

[code].....

View 1 Replies

Load An .swf To A Specific Keyframe?

Jul 6, 2009

Can I load a swf to a specific keyframe on browser refresh or if sent to another page on the site?Each page will have the same .swf header and I'd like to highlight or animate the header based on the new html page selected.

View 1 Replies

IDE :: Preloader To Load A Specific Mc?

Apr 18, 2012

I have a guestion about preloaders. Every preloader that is available on the web loads the entire .SWF.But I want the preloader to load a specific mc. So that the .SWF will run as soon as that specific mc is loaded.

in addition: Is it possible to have an mc in the .SWF that will only load when the user pushes a button?

View 2 Replies

Load A Specific Varible From A Txt File?

Jun 20, 2010

I have an input text box, and a data.txt file containing data:[code]And I want, when i input 32, to display in two dynamic text boxes: "Ana" and "L". hope there is an easy way without using php and complex databases.

View 1 Replies

ActionScript 2.0 :: Load Swf And Go To Specific Key Frame

Dec 11, 2009

I am new to working with code and flash...I want to load a swf and go to a specific frame, what code do I use.

View 1 Replies

ActionScript 3.0 :: Each Xml Text Load Specific Swf

Aug 28, 2010

I have created a dynamic textfield which loads several text nodes from an xml file by using a for loop. How can I set each text node to load a specific swf? Does the eventListener need to be applied on the whole textfield or is it possible to add it depending on which xml text node is clicked?

View 6 Replies

ActionScript 3.0 :: Load SWF At Specific Location

Oct 8, 2010

I'm trying to load an SWF file into antother SWF file.But I dont have a lot of experince with flash!I want the SWF file to load in the top right corner!

View 3 Replies

ActionScript 3.0 :: Load SWF To Specific Y Position?

Jun 25, 2009

I have a SWF loading in right now, however it loads to the stages x:0 and y:0. Here's my code:

function craDone(e:Event):void {
trace("LOAD");
TweenLite.to (portfolioBucket_mc, 0.5, {x:-831, alpha:0, ease:Back.easeIn});
addChild(l);
}

How do I tell it to load to a certain Y position. The x doesn't really matter because x:0 is good.

View 1 Replies

ActionScript 2.0 :: Load Specific MC Within External SWF?

Jan 19, 2010

Firstly can I apologise if I'm asking something completely obvious... it driving me crazy.

I have an swf called "branding.swf" which has a movieclip (movie_mc) and a button (save_btn)

Once you press save_btn it loads another swf "summary.swf" which also has a movieclip "form_mc". Within "form_mc" there is another movieclip "loader_mc" and some dynamic text fields.

All this happens within a standalone exe "main.exe" and is loaded into "clips_mc)

Is it possible (surely it must be) to take the contents of movie_mc and display it within "loader_mc".

Basically, I want to do a loadMovie but instead of calling "branding.swf" I want it to only load "movie_mc" which is within "branding_swf"

View 1 Replies

ActionScript 3.0 :: Load Thumbs In A Specific Order?

Aug 4, 2010

I have a gallery set up with three primary images. Clicking a primary image brings up it's specific subset of alternate views for the product.

I've managed to get the loading and placement down as I need it, but the images are not loading in the correct order. I've tried several solutions, the current one is that an array of each Sub Image is processed in order. It looks kinda of sloppy but image 1 loads, and when image 1 is complete, image 2 loads. After each image loads, it is put into another array. This array is used to resize and place the files. However when I do so, instead of the placement order being

item[0]
item[1]
item[2]
item[3]
item[4]

it keeps ending up like this:

item[4]
item[2]
item[1]
item[3]
item[0]

Here is the relevant code. When the following function starts with sArray, the items are confirmed to be in order.

Code:
function loadSubs(e:MouseEvent):void//LOAD SUBD
{
clearGallery();

[Code]....

View 14 Replies

ActionScript 1/2 :: Load External Swf Into A Specific _level

Sep 15, 2009

I am loading an external swf into the mc 'image' using: image.loadMovieNum("portfolio/100_design/1.swf", 1);

Every time a new image loads, I want it to load the level above, ie: image.loadMovieNum("portfolio/100_design/1.swf", 2); Is there a way this can be done dynamically. For example, "current level + 1"

View 5 Replies

ActionScript 1/2 :: Load A Specific Image In An Array?

Sep 17, 2009

In my photo gallery, I have an array of images that load sequentially using 'next' / 'prev' buttons. The code fades out the current swf, recognises when the new external swf has fully loaded, then fades in:

this.pathToPics = "portfolio/100_design/";
this.pArray = ["1.swf", "2.swf", "3.swf", "4.swf"];
this.fadeSpeed = 40;

[code]......

View 7 Replies

ActionScript 1/2 :: Load An External Swf At A Specific X & Y Position?

Sep 26, 2009

I am trying to load an external swf at a specific x& y pos. from a button. This is the code I am using :

on (release) {gotoAndPlay(4);loadMovie("gallery.swf",1); xpos="7", ypos="119"; 
}

The movie loads fine if I remove xpos="7", ypos="119";How do I get it to load at that specific position?

View 3 Replies

ActionScript 1/2 :: Load Movie And Go To The Specific Cue Point?

Oct 24, 2011

How can I load movie(1.swf) into the current file and make it go play the specific cue point (of the child's file)?

[Code]...

View 1 Replies

ActionScript 1/2 :: Load Movie And Go To Specific Frame?

Oct 24, 2011

I would like to load the "1.swf" to the "hub.swf"(ROOT MOVIE) and have it gotoAndPlay(2) using AS2.[code]...

View 2 Replies

ActionScript 3.0 :: Load Images From XML To Specific Movieclip?

Oct 28, 2011

I'm still begginer. I have to load images in specific movieclip, because they're loading over all the other layers. What should I do?I made a simple slideshow by tutorialI guess it would be better that I show all the code not specific parts:

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

[code].....

View 9 Replies

Flash - How To Load FLV Playback From Specific Time

Jun 22, 2010

import flash.net.URLLoader;
import fl.video.*;
import flash.utils.getTimer;
fk.autoPlay = false;
// Parametreleri yukluyoruz.
var myLoaderInfo=new Object();
[Code] .....

I have a video. First it loads. Then it starts from time that I want to. Also it stops from time i want to. But I want to load my video only from start time to stop time. How can I do this or which method can I use?

View 1 Replies

ActionScript 2.0 :: Load A Movie And Then Go To Specific Frame

Feb 2, 2009

From main movie I call a 2nd movie to appear over the main movie using [code]all good and working.Now, from a link in the 2nd movie, I want to close the 2nd movie and go back to the first movie advancing the first movie to another page (frame).[code]but how can i tell my first movie to go to a specific frame.

View 3 Replies

ActionScript 3.0 :: Load SPECIFIC XML Items To Datagrid?

Jun 21, 2010

how to Load SPECIFIC XML items to datagrid?

View 1 Replies

ActionScript 2.0 :: Load A Movie To A Specific Frame?

Mar 3, 2005

Im having the following problem. Im trying to load a movie.swf, but i want this movie.swf to be loaded to a specific frame. I dont want it to load and start at the frame 1, i want it to be loaded and start at the framr 5.

View 3 Replies

ActionScript 2.0 :: [FMX] Whom To Load A Movie In A Specific Frame?

Apr 7, 2005

i'm trying to do a simple thing: a site where the background fades in and out between areas... ...and i'm trying it for a week...and still have no idea on whow to do it. i've seen many and many tutorials but there's no information regarding to loading movies in a specific frame!(like "call"-calling a specific action script frame?) here's what i have: a main movie (1frame) with 5 layers: actions, menu, bgone, bgtwo and border. and my problem is making the interaction between those areas, since i can't make the menu load the movies in the specific frames,to the specific layers... perhaps i'm just trying to find the wrong answers, or is is impossible?

View 3 Replies

ActionScript 2.0 :: Load A Specific Frame Of External SWF?

May 21, 2003

hey there I posted several strings before and no response

I want to load a specific frame of external.swf into a main.swf

View 4 Replies

ActionScript 2.0 :: Load A Specific Image But When Run This It Gives An Error?

Mar 19, 2007

When I run this on my timeline it works fine

Code:
mcl.loadClip(Math.floor(Math.random() * 6) + ".jpg", this);

I changed the code so that it will load a specific image but when I run this it gives me an error.

Code:
mcl.loadClip(Math.floor("1.jpg", this);

This is the fucntion at the beginning of my movie, but don't need to change that just need to edit the above line...


Code:
var mcl:MovieClipLoader = new MovieClipLoader();

function onLoadInit(targ:MovieClip):Void
{[code].....

View 2 Replies

ActionScript 2.0 :: Can't Load Specific Childnode From XML File

May 27, 2009

im working on a flash file where im loading a title, description and image from an xml file.

im using this tutorial from Kirupa [URL] and have everything working fine. my only problem is I can't seem to figure out how to load a specific childnode when clicking a button. right now when the user clicks a button, it loads the next or previous childnode using this code

Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();

[Code]....

is there any way to target a specific childnode within the xml file? im using Flash CS3 AS2

View 3 Replies

ActionScript 2.0 :: Load Movie And Go To A Specific Frame?

Jul 22, 2004

I'm trying to build a full flash site. I have movieA (main movie) that loads the rest of the movies (movieB, movieC, movieD...). MovieA is the menu. When I want to "come back" from this movies to the main movie, I need to move the header to a specific frame of movieA, diferent depending on the movie I have previously loaded:

movieA: loadmovie (movieB, movieC, movieD...)
from movieB: loadmovie movie A (frame2)
from movieC: loadmovie movie A (frame3)
from movieD: loadmovie movie A (frame4)

Is it possible or when you load a movie you can only start playing in frame 1?

View 7 Replies







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