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


Similar Posts:


ActionScript 3.0 :: Communicating From External Swf

May 13, 2009

Im working on a project wherein I have the main fla tied to a document class entitled MyContent. The main fla consists of buttons and textfields, etc. External swfs are loaded when the buttons are pressed. My question is what code would I have to include in one of the external swfs to allow it to be able to change the content of one of the textfields, which was assigned dynamically in the MyContent class? The code within the MyContent class consists of a dynamic text field on the stage named longDesc and a string named long1. ex:

Code: longDesc.htmlText=long1; In the external swfs I have images that are enlarged on a click event and would like to be able to have the textfield in the MyContent classed changed as each image is selected through code in the external swf.

View 4 Replies

ActionScript 3.0 :: Communicating Between External Swf's And The Main Swf

May 23, 2010

how do you get an external swf which has been loaded into the main swf to talk to the main swf?

Like, lets say you load an swf into a container clip inside the main.swf's timeline, but need to get things to happen in the main one from the external one...

in as2 you used to just be able to go, say _parent._parent.main.gotoAndPlay("whatever");

View 3 Replies

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

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 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.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 3.0 :: Flash IDE Not Communicating Properly With PHP

Jun 16, 2010

When I compile and publish my flash movie and put it in my xampp/htdocs folder and then run the movie from Firefox, it works just fine. However, every time I try and run it in the Flash IDE, the PHP script doesn't get compiled. Instead, the uncompiled code gets read in as the data, and so when I run trace(evt.target.data), it basically shows all the PHP code plus a bunch of other gobeldygook. If I remove out the line loader.dataFormat=URLLoaderDataFormat.VARIABLES;, it then just shows the PHP code as is.

My question is this: what do I have to do to make the IDE run the compiled PHP script instead of just loading in the raw code as is?

[Code]......

View 7 Replies

ActionScript 3.0 :: Flash Communicating Between Two Classes?

Apr 21, 2011

I have a custom keyboard class. The second class is having a textBox as its child and my custom keyboard's object as child. When the key in the custom keyboard is clicked, how can i update the value in the text box?

View 4 Replies

Actionscript 3.0 :: Flash Survey Form Communicating With Php

Apr 16, 2009

i keep getting this error..and nothing works..here is my php code and i have attached the fla file [code]

View 2 Replies

Flash :: Communicating Between Adobe Air Or Browser And Java Web Start

Nov 11, 2009

We're designing an application and the client has requested that a portion of their app stay in Java Web Start and another portion be in a browser. I'm thinking about AIR as an alternative to the browser because that may give us more features b/c we don't have to stay in the browser security sandbox.How would I go about having an Air app talk to a Java Web Start app? Do they have to talk through a server? I guess potentially you can just create a socket connection between the two.

View 1 Replies

Flash :: IDE - Communicating PHP / JS - Remove All The Actual Attribute Options

May 26, 2009

I'm working with cart software called PinnacleCart. It's a pretty good system, I use it mainly because of the flexibility in the attributes fields, and our products require alot of customization. The obvious solution here is to add in a Flash customizer, to make it easier for prospective clients to see the changes being made to the items. Inside of the cart software I can select images to upload. I thought about stripping out the validation so I can upload .swf files (edit the product page php to embed if it's a swf file) and go from there.

Now here is the tough part, for usability reasons I want to remove all the actual attribute options - So the logic is simple, if SWF = true then don't display attributes. So, from here I assume when the person clicks 'add to cart' I need to run some javascript to grab the attributes from flash, assign them to the javascript attributes, then proceed as normal.

[Code]...

View 1 Replies

ActionScript 2.0 :: Multiple Flash Components On HTML Page Communicating?

Oct 14, 2009

I'm setting up an HTML page that automatically starts playing a flash video. Well at the bottom of that page - is an area with testimonials thumbnails that the user can click on loading up a small flash video in that component. Is there a way to tell the main video to pause or restart or whatever so that I don't have two videos playing at once

View 7 Replies

ActionScript 2.0 :: Multiple Flash Components On HTML Page Communicating

Oct 14, 2009

I'm setting up an HTML page that automatically starts playing a flash video. Well at the bottom of that page - is an area with testimonials thumbnails that the user can click on loading up a small flash video in that component. Is there a way to tell the main video to pause or restart or whatever so that I don't have two videos playing at once?

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

Stop External SWF From Playing?

Jun 8, 2009

Ive got a project with a fairly complex arrangement of menus and a narrated tutorial of sorts that is large (in terms of Mb) compared to the menus themselves. Since the tutorial is likely to be played only once, if at all, I don't want to load the asset unless needed. To do this I'm using the following code to load an external swf (the tutorial) and attach it to an mc container (mc_launch). A loader bar will be added later but for now it works, except: if the user navigates away from the tutorial (jumps to another frame in the menu timeline) the audio of the child attached to the mc_launch continues to play even though the instance of the mc_launch is no longer on stage. Shouldn't all the child objects of the container go away once the instance of the container is gone? If not, do I specifically have to execute a mc_launch.removeChild(loader) before navigating away from the instance of mc_launch?[code]...

View 5 Replies

Playing External .FLV File(s)?

Aug 24, 2009

I am fairly new to Flash and working with MX 2004 with Flash 2. I have tried several methods to play an external .FLV file. Some ideas from this forum and some from the Flash help system. Either I don't understand them and/or I am not implementing them correctly but nothing has worked. I have read of an FLVPlayback component and my system has a MediaPlayback component in the Component window. I have also seen yards of actionscript to play such files. Can anyone supply me with a basic/simple method, with code/example or buttons-to-push if necessary, to have an .SWF play an external .FLV via my MX 2004 system?

View 3 Replies

IDE :: Playing External Swf's In Rectangle?

Oct 10, 2009

I've got a flash site that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.

View 1 Replies

ActionScript 2.0 :: Playing External Swf's In Rectangle

Oct 11, 2009

I've got a flash site [URL] that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.

View 2 Replies

ActionScript 3.0 :: Playing An External .mp3 File?

May 5, 2009

stop();var pausePoint:Number = 0.00;var isPlaying:Boolean;
var soundChannel:SoundChannel = new SoundChannel();var sound:Sound = new Sound(new URLRequest("Sounds/Music_File_2.mp3")); 

[Code]...
 
I am trying to play the .mp3 file called "Music_File_2.mp3" the music file is in a folder called "Sounds" 2buttons called Play_btn and Stop_btn plays and stops the music. Once the music playing if i click on the play button the music will pause.
 
Everything works fine when i launch the program though "Flash Player 10". but when i right click and open the .swf file with Internet explorer the whol project works fine, but the sounds would not play.

View 5 Replies

ActionScript 3.0 :: External SWF Sounds Playing Over Each Other?

Aug 26, 2009

Does anyone have any clue on how to unload an external swf with all its sounds?

View 1 Replies

ActionScript 3.0 :: How To Stop External SWF From Playing

May 25, 2010

I am having a problem stopping external swf from playing. I am currently using FlashCS4 and publishing to Flash Player 10. I would really like to use the code
"loader.unloadAndStop();"
to stop the swf. I tried using it but I keep getting the following error:
1061: Call to a possibly undefined method unloadAndstop through a reference with static type flash.display:Loader.loader.unloadAndstop();

I read somewhere that since the swf files were published in Captivate (also using Flash player 10) I have to load the swf into a flash movieclip first then try the loader.unloadAndStop code.
fscommand("allowscale","false");
fscommand("showmenu","false");
//import flash.display.MovieClip;
var Xpos:Number = 220;var Ypos:Number = 105;
[Code] .....

View 7 Replies

ActionScript 1/2 :: Empty Mc Not Playing External Mp4?

Oct 4, 2010

Before the mp4 plays I have a preloader set up in Frame 1to preload the movie and play in Frame 3.

myLoaded = Math.round(getBytesLoaded());  myTotal = Math.round(getBytesTotal());  myPercent = myLoaded/myTotal;if (myLoaded == myTotal)
{  gotoAndStop(3);} else {  gotoAndPlay(1);}

[code].....

View 5 Replies

ActionScript 3.0 :: External Swf Audio Keeps Playing?

May 21, 2010

I have a big problem that the audio of the external swf keeps on playing on top of other swf after clicking another button.

I have about 22 external swf files that are called up after clicking on their respective button. However, the audio keeps playing on top of the new swf that is selected. It thought the "removeChild(loader);" would work but it doesn't remove the audio.

I don't know if this may be an issue, but along with every swf that plays there are 3-4 .flv videos that are included in the swf. I have included the code.

import flash.display.MovieClip;
var Xpos:Number = 220;
var Ypos:Number = 105;
var swf:MovieClip;

[Code].....

View 6 Replies

ActionScript 3.0 :: Removing External SWF When Done Playing?

Oct 10, 2010

So I am loading an external swf clip into my project. When it finished playing, I want to remove it. How do I track when its finished playing?

View 4 Replies

Actionscript 2.0 :: External .swf Preloader Playing Before %100

Feb 16, 2007

Below is the action script to load an external .swf and display the preloader (typical 100 frame). My problem is that, the .swf will begin to play behind the preloader as the content is still loading, it will not wait for the content to fully download. I appear to have everything setup almost exactly like most of the MovieClipLoader tutorials i've seen and I cannot fix this problem.

Code: Select allvar myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);

[Code].....

View 7 Replies

ActionScript 2.0 :: How To Tell External SWF To Start Playing

Nov 24, 2003

I need to tell a external movie (.swf file) to start play when I click on a button. I have made a site in dreamweaver where the topframe is in flash and the middleframe in html and the bottomframe in flash. I have 2 buttons on the topframe and I want when I click on one of them the
bottom flash file starts to play.

View 1 Replies

ActionScript 2.0 :: MovieClipLoader Not Playing External Swf?

Jan 23, 2007

I am using MovieClipLoader to load a swf. The external swf has about 12 images on it that just show up one after another. But only the first frame displays.

My code:
[AS]
var empty_mc:MovieClip;
var mclListener:Object = new Object();
var myMCL:MovieClipLoader = new MovieClipLoader();

[code]....

View 11 Replies







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