ActionScript 2.0 :: Target A Loaded Movie Within The Main Timeline?

Apr 14, 2004

Is it possible to target a loaded movie within the main timeline and stop sounds in that particular movie only?

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Target A Loaded Movie Within The Main Timeline And Stop Sounds In That Particular Movie Only?

Apr 14, 2004

Is it possible to target a loaded movie within the main timeline and stop sounds in that particular movie only?

View 4 Replies

Actionscript 3.0 :: Target A Movie Clip From The Main Timeline?

Apr 5, 2010

I have 7 buttons on the main stage that go to different parts of the main timeline, all of which have the same movie clip with 7 different frames. Right now it always goes to the first frame of the movie clip, but I need the second button to go to the second frame, and so on. I was originally trying to have the button itself find a frame label inside the movie clip, but now I realize I probably need to attach something to the key frames of the main timeline that tells it to go to a specific part of the movie clip. The problem is I can't figure out how to address the movie clip from the main timeline. The book I started learning from had a short section on declaring movie clips, and I cobbled together this bit of code and put in on a key frame in the main timeline.

Code: Select allvar viewwork:MovieClip = root.viewwork

viewwork.gotoAndStop(2);

I'm pretty sure that's completely wrong, as it gives me the error: 1119: Access of possibly undefined property viewwork through a reference with static type flash.display:DisplayObject.

So how do I properly reference a movie clip from the main timeline? Also, I'm using an external .as file for most of my actions, but I'm sticking this directly on the frame because I haven't even thought about trying to figure out how to target a specific frame from an external file. Is that going to cause problems?

View 1 Replies

ActionScript 2.0 :: Movie Is Not Loaded When Script Is Moved To Out Of Main Timeline?

Jun 7, 2010

i have a script to slideshow images dynamically reading xml. The script is written in the main time line. when the scripts are moved inside any movie clip it did not work.

script goes here:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myShowXML = new XML();

[code]....

View 1 Replies

Get An Externally Loaded Movie Clip To Inherit The Playhead Position Of The Main Timeline?

Oct 17, 2009

I have been approached to design a configurator for a new television product. The Application will let users specify the colours of certain parts of the product and also attach addons, which then updates a cost total.

In the main interface i have a looping animation of the product slowly rotating around 360 degrees that i rendered in 3ds max. When a user clicks a button on the interface i need to load an external movieclip on top of the main animation so it looks as though a certain part has changed colour, this i have acheived. The problem is that when i load the external clip over the original, the loaded clip starts playing from frame 1 and i need it to inherit the playhead position of the main animation so the two layered pieces look as though they are rotating as one. I'm sure this must be possible, unless i need to approach the problem in a different way?

View 7 Replies

Target Container On Main Timeline?

May 19, 2009

I have 3 movieclips on the main stage.

btn1, 2, 3

I have this code in the maintime line, that when i click a button, the btn the stays static (like its on), when i click another btn, it switches on the next button and loads an external swf.

Each button's instance name is button1, 2, 3..and more buttons I add the stage I would increase the button number, so for 3 buttons on stage I have up (var buttonNum:Number = 3

code//
var buttonNum:Number = 1;
for (i=1; i<=buttonNum; i++) {
this["button"+i].onRollOver = function() {

[Code].....

This all works fine.

I have built a scroller with thumbnails as movieclips and would like to add this code to movieclips.

The thumbnails are indivdual moviclips and are inside a movieclip (productscroll), as the dragbar i am using targets the clip (productscroll) to scroll the thumbnails.

I basically need the same actions as the buttons. When I click a thumbnail I need to load an external swf.

View 3 Replies

ActionScript 1/2 :: Target Main Timeline Within A MC?

Nov 1, 2011

What I am trying to do is to make a moveclip change the frame of the main timeline.Right now, I have a moveclip on frame 5 with the code:

on (keypress "1") {
_root.gotoAndStop(10);
}

[code].....

View 1 Replies

ActionScript 2.0 :: Can't Seem To Target A MC From Main Timeline?

Jul 29, 2003

Ok this is probably obvious and real dumb but...I can't seem to target a MC from my main timeline. I wanna tell my movieclip to start playing from frame 2 when an on (release) event handler is invoked from the main timeline. This is what I got but its not working. Help anyone?

[AS]
on (release) {
this.maskedimaged.gotoAndPlay(2);
}
[/AS]

View 10 Replies

ActionScript 3.0 :: Target Button In Movieclip Back To Main Timeline?

Oct 1, 2009

I have some submenu buttons in a movieclip on the mainline. My first level of navigation in on main timeline. The submenus are grouped in movieclips on the main timeline. I basically used the same code on the main navigation for the sub navigation except the code for the submenus is in that movie clip. My trace statement reads the button is clicked (which was a quantum leap for me) but I know I need some kind of _parent code in there so it knows to go to label back on main timeline. I feel like I am so close.
 
Also is this an ok way to set this up? I couldn't figure out how to do it in one frame. I didn't realize this basic framework was going to be so difficult.

[Code].....

View 5 Replies

ActionScript 2.0 :: Targetting A Movie Clip - Loaded Into A Container Clip From Main Timeline

Nov 24, 2005

I am targeting a a movie clip. The problem is that all the syntax I have found for targetting clips looks like this: _root.sample_mc.sample2.mc. etc. The problem is, my target clip is in an swf that I've loaded into a container clip from my main timeline. So, essentially, I have a home.swf that loads menu.swf into a container called 'location'. In menu.swf, I have an MC called center, which contains the MC I am targetting called 'target'.

View 2 Replies

Make Button In Movieclip Target Back To Main / Root Timeline?

Oct 1, 2009

I have some submenu buttons in a movieclip on the mainline. My first level of navigation in on main timeline. The submenus are grouped in movieclips on the main timeline. I basically used the same code on the main navigation for the sub navigation except the code for the submenus is in that movie clip. My trace statement reads the button is clicked (which was a quantum leap for me) but I know I need some kind of _parent code in there so it knows to go to label back on main timeline.[code]...

View 3 Replies

ActionScript 3.0 :: Can't Target Main Stage From Dynamically Loaded Swf?

Jul 30, 2010

A part of the Flash app. I'm working on right now does the following -Main stage loads an external swf using the following function:

function loadAsset(evt:String):void{
var assetName:String = evt;
if (assetName != null){

[code].....

View 25 Replies

IDE :: Timeline Inside These Movie Clips And The Timeline On The Main Scene Have To Correspond To Work

Jun 10, 2009

why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]

View 1 Replies

ActionScript 3.0 :: Loading Main Timeline Variable From Movie Clip Timeline?

Feb 2, 2010

I cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.

[Code]...

View 2 Replies

ActionScript 3.0 :: Movie Clip Timeline To Main Timeline Coding?

Oct 9, 2009

I have a file comprised of 1 scene and two movie clips. The clips are instanced into the Main Timeline and occupy Frames 1 and 2 respectively.MovieClip1 is an animation that has navigation buttons that appear at the end of the clip. I'm trying to get mouse click navigation to make Frame 2 on the Main Timeline active.

Here is what I'm trying but it is not working:

btExplore.addEventListener(MouseEvent.CLICK, ExploreClick);
function ExploreClick (evt:MouseEvent):void {
gotoAndStop(2);
}

this takes the animation to Frame 2 of the Movie Clip Timeline not Frame 2 the Main Timeline.

View 9 Replies

ActionScript 3.0 :: Controlling Main Timeline From Loaded SWF

Nov 2, 2010

I have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu I'm able to navigateToURL but I also need that it goes to frame 50 in menu.swf.

View 1 Replies

ActionScript 3.0 :: Referencing The Main Timeline From A Loaded Swf?

Jun 14, 2009

I just poked around google as well as these forums, but the only answer I am seeing that was successful, is from kglad, and for some reason his posts are not showingAnyway, I am just trying to figure how to reference a frame label on my main timeline from a loaded swf (through my imageLoader).

View 4 Replies

ActionScript 1/2 :: Getting Back To Main Timeline In Loaded Ext. SWF

Jul 7, 2009

I have a project I'm working on where the user is presented with an overhead shot of a building and is able to mouse-over the different rooms to choose one to "enter." Once clicked, the chosen room is an external .SWF that is loaded that has options to view other external .SWFs within that room. Problem is, within the first loaded .SWF, I have a "home" button that is supposed to take the viewer back to the main overhead view but I can't get the AS to work. I've tried _parent and _root with no luck (not sure I even typed out right code).

View 29 Replies

ActionScript 3.0 :: Control Main Timeline From Loaded Swf

Aug 24, 2010

I'm using a textfield for debug information.I'm loading an swf on the main timeline and I'm showing the status in the debug textfield.[code]I'm loading a png file in the loaded swf. , I'm trying to show the status of the png file as I showed the status of the swf.[code]I can't control the main swf from inside the loaded swf. Even gotoAndStop or calling a function doesn't work.Do I need to add something when I load the swf, saying it's a MovieClip or something?URL...

View 3 Replies

ActionScript 3.0 :: Accessing Main Timeline From Loaded SWF

Mar 11, 2009

I have a question about accessing functions or variables on the main timeline from a loaded swf. I know that there are a few ways to do this

1. Casting the timeline as a movie clip
Loader SWF Script
var testText:String = "Test";
var myLoader:Loader = new Loader();
loadData("loaded.swf");
function LoadData(aURL){
myLoader.load(new URLRequest(aURL));
addChild(myLoader);
}

2. Cast the timeline as a generic object
var parentObj:Object = this.parent as Object;
parentObj.unloadSWF("loaded.swf")
Why can you not just reference the main timeline of the container swf directly.

View 5 Replies

ActionScript 3.0 :: Control Main Timeline From Loaded Swf?

Nov 2, 2010

i have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu i'm able to navigateToURL but i also need that it goes to frame 50 in menu.swf..

View 2 Replies

ActionScript 3.0 :: Controlling Main Timeline From Loaded Swf?

Feb 22, 2011

So basically I have two swfs, main.swf and level.swf.. main.swf simply has two frames, first one has the code below to load level.swf and the second frame has some text in it, it's labelled "theend".

Code:
var request:URLRequest = new URLRequest("level.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);

level.swf is more complicated, it's a little game and blah blah, but the thing is that I have a button (cnt_btn) in the last frame. I'd like this button to go to the second frame ("theend") of the main timeline.

View 2 Replies

ActionScript 2.0 :: Loaded Swf Interfering With Main Timeline?

Dec 11, 2009

I have a main flash movie, which I'm using to display various other smaller swf's.All the SWF's including the main one are set to flash player 8, action script 2.Script used is:loadMovie("swf/movies/moviename.swf", "p2");This is loading the swf into a correctly sized and placed movieclip with instance name "p2"This all works perfectly well apart from one particular swf. It has various script in it that seem to be interfering with the timeline of my main movie. Causing it to start playing, when it should be stopped etc. It seems to cycle through all the other keyframes until it gets back to keyframe that it sits on.

Is there a way of making sure none of the script within the loaded SWF will effect the main movie that it's loaded into?I tried usingthis._lockroot=trueon the 1st frames of the SWF's to be loaded, and also on the 1st frame of the main movie, but it does not work.I also tried loading to various levels, with no luck.Something in the externally loaded SWF's is causing the main movie timeline to go crazy. I guess either the interval timer or the endcount.Here's some of the code from the external swf thats being loaded into the container:

this.stop();
pause = function () {
play();

[code].....

View 4 Replies

ActionScript 3.0 :: CS4 - Communication Between Loaded External Swf And Main Timeline?

Feb 4, 2010

I'm having issues with an animation and need to get it functioning properly. I've posted two example/demo files to illustrate desired functionality.The main timeline (testMain.swf) consists of a loader, section/slide one content, and a button (bttnClick) set to load an external swf (external.swf).

external.swf contains two additional sections/slides and two 'next' buttons (bttnEnter with 'bNextOne' & 'bNextTwo' instance names) to navigate. When the second 'next' button (bNextTwo) is clicked I need the loaded external swf to fade out revealing the original main timeline (testMain.swf) and returning/stopping playhead at the 'slideOne' frame label. Does the external swf need to be unloaded even though users will most likely go back to it? What�s the best way to handle this?

If you could assist with the external swf fadeout to main timeline, the return to 'slideOne' frame label, and insight as far as the best way to return to the external swf.

View 2 Replies

ActionScript 3.0 :: Loaded SWF Calling Main Timeline Function

Aug 5, 2009

I have a project which requires the loading and unloading of multiple "scenes". All my navigation is working (probably not the most efficient way) but I'm having one issue. I need a button on one of the loaded SWFs to call a function on the main timeline. Since Actionscript 3 no longer supports the _root functionality the way AS2 did, I cannot access the main timeline.

In general, how do I get to the root of the main timeline without using _root?

Also, how can I reference the loaded SWF and objects inside of it from the main timeline?

View 1 Replies

ActionScript 3.0 :: Getting An External Swf To Be Loaded On A Page In Main Timeline?

Sep 25, 2011

I'm about 10 hours deep into getting an external swf to be loaded on a page in my main timeline. I've gotten as far as loading the external swf (within the first few hours) hahah but now, have spent twice as long trying to get the external swf to be removed when a person navigates to a different page of my main timeline.

I have a videoplayer on one frame which is my "video" page. I've gotten the external swf to load two different ways, for example, the latest code i am using to load the external is below and seems so nice, clean and simple:

var request:URLRequest = new URLRequest("VideoPlaylist_HV.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
loader.x = 180
loader.y = 50

But I would like to add a function that says on any mouse click event (navigation) close the swf that is loaded.

If any of you genius people out there can help me, please do. I thought getting it to load was going to be the hard part but I was wrong. I am very discouraged by Actionscript in general.

download what i have so far, i left alot of the content out so the file size isn't big. And yes, i am sure once you see how I work you will be sure that I am no flash expert. I can send a link to the .flas, the site won't allow me to post the link as I am new.

View 5 Replies

Actionscript 3.0 :: Controlling Main Timeline From A Loaded MovieClip?

Mar 17, 2009

I am building a website in as3. As of now this is what I have. My main file has a button on it and builds a movieclip to hold loaded movieclips.

The file runs and loads about.swf into the main file. When the button is pressed it tells about.swf to play the exit animation.

All of that is working. What I want to happen now is once the exit animation finishes I want the about.swf file to tell the main timeline to load a new movie.

I can control loaded movieclips from the main timeline I just do not know how to control the main timeline from loaded movieclips.

View 5 Replies

IDE :: _currentframe From Loaded Swf Movieclip Return Main Timeline's Frame

Jan 9, 2009

My script have a list of .swf files and needs to play them one by one. My problem is that i can't detect when the movieclip (containing the swf) completes playing.

I understood that i need to copmare between _currentframe and _totalframes of the moviecip but i keep getting 1 as the _currentframe (my main timeline contains only 1 frame).

Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
var container:MovieClip =

[Code]....

View 4 Replies

ActionScript 3.0 :: Play Movie Clips Embedded Inside A Movie Clip On The Main Timeline?

Dec 6, 2009

I have my flash document set up in the following way: On the main timeline I have my buttons that I want to play movie clips embedded inside a movie clip on the main timeline.However, when I click each different button, the current movie clip stops playing and then the movie clip corresponding to the button plays.

I want them all to be able to play at once. So for example you push button 1 and the alien plays, but half way through you could click button 2 and the alien clip would keep playing, but also the helicopter clip would begin to play as well.Here is the code I have so far:

building_btn1.addEventListener(MouseEvent.CLICK, alien);
building_btn2.addEventListener(MouseEvent.CLICK, helicopter);
function helicopter(e:MouseEvent):void {[code]......

View 1 Replies

ActionScript 3.0 :: Control The Property Of An Object In Main Stage From A Loaded Swf Timeline

Oct 11, 2010

i have a UILoader that loads an image from an xml list when you click its thumbnail ( in its thumbnails mc on mainstage aswell) thing is, i have another UILoader on the layer above that loads in a swf ( a slideshow that fades in and out the pictures when they change to the next, with all the coding on frame 1, frame 2 only has a stop and some code for when the mouse is idle for 5 secs it goes back to frame 1) so when you go to "portraits" it takes you to frame "x" where the slideshow ( loaded external swf ) starts playing automaticly right, if i click any thumbnail the slideshow goes to frame 2 ( wich is perfect and the mouse idle thing i wanted works great ) the ONLY THING IS

after the slideshow runs by default for the first time ( i enter the category portraits ) and i click any thumbnail ( moving slideshow swf to frame 2 enabling mouse idle event ) and the mouse is idle ( so it does the event and starts playing the slideshow again ( goes back to frame 1 ) ) I CANT MAKE THE UILOADER OF THE THUMBS IMAGE TO DISSAPPEAR!

View 5 Replies







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