IDE :: Loading An External SWF And Going To Specific Coordinates

Mar 8, 2009

I have menu.swf which loads an external SWF (longmenu.swf)longmenu.swf has a long background on stage, which scrolls according to what the user clicks. It works fine on it's own with tweenLite. But what i need to do is to have menu.swf controls to which part of the background it scrolls or appears at once an item on menu.swf is clicked.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Loading Named Buttons Onto Stage With Coordinates From An External File

Jan 15, 2005

i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.

how would i go about this, since the external file would be read as a string by flash?

View 3 Replies

ActionScript 2.0 :: Loading Named Buttons Onto Stage With Coordinates From An External File?

Jan 15, 2005

i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.how would i go about this, since the external file would be read as a string by flash?

View 3 Replies

Loading A Specific Frame In An External SWF

Sep 13, 2009

I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.

View 2 Replies

ActionScript 3.0 :: Go To Specific Frame When Loading External SWF?

Apr 20, 2009

I have a main movie which loads various external SWF's. What I would like to achieve is that when returning to the main movie (using URLRequest & Loader class) that the main movie starts at specific frame.[code]I believe that the way global variables work in AS3 is very different. Is it true that I need to achieve this via an external class ?

View 5 Replies

ActionScript 3.0 :: Loading External Swf At Specific Frame?

Oct 1, 2009

Using AS3 how can you load an external swf file at a specific frame of the newly loaded swf file.Using the AS3 loader class I have no problem loading an external image or swf movie onto the stage.But what I want to do is when the swf is loaded, go to the second frame (labeled "two") of that loaded swf.

For example, My main movie "main.swf" is blank.My external movie "loadMe.swf" has a circle on frame one and a square on frame 2.On the main movie (main.swf) is a button and when you click on it I want the square on frame two of "loadMe.swf" to appear.

View 5 Replies

ActionScript 3.0 :: Loading A External Swf Then Go To A Specific Frame?

Sep 24, 2009

I'm made a dropdown menu and i have resolved the navigation for the main buttons, but i have problems with the menu sub buttons , my question is: After the movie is loaded, how can i make the sub button go to specific frame. This is the script:

[Code]...

View 4 Replies

ActionScript 3.0 :: Loading External SWF And Going To A Specific Part Of The Background?

Apr 22, 2009

I have to swf files.

One is menu.swf and the other is long.swf

Menu.swf has basically a menu and loads long.swf in to it. Long.swf is a file with a very long background, only part of it is displayed at a time.

My question is quite basic- how do I get the menu.swf to load long.swf and go directly to a specific part of the background.

I can get long.swf to go directly where I need it with its internal navigation by using tweenlight, but not from menu.swf.

View 2 Replies

ActionScript 2.0 :: Loading External Files Into A Specific Sized Movieclip?

Aug 16, 2009

I'm trying to load an external swf file into a specific sized movieclip. This is what I have written:

loadMovie("example1.swf", "pane_mc");

It doesn't work when I test it. Do I have to specify the dimensions of the movieclip? If so how do I do that?

View 1 Replies

ActionScript 2.0 :: Loading External Movies For A Specific Amount Of Time?

Oct 30, 2006

I used the "loading random movie" tutorial (http:url....) to load 3 external movies. It worked great.But now, my client wants the movies to load one after the other. Each movie is interactive, but requires you to click on it, so it plays an intro and stops. Each movie is built exactly alike. So, I would like a movie to play, then stop for a certain length of time (long enough for the user to read some text). If after that length of time, the user does not intereact with the movie, then I want the next movie to play in it's place. If the user does interact with the movie, I want it to just stop at that movie.

View 12 Replies

ActionScript 2.0 :: Loading Specific Frame Of External .swf Into Main Movie?

Aug 3, 2003

how to load frame label "one" of external.swf into main movie.

buton.onPress = function () { loadMovie("external.swf.......??

View 12 Replies

Stop Moving At Specific X Coordinates?

Nov 19, 2009

Im going to attatch the fla on here...I am also going to give you the script viewable here...im completely a beginner so i made my self notes
also this is not all my coding im just learning off of it to create my own project... What coding would i use to tell the mc to stop scrolling once it reaches a certain x coordinate? for example x=0 (left side of stage) or x= -484 which is when right side of picture is at right side of stage... and can i setup math for it to automatically determine the correct x coordinate (based off mc width) to stop at?? if there is easier scripting to do the same....fill me in
 
oh and x is off of the stage typically...this is panoramic pics im scrolling

[Code].....

View 2 Replies

ActionScript 2.0 :: Having Clip Appear At Specific X,y Coordinates?

Jul 16, 2007

I have a sinlge movie clip that I need to have appear at specific x,y coordinates during the course of the entire movie. I could do this the hard way with the timeline but I was wondering if there was an action script methid of doing this.

View 3 Replies

Flash :: Add Image From Library At Specific Coordinates?

Apr 20, 2011

I have 500x500px images in my Library that I want to load to a specific set of coordinates. I've found various hints on how to insert images programatically, but none state how to insert to a specific location.Currently, my code goes something like this:

var image:Bitmap;
switch(conStyle){
case 4:
var chart:IF= new IF(); //Flash CS5 doesn't need the dimensions passed on
image= new Bitmap(IF);
}

However, this sets the default location to the upper left corner. How can I set the xy coordinates for the image to be displayed at?

View 1 Replies

ActionScript 2.0 :: A Specific Spot With Unspecific Coordinates?

Jul 23, 2004

I modified the falling snow to move upwards to make bubbles, but now I want them to come from a specific spot from movie clip which is moving constantly and roating. They also have to stay within the bounds of the water. I tried placing it on the spot I want on the movie clip, and alter the code like so:

Code:
onClipEvent (load) {
//variables that will modify the rising bubbles

[code]....

View 1 Replies

ActionScript 2.0 :: A Specific Spot With Unspecific Coordinates

Jul 23, 2004

I modified the falling snow to move upwards to make bubbles, but now I want them to come from a specific spot from movie clip which is moving constantly and roating. They also have to stay within the bounds of the water.I tried placing it on the spot I want on the movie clip, and alter the code like so[code]...

View 1 Replies

Flex :: Place An Image In Specific Coordinates On Canvas?

Nov 30, 2009

I know that the question may seem very easy. I am trying to display an image on canvas.I need to do it in AS, and also I need to locate image in specific coordinates.

View 2 Replies

ActionScript 2.0 :: Menu - Give A Specific _x And _y Coordinates For The Menus To Move At When The Other One Is Clicked

Aug 18, 2004

for a menu i use 3 MCs, when you click one of them, the two others MCs will make place for the 'options' of the clicked menu. What i want to do is give a specific _x and _y coordinates for the menus to move at when the other one is clicked (start and arrival, and have a motion tween between them). see what i mean?

View 4 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

ActionScript 2.0 :: Loading Specific Frames Within Specific Movies

Dec 5, 2004

cutting to the chase, Basically im loading a movie externally using this code...

Code:

on (release) {
if (S_Init == Number(S_Init)) {
loadMovieNum("s_menu.swf", _root.S_Init);

[Code].....

View 4 Replies

ActionScript 2.0 :: Loading Specific Frames Within Specific Movies?

Dec 5, 2004

cutting to the chase, Basically im loading a movie externally using this code...

Code:
on (release) {
if (S_Init == Number(S_Init)) {

[code].....

View 4 Replies

Actionscript 3.0 :: Give Xy Coordinates To Load External Swf Through Xml?

Aug 14, 2011

how to give xy coordinates to the target in an xml, to load an extenal swf in an exact position?hat I want to do is load an external swf file and give it xy coordinates, but the thing is the external swf is loaded through xml, so I can't use as3 to give the coordinates

View 1 Replies

ActionScript 2.0 :: [fmx04] Loading Images Randomly And Put Them In _x And _y Coordinates?

Jul 31, 2004

problem with loading images randomly and putting them in the right _x and _y coordinates.I have a swf file with in the first frame a button with this code :

on (release) {
filename = ["image-01.jpg", "image-02.jpg", "image-03.jpg"];
path = "images/";

[code].....

View 1 Replies

ActionScript 2.0 :: [fmx04] Loading Images Randomly And Put Them In _x And _y Coordinates

Jul 31, 2004

I have a problem with loading images randomly and putting them in the right _x and _y coordinates. I have a swf file with in the first frame a button with this code :

on (release) {
filename = ["image-01.jpg", "image-02.jpg", "image-03.jpg"];
path = "images/";
i = filename.length;

[Code]....

the image gets loaded and placed correctly when played from the harddisk. the problem starts when i upload the swf to the internet, then the image won't be centered but the left upper point of the image is placed at x=640 and y=230

View 1 Replies

ActionScript 2.0 :: Make A Movieclip (or Button) Appear On Coordinates Randomly When Loading Flash?

Nov 25, 2010

i can't seem to figure out this:

I have 3 coordinates on a stage.
Coordinate1 (x50;y50);
Coordinate2 (x150;y150);
Coordinate3 (x250;y250);

How to make a movieclip (or button) appear on one of theese coordinates randomly when loading flash?

Coordinates don't change but movieclip (or button) goes to one of theese positions upon flash movie starting.

View 6 Replies

ActionScript 3.0 :: Importing An External Image But By Default The Anchor Point (coordinates 0,0)?

Oct 19, 2010

I'm importing an external image, but by default the anchor point (coordinates 0,0) for the movieclip it loads into is the top left,this is obviously an issue if I want to rotate, as I need coordinates (0,0) to be the centre of the image, not the top left?

View 2 Replies

Actionscript 3 :: Convert Global Coordinates To Local Coordinates Of A UIComplenent In Flex Project?

Dec 19, 2011

I was trying to convert global coordinates to local coordinates of a UIComplenent in my flex project using below code using below code

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point

uic is UIComponent in which I have subclass of Sprite for drawing something I have set the sprite's mouseEnabled and mouseChildren to false to not interrupt the mouse event. above code is within uic's mousemove event where I was tracing the gp and lp gp was giving correct value and suprisingly lp was giving negetive values. when I move the move to the top left corner of uic i expect lp to be 0,0 but it is giving the -width of of uic. I broke my head for hours and ended up finding an alternate by using offsets. Infact my original code was much simpler like this which was same issue

var lp:Point = new Point(e.localX,e.localY);

I am not sure what exactly is causing this problem. the workaround had lot of issues and it creating a mess in my rest of the algorithms.Just now I found even more interesting thing (which is actually weird). for some reason I went and create a new lp2

var lp2:Point = new Point(e.localX,e.localY);

now surprisingly it was giving correct values as expected and I went back and changed the code as

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point
var lp2:Point = new Point(e.localX,e.localY);
var lp2:Point = uic.globalToLocal(gp);

now it is expected to have all the lp, lp2 and lp3 variables to be same but weiredly lp two is giving wrong value and lp2 and lp3 were giving correct. I am suspecting using the variable lp has something to do. I am not sure about that but above proves it so right now I am using lp2.

View 1 Replies

ActionScript 2.0 :: Converts 3d Coordinates To 2d Coordinates - Difference Between MoveTo And LineTo?

May 21, 2007

I was reading the 'Isometric Transformations' tutorial by Danko Kozar and I have a few questions. I understand what all the code does, but not how it does it. First of all, how does the following code work:

transforms x,y,z coordinates into Flash x coordinate
xFla = function (x, y, z) {
// cartesian coordinates[code].....

I understand that it converts 3d coordinates to 2d coordinates, but I don't understand how. What numbers whould be punched into x, y, and z to acquire certain desired effects?Also, what's the difference between moveTo and lineTo:

red line
style(1, "0xFF0000", 100);
plot(0, 0, 0);
draw(200, 0, 0);

View 4 Replies

ActionScript 3.0 :: Converting Papervision Coordinates Into Cartesian 2D Coordinates?

May 3, 2010

Im making a little app in flash using papervision I want to make a regular movieClip show up in the same place as a papervision object. The coordinates seem like perspective is affecting the number displayed.

View 2 Replies

Loading Video Into Specific Area?

Mar 18, 2009

how do I load video into the movie area like in the pic? where I can click on a box on bottom and the video for that will load in movie area?

View 1 Replies







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