ActionScript 1/2 :: Targeting The Timeline Of A Loaded Swf - AS2

Feb 9, 2010

I'm loading an external swf into a project and I want to be able to start and stop the loaded swfs timeline at will.... I'm loading swf into an MC: loadMovie("myFile.swf", swfHolder_mc);

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Targeting A Timeline In An Loaded Movie Clip?

May 27, 2005

The swf successfully loads where I want it to, but I'm having trouble moving the new movie clip to a specific keyframe in the timeline.

Code:
on (release) {
_parent.productImage.loadMovie("./flash/BT_Closeup.swf");
_parent.productImage.gotoAndStop("set2");
}

View 1 Replies

ActionScript 3.0 :: Targeting A Nested Mc Timeline From A Main Timeline?

Dec 30, 2009

I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame. mc_1 is on frame 1 mc_2 is on frame 40 mc_3 is on frame 81 as the main timeline plays the clips each one fades to the other. I need to know how to target this scenerio after mc_3 plays I need to have a goToAndplay (20) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.

View 5 Replies

Actionscript 3.0 :: Targeting A Mc In A Different Timeline?

Dec 30, 2009

I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame.

mc_1 is on frame 1
mc_2 is on frame 40
mc_3 is on frame 81

as the main timeline plays the clips each one fades to the other.

I need to know how to target this scenerio

after mc_3 plays I need to have a goToAndplay (frame) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.

I know how to do off a button

but there is no buttons, the action needs to happen when the playhead reaches the last frame of the main timeline in main.fla

View 2 Replies

Targeting Sections When Playing Timeline?

May 18, 2009

The site has 6 pages: home, contents, contact, about, showreel, corporate. I have a panoramic photograph as a background across all my pages. When a button,such as contact, is clicked the timeline is enabled and scrolls across the panoramic to the 'contact' area of the photograph.I have a few questions relating to how I can achieve this. 1.) On my actions layer I have this code on frame one: stop(); enter_site_btn.addEventListener(MouseEvent.CLICK, buttonCLicked); function buttonClicked (event:MouseEvent):void { play(); } So when you mouseClick the timeline plays and goes to the next stop point on the timeline which is the contents section. On the contents page are the buttons which lead to the other sections. So far I have this code: stop(); about.btn.addEventListener (MouseEvent.CLICK,buttonCLicked) corporate.btn.addEventListener

(MouseEvent.CLICK,buttonCLicked) showreel.btn.addEventListener (MouseEvent.CLICK,buttonCLicked) contact.btn.addEventListener (MouseEvent.CLICK,buttonCLicked)

Each of the buttons work, but I want the timeline to play and go to the page which corresponds to the button which is clicked, not just to play the timeline until the next stop point. Is there a code which would enable the timeline to play and go to the correct section, and not just roll without a target? 2.) I also want to be able to write a code which enables the timeline to move to any section in the same amount of time. What I mean by this is that if it takes 2 seconds (48 frames) to go from the first section to the second section, I also want it to take 2 seconds to go from the second section to the sixth section (240 frames)

View 40 Replies

ActionScript 3.0 :: Targeting The Main Timeline From Within A MC?

Feb 3, 2011

I have this project that will basically work like a slideshow. I am trying to do things the right way and avoid scenes so I am building each slide as a separate mc and then placing them on the main timeline. What I'm trying to do is get the playback head to advance to the next frame on the main timeline once the mc reaches its last frame. I have found code that works but it seems pretty ghetto:
 
var _root:MovieClip = MovieClip(root)
stage.addEventListener(Event.ENTER_FRAME, text2);function text2 (myevent:Event):void { _root.gotoAndStop("slide2");}

I guess I have two basic questions:

1. What is the proper way to target a frame on the main timeline from within a mc in as3?

View 6 Replies

ActionScript 2.0 :: Tell Targeting A Mc On Main Timeline?

Jun 30, 2004

i have a problem with tell targeting. basically i have two mc on the main timeline and one(MC1) has a button burried in it. i want that button to tell the other mc (crystal) to play a label "editions" inside it.

my code is:
on (release) {
_root.crystal.gotoAndPlay("editions");

[code]....

View 1 Replies

ActionScript 2.0 :: Targeting - Tell Another MC To Go To A Marker On Its Timeline

Feb 20, 2006

I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");

View 4 Replies

ActionScript 2.0 :: Tell Targeting An Mc On Main Timeline

Jun 30, 2004

i have a problem with tell targeting. basically i have two mc on the main timeline and one(MC1) has a button burried in it. i want that button to tell the other mc (crystal) to play a label "editions" inside it.[code]but it only works when the crystalMC is on the first frame of the root.is there a way of telling the root to move to the position of the first mc and then play a label inside that mc?

View 1 Replies

Actionscript 3 :: Targeting Unnamed Timeline Instances?

Dec 31, 2011

Is there any way to control nested MovieClip instances placed on the timeline without naming them through the Properties panel? Are there any unique identifiers I can refer to?

Using instance names (like instance33, instance12, etc.) doesn't help since names are just properties, but how about references like sprite187_27 (as returned by trace(this) inside a MovieClip on the TimeLine)?

(Using ActionScript3, Automatically declare stage instances disabled)

View 1 Replies

ActionScript 3.0 :: Button Inside A MC Targeting Another MC On The Timeline

Jan 1, 2011

So from the headline u know that i want to do but i don't know how to do it!

ActionScript Code:
/// activate the mc with the button from the main Menu
mathSecondMenu.addEventListener(MouseEvent.CLICK, otvoriVtoroMenu);

[Code]....

the problem is that i can get to the button from the first event, but i can make the Mc "proba" to go to "math_basic"!

View 8 Replies

ActionScript 2.0 :: Targeting Main Timeline From AttachMovie?

Nov 18, 2008

I'm working on this project, where i attach movies to an empty movieclip. In these attached movies, i have a button that needs to target a function on the main timeline. Example:

on the main timeline, i have an action that loads a bitmap onto the background: loadBitmapSmoothed("background.jpg",bg_con); On the main timeline, i also have a button with following action:

on(release){
this.mc_holder.attachMovie("MC_products",1);
}

Then, in the attached movieclip i have a button that needs to swap the image previously loaded into the 'bg_con'-movieclip, like thus:

on(release){
_root.loadBitmapSmoothed("product_1.jpg",bg_con);
}

For some reason, this doesn't work. I've also tried using _level0. but nothing happens.

View 5 Replies

ActionScript 3.0 :: MovieClip With Button On Main Timeline - Targeting Root?

Oct 31, 2011

If I have a movieclip on the main timeline, and a button in that movie clip. How would I go about getting it to advance the main timeline to its next frame? I understand that in AS3 movie clips are not connected to the timeline in the same way as they are in AS2 but I dont understand why the following works, or if there is a better way?

stop();
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent) {
MovieClip(this.root).nextFrame();
}

View 2 Replies

ActionScript 3.0 :: Targeting Label Inside MovieClip On Main Timeline

May 2, 2011

How to target a label within a movie clip on the main timeline, from a button within another movieclip on the maintimeline.

View 0 Replies

ActionScript 2.0 :: Targeting Sections In Main Timeline From Separate Menu SWF?

Jan 16, 2006

[URL]

I made a site, but the menu isn't loading properly. If you reload the page the menu loads, but not sure why not loading every time.

Right now menu and site sections in main SWF file. Maybe I put the menu into a separate SWF file it would load properly?

If the site sections are in the main SWF timeline, then how do I do the actionscript for the menu buttons?

Ie)
menu in level7
main site in level0
site sections are "product section", "about us section", "glossary section" on main timeline

So I'm not loading any SWFs, just moving between sections on main timeline.

View 2 Replies

ActionScript 3.0 :: Targeting A Loaded Swf

Nov 11, 2009

1. I'm loading an external swf onto my main swf.
2. Then I'm tweening an object which is separate to the loaded swf.
3. When the tween has completed I'm calling a function to make the loaded swf gotoAndPlay(2);

[Code]....

View 8 Replies

ActionScript 2.0 :: Targeting Loaded .swf?

May 1, 2003

this code is working to load and position the external swf, but it won't gotoAndPlay to the frame inside the external swf--what am doing wrong here?

PHP Code:

bio.onPress=function()[code]......

View 3 Replies

ActionScript 1/2 :: Targeting Swf Loaded With LoadClip()?

Feb 7, 2010

Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.
 
The problem comes when I am trying to control a movie clip that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.
 
Neither of these work, though when I apply a trace to test_mc with Actionscript on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously).

View 5 Replies

ActionScript 2.0 :: Targeting Swf Loaded With LoadClip()?

Feb 21, 2010

I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.The problem comes when I am trying to control a movie clip instance that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.

Neither of these work, though when I apply a trace to test_mc on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously). I've attached a couple of files demonstrating the problem I'm having. It seems to me that the problem is probably something a little amiss with my code,

View 1 Replies

ActionScript 3.0 :: Targeting Mc's Within Externally Loaded .swf?

May 26, 2009

I have an .swf which I call into a loader identified as "level_". I want to do a hitTest between a MovieClip in the main file and a MovieClip on level_'s Stage. In AS 2.0, the path would've been: this.level_.wall0

I get this error: 1119: Access of possibly undefined property wall through a reference with static type flash.display:Loader.

Tracing the .numChildren of the loaded .swf reveals that it has zero children. Within that .swf wall0 and the other MovieClips are instances dragged from the Library and given names. So what am I missing? Is the problem that wall0 hasn't been properly added as a child in the externally loaded .swf? Or is it something I need to resolve in the main .fla?

View 2 Replies

ActionScript 2.0 :: Targeting Swf Loaded With LoadClip()

Feb 21, 2010

I'm having a really weird problem with loadClip(), using Actionscript 2.0. Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.

The problem comes when I am trying to control a movie clip instance that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.

Neither of these work, though when I apply a trace to test_mc on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously).

I've attached a couple of files demonstrating the problem I'm having. It seems to me that the problem is probably something a little amiss with my code, as in theory I'm pretty sure what I'm trying to do is perfectly possible.

View 1 Replies

ActionScript 3.0 :: Problems Targeting A Loaded Swf

Apr 18, 2010

When you click the about button on my site, I am using this function to load in an external swf, about.swf. When I click on another nav button, I want to communicate with the about.swf and call a function within that swf called bailout(). But how do I target it? Nothing I try works. I've messed with getChildAt but don't know how it works.
Would it be ..... theholder.aboutLoad.bailout()??? That doesn't work. How do i target the function within the about.swf file?

[Code]...

View 3 Replies

ActionScript 2.0 :: Absolute Targeting In A Loaded Swf?

Sep 15, 2004

i'm in the process of building a movie that is to be loaded and played into another main swf. the targeting (which is multi-level) works fine when the movie is played by itself but when it's loaded and played in the main swf some of the targeting doesn't work. i've tried using _parent. and stuff like that but it's not working. any ideas? can someone point me in the right direction? the frustrating thing is that some of the targeting does work.

View 1 Replies

ActionScript 2.0 :: Targeting Dynamically Loaded Swfs?

Mar 21, 2006

Having trouble targeting movieclips in a dynamically loaded swf. (Flash 8, Actionscript 2).I have a swf file, which contains a set of duplicated movieclips, that I am loading into another swf file (using the movieClipLoader() class), basically like this: "swfA" is loading into "swfB", and I have clips 1, 2, and 3, inside "swfA."I don't seem to be able to mouseover and click clips 1, 2, and 3, when "swfA" is loaded into "swfB". But when I run "swfA" on it's own, the clips are active and clickable.I've tried setting "this._lockroot = true;" at the top of "swfA", and tha in the duplicating script, but still no luck targeting the clips.I usually execute the duplicating script on the main swf (swfB), but I wanted to contain everything in a swf, thinking it might be simpler. But the targeting problem has me scratching my head.

View 1 Replies

ActionScript 2.0 :: Targeting Loaded Object / Movie

Jun 29, 2007

I am doing a dynamically loading gallery by way of xml, now, i have the loading of the images going to where flash sizes them and puts them down as thumbs, all i want to do is when the user clicks on the thumb that already loaded image gets duplicated into the main area full size.... for the life of me i can't figure it out, it seems like it would be simple enough but i have been pulling my hair out for the longest..... by the way the publish settings are actionscript 2.0 with fp8.

View 5 Replies

ActionScript 3.0 :: Targeting A Button Inside Dynamically Loaded SWF

Jun 4, 2010

I have a main.swf which loads a sub.swf. Inside the sub.swf is a button instance (myBtn). How do I access myBtn from main.swf timeline?

View 7 Replies

Actionscript 3.0 :: Targeting A Movie Clip Inside A Loaded Swf?

Jun 10, 2009

I loaded this "slider" swf into a "sliderHolder" on my index swf file. inside that loaded swf there's a movice clip called icon_mc. I'm trying to target it and make it go to a specific y position within that loaded swf on a MouseEvent inside the index.swf. I can't seem to make it work.I triedI have traced sliderHolder and it says it's empty.I have traced sliderLoader and it gives a Loader.So how do I access the movieClip if I just have those two as references?Here's what I have and want to do in code:

Code: Select all
var sliderLoader:Loader = new Loader();
sliderLoader.load( new URLRequest("sliding/ImageBar.swf"));

[code].....

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 3.0 :: Access Timeline Of Loaded SWF?

Oct 31, 2010

I have a container SWF that loads other SWF's onto the stage using the load() method.  I also am trying to access the MainTimeline of these SWF's using Event.INIT and a function and then telling that function that if the MovieClip, "clip", which is the loaded SWF is at currentFrame>=2 then do something.I can't get any response (not even trace responses)unless I specify "if(clip.currentFrame==1)".  How can I get the container SWF to see past the first frame of the loaded Movie Clip?  I suspect that I should be using ENTER_FRAME instead of INIT, but if I do that the Movie Clip appears and suddenly disappears without staying on the stage.

View 3 Replies

Actionscript 3 :: GotoAndStop() On The Timeline Of A Loaded SWF?

Sep 30, 2011

I'm working on a new ad unit called a Filmstrip for NineMSN (demo here) which basically loads in 5 SWFs vertically. Only one of these 5 is visible at a time (with the exception of a a portion of two SWFs between UP and DOWN transitions.What I'm trying to achieve is ensure that when the user clicks on UP or DOWN, the SWF you scroll to will be playing from the beginning.How can I target the main timeline of an SWF loaded as per below and call gotoAndStop() on this?

var loader:Loader = new Loader();
loader.y = index * 600;
loader.load(

[code].......

View 2 Replies







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