Actionscript 2.0 :: Communicate From One SWF To Another?

Feb 18, 2009

The Flash site I am building includes an FLV video which is embedded into a SWF (SWF1),which contains the video control components. SWF1 is in turn loaded into another SWF (SWF2) after SWF2 is launched. After I leave the part of SWF2 which contains the video, the video and audio continue to play. You can still hear the audio after you have moved away from the SWF1 video.The SWF1 video is part of a set of mostly PNG images that slide like a slide show along the X axis. When I hit the forward arrow, the SWF1 video slides out to the left and a loaded PNG image slides in from the right and into view. But you still hear the audio from SWF1 and the video continues to play.All of the loaded SWF video (there are three total) and PNG images are loaded into the same movie clip.Question: How can I tell the FLV video embedded in SWF1 to stop playing once SWF1 has moved out of view? I would like SWF2 to tell SWF1 to stop the video.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Communicate To C/C++ Dll Or Lib?

May 25, 2010

We are developing a Flash application based on Windows CE 6.0 R3 and the application is intended to work with Adobe flash plug in available in WinCE R3 Internet Explorer. Application need to communicate with middleware libraries written in C/C++. Flash screens uses Action Script 3.0. We would like to know how a Flash application (Action script program) can communicate with a native (C/C++) dll/lib?

View 1 Replies

C++ :: Communicate Between It And Flash?

Mar 18, 2011

Is there any way I can have an integration between Flash AS and C++? Let's say I have created a socket using C++ and multi-casting it to several ip addresses.

On one of the IPs I am running a Flash client. Can I receive the Multicast message (sent by MFC/C++ application) through my Flash application.

Or at least can I develop a Flash plugin (menu item) using C++?

View 1 Replies

ActionScript 3.0 :: Communicate Between AS3 And Embedded AS2?

Feb 28, 2009

I'm working on a game where the the engine is made in AS3, yet the interface is made in AS2. Basically I am embedding the GUI as a AS2 .swf into my main AS3 .swf. I want the AS2 GUI to be able to communicate with it's parent. Small Interface calls like Pause, Unpause, Upgrade.I tried to use External Interface, but I can't seem to get it to work. I know it's made for Javascript, but I thought that it would work just as well with AS2 to AS3.I'm able to edit the Interface file and have the FLA for it. It'd just be a real pain converting it... It'd take way to long to convert the FLA to AS3, talking weeks here, it's rather large.

View 3 Replies

ActionScript 3.0 :: LocalConnection - Communicate From One SWF To Another

Apr 23, 2009

I'm having a little issue with LocalConnection - trying to communicate from one SWF to another. From my main SWF I've loaded an external SWF of same dimensions ( effectively replacing the main SWF). What I wanted was then to re-load the main SWF, but rather than have the main SWF play from the start, I wanted to go to a specific frame instead (I used a frame label called "myMarker"). Thought LocalConnection was the way to go to achieve this. Gave it a shot and it all works well locally BUT when uploaded to server it doesn't work, but throws the following error:-

[Code]..

View 1 Replies

ActionScript 3.0 :: How To Communicate With Embedded SWF

Mar 12, 2009

I have a large.swf that loads small.swf during the runtime. How do I call a function in small.swf from large.swf and vice-versa?

View 4 Replies

How To Communicate Between 2 SWFs In Separate PCs

Aug 5, 2009

I was able to use LocalConnection to have 2 swfs communicating when both sitting in the same PC, or upload those on to the server and accessing those from the same PC. Is there any way to do this between two PCs, one PC running send.swf, controlling another PC running receive.swf? I checked adobe site for LocalConnection and it looks like this only works within one client PC.

View 2 Replies

Get Flash To Communicate With A Database?

Dec 18, 2009

I have written a flash program using AS3 which allows the user to build a picture of a product using a variety of options displayed in checkboxes. Very simply these checkboxes either make a layer visible or invisible in my flash movie and certain choices may change the list of options. This information is currently being supplied by XML. Once the user has built his product, I would like to be able to save his choices in a SQL Server database and also be able to download his options again at a later date and view these choices at the manufacturing plant.

So far I have tried using asp.net to write to the database and have got the information to the asp.net program by using the querystring, however there may be up to 50 options which does make a querystring rather unwieldy. Also I cannot seem to send back information from the asp.net page to my actionscript.Can anyone tell me how to do this or give me an example? I am supposing that I use the response.write function in asp.net but what command in AS3?I looked into the possibility of using a webservice but see that AS3 no longer supports this as all the functionality is in Flex. I have read about Flex but still do not understand whether

View 1 Replies

ActionScript 3.0 :: Can't Communicate Between Classes

Oct 30, 2010

I'm new to as3 programming and I'm trying to communicate between two classes to get the player coordinates for a game from one class to another class. I tried using a getter and a setter and calling a class public function that returns the value.[code]...

View 3 Replies

C# :: Flex To Communicate With C# Backend?

Jul 9, 2009

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets.I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive.Anything that supports easy setup and transparent marshaling/unmarshaling is OK.Is there something as BlazeDS for .net?

View 2 Replies

ActionScript 3.0 :: Communicate With C++ App In Flash?

Aug 3, 2009

How can you communicate with a c++ app in flash?

View 1 Replies

ActionScript 3.0 :: Using LocalConnection To Communicate?

Aug 19, 2010

I need dozens of AS2 Flash swfs I wrote to communicate with an AS3 swf. My code below is on the "wrapper" AS3 swf, which loads the lesson1_activity3.swf AS2 swf. This is then further nested into an Adobe Captivate-generated swf (that's what the rdcmndNextSlide method is for).

This configuration works the first time you see the wrapper/child swf together, but if you navigate back to the slide, the child swf doesn't load. I'm guessing that Captivate has all the objects still stored in memory, so it thinks I'm trying to declare var again, which I can't do. Is that it? Does anyone see the issue with my code that would make it work the first time the wrapper is loaded, but not subsequent times?

[Code]...

View 0 Replies

ActionScript 3.0 :: Best Way To Communicate Between 2 SWFs

Jan 10, 2011

I need to write or pass some variables from swf 1 to swf 2. This doesn't have to be done in real time and this is not going on a server believe it or not. All local. ie, swf 1 is the backend that sets variables for swf 2 to read. swf 2 can be started after swf 1 is done. Was thinking that swf 1 could write a text file and then swf 2 could read it... but was wondering if there was a better/easier way to do this? Also, swf 1 doesn't have to be a swf! If I could create an interface in html or something to allow the variable passing that would work too..

View 3 Replies

ActionScript 3.0 :: How To Communicate Between Classes

Mar 4, 2011

How you can communicate between class's. E.g. Assessing a function from 1 class in another. And accessing variables from 1 class to another.

View 9 Replies

ActionScript 3.0 :: Classes Communicate With Each Other?

Jul 8, 2011

I am still wrapping my head around AS3 classes and how to use them..i want to know how classes can communicate with each other and send information to each other? Below I have created an example of 2 classes inside of a package. When 1 class is finished it triggers the other to start.

Code:
package
{
import flash.utils.Timer;[code]........

View 6 Replies

ActionScript 2.0 :: Get Mc To Communicate With Parent?

Nov 6, 2004

How do I get a targeted mc to communicate with the parent timeline? I'm not using levels but targeted mc.

I need the playback head to go from the targeted movie clip (this is called nested, correct?) to the parent timeline and stop at a particular movie instance or frame label. I have been unsucessfully using this:

gotoAndPlay(_parent.instancename);

View 5 Replies

ActionScript 2.0 :: Use To Communicate Between Movies?

Jan 11, 2006

i am currently working on a flash site, and i want to know that if there are possible ways that i can pass a value(better be a string)to the function of the external swf movie file that loaded by loadMovieNum(1.swf,1) function?

View 3 Replies

ActionScript 2.0 :: 2 .swf To Communicate (Localconnection)

Jan 2, 2007

i've got 2 different .swf files on a html page, with 1 of e .swf being e menu and the other being the content_mc. I've been researching on localconnection but did not manage to find out how i could get e menu to send command to the content_mc to load the respective content upon being clicked (for example, when user click "services" in the menu, content_mc.swf will automatically be updated with the services content.

View 6 Replies

ActionScript 2.0 :: Any Way To Communicate Through Sockets In MX?

Dec 21, 2007

Is there a way I can communicate through sockets in flash mx? I'm really really interested in this domain..

View 2 Replies

IDE :: Get Child Swf To Communicate With Main Swf?

Feb 2, 2009

how do I get my child swf to communicate with my main swf?

(this is main1.swf)
var homeRequest:URLRequest = new URLRequest("window1.swf");
var homeLoader:Loader = new Loader();

[Code]....

Obviously, MovieClip(root) is not getting to the main.swf's root timeline. What code do I need to do this?

View 1 Replies

Communicate Between Loaded And Parent Swf?

Mar 8, 2009

I started learning the basics of as3.0 a year ago by doing a lot of experiments.. I never read a book or took lessons or something.. I guess i'm still missing important logics when i'm programming. I'm creating my personal flash imagegallery but I can't figure out how to communicate between a loaded swf and its parent swf.

I have a main.swf file with document class main.as which loads external swf files into a movie container. I am also loading a background sound like[code]...

The only work around I was thinking about would be to keep showing the stop/start sound button from the main.swf when a slideshow instance is called.. but then I'll screw up my design I want a second button inside the slideshow that can also stop the main bg sound.

View 1 Replies

ActionScript 3.0 :: Communicate Between External SWF?

Jul 16, 2009

I'm creating a website template which has a navigation with links and 2 zones dedicated to load external contents.

Loading 2 external swf by clicking on a link is no problem but my question is :
I would like one of my external swf to contains links which could again reload external swf in the same two zones. How can I do that ? I'm working with document classes.

A little example :

ZONE A ---------- ZONE B
EXT SWF EXT ---- SWF WITH LINKS IN IT THAT RELOADS ANOTHER SWF IN
ZONE A ---------- ZONE B

View 3 Replies

IDE :: Flash Game And Want Two Swf To Communicate With Each Other?

Jul 18, 2009

I am working on a flash game and want two swf to communicate with each other. I tried local connection but dont know why sometimes it doesnot work.

View 1 Replies

ActionScript 3.0 :: Communicate With Server Via TLS?

Oct 16, 2009

communicating in as3 with an server via TLS? (I have on a server an mp3, and the server is HTTPS that requires an certificate and a key (TLS) and I need to get that mp3 on flash) I found some classes (Crypto) but there the TLS it's only partial implemented and support for client-side certificates is not implemented yet.

View 2 Replies

ActionScript 3.0 :: How To Communicate Between Classes?

Dec 4, 2009

I am trying to make a little game. In short words; you control a instance named player, and get attacked by children of the Enemy class.How can all the children of "Enemy" know the coordinates to player instance, how can the document class and the Enemy class exchange variables?

View 14 Replies

ActionScript 2.0 :: How To Communicate With Loaded Swf

Dec 23, 2010

I have a external swfs that I am using as skins for a app launcher. They are loaded in to the main movie via xml and loadMovie.How can I pass intervals and as commands to my skins. I need to send things like:button command for closing projectorvar clockValue for clock text fields in the skinxml menu info to nested movieclip in skin.swfI was thinking shared libraries, but I want to load the skin.swf dynamically with my xml, and I want the skin to maintain its structure so the ui style can be completely changed, instead of just placing mc's in the same place each time with only a slightly different theme

View 8 Replies

ActionScript 3.0 :: Interact/communicate With An Embedded SWF?

Nov 13, 2010

I'm programming my game using Flash Builder 4, in an "ActionScript project". I'm not using Flex. I want to build my menus and cutscenes in Flash Professional, then export them as SWF and embed them into my final project.Embedding the SWFs works fine, I do something like this:

Code:
[Embed(source = 'test.swf')] private var SwfClass:Class;
var myMovieClip:MovieClip = new SwfClass();
parent.addChiled( myMovieClip )

My problem is that I can't access the buttons and other elements of the SWF that I need to communicate with and manipulate. For example, the main menu will have a "Play" button. I need to know if that button has been pressed. The level select screen will have a "Best Time" text field, that should show the player's best time on a level - this text needs to be set. But I can't figure out how to access these things.

I don't think that the children of the MovieClip are visible within my Actionscript project - it seems like the SWF is loaded in as one big "chunk" that can't be interacted with (it plays fine though).So what is the best way to interact/communicate with an embedded SWF? I've found a bit of information on the topic, but usually people are talking about using Flex or loading in external SWF (which seems to behave different from embedding). Is there even a way to do this?

View 3 Replies

Have Two Swf Files On Same Html Page That Can Communicate To Each Other?

Jun 5, 2009

Was just wondering if its possible to have a two swf files on the same html page that can communicate to each other.

I have one movie that asks a series of question and what I'd like to happen is for those results to be shown in the 2nd swf. Sounds simple, which means it probably isnt

View 8 Replies

ActionScript 3.0 :: Can't Communicate Between Mc's External Classes

Feb 15, 2011

if one can't communicate between mc's external classes how can you create stuff?I have a timer inside each instance form a bomber_mc via a external class:this timer places bom_mc's on the stage from the location of bomber_mc (there are several). But I want to do a do a collisiondetection test with each bom and yet another kanon_mc.can you give me a hint in the right direction?

View 14 Replies

ActionScript 3.0 :: Communicate Between Custom Class?

Feb 21, 2011

communicate between custom classes.
 
For example: how to get public var value in document class from another class in another package.
 
i know two ways but i need to know what if i am in the right side or not:
 
1- public static var Root:Main = this; and then call Main.Root.PublicVarName from another class.
 
2- make instance from the class ( var classInstance:ClassName = new ClassName() )  then to call function or var ... ( classInstance.PublicVarName ) but in this case i can't call the Main ( Document class ) as i got an error when try to create instance from Document class.

View 3 Replies







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