ActionScript 3.0 :: Loading An External .swf Then Referencing To It's Label?

Aug 25, 2008

I'm new with Actionscript and am currently working atbuilding a website. I've got a lot figured out so far but oneproblem I'm running into is when I try to load an external .swfusing the loader component and then reference it or try to point toit within my main .swf I can only load the "gallery.swf." throughmyLoader.contentPath = "gallery.swf";I'm trying to load it and then point to a specific label soit loads that frame or label. I've created separate labels for eachimage in my gallery so that when I point to them with AS, it knowswhich image to load. It worked when I had the gallery in the main.swf but when I used the loader component it didn't work.The AS I used that worked before I made a separate .swf andused a loader was:

on(release) {
_parent._parent._parent.photos_MC.gotoAndPlay("img1");
}

[code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Call External Swf And Loading On A Frame Label?

Oct 2, 2009

I have a button on my main timeline that calls an external swf file into an empty container movie. How do I load external swf file and play on a particular frame label?

View 6 Replies

Actionscript 3.0 :: Loading And Playing External Swf After Going To Frame Label?

Feb 8, 2011

I have a button on the main timeline. When clicking it, I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.

I've inserted the following code into the frame label "history" actionscript.

var myrequest_history:URLRequest=new URLRequest
("http://floramultimedia.com/musicGarden/main/swfs/slideshow1.swf");
var myloader_history:Loader=new Loader();
myloader_history.load(myrequest_history);

[Code]....

View 1 Replies

ActionScript 3.0 :: Calling External Swf And Loading On A Frame Label?

Oct 2, 2009

I have a button on my main timeline that calls an external swf file into an empty container movie. How do I load external swf file and play on a particular frame label? I want to load a file called original.swf and start playing on a frame label called wheels.

View 2 Replies

ActionScript 3.0 :: Flash Loading And Playing External Swf After Going To Frame Label?

Feb 7, 2011

I have a button on the main timeline. I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.

I've inserted the following code into the frame label "history" actionscript.

[Code]....

View 1 Replies

ActionScript 2.0 :: Referencing Frame Label Children?

Jul 24, 2011

I have this issue with action script I've written (AS2), it is simple movement code for an on-screen character.

I have a character set up with a hierarchy of nested movie clips and frame labels.

Main character MC (1 frame, no label)
|
Front/Side/Back pose MCs (several separate frames, with labels, no animations)
|
Animation MCs for single pose (e.g. idle, walk, crouch, etc) (several separate frames, with labels)

I want to reference the child frame labels with gotoAndStop ('Front.walk'), or similar...

Here is the code I have now:

keyListener = new Object();

keyListener.onKeyDown = function ()
{

[Code]....

The problem is, as soon as the character moves one direction and changes to the desired pose, when I try to go the opposite direction... the pose doesn't change to the opposite direction frame label. So it only works once, and stays on that child frame label.

Is there a problem with the way I'm referencing the child frame labels?

View 2 Replies

ActionScript 3.0 :: Referencing The Root Frame Label In A Switch Test Expression?

Sep 30, 2009

How do I reference the root frame label in a function for event dispatching using a switch statement.

SUMMARY: This is simple, but as I've stepped away from ActionScript for too long, I'm having trouble figuring out the proper test expression to reference the root timeline frame label (e.g., switch(the root frame label)).

Nothing i've tried works:
switch(this.label)://obviously this would look at the button timeline switch(event.root.label)://player says there is no "root" property ...

STRUCTURE: I have five MCs, one on each of five frames. I have a forward button and a back button. I created a switch statement to specify different actions, based on the root frame label. Frame labels are f1, f2, f3, f4, fend.

THE RELEVANT CODE on Frame one ("f1"):

Code:
stop();
nexter.addEventListener(MouseEvent.CLICK, onNexter);
nexter.buttonMode = true;

[Code]...

View 3 Replies

ActionScript 3.0 :: Referencing Stage From External Class

Feb 14, 2009

I'm having problems referencing the stage from an external class. I've tried :
Code:
stage.addEventListener(MouseEvent.MOUSE_UP, onUp, false,0,true);
And also
Code:
MovieClip(parent).addEventListener(MouseEvent.MOUSE_DOWN, onDown, false,0,true);
But no luck. Can I not do this? I'm making a pencil class that I want to be able to reuse. I also tried "this" and while it didn't throw and error, it didn't work either.

View 9 Replies

ActionScript 3.0 :: Referencing Variables/objects From External FLA Files?

Dec 1, 2010

I am trying to display in 'Reciever.swf' the value a shared object updated in 'TextSO.swf'. The following is my code for the Reciever

Reciever.as-----------------
package {
import flash.events.SyncEvent; import flash.events.NetStatusEvent; import flash.events.MouseEvent; import flash.net.SharedObject; import

[Code]....

I am getting an error that says that 'text_so' is an undefined property and that I can't access it. Yes, I have not declared 'text_so' in 'Reciever.as'. However it is the shared object instance from the 'Text_SO.as' file. How do I reference it from the 'Reciever.as' so that I won't get this error anymore?

View 1 Replies

Professional :: Referencing External Video Across Multiple Computers?

Dec 16, 2010

I have made a .swf that references an external .f4v .  The swf plays fine on my own computer, but does not play on a colleagues computer, or another computer which we tested.  The file is not for upload to web , it is for local playback.  I assume this is a file path issue, but I have tried many different things including specifying a path and then recreating the same directory structure on the other computer.  What am I missing?  The f4v file can playback on the colleagues computer (I did install ffdshow , although another tested mp4 also plays back fine) but not the .swf.  !

View 2 Replies

Flash Image Slideshow - Referencing External Files?

Feb 5, 2011

I'm working with a flash image slideshow and I'm having trouble getting it to read from my xml file for the captions, the same thing with the images. I've changed the paths on the as well as is there anything I'm missing, any other path I am supposed to change to read off of the correct XML file and image directory? Here's the link - [URL]

View 1 Replies

ActionScript 3.0 :: Referencing Variables / Objects From External FLA Files?

Dec 1, 2010

I am trying to display in 'Reciever.swf' the value a shared object updated in 'TextSO.swf' . The following is my code for the Reciever[code].,...

I am getting an error that says that 'text_so' is an undefined property and that I can't access it. Yes, I have not declared 'text_so' in 'Reciever.as'. However it is the shared object instance from the 'Text_SO.as' file. How do I reference it from the 'Reciever.as' so that I won't get this error anymore?

View 4 Replies

ActionScript 3.0 :: Referencing Object On Stage From An External Class?

Sep 6, 2011

I have a media player that I am codging together, one that will play either videos or MP3s depending on the variables it is passed. The video player part works fine. The MP3 player controls are all actual physical MCs on the stage; each one has its own AS class file as part of the package, but there is also a lot of AS that is happening in the main FLA as well. Messy, I know, but it mostly works great.

The MC on the stage in the main FLA is properly linked to the class file via Actionscript linkage, and the control itself works. However, I am trying to make some aspects of the control respond to variables that are set within the AS on the timeline of the main FLA, and I cannot seem to pass values to the control no matter what I do.

[Code]....

View 2 Replies

Actionscript 3.0 :: Referencing The Timeline Of An External/library Loaded Swf?

Oct 25, 2010

So I am using the following code to load an external swf and am trying to reference the timeline of the loaded movie i.e. a frame label. Say I wanted to do a simple gotoAndPlay what is the syntax? I would use (myloader.gotoAndPlay ("framelabel") this seems like an obvious answer but doesn't seem to work for me.

Code: Select allfunction yesClick(event:MouseEvent){
/////// Loader (Loads External SWF lesson file) **********************************
var myLoader1:Loader = new Loader();

[code]........

View 1 Replies

ActionScript 2.0 :: Referencing/loading A Dynamically Created Movieclip Variable?

May 23, 2008

I am trying to load an image in to a dynamically created movieclip, which is:

_root.mySlider."+stripX2(band[i][0])+i

but I can't seem to reference it. I can load the movie into _root.mySlider, but if I add the dynamic element (stripX2(band[i][0])+i) without quotes it it doesn't load. If I load with quotes i.e.

"_root.mySlider."+stripX2(band[i][0])+i

flash doesn't allow strings in movieClip variables.The code I'm using is belowm, it's the second to last line thats causing the problem:

var loadListener:Object = new Object();
loadListener.onLoadComplete = function(target_mc:MovieClip):Void {
trace(">> target_mc._width: "+target_mc._width);[code]......

View 2 Replies

ActionScript 3.0 :: Flash Button Class Referencing/controlling External MC?

Feb 2, 2011

I have this following class attached to some of my buttons to simply control the roll over and out states, as well as the click event. But i want to use the same class on my buttons but would like to control a movieclip outside of the button somewhere else on the stage etc.

put simply: Clicking my button 'moveLeft' will move a movieclip left let say:

[Code]...

View 2 Replies

ActionScript 3.0 :: Flash Referencing Object On Stage From An External Class?

Sep 6, 2011

I have a media player that I am codging together, one that will play either videos or MP3s depending on the variables it is passed. The video player part works fine. The MP3 player controls are all actual physical MCs on the stage; each one has its own AS class file as part of the package, but there is also a lot of AS that is happening in the main FLA as well. Messy, I know, but it mostly works great.The MC on the stage in the main FLA is properly linked to the class file via Actionscript linkage, and the control itself worksHowever, I am trying to make some aspects of the control respond to variables that are set within the AS on the timeline of the main FLA, and I cannot seem to pass values to the control no matter what I do.The following variable is set in the main AS:Code:var notPlayedYet:Boolean = true;I also have some flashVars being passed in from the html, and these I can reference with no trouble from the main AS - the relevant one is:

View 1 Replies

Targeting Label In External SWF?

Feb 12, 2010

I have 2 SWF (swf1 and swf2). I want to load swf 2 into 1, but getting it start on a label or a particular frame.I use this to load SWF 2

Code:

on(release){
loadMovie("movie2.swf",0);
}

How do i target it to start from a label in a scene from movie2.swf?

View 3 Replies

ActionScript 3.0 :: Loading Documents Within A Label?

May 25, 2011

Is there any way to load Word Documents, PowerPoints, and .pdf files within a label using AS3?

View 1 Replies

ActionScript 3.0 :: Loading SWF At Certain Frame Label

Nov 24, 2009

This code works great to pull up a swf at a certain frame label. But if I reuse it someplace else to pull up a different swf, I get errors?
var req:URLRequest = new URLRequest ("scene1.swf");
var loader:Loader = new Loader();
loader.load(req);
addChild(loader);

View 1 Replies

ActionScript 3.0 :: Targeting Frame Label In An External Swf?

May 14, 2010

I have 2 swfs. One called "loves.swf" that contains 4 buttons. When you click on one of the buttons, it opens up an with an external swf, called "about_loves.swf". I would like to make each button go to a different frame labeled in my external swf. Currently, when you click on any button (btn1, btn2, btn3, btn4), they just play frame 1 from the external swf, "about_loves.swf".I would like btn2 to play frame 2 of "about_loves.swf", btn3 to play frame 3 of "about_loves.swf" and btn4 to play frame 4 of "about_loves.swf".here is my code so far:

// these two lines are needed only once, so here they are:
import local.display.ShadowBox;
ShadowBox.initialize(stage);

[code].....

View 2 Replies

Flex :: Label - External Data In TileList?

Mar 12, 2010

I'm working for the first time with a TileList and an itemRenderer and I'm having a bit of trouble getting the information from my array collection to display Here's what I've got

private function loadData():void{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlConn;[code].....

how I go about pulling the information from the array and putting it into labels like username, userjob, userbio ect, Inside the TitleList and itemRenderer.

View 1 Replies

ActionScript 2.0 :: Button To External SWF Frame Label?

Jun 22, 2007

I have a scroll menu as a ScrollPane component with menu buttons which take the user to a spacific frame lable within an external SWF (which is loaded form a main SWF already) My code for the botton is:

on (release){
_root.badges.gotoAndPlay("executive");
}

badges is the SWF name loaded as external SWF from a main stage (call this main.SWF) where the menu sits as well. "executive" is the frame label I want the timeline of badges.SWF to go to when you click the button, but this does not work?

It was working when I have this on another flash file. I recently had to move this into another flash file its still the same setup as in the other flash file, there is a loader clip and menu on the main timeline of my main.SWF and all it has to do is go to a specific frame label within the loaded external SWF from the main timeline of the main SWF.

View 1 Replies

ActionScript 3 :: Flex 4 : Add Text/Label To An Image Loading?

May 18, 2011

I load an image from a url and add it to the stage.

I need a way to add some text to the image before loading it to the stage !

NOTE: add text over the image after it has been loaded

View 1 Replies

ActionScript 2.0 :: Load Specific Frame Label From External Swf

Dec 24, 2009

I'm trying to access a specific frame label in an externally loaded swf. I have the external swf loading, but I'm not sure how to access the specific frame label after release. This is an example of the code on my external swf timeline:

[Code]....

View 3 Replies

ActionScript 3.0 :: Load And Play External Swf After Going To Frame Label?

Feb 8, 2011

I have a button on the main timeline. When clicking it, I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.[code]...

View 1 Replies

Actionscript 2.0 :: Calling External Files With Frame Label Name?

Aug 31, 2010

I am trying to load external files from flash but I also need to do it using a variable that gets the frame label which is the same as the file name something like:

var myVariable:String = frame.get(framelabel);

and then use this code each time I get to a different frame label to load an external file for example when I am on frame "Boy", It loads Boy.jpg or Boy.txt.

View 1 Replies

CS3 - Load An External Flash Movie At A Specific Frame Or Label?

Jun 10, 2009

I am using Flash CS3, Actionscript 2.

I need to load an external movie file into the root of my main movie, so it replaces the main movie, and when it loads, it loads at a specific frame (or label)of that newly loaded movie.

Explanation: My main movie, lets call it "Main.swf", has a button which is part of a drop down (tree) list. When you click on the button, I want to load my second movie called "bearings.swf", and to immediately go to frame #2 of the "bearings.swf" movie.

View 4 Replies

ActionScript 3.0 :: Link From Embedded External HTML File To A Label In Flash?

Aug 16, 2010

I got my HTML embedded in my flash file, finally!But now I want some parts of the text that is in the HTML file to link to a specific label in flash itself.What variable can I use for this? or even a Href link?

View 2 Replies

ActionScript 2.0 :: Dynamic Text+links - Asfunction - Accede To A Specific Label Of An External Swf?

Oct 13, 2004

I am doing a dynamical menu they are scroll, with links, I am using asfunction. If I call an external swf:

[Code]....

But, How I do to accede to a specific label of an external swf?? I want that it loads the animation and begin to it turns from the label that I indicate.

View 2 Replies







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