ActionScript 3.0 :: Control The External SWF To Play It's Outro And Then Load The Next SWF?

Sep 20, 2009

It's all about loading and unloading external swf's.My code is working perfectly though I just have some questions about load and unload issues.

------------------------------------------------------------

I have three buttons on the stage and it should load its external SWF

homeButton_btn - home.swf
page1Button_btn - page1.swf
page2Button_btn - page2.swf

Each of the button should load it's external SWF's intro when click.My problem is that I don't know how to command the button to play the swf's outro and then load the next swf everytime I click a button. Example: When I click homeButton_btn, the external swf should load "home.swf" and then if I am going to click page1Button_btn, the outro of "home.swf' should play and then once it reaches the end of it's timeline, it should load "page1.swf". Same goes with page2Button_btn, whatever swf that is on the stage should play it's outro first and then load "page2.swf"

My questions are: 1. How can I control the external SWF to play it's outro and then load the next SWF.

2. What code should I put at the end of the external SWF's timeline.

3. Where do you think I should put the preloader? Is it better to put it at the external swf timeline? or on my main swf timeline?

4. Does load and unload of external swf also work with movieclips? Like for example I will not use a external swfs, instead I will use movieclips to load and unload its content.My Actionscript 3.0 code

var pageContainer:Loader;
pageContainer = new Loader();
var nextMov:String;[code].........

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Make Intro / Outro Animations Before / After Load External Contents?

Nov 24, 2009

I want to do is a simple transition that allows to me start some function (at the external swf!) to dismount the LOADED content. I'd like to change the external contents with intros and "outros" located on their own timelines.. It's a simple logic, but I dont know how to manage that.. Everytime I try some simple, it never happens.

[URL]

View 6 Replies

ActionScript 2.0 :: Play Outro Of Swf B4 Playing Intro Of Next Section

Mar 16, 2004

how, because I have lets say 5 transitions and each swf has an intro and an outro, and I want to make it so if you click lets say wallpapers, theres a little loader at the bottom right of the screen that preloads the wallpaper transition, without yet playing the outro of the current transition your in (home lets say), Is it possible to script it so that when flash detects that wallpaper transition has fully preloaded it will play the "outro" part of home and than play the intro part of wallpapers to create a seamless transition

View 3 Replies

ActionScript 2.0 :: Play Outro Of Swf B4 Playing Intro Of Next Section?

Mar 16, 2004

I have lets say 5 transitions and each swf has an intro and an outro, and I want to make it so if you click lets say wallpapers, theres a little loader at the bottom right of the screen that preloads the wallpaper transition, without yet playing the outro of the current transition your in (home lets say), Is it possible to script it so that when flash detects that wallpaper transition has fully preloaded it will play the "outro" part of home and than play the intro part of wallpapers to create a seamless transition

View 3 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 3.0 :: Control External Mp3 Play Time?

May 2, 2011

How can I control the playing time of an external mp3 using actionscript ?

I need to only play a 10 second clip of this sound file so how can I control the length of play time?[code]...

View 0 Replies

ActionScript 2.0 :: Select New Content To Load Into Replace It The Movie Simply Vanishes Without Showing The Outro Sequence?

Aug 2, 2007

I have flash movie that I'm loading other movieclips and swfs into.At the moment when I load in a new swf, the timeline plays through the intro sequence, then when I select new content to load into replace it the movie simply vanishes without showing the outro sequence.It's been puzzling me for a while now but i've seen it used on many flash sites so i'm guessing there's definately a way to do it.

View 4 Replies

AS3 :: Movieclip To First Play An "outro" Animation When Click A Certain Button

Jul 27, 2009

I have a movieclip playing and when I click a certain button I want the movieclip to first play an "outro" animation (which is also inside the movieclip) then go to the real target of the button. For example, I am at the Homepage of my website then I click on the Contact button. The homepage will first go to Homepage's outro animation then go to the Contact page. I need the button to recognize the page/clip being played and the page it will go to.

View 1 Replies

ActionScript 3.0 :: [CS3] Flash Interface For Client To Control Play Order Of External Swfs?

Jan 14, 2009

My client has approx 12 different presentation .swf's all with a beginning, middle and an end (phew!). I need to build an interface that views those 12 individual presentations as thumbnails on a single page and allows my client to click and drag whichever ones they wish to use into a separate little container above and in-doing so create a new required running order (left to right) each time they use my interface... so that once they have decided that running order they can somehow use the result for their required presentation. They will be using this interface ongoing throughout the year for various presentations all that will require maybe just a few of those individual swf's in different orders.

View 6 Replies

ActionScript 3.0 :: Load And Play Different External MP3

May 11, 2010

I wanted to have a sound playing (loaded external mp3) and then have various buttons on the screen that load an alternate song in its place. 
 
This is what I'm trying to do:
 
var myMusic:Sound = new Sound();var reqMyMusic:URLRequest = new URLRequest("mySong.mp3");myMusic.load(reqMyMusic);myMusic.play();
music1_btn.addEventListener(MouseEvent.CLICK, music1);

[Code]....

View 3 Replies

As3 :: Load External Swf Into And Play Pause Forward?

Dec 19, 2011

I am trying to control movie clip to anther swf file but its not working how to do .

View 1 Replies

ActionScript 3 :: Load / Play And Mute External SWF

Aug 16, 2010

I have a file to which I do not have the source - a flash header with an obnoxious sound intro and I need to mute all sounds. Without the source I am limited as to what I can do. I have some as3 code that I am using to try and load the swf into and mute(building in FlashDevelop). Here is the code in question:

package {
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.media.SoundTransform;
[Code] .....

This code above still plays the audio and the original swf is not being displayed. So, my questions are:
How would I mute the external audio?
How would I display the external swf just as it does when viewing it directly?

View 1 Replies

ActionScript 2.0 :: Load External Swf And Go Play At Frame 2?

Oct 25, 2011

i would like to load the "1.swf" to the "hub.swf"(ROOT MOVIE) and have it gotoAndPlay(2) using AS2.he thing is I can't put the gotoAndPlay(2) on the first frame of 1.swf.

hub.swf >>
_root.btn1.onRelease = function() {
loadMovieNum("1.swf",0);

[code]......

View 1 Replies

ActionScript 2.0 :: Flashcs3 AS2 External Swf Will Load But Won't Play

Dec 17, 2008

I am totally new to actionscript.I found a slideshow which uses an xml file to load jpgs. (albumV2.swf)The xml contains jpgs, and captions.When I publish it on its own...works fine.Now I'm trying to place albumV2.swf inside a deeply nested mc.I'm using a button to navigate to the target movieclip (holder_mc) which I want to contain the external swf.[code]when I test The albumV2.swf loads, I can see the background for the photos. But it won't play.There are thumbnails in the swf that don't show, but there's also a timer and counter in the swf that do show.All the photos are called from the xml doc, but I can't see them. However, I CAN see the first caption that's in the xml.doc. and only the first caption.I wondered if the code in the original slideshowFLA uses some hierarchy that I'm screwing up, but shouldn't the xml be fine once it's found?

View 1 Replies

ActionScript 3.0 :: Sequentially Load/play External Swf Files?

Jul 1, 2009

I have a series of 5 external movie clips that i want to load as fallows:

Load Clip1.swf
Play Clip1.swf
While Clip1.swf is Playing
Load Clip2.swf

[code]....

View 0 Replies

ActionScript 2.0 :: Load External File Then Play Movie?

Dec 17, 2009

Is it possible for a movie to stop until an external file has fully loaded at which point the main movie will then play?

View 1 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 :: Load External Swf And Goto And Play Certain Frame?

Jun 24, 2005

im trying to do is load an external swf file into a "base" file but play a certain frame number or label in the external file.I have a file called base.swf file which is level0In base.swf i have nothing but 1 frame with the following AS code:loadMovie("top.swf", 2);This works fine and loads and plays top.swf, but how can i load top.swf and play a certain frame label or number as soon as its loaded. Ive tried the following which does work but i hope it kinda explains what i want to do.

loadMovieNum("top.swf", 2);
tellTarget (_level2) {
gotoAndPlay("MyFrameLabel");

[code].....

View 10 Replies

ActionScript 3.0 :: Load & Play External Flvs Continuously?

May 4, 2009

code that will load and play a folder of flv's continuously?I have a folder of short clips i converted to flv. When one clip finishes, i want the next clip to play and to endlessly loop through the flvs, never stopping. If there's a way to include a transition, that'd be cool too, but not important. I've got the first clip loading, but can't get the next to play.

Code:
var video:Video = new Video();
addChild(video);

[code].....

View 1 Replies

ActionScript 2.0 :: Button To Play Animation Then Load External SWF File

Sep 20, 2005

What I need is an AS code for a button which first play an animation ( a motion tween) and then load an external swf file.

View 2 Replies

ActionScript 2.0 :: Load 3 External Swf Files Into One Place And Make It Play?

Apr 2, 2009

How to write a simple script to load 3 external swf into one place and make it play one by one continuously?

View 6 Replies

ActionScript 3.0 :: Play External Preloader Before It's Load Original Movie Index.swf?

Sep 21, 2010

I like to play external preloader before it's load original movie index.swf.But I have a problem on resizing index movie.

Here is preload AS3 code:

package
{
import flash.display.*
import flash.display.MovieClip;

[code]....

View 1 Replies

ActionScript 2.0 :: Intro/Outro In The Same MC?

Feb 5, 2006

i try to make a intro/outro for some pages,the problem sounds like this:

I have a mc named pagini, where i have all the pages (text, pictures)

and a second mc, named effecte, where i have a intro/outro.

The problem that i don't manage to do, it is that when i press on a menu button, the 2 mc, playes simultanions. This is the actionscript for the buttons:

on (rollOver) {
gotoAndPlay("over");
}

[Code]....

Now what i`m try to do is that when i press a button, that the mc effecte playes first with the outro, and after that the intro comes. More explicit sounds like this(with a small exemple): I am in the page HOME (from the mc pagini) and when i press the RUNDGANG button i want the page HOME to stay, and the mc effecte with the outro section, and after it`s finished the RUNDGANG page come and on the RUNDGANG page the intro effect to play.

[URL]

View 1 Replies

ActionScript 2.0 :: Intro/Outro In The Same Swf?

Apr 13, 2006

how can i make something like a transition (intro/outro) in the same .swf. For exemple i have 3 buton, and when i press btn1 the first animation plays, but at frame 10 it's stoping. And if i press btn3 i want to play first animation (from frame 11 to frame 20) and then to jump to frame 40 and play until frame 50 where i have the stop.

| >-----1*-----> / | >-----2*-----> / | >-----3*-----> /
> = keyframe
1*,2*,3* = stop();

[code]....

View 11 Replies

ActionScript 2.0 :: Preloader With Intro & Outro

Jun 6, 2005

Any tuts on building a custom preloader w/ an intro and outro? I've searched but only found unanswered posts.

View 2 Replies

ActionScript 3.0 :: Playing Intro And Outro Of MovieClips Using Buttons

Sep 14, 2009

I just have some few questions about Buttons and MovieClips using AS3.
Intro and outro of a movieclips using buttons.

Like for example: I have two buttons named buttonOne and buttonTwo. When I click buttonOne, the movie clip named oneMc should play its intro and then stop then after that whenever I click buttonTwo, the movieclip oneMc should play outro animation and then movieclip twoMc intro comes in.

Do I need to use the Loader and URLRequest for this one? Also, how can I call the movieclip to play its outro and play the next movieclip's intro?

View 1 Replies

ActionScript 2.0 :: Uncessecary Intro & Outro W/ Tween/AS Preloader?

Jun 16, 2005

I have utilized the Tween/AS Preloader from this site and it works great! The problem is that when I test it online it keeps playing the intro and outro animation even if the movie is loaded into the browsers cache. It doesn't show the progress bar or the percentage (which is good) because it is already loaded, but it keeps showing the intro and outro animations (which is annoying). How would I keep the preloader from doing this?

View 2 Replies

ActionScript 2.0 :: Play Control Through Html?

Aug 18, 2003

I have a question for any seasoned Action scripters. Here's my problem, I have two flash files embedded in different parts of an HTML page and I want one flash file to play the other when it gets done. I would assume that I need to use PHP or javascript to talk with the HTML file that would send the other flash file a command which it was "listening" for. I really don't know however.

View 2 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

Put Control On Play Button Of Flvplayer Component?

Aug 20, 2009

I want to put some control on play button of flvplayer component in AS2.0.How this can be done ??How I can call play button: I don't know how it to be referenced/its name.

View 1 Replies







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