ActionScript 3.0 :: Calling GotoAndPlay From External AS

Apr 26, 2011

I have two files, the regular .fla file and an external .as file.Basicly at one point in the .as file I get information of what tag to send the timeline and play and have to use the function gotoAndPlay from the timeline in the .fla file.This is the .as file:

import flash.display.Sprite;
import flash.events.Event;
import flash.events.IOErrorEvent;

[Code].....

I don't know how to redirect to wherever I want in the timeline from the .as file.

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Calling GotoAndPlay From External File?

Apr 27, 2011

I have two files, the regular .fla file and an external .as file.Basicly at one point in the .as file I get information of what tag to send the timeline and play and have to use the function gotoAndPlay from the timeline in the .fla file.

This is the .as file:

Code:
import flash.display.Sprite;
import flash.events.Event;
import flash.events.IOErrorEvent;

[code]....

View 1 Replies

ActionScript 3.0 :: External SWF GotoAndPlay From External Protected Function?

Jan 27, 2010

I have a problem I just can't seem to solve.I have an FLA .. (augmented.fla)I have a movieclip inside of augmented.fla with a class name of myMaterial that has the following code on it's timeline.

ActionScript Code:
var request:URLRequest = new
URLRequest("main.swf");

[code].....

View 0 Replies

ActionScript 3.0 :: GotoAndPlay Frame In External Swf

May 19, 2010

Im going to make a page in flash as3, and now I have build the most of it. I will now load an external swf into the main swf, to save people for too must waiting time... my issue with normal words: I want to have a number of buttons. When you click on button 1 the first external swf load with a fade animation. Now when I would see whats behind button 2, is should animate the first swf out and remove it from the stage, to save wating time.... and the same should happend if i have 5 menu buttons...

[Code]...

View 0 Replies

ActionScript 2.0 :: Put A Gotoandplay() In Mc Of The External Movie?

May 26, 2003

I have this situation:

- main movie
- external movie
- 1 mc into external movie

I load the external movie into main movie and i want to put a gotoandplay() in mc of the external movie, to the external, like this:

[AS]on (release) {
_root.gotoAndPlay (45);
}
[/AS]

but it takes action in the main movie and not in external movie..

View 3 Replies

ActionScript 2.0 :: External Nav SWF - GotoAndPlay Frame

Oct 9, 2008

I have two files
main.swf & nav.swf.
In main.swf I have two frames on Layer1 "s1" & "s2"
On Layer2 I used the following scripts to load nav.swf

PHP Code:
loadMovieNum("nav.swf", 10);
Which works perfectly fine.

But on nav.swf ( external file ) I have two buttons on the stage. On the 1st button I have used the following script to go to "s1" frame which is on the main.swf
PHP Code:
on (release) { _root.gotoAndPlay("s1");}

I have used the following script to go to "s2" frame which is on the main.swf
PHP Code:
on (release) { _root.gotoAndPlay("s2");}
Which seems to be not working fine. I have also attached those two fla files.

View 3 Replies

ActionScript 1/2 :: GotoAndPlay Next Frame After External FLV Finishes

Jul 31, 2009

The subject title pretty much tells it all. I've got a flash project where a video component plays an external flv file. I've got a different flv file loaded at each keyframe. Right now the flv plays and then it stops and waits for you to click on the next video you want to watch. I want it to automatically go to the next keyframe and start the next video.

View 5 Replies

ActionScript 2.0 :: GotoAndplay In Main From External .swf File?

Apr 18, 2003

Can you have a/s in the external swf that runs a 'gotoAndplay' in the main movie? I want the swf to be halfway through when the picture on my main swf changes.~ Seretha(I can't load the picture in with the external swf because they have to be unloaded at different times and the picture HAS to load on a level under the external swf.)

View 14 Replies

ActionScript 1/2 :: GotoAndPlay Next Frame After External Flv Finishes?

Jul 28, 2003

The subject title pretty much tells it all. I've got a flash project where a video component plays an external flv file. I've got a different flv file loaded at each keyframe. Right now the flv plays and then it stops and waits for you to click on the next video you want to watch

View 1 Replies

ActionScript 2.0 :: Playing The ENTIRE External .flv Before GotoAndPlay?

Apr 7, 2011

I have tried a number of different suggestions like using eventListeners and cue points embedded into my external .flvs. But, I still cannot get my code written properly to allow for the entire external .flv to play out, before it goes on to my following gotoAndPlay script.

View 5 Replies

ActionScript 3.0 :: GotoAndPlay Specific Frame In External Swf From Main Swf?

Jul 27, 2011

I have a main swf that loads 2 external swfs. I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)

In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff. NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.

However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.

[Code]...

View 9 Replies

ActionScript 2.0 :: Goto And Play Scene - _root.gotoandplay And Even Scene1.gotoandplay Won't Work?

Nov 9, 2007

For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;

[Code]...

View 1 Replies

ActionScript 3.0 :: Calling The External XML?

Mar 16, 2009

I have a xml file placed in server, i want to call in my flash file using varXml.Load("\servernamefolderfilename") i tried this way but it doesn't understand UNC path.

View 1 Replies

ActionScript 3.0 :: Calling From An External Swf?

Jul 22, 2009

Im loading in a swf file - which works fine. However, I cant seem to call a mc from the external swf to the swf that calls in the external.

I tired pointing to a mc from the external swf using: root.inv_1.x=345; However, this doesn't work...

Heres how i'm calling in the swf:

ActionScript Code:
var Xpos:Number = 0;
var Ypos:Number = 200;

[Code].....

View 2 Replies

ActionScript 2.0 :: Calling External SWF - XML Does Not Appear

Jan 22, 2005

I am with a problem, I have my main file that has the normal menu that he would be principal.swf, I is using this to call the other .swf that he would be noticias.swf, that would have a project of the news in xml.
Code:
// AS do button menu 2 chamar noticias.swf.
menu2_mc.onPress = function (){
loadMovie("noticias.swf", 1);
};

What I am using in xml is this
Code:
// noticias xml
stop ();
// System.useCodepage=true
// call xml e css
var estilo = new TextField.StyleSheet ();
[URL]

My problem is following, when I compels my file noticias.swf it appears normal with the news, but when I am in the file principal.swf and click in button 2 menu it brings me the file noticias.swf but without xml, xml does not appear no way.

View 2 Replies

ActionScript 3.0 :: Calling An External Function?

Jun 30, 2009

Here's a coding question for the guru's I've written a simple function that will clear a form.  I want to call this function from another function (4 of them to be exact).  I could copy and paste code multiple times and everything will work.  But where's the fun in that?  There's something to be said about clean code.
 
For sake of explanation, the tween are working 4 layers that are on top of each other (don't ask )
 
Code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Calling Swf From External Server

Mar 8, 2010

I need to call an XML file from an external server and don't know how to place within the source html code.

View 9 Replies

Professional :: Calling External As Classes?

Apr 2, 2010

If I have an external .as file that contains a function within a public class, how do I call it?I have succesfully used examples, but don't understand the way they are addressed, and get errors when I try to create my own.So if my .as file named external.as contains a public class named exampleClass, which contains a function named doThis(), is it called in CS4 using..

exampleClass.doThis();
or external.doThis();
If it's just exampleClass.doThis(); - how does Flash know where to look for it without

[code].....

View 1 Replies

ActionScript 2.0 :: Calling An External Swf Duplicates The Swf

Jan 22, 2009

[URL]

go to media>> aikido pictures then click some other menu option, then click media>> aikido pictures again, you will see that the main menu of the pictures is not the same, it is repeating itself adding itself? how to prevent to do it, click on select view at the bottom and you will see two select gallery and two view images

View 0 Replies

ActionScript 3.0 :: Calling External XML File?

Jul 9, 2009

I'm trying to drop in a quick mp3 player into a site that creates a playlist from an XML (to the folks at ClickPopMedia for the basics of the code). It works fine in the Flash testing environment, but when I put it online, or even on my local testing server, the playlist doesn't load ,just an empty space where the List component should be. I get this error in the debugger in the Flash environment even thought it works (C:htdocs is my localhost):Quote:Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.URL:file:///music.xmlat Mp3Main()[C:htdocsTrafficEntertainmentTE_sitephpsitemus icPlayerMp3Main.as:26]I'm assuming it's some sort of pathname or URLRequest issue but Every file involved is in the same folder for now. Do I need to do something different because it streams?The AS (only a portion):

ActionScript Code:
package {
import flash.events.*;

[code].....

View 1 Replies

Beginner Calling External File

Apr 13, 2009

I am struggling with what seems to be a simple problem. Searched and can't find the answer, it seems. I have an FLA I said I'd edit for a friend... just a few simple text edits. However, when I go to publish the movie, it makes a call to an external "State Manager" that it can't find, so the movie loops endlessly. Here is the actionscript: Code: Select allimport com.exanimo.managers.StateManager;

So I'm guessing it's looking find that at that domain. I guess that's the doing of the original programmer. However, I have noticed that there is a StateManager.js file on the webserver in the same directory where the SWF resides. Have I received an old FLA that pointed externally instead of to the local js manager? How can I change the syntax so that it finds the state manager locally?

View 1 Replies

ActionScript 2.0 :: Calling External Video?

Jun 24, 2005

is it possible to load a video (quicktime, mpeg, etc) into an empty movie clip in flash or do you have to import the video into the library?what i would want to do is call a video file, that would change or be overwritten on a regular basis, to play in an empty clip. i would want to be able to do this without having to REimport the video everytime

View 3 Replies

ActionScript 2.0 :: Calling Functions From External SWF'S?

Aug 19, 2007

its a site about interior design. my job is to add some code to do something. i checked the code and his approach is not so good.. he's coding inside objects and frames at the same time. (ive read many actionscript books and this is a really bad practice). Here's the problem... he wants this to be implemented in the site...1.) in the gallery there is a scrolling thumbnails, he wants this to pause about 4 seconds then it will start to scroll..(ive already fixed this by creating a function interval.

Here is where my problem is...2.) When you click the thumbnail, the enlarged view will pop up.. the enalarged view are external swfs... the client wants that when you click on the thumbnail, the scrolling will stop and the external popup enlarged image will come out...this external swf has an exit button to go back to the main gallery window which is another swf... so the client wants that when you hit exit from the external swf popup window, the scrolling will resume.... im having a hard time figuring this out because i dont know how to call a function from an external swf to the main movie (the gallery page) Ill post the fla of main movie, gallery and a single external swf link of the thumbnail. just click on the first picture that will appear on the gallery

View 1 Replies

ActionScript 2.0 :: Banner, Calling An External Video?

Jul 3, 2009

i'm making a banner, which needs to be under 25ki'd like to use a video. tell me the best way to call a .flv into my .swf?

View 1 Replies

Professional :: Calling Swf File From External Server?

Mar 11, 2010

I am working on a Vignette platform that doesn't support XML, so was told to place my swf file on an external server andcall it from that server in the html code. I have never done this before and need detailed instructions on how to get this executed

View 6 Replies

ActionScript 2.0 :: Calling An External Swf Resizes The Parent Swf

Jan 22, 2009

[URL]

go to media >> aikido pictures

I am using this screen resolution: 1024 x 768

the whole website seems to work fine, but when I change my resolution to a higher resolution, everything works fine until I go to media >> aikido pictures, and then the whole parent swf is resized to a smaller size but the child swf is still filling the screen.

View 4 Replies

ActionScript 3.0 :: Calling An External Swf And Going Full Screen

Oct 1, 2009

im trying to make a swf where when i click a button it calls an external swf and then goes full screen.

View 6 Replies

ActionScript 3.0 :: Flash Player 9.0 When Calling External JS?

Nov 23, 2010

My flash works fine on every platform and every better known browser. However, now I have a small issue on flash 9.0 player, and looks like the main problem is with calling external javascript using externalinterface.Every time I call it for div resizing which resize my flash stage, flash "jumps" or "flickers".I`m not sure what could cause this, but it surely happens only when I use externalinterface and call outside JS F-N.

View 2 Replies

ActionScript 3.0 :: Closing The Parent Swf When Calling The External Swf

Feb 11, 2011

I have created a flash movie for displaying several videos. Also it has a first 'menu' flash movie which will call this video displaying swf after checking some Identifiers in 'menu'.

I am using code like this to call video displaying swf. Inside Menu.fla I wrote the below code to call CFStarVideoAS.swf.

var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("CFStarVideoAS.swf");
mLoader.contentLoaderInfo.addEventListener(Event.C OMPLETE, onCompleteHandler);
mLoader.load(mRequest);
stage.addChild(mLoader);

It loads the other movie but both movies are displaying together.

I have to unload Menu.swf, which is the first swf running.

My colleagues were using unloadMovieNum(0) with as1.

I tried mLoader.unload for a trial in as3 but not works. I read from some article that unload will work but don't know how and where to insert it.

View 0 Replies

ActionScript 3.0 :: Calling Function In Parent From External SWF?

Mar 17, 2009

I want to call a function in my parent movie from my external swf wich is loaded through a loader. Can anyone give me a nudge

View 4 Replies







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