ActionScript 3.0 :: Control An External Instance?

Nov 17, 2009

[code]...

which controls a component instance, i want to use this code in a button on another swf file, how can i do this?, is posible to use a statement, i do not understand the concept of target path yet.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Control Instance Name Dynamically?

Jul 19, 2009

I have 100 buttons, named k1 till k100.I don't want any code inside the button.I need to make the buttons invisible when pressed.I get a currentframe back from something else (example 22) and at that moment I want k22 to be invisible (k22._visible = 0)

I tried:
aa = k;
bb = 22;
cc = k+22;
cc._visible = 0;

also tried as string "k" "22" but it doesn't work

cc = k22;
cc._visible = 0;

works but I need to make it work from kk+22;

View 3 Replies

ActionScript 2.0 :: Control Many Movieclip. No Instance Name?

Jul 13, 2011

i have lots of movieclips in different frames and i must control them to go frame 2. i can't use

Code:

movieclipname.gotoAndStop(2);

because they don't have instance name and there are over 1000 movieclips.what would be best way to do that

View 1 Replies

ActionScript 3.0 :: Create A Textfield Instance To Control It?

Apr 14, 2011

I am using this function to create a textfield, but i can't control it i like to hide it when a cubes rotation is completed[code]...

View 2 Replies

ActionScript 3.0 :: Using Loader To Load An External Swf And Control The External Swf?

Nov 17, 2010

as3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.

[Code]...

View 3 Replies

ActionScript 2.0 :: Control(Play/Pause) The Flv Playback Instance(s) With My Existing Icons?

Feb 3, 2011

I'm making a demo project for myself to learn. The project is somewhat similar to "The Story of Stuff" website.But I making this demo and going step by step. I have a small working project but the video clips are embedded and now I'm launching them externally using the flv playback component.I have only made the very first video clip external that is loaded in using the component. The rest of the clips are embedded.

As you can see I made this so when the picture icons appear and when you click on one the video pauses and when you click the close button on the small window that pops up the video resumes.(un-pause)

Basic time line controls. (Linear)

But of course this does not work when I load the clip externally using the flv playback component.My question is , how can I control (Play/Pause) the flv playback instance(s) with my existing icons?

View 1 Replies

ActionScript 3.0 :: Global Timer Control - Remove Instance Refs From Array?

Sep 15, 2008

I'm writing a video game and I have used timers all over the place to make everything go. Now I want to be able to pause the game, completely. Meaning, I need to stop and start all timer instances at once, or globally. So I created a Timer subclass called CustomTimer, put some statics in there, came up with the attached code. Now my problem is that I'm pretty sure I've created a memory leak, in that the instances array will just grow and wont allow or gc. So, my question is, is there an "onDestroy()" method or somesuch, that I can override, and use that moment to remove instance refs from the instances array? Or, is there a smarter way to do this? an application object with a pause method perhaps?

View 11 Replies

ActionScript 2.0 :: Control An External SWF From From An External SWF

Jun 20, 2011

I usually wouldn't post on here as I like to find the answer myself, but after looking through Google literally all day I'm at the end of my tether, so I'm going to impose on you all and ask. This is the situation;

[Code]...

View 7 Replies

ActionScript 2.0 :: Objects - XML - Creating A New Instance Of An Object That Uses An Identical Name To An Older Instance Delete The Previous Instance?

Mar 20, 2009

Does creating a new instance of an Object that uses an identical name to an older instance, delete the previous instance? Or should the original instance be deleted first? The code uses a ridiculous amount of XML vars. Isn't it less memory intensive to parse the XML and save the properties to an Object, and then delete the XML Object, rather than keep the XML Object around and reference it's child nodes directly? Is it better form to break up a huge XML file (>600lines/3200vars) into smaller chunks?

View 1 Replies

IDE :: Control An External SWF?

Mar 21, 2010

Is it possible to load an external SWF and control is with play/pause buttons, seekbar, and volume bar?Basically it would be something like this:controller.swf - this would load the external swf file and control itmovie.swf - this is the actual content that I'd like to control

View 1 Replies

ActionScript 3.0 :: Instance Name Of Loaded External Swf?

Jun 24, 2009

I have successfully loaded an external swf. When load is complete, I add the loader target content to a movieclip but I've got problem accessign it after.

ActionScript Code:
// siteLoaderComplete
function siteLoaderComplete(e:Event)
{

[Code].....

The only problem is that it that right now, it add a child with a instance name of 'instance5' in site. But how can I change 'instance5' for another term like 'myContent'??

I need to be able to access content from the loaded swf.

View 1 Replies

ActionScript 1/2 :: Control Mc With External SWF?

Jul 3, 2009

In SWF 1, I have a movie clip.

The movie clip in SWF 1 loads in an external SWF 2 file.

Is it possible for me to have something (like a button) inside the external SWF 2 with the ability to control something (like a movie clip) in SWF 1?

View 3 Replies

ActionScript 3.0 :: Control An External Swf?

Aug 31, 2009

I am trying to learn how to import external swf to my projects to make them more lightweight

I have succeeded in importing an external swf to a specific movie clip in the scene (Using actions in the timeline, not an as file). However, I cannot seem to get control over the loaded swf using gotoAndPlay or gotoAndStop.[code]...

View 3 Replies

ActionScript 2.0 :: How To Control An External Swf

Jun 22, 2006

how would i go about doing this... on the main timeline when the playhead gets to 50 it tells an external swf to gotoAndPlay ("framelabel");

View 14 Replies

IDE :: Control External SWF From Parent SWF

Dec 22, 2009

I am studying yet. so I am using Macromedia Flash 8. I've created a swf file as (main project.swf) and Loaded a external swf using loader component. the file is main_slide. Now I want send a command or data to project file, from loaded main_slide.

View 1 Replies

ActionScript 3.0 :: Load External And Give Instance Name?

Jul 15, 2009

I'm using this code to load and external swf, now how do I assign an instance name for it?

var eventInitialLoader:Loader = new Loader();var eventInitialURL:String = parent['eventPath'+ie];var eventInitialRequest:URLRequest = new URLRequest(eventInitialURL);eventInitialLoader.load(eventInitialRequest);eventOdd_MC.addChild(eventInitialLoader);

View 3 Replies

ActionScript 3.0 :: External Swf Loses All Instance Names?

Aug 10, 2009

I load an external swf with some buttons into another swf.Now the buttons have lost their original instance names. A trace reveals their new names to be "button1", "button2", etcetera. If I run the external swf on its own, the same trace displays the original instance names.

View 7 Replies

CS3 Local Connection To Control External Swf

Nov 10, 2009

I want to create the following: Suppose I have 2 swfs open in an HTML doc. The first sfw has 3 buttons: red, green, blue. When I hover over these buttons, I want the words "red", "green", "blue" to appear respectively in the second swf.

I found out that I can use "local connection" to to this, but it's too advanced for me.

View 1 Replies

ActionScript 3.0 :: Control Main Swf Through External Swf?

May 9, 2010

ive figured out timeline transitions, and timeline based preloaders......so now i have a problem.....i have my MAIN swf file that i load all my pages in externally ( external swf files )....when i click a button ( for example ) my "about us" button - the transition begins....i have a keyframe with the following code on frame 40 ( inside a movie clip named "pages" in my main SWF where all the buttons/transitions are ):

var Xpos:Number=0;
var Ypos:Number=0;
var swf:MovieClip;

[code].....

View 9 Replies

ActionScript 3.0 :: Control External Swf Dimensions?

Oct 31, 2009

I'm creating a gallery for my swf files. Now I can open the external swf files in the gallery. But a lot of my swffiles use stage.stagewidth for dimensions, so they get streched across my screen.

Is there any way i can control the size? Make a virtual stage or something and load them into there? Any workarounds cause I really dont have time to rewrite all my swf's

View 2 Replies

ActionScript 3.0 :: Control External Swf Sound?

Nov 11, 2010

I am trying to control external swf sound and I have created volume slider. But when I am running the code I am getting following error..

ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at volumeControl_fla::MainTimeline/volumeControl_fla::frame1()

[Code]....

i.e. when I load theexternal swf..how to catch the sound embedded in that swf

View 5 Replies

ActionScript 3.0 :: Control Animation Of External Swf?

Feb 7, 2011

Can i control the animation(i.e. play/stop) of an external swf that was created in macromedia flash professional 9 or older version using actionscipt 3.

I have earlier loaded swf files created in flash CS3 and controlled their animation in the parent swf by calling the play() and stop() methods.

But when i use the same code in case the loaded content was created in flash professional 9 or earlier version, the play() and stop() methods dont work.

View 1 Replies

Actionscript 3.0 :: Scrubber Bar To Control External SWF?

Feb 3, 2010

how to build a scrubber bar to control an external SWF. I have a template built that will load external SWF files into a content area. I already built a play/pause button into it but cannot figure out how to make it so the progress bar moves and is scrubbable. I know it has something to do with the total frames/length of the loaded SWF, the width of the progress bar and making the progress bar's tab draggable/constrained but not sure how to put it all together to make it work. I've tried a few things but none of them worked (I'd attach the code I tried, but I trashed it and reverted back to what worked last time).

View 1 Replies

Actionscript 3.0 :: Control Main Swf From External?

Apr 26, 2010

I will try to explain this as easily as i can.

I have a holder swf called holder.swf

Within this i am loading in external swf files. Each externally loaded swf is put into each frame of the loader page.

I have created a string to navigate through the timeline when either next_btn or prev_btn is pressed.

The probelm im having is that in one swf file there are two buttons which determin which way the story goes (eg. with pressing yes_btn goes to section2 with no_btn go to section2a)

How do i communicate from this externally loaded swf to affect the main timeline of my holder swf.

View 3 Replies

ActionScript 2.0 :: Navigation Control With External Swf's

Mar 25, 2004

I'm currently building a demo tour in flash, I created a main swf that has an intro and navigation. Each link on the main.swf calls a loadMovie and loads each section with external swf's in an empty movie clip. What I'd like to add is 2 buttons, which are next and back, giving the user the flexibility of going through each section, using these 2 buttons. Its just that since each section is an external swf file, I'm not sure how to script the 2 back and next buttons..

View 4 Replies

ActionScript 2.0 :: Function To Control External Swf?

Jul 21, 2004

I need a function to load and play external swf�s.

I need it to load and play intro.swf into movieclip clip1 , when it is finished load and play about.swf into movieclip clip 2. when this swf has finished load and play outro.swf into clip3. the swfs contains proggressive flv. The function should be as dynamic as possible, cause i need it to control other videoclips in swfs as well.

View 1 Replies

ActionScript 2.0 :: Control External Swf Buttons?

Jul 24, 2004

I have a dynamic txt frame in my main swf.When buttons are selected,text from an external txt file loads into the text frame.This all works fine.What I would like to do is be able to load an external swf into an empty MC and then be able to dictate what the buttons on the external swf do (such as load text).The last line of the below AS is my attempt to path to a button that is on an external swf

//_root.1.noiseaudio.easing.theText.sad.onPress = function () {
loadTxt(path+"sad")
}//

but that didn't work.start here. This is on a frame on the _root swf.

System.useCodepage = true
path = "text/";
loadTxt=function(path){[code]...........

View 3 Replies

ActionScript 2.0 :: Control Timeline Of External Swf?

Oct 19, 2004

I have a loadMovie function in my timeline that is loading a external swf file. I want a button to control the tim line of the swf file that is loading externally.I know this is wrong, but kind show what i want to do:

Code:
loadMovie("g2.swf", empty_mc)
//button

[code].....

View 1 Replies

ActionScript 2.0 :: Control The External Swf Files?

Jun 1, 2007

i have loaded so many swf files to the Movie clips. this works fine. But when i am trying to access those dynamic swf, i am not able to do that.

Like i wanna control the external swf from the main swf(_root) swf. which i am not able to that.

what i did is. i made an array where i've added all the swf Movie clip.

from that array i am trying to control the external swf files.

command are like this array

Code:
pageClips = new Array();
pageClips[1] = pages.p1.page.pf.ph.pic;
pageClips[2] = pages.flip.p2.page.pf.ph.pic;

[Code].....

View 14 Replies

ActionScript 2.0 :: Control External MC With Keypress?

Nov 15, 2007

I'm a noob (someone has to be) and i've got a bit of a prob, I don't use Flash all the time so my grasp of AS aint so hot sorry, here it is: I have a mainmovie.swf and am loading in external.swf into a blank movieclip with loadmovie, on the external.swf I have this:

[Code]...

which works fine. My question is, how could I get this to work the same in the main.swf? Also please note that the main.swf is stopped at this point and the external.swf has a number of different actions on different frames, so I am looking for someway to maintain the external.swf's actions and somehow make them just work through the toplevel if you know what I mean??? Sorry if thats a bit confusing!!!

View 2 Replies







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