Loading And Playing An External SWF In Flash CS3?

May 5, 2009

I've been trying to figure this one out for a couple of days now, and it's driving me nuts! I'm new to flash (I'm using CS3 with AS2), but I've managed to convert a template into an almost finished site. My problem is this: I've made an external slideshow swf which works fine if used by itself. It's saved as a flash 7 AS2 according to the program (Aleo Slideshow Gallery Maker) used to generate it. It's in the same directory as the main swf file. I'm not sure of the code to load and play the external slideshow swf with a button in the main swf file. Do I need to change the html as well as the swf script? I've tried all sorts of things, but I can't figure the script out on how to finish the flash to include the slideshow. The SWF files inquestion are attached - I'm just using sample iamages at the moment. When I go to the gallery page, I want to be able to click on the fly to load and play the slideshow.

Attachments:
slide_btn.swf (17.8 K)
backup70.swf (881.4 K)

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Flash Loading And Playing External Swf After Going To Frame Label?

Feb 7, 2011

I have a button on the main timeline. 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.

I've inserted the following code into the frame label "history" actionscript.

[Code]....

View 1 Replies

ActionScript 2.0 :: Loading And Playing Buffered External FLV's

Jan 30, 2009

what I'm trying to put together is some code that will load in multiple flvs, buffer the vids and have them play one after the other in a loop. I have so far code that loads in an array of flvs but doesn't loop. Also the buffering stops the play back for a moment towards the end of the first video, not sure why but changing Flush into Full doesn't help. Anyone know how to add a buffer that plays after a % of the movie it buffered or will buffer movie one and then buffer movie two while the first movie is still playing? As for looping goes I need a listener waiting for the last video in the array to be completed, but not sure how to pull that off.

[Code]....

View 0 Replies

Actionscript 3.0 :: Loading Half An External Swf Before Playing It?

Aug 31, 2009

I'm a semi-beginner with AS, particularly with AS3. I am using a preloader to preload half the main swf before actually loading it. It will be approx. 30mb so I don't want people waiting for all of it to load, I'd rather it preload half, open it, then continue loading the rest. I'm presuming this is possible. If so, I intend to include a progress bar once inside the main swf so that the more it loads, the more menu buttons glow and become active. I've seen this "continuous load" thing done with the Halo Believe ebsite.See heror the Halo website, the developers broke up the swf into five 10mb swf files and stitched them together so they would seamlessly load (much like a streaming video) and the visitor would be none the wiser.

I have no idea how they did it, but I thought it would be simpler to keep mine as one complete 30mb file; preload half and then load half while in the main swf. The main swf is an image sequence similar to the Halo site, and the menu buttons are locatedthroughout the image sequence, so they will be accessible as the main swf continues to load. I'm hoping this makes some sort of sense!I've just switched to AS3. I haven't included a progress bar yet, I'm still trying to get the main swf to load half way first:

Frame 1 of preloader:
Code: Select allstop();
var loadDNA:Loader = new Loader(); //loadDNA is what I've called my loader

[code]......

View 6 Replies

Professional :: Loading External Swfs And Playing Them In Succession?

Sep 15, 2010

I found this code for loading external swfs and playing them in succession.
 
It works when I use the external swfs that come with the code, but not when I try to use any other external swfs.

I can't figure out why - does anything seem obvious (the clip swfs are here [URL]
 
// Array of external clips to use. Variable index refers to next clip to be displayed.var clips:Array = ["clip0.swf", "clip1.swf", "clip2.swf"];var index:int = 0; 
// Stuff to load swf filesvar thisLoader:Loader = new Loader(); thisLoader.contentLoaderInfo.addEventListener(Event.INIT,

[Code].....

View 9 Replies

ActionScript 3.0 :: Loading And Playing Multiple External Swfs?

Jul 26, 2011

I have a main movie that sets up the loads of multiple swfs with:
 
/* imports */
import flash.net.URLRequest;
import flash.display.Loader;
import flash.utils.Timer;

[Code]....

How do I get it not just to start the move but play as well? Everything I tried caused an error or didn't work.

View 7 Replies

Actionscript 3.0 :: Loading And Playing 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.

I've inserted the following code into the frame label "history" actionscript.

var myrequest_history:URLRequest=new URLRequest
("http://floramultimedia.com/musicGarden/main/swfs/slideshow1.swf");
var myloader_history:Loader=new Loader();
myloader_history.load(myrequest_history);

[Code]....

View 1 Replies

ActionScript 2.0 :: External .swf To Be Loading While That Movie Clip Is Playing?

Aug 2, 2003

I would like to have it so that when I click a button, it tells a movie clip to play and it just blinks loading. I want an external .swf to be loading while that movie clip is playing. When the external .swf loads, I want it to tell the mc to stop. How do I do all of this?

View 1 Replies

Flash :: Loading And Playing More Than One .mp3 File?

Oct 25, 2010

I'm trying to set up a .flv file that will have buttons for two different pieces of sound.I've been able to get the first piece to load and to play and stop, but when I try to load the second piece, I trip up.I'm still a novice, but do think I understand the basic problem -- Actionscript can't distinguish between one sound request and another. The question is, how to fix this and get actionscript to understand that I'm trying to load and play two different sounds associated with two different buttons?I get error codes such as "1151: A conflict exists with definition s in namespace internal." , "duplicate function" problems and "duplicate variable" warnings. I've seen some discussion on this site of a recyclable sound object. I think I'm asking a similar question, but although the person who posed that question also posted a solution, I haven't been able to make it work.Here's the code:

var s:Sound = new Sound();
s.load(new URLRequest("http://www.website.com/Water.mp3"));
wellsplay_btn.addEventListener(MouseEvent.CLICK,playSound);

[code].....

View 2 Replies

Flash :: AS3 Playing / Communicating With External Swf

Sep 2, 2011

so im bringing in a test external swf like so:

[Code]...

this simple external test swf has 10 frames. @ frame 1 theres a "intro" label, @ frame 5 theres a "stop" action, and on frame 6, theres an "outro" label. problem is that, when i click the button, it reloads the external swf and plays from frame 1.

View 3 Replies

Flash :: Playing Swf External File?

Dec 19, 2011

I want to play a external SWF file (which is in server) in client side. It is working when I run through flash, but when double click on .swf it shows a dialog box:

Adobe Flash Player Security To let this application communicate with the internet click Settings.

So what settings do we need to change to play the swf file?

View 1 Replies

Flash :: Sound Keeps Playing After External Swf Was Unloaded

Oct 14, 2010

I have a flash application, some kind of a play-list that loads external SWF video player (I don't have code access to that external file), so users can watch the video or skip to another one. When user switches to another video new SWF file is being loaded.

The problem: If user didn't finish watching the video and skips to the next then I unload previous SWF file (unloadAndStop()) and load a new one. And because the previous SWF was playing it is not actually unloaded, it is still playing on the background (I hear two audio tracks: current and previous).

View 1 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 2.0 :: Loading External XML On An External Server Into Flash Movie When It Is Uploaded

Jun 4, 2004

[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.

View 2 Replies

Flash Player Not Playing External Flv File In IE And Chrome?

Aug 27, 2011

I am trying to play an FLV file in a flash player but it is not working in IE9 and Chrome. Works in firefox though.url...Theres 2 videos in the above linked page. One uses a simple flash player while the other uses JW player.Both give a "video not found" error in IE9 and Chrome. Both work in Firefox 5 though.(the link to the flv file is given as text on the page)

View 1 Replies

ActionScript 3.0 :: Flash - External Swf Is Playing When Preloader Does Not Complete?

Mar 23, 2012

External swf is playing when preloader does not complete.I can not access external swf.My codes;

package com
{
public class MainClass extends Sprite

[code]......

View 2 Replies

Actionscript 3 :: Flash : Loading Bar Not Finished When Movie Starts Playing?

Mar 24, 2010

I'm using the same code I always use for preloading another swf but it's not working this time. The problem this time is that when the loading bar gets to 16% every time you can hear the movie I'm loading playing in the background. I can just add a stop to the first frame of the movie I'm loading ("trial_1.swf") but how do I tell it to go to the second frame once it has loaded?

Here's my code:

var myrequest:URLRequest=new URLRequest ("trial_1.swf");
var myloader:Loader = new Loader();
myloader.load(myrequest);

[code]....

View 1 Replies

Flash :: Why Does Youtube Show The Loading Icon Even When It Has Loaded Enough Video To Start Playing

Feb 3, 2010

I mean youtube or any other streaming video site, but I've seen it on Youtube. There are times that the loaded bar shows that more than enough video stream has been loaded so the player could play it but it suddenly pauses and shows the loading icon?

View 2 Replies

ActionScript 2.0 :: Flash 8 - Current / Loaded Movieclip To Continue Playing Until It Reaches The End Of The Clip Before Loading The Next

Jan 14, 2008

I have a number of menu buttons (home, about, contact, etc). Each button loads a new/different movieclip onto the scene. Each movieclip when loaded plays up to frame 25 and stops. When I click on any of the menu buttons, I want the current/loaded movieclip to continue playing until it reaches the end of the clip before loading the next. I tried this actionscript with no luck!

[Code]...

View 2 Replies

Flash :: External Xml File And Loading?

Jun 28, 2006

I'm calling an external xml file and loading it into Flash. I can only pull the varables out in the onLoad function. Here it is.

var courseXML:XML = new XML();
courseXML.ignoreWhite = true;
courseXML.load("presentSlidesOne.xml");
courseXML.onLoad = function(bSuccess:Boolean):Void {

[Code]...

View 5 Replies

Loading External Text To Flash CS4?

Apr 19, 2010

I am trying to find simple code to load an external text file to a CS4 .fla file. (Actionscript 3) I have found numerous tutorials and script on google but every one of them gives me syntax errors... I just want to be able to change the text without having to republish the swf every time...

View 1 Replies

ActionScript 3.0 :: Loading External Php Into Flash?

Dec 14, 2009

How would I go about loading php in Flash. I have read tutorial after tutorial and basically all the ones I find suck. I can't find any detailed tutorials for doing this. So could somebody explain in detail how to do this or point me in a good direction? I don't know much about actionscript and I don't plan on doing much more with actionscript then just loading external php files.

View 2 Replies

ActionScript 2.0 :: Flash MX Loading External Swf

Jan 12, 2003

I'm creating an all flash website. My main page has a image mc on the root timeline, in a set location and I'm attempting to make that image change whenever a menu button is clicked, by loading an external swf.I've followed the "Loading Techniques" tutorial here on Kirupa for the AS and the image change works well, except for one thing...When I click on my menu buttons the images change as I've assigned them, but there is a flash of the original image which is sitting on my root timeline. How do I get rid of the original image, upon each click of my menu buttons?

View 1 Replies

ActionScript 2.0 :: Loading External .txt Into Flash?

Apr 25, 2006

I have been trying to get text to load into Flash from a .txt file. Right now I have a dynamic text box set up with an instance name and I am using this code:

homeContent = new LoadVars();
homeContent.onLoad = function () {
homeContent_txt.text = this.content;
homeContent_txt.multiline = true;

[code]....

But when I load the page the word "undefined" shows up inside the text box. Not the actual text from the .txt file. But that is the only thing I get. No error or anything else.

View 5 Replies

ActionScript 2.0 :: [flash 8] Loading External .swf's Into Another .swf?

Oct 28, 2006

Im having trouble loading external flash files into another flash file....Iv read so much about it but all the tutorials i found are missing so many details....like...how do u target the external flash? Also i would like a movieclip button to open the external flash file..

View 6 Replies

Playing SWF While Loading?

Nov 16, 2009

I am developing a SWF player. The application plays SWF instead of FLV. The SWF, that has to be played is a simple static movie. The application requires SWF to be played while it's being loaded just like FLV's get played.
 
Now, Is there any way to play SWF file while it's being loaded??

View 4 Replies

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

Flash - Loading External Content (in CD) Address

Jun 14, 2009

I have a CD and have all my files in it and I want to load them into my flash file, how can I do it?

View 7 Replies

Flash :: New To - Method Of Loading External Files?

Sep 6, 2011

i have been working with a few basic flash presentation to learn the ropes. However, I am working on a flash file which, when compiled, pulls in flash content from elsewhere in the Parent folder. I have read through the FAQ and cannot find the answer, as there doesn't seem to be any Actionscript which handles the importing of these external files.

Are there other methods that I am unaware of? I need to edit these other files, however I find it more beneficial to first understand how the Flash file is compiled before editing.

View 2 Replies

AS2 :: Flash Parsing XML Without Loading An External File?

Nov 8, 2009

In my flash, the socket server returns some xml data that I need to parse, but it seems that the only way to start the XML object is with the XML.Load() which loads an external file, but my XML file is already loaded into a variable

trace("raw: "+msg);
msgArea.htmlText += "update remote player loc";
var playerLocXMLOb = new XML(msg);

[Code]....

View 4 Replies







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