ActionScript 3.0 :: Control SWF Loaded As A Child Of MC?

Aug 18, 2009

I've loaded an external SWF into an empty MC named "M1" using this[code]...

Now I want to control the timeline of the external SWF from the main movie timeline. How do I reference the child of the M1 object in AS3? example: M1.child.stop(); (doesn't work of course).

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Control Of Externally Loaded Child Movieclip Timeline From Parent?

Mar 3, 2009

I have a basic xml driven portfolio. The xml file holds the path to the portfolio pieces (external .swfs). I have a main navigation that moves from project to project and a subnavigation to view individual pages of that project.The subnav is where I have the problem, I simply want to call gotoAndPlay("framelabel") of the designated mc. It seems that you can no longer call to the timeline of child movieclips as you could with AS 2. I've found some examples Except the examples discuss access of nested movieclips on the stage with assigned instance names. But the problem I'm facing is that I have each item pulled in via the loader Class then the objects are pushed into an array and my subnav needs to access them dynamically via array notation.something like this:

PHP Code:
public function loadMe(){
//var l:Loader = new Loader();

[code].....

View 12 Replies

Actionscript 3 :: How Can A Loaded Child Swf 1 Communicate To Next Child Swf, Child Swf 2, Which Is Currently Not Loaded

Oct 14, 2011

I have a parent swf with three buttons: next button, back button, ticker on/off button.I have three child swfs, each with a ticker mc. When I click on ticker button on parent swfit dispatches a custom event which brings ticker MC on stage and thus ticker becomes visible (ticker off button displaces it out of stage by changing the value of ticker_mc.y).

the problem I am facing is when ticker is on and I click next or back button to load next or previous child swf, the ticker goes off. How can I make sure that ticker is on all the time and closes only when I close it. How can a loaded child swf 1 communicate to next child swf, child swf 2, which is currently not loaded, that since the ticker is on on swf 1 so you please keep the ticker on on swf 2 as well?!

I think I know the problem. I have put a default value of ticker_mc = 160 (makes ticker inactive) on every child swf. So, the ticker becomes inactive everytime I load a new child swf. If someone could guide how can I do this, my problem will be solved: When first child swf is loaded, the default value of ticker_mc.y should be 160. I want to hold this value in a variable. When I click ticker active btn, position of ticker_mc changes to 194 so the value of variable should change to 194. When I click next btn, the variable value (160 or 194) should be sent to next child swf and ticker_mc.y should be equal to variable value.

This is the code so far

"Next button"
go_mc.next_btn.addEventListener(MouseEvent.CLICK, playNext);
function playNext(e:MouseEvent):void {
if (swf_no < (clips.length-1)) {

[code]....

View 1 Replies

Flex :: Manipulate Child Control Inside A Panel Control?

Oct 12, 2009

I am trying to manipulate (move up and down, enable/disable and launch a form) child controls inside a panel control. However I am unable to get the id of the child control on which the click event occurs. To illustrate, I am trying to create similar functionality as is available. I am trying to create the up-down buttons that you see in the image at http:[url].......

View 2 Replies

Flash :: Loaded Font Doesn't Show Up When Parent Swf Creates TextField In Loaded Child Swf

Jun 14, 2011

Im working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 1 Replies

ActionScript 3.0 :: Loaded Font Doesn't Show Up / When Parent Swf Creates TextField In Loaded Child Swf

Jun 15, 2011

I'm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 7 Replies

ActionScript 3.0 :: Parenting And Child Control ?

Mar 17, 2010

I made a class that creates a "kind" of menu with data from a XML file and basically what it does when it is called is create a emptyMC (a container), add a childMC (a square) and add another child (a text label). When I create the container I'm trying to add a MouseEvent that can act on each the container instances but all I can get is a MouseEvent on object containing all the added MCs. The code follows.[CODE].....

View 3 Replies

ActionScript 3.0 :: Control Child Clip On Mouseout?

Jun 3, 2010

This should be super easy, but I am stuck on the last part:Two event listeners- 1 roll over and 1 roll out on a button.

They call individual functions: homeROv & homeROu respectively.

In my roll over function (homeROv) I place a mc on the stage.

Now, what i want is for the roll out function to target that added mc and remove it.[code]...

View 1 Replies

ActionScript 2.0 :: Timeline Control Of Child .swf From Parent

Jan 26, 2012

I have a main .swf from which I am loading a child .swf into using this code.[code] Once the .swf is loaded in though, I want to be able to use basic timeline control functions like stop(); and gotoAndPlay(); on the child .swf from the parent.

View 1 Replies

ActionScript 3.0 :: How A SWF Child Can Control A Parent's Function/variable

Jan 12, 2009

For instance, in the below code a parent can control a SWF child's function "alert ()". But how a SWF child can control parent's function "ReceivingChildMsg()" ?

View 4 Replies

ActionScript 3.0 :: Add A Child Or Control A Timeline MCcontainer From A Class?

Mar 25, 2010

having some issues migrating to AS3...How can I add a child object to a empty movieClip already placed in the timeline. Something like this.n timeline first frame there is an empty MC instance named "clipInTimeline" and in framescript I call:

import assets.contentControl;
var getContents:contentControl = new contentControl();
In AS file:

[code].....

View 2 Replies

Actionscript :: Finding A Child Control Based On X & Y Coordinate

Aug 17, 2010

In Flex/Actionscript.When writing an on mouseMove event on a Canvas control for example, how could I check to see what control if any is under the mouse pointer at a particular coordinate?

View 1 Replies

Actionscript 3 :: Get The Full Resource Path From A Child Control?

Apr 1, 2012

Currently, I have a requirement need to get the full resource path in runtime, IF POSSIBLE.Here is an example: I have a action script and using a MovieClip resource. Now, I have a action script variable ctrlVar that is pointing to a child control , whose id is, for example, contorl1. And the real path I can find from fla file should be, for example, parent1.parent2.parent3.control1. And every parentX is a id ( not a type ).

View 1 Replies

ActionScript 3.0 :: Control A TitleList From Child Mxml File?

Oct 6, 2010

on the Application MXML:i have :

<mx:TileList id="panelCentral" borderStyle="none" themeColor="#D2B69D" left="15" right="15" top="20" bottom="13">
tileArray = new ArrayCollection();

[code].....

View 0 Replies

ActionScript 2.0 :: Use Local Connection To Control Child Movieclips Across 2 Apps?

Feb 22, 2012

What I'm trying to achieve is a basic theatre Box Office application, to show the public the location of the seats that they have bought.

I've got 2 flash apps. One on the clerk side which takes the seats in a csv format and then uses local connection to send the data. [code]...

View 1 Replies

ActionScript 3.0 :: Control The Loaded Swf?

Dec 16, 2008

I want to load a swf into my main movie but it won't work as I want it to. Seperatly both files work fine and even the main movie works fine when loading the external swf. When loaded the external swf doesn't as it should and I get the error-message "TypeError: Error #1009: Cannot access a property or method of a null object reference. at port_ill_fla::MainTimeline/frame1()"...

Now, I know the problem have to be in the external swf since I've asked it to trace the result in the "for..var" method I use to create thumbs that works as buttons, but it only returns 0 when it should på at least 9.I don't know why it seems to be a problem as the main movie also are able load other external swf-files without any problems at all.theese files doesn't contain any actionscript triggering events in theese files, etc. Anyway, here is the code for the main movie:

var portUrl:URLRequest = new URLRequest();
var portLoader:Loader = new Loader();
function portCompl(Ev:Event):void{

[code]....

View 5 Replies

Control When A Swf Is Loaded From Cache And When Is Not?

May 26, 2009

We have a web app. built in flash that allows customers to upload images and text, customize the container in which these will be shown (a swf file) and then embed the code into thier website. There is also a sharing options that allows their users to display this container, together with the content, on their websites. (For e.g you can see the container as the Youtube player and the content as the videos the user chooses to show). The swf container uses an XML file to know what to display.

Now, I am not a flash developer, but a person who takes care of the project.We are currently working on the app and the swf and we still find bugs. Every time we fix sth, I am told to erase my cache to see the changes. My concern is that the client/users might not see the newer version that we make available, but the old one. We can't tell them to erase the cache and we can't afford to renounce using the cache since the images are big.I was told that, sometimes, the browser does not see that the current version is a new one and loads it from the cache (actually, it never detected that there is a newer version and I always had to erase the cache). How can we tell the browser "now, load the swf from cache" or "now, don't load the swf from cache".

View 1 Replies

ActionScript 2.0 :: How To Control Loaded Swf

Jul 9, 2009

I have problem with control external loaded swf.In the "main.swf" I have empty MovieClip "_root.container".[code]The last line do not working when I publish my swf and open HTML in browser,BUT on the local machine - working perfect.

View 5 Replies

ActionScript 2.0 :: Can't Control Loaded Swf

Sep 23, 2011

I'm trying to load a "shopping Cart" into my movie...it loads in and I can see it. But I can't control it at all[code]...

View 3 Replies

ActionScript 3.0 :: How To Check If Child Loaded Or Not

Apr 15, 2009

I am building a website in which the nav bar has an animation on the "home" frame and not on the others. It works all nice until I come back to "home" and then my nav bar bugs. So I am thinking the best way to "refresh" the nav bar would be to removeChild(); and then add it again... but then when I go to the other frames (pages) it disappears. If I run addChild(); to every pages.. then it duplicates it and becomes buggy. Is there a way to run an if() function that would check if the nav bar is already there and addChild only if it is not there?

View 2 Replies

ActionScript 1/2 :: Control An Externally Loaded SWF?

Jul 26, 2009

I'm working on an flash movie and the interface is a small town (simiar to "doritos.com" and "comcasttown.com") if you reference both the doritos and comcast sites their little movie runs smoothly. I have several elements in the town. For example, one of the elements is an airplane hangar. When you rollover the hanger, I created a movie, the doors open and an airplane flies out of the hangar. I have several little movies throughout the interactive such as this. I created the hangar animation as a seperate swf file. In my main movie I created a button, on rollover it loads the hangar swf into an empty movieclip. When I publish and view the swf it plays slow and choppy. First, is it possible to write actionscript to load the external swf ,but it stops on the first frame of the animation and when you rollover it continues to play.To put it all in a nutshell, I want to create several buttons throughout the movie with loadmovie functions, once the swf movies are loaded I want them to stop on the first frame of the animation and when you rollover loaded swf movie I want it to continue to play the animation. Should actionscript be applied to the swf movies first and preloaded into the main movie. And what will make the movies run smoothly once it's published and viewed in a browser.Also if this makes a difference, I created the animations in after effects, exported them as FLVs imported them into flash and exported them as swf. Again it runs really slow and choppy

View 1 Replies

ActionScript 3.0 :: Slider To Control Loaded Swf?

Aug 25, 2009

i work in a project and i saw this problem when i want to control swf loaded file i made slider that will control loaded swf but the problem is i can't control sound and animation in the same time.i mean that when user click the slider and start drag it this slider must work as a player that control sound and the movie itself.But i can't control both at the same time when i take slider value and give it to the sound object like this lider.maximum=snd.length.snd.play(slider.value); / /it will play the sound but at the same time i must say gotoAndPlay(slider.value);

View 1 Replies

ActionScript 3.0 :: Control The Timeline Of A Loaded Swf?

Sep 13, 2010

I have two swf files. I use as3 on the main timeline of a.swf which successfully loads and inserts b.swf onto the stage (b.swf has a stop on fame 1):

[Code]...

My goal it to get the myButton click to play frame 2 of the recently loaded b.swf - but that's not happening.What am I doing wrong?

View 6 Replies

ActionScript 2.0 :: Sound Control In Loaded Swf?

Aug 8, 2009

My english is not too stron, but i'll try to explain my problem...I've got 2 swf's, first is main, second is loaded to he first(flv player) throught the command "loadMovie("player.swf", myPlayer)".In the second swf there are such code:

vol.onRelease = function() {
vol.bar._width = _root.myPlayer.vol._xmouse;
sound.setVolume(_root.myPlayer.vol._xmouse/vol._width * 100);

[code].....

View 2 Replies

ActionScript 3.0 :: Control Loaded Swf Like A Video?

Oct 26, 2009

I have looked everywhere to find out how to add a seekbar (so user can scrub and pause). It is so easy to skin a video, but I need the same type of controls for a swf. I see them on the web.

View 0 Replies

ActionScript 2.0 :: Two SWFs Loaded - Possible To Control One With Another

Nov 22, 2009

I m loading 2 .swf in one flash file and want to control one with another. The first contain small animation and other has play and stop button. Now I want to control that animation with these 2 button.
Files details:
test1.swf: It has the animation
test2.swf: It has the 2 buttons
test3.swf: It is the main file, in which I m loading the 2 files i.e. test1.swf and test2.swf

View 1 Replies

ActionScript 3.0 :: Control Main.swf Through Loaded.swf?

Jun 7, 2009

I'm trying to control my main.swf through a loaded .swf.

My goals are. 1. load the external swf into main.swf and have a movieclip in the external swf play. (the movie clip in the external swf should play without any code, however, when the external swf loads, the movie clip goes to the last frame of itself for some reason)

2. I have an "X" button on the loaded.swf itself that should dismiss the loaded swf and cause my navigation on my main.swf to reappear.

Here is my loader code in main.swf:

Code:
var _urlx:Loader = new Loader();
_urlx.load(new URLRequest("loadBlank.swf"));
var _url1:Loader = new Loader();

[Code]....

As of now, my navigation in main.swf does reappear when the "X" in the loaded.swf is clicked, but I need a way to unload the currently loaded swf when the "X" button is clicked..

I've tried remove child, checking to see if the loaded child is not null, but that didn't work either...

View 3 Replies

ActionScript 3.0 :: Control Loaded External Swf?

May 1, 2011

I can't understand what i did wrong.i loaded an external SWF, and i want to control it's current frames.

View 2 Replies

ActionScript 3.0 :: Child Swf With Component Loaded In To Parent Swf

Feb 13, 2010

I have an elearning course, a .swf, that loads multiple .swfs as the user progresses through the course. At the end, there is a quiz.

The quiz.swf uses the radiobutton component. I have developed some custom skins to use on the radiobutton component. I have figured out that:
I have to add an instance of a radiobutton in the main .swf for the radiobuttons in the quiz .swf to show.I have to copy the radiobutton intance from the quiz swf library to the main swf library if I want my custom skins to show in the quiz swf While, this works fine. It is not practical. I want the quiz.swf to more modular. So I can pop it in to any course and not have to go back in and add the radiobutton skins to each course.

View 2 Replies

ActionScript 3.0 :: Unloading A Loader-Loaded Child?

Jun 16, 2010

I have a master swf that uses Loader to load in an external swf. I need to load a back button on top of that stack as a separate Child - and I have code in that loaded Child that needs to Unload the Loader-Loaded swf, unload the Buttons, and move the main timeline to another frame.

View 2 Replies







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