ActionScript 2.0 :: Getting Nested SWFs To Communicate?

Jan 9, 2009

Whats the simplest way to get a nested swf to modify the value of a variable located in the parent's swf? I'm not sure localConnection is what I need.

Here is a simplified example of my situation:

main.swf
content01.swf
content02.swf

main.swf loads and unloads content SWFs ontop of it's stage.

A piece of script in each content.swf needs to modify the _hieght of a movieclip in main.swf

(imagine the movieclip is a visual container for content, and content that takes up for space needs a taller content box; hence, changing the _height of the movieclip content box)

I'm also animating the movieclip's height expanding using actionscript:

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var bodySize:Tween = new Tween(BOX_Body, "_height", Strong.easeOut, 200, 500, 2, true);

I figured I could put these lines of code on the first frame of the content.swfs, but change them to affect the "Box_Body" MC on the main.swf stage?

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Communicate Between 2 Nested Swfs

Feb 26, 2011

I am using a flipbook that I purchased on activeden. It loads swf files as pages. If have one video on page 1 (page1.swf) and one video on page 2 (page2.swf). Both pages are on the same spread. I want the video on page 2 to start after the video on page 1 has finished. So on page 2 I want to listen for a .complete from the video on page one. This is the code that I am using to load the video on page 1 where I need to listen for the .complete.

[Code]...

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

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 :: Communicate Two Swfs Using Javascript

Aug 9, 2011

If I playing one swf, the other swfs should pause if it was playing. I can able to communicate two swfs using javascript(both swfs are different name). But come to multiple swfs, I don't know how to differentiate the swfs beacause all are same name. I have embed 3 swf files in my html page using the following script.

[Code]....

View 1 Replies

ActionScript 2.0 :: Can 2 Swfs On The Same Page Communicate With Each Other Directly

Mar 5, 2009

Can 2 swfs on the same page communicate with each other directly? Or do you have to do something tricky like setting variables in a stored object from one swf and then constantly checking for updates to it in the other swf?

View 1 Replies

ActionScript 1/2 :: Communicate Between Two Swfs Residing In Different Webpages

Oct 9, 2009

I know about Local connection class connecting two swfs in the same web page.But kindly let me know if there is any way to connect to two swfs residing in different web pages.

View 1 Replies

ActionScript 3.0 :: Communicate Between Two Swfs Residing In Different Webpages?

Oct 9, 2009

I know about communication between two swfs in the same webpage.

Is there any way to communicate between two swfs residing in different web page?

View 5 Replies

ActionScript 3.0 :: Make 2 Loaded Swfs Communicate With Each Other?

Jan 14, 2009

This has quite a long background history, so I`ll first ask the question: how can I make a loaded SWF file activate a function inside another loaded SWF file - both in the same 'parent' movie, domain and directory - when the user clicks a 'link' on the first swf?I'm new to actionscript, been only working with it for 2 months and I've been learning on the go. So far, so good, flash cs3 help has been useful, as well as this forum and other sites. My project is a website, no innovations, just simple info and light animations.The site should have an intro page (I called it index), a preloader, then the actual site (home), with links to each specific area (pages). In home, a small slideshow movie clip should always be on the upper left corner looping images until the user clicks a link to a page, when the slideshow fades away. With this briefing, I made a file for the index, and a uiloader in it would get the home file and that 'should' be it.My stage resizing event listener was working perfectly on home - standing alone - moving the slideshow exactly as it should. But when home was loaded inside index, the slideshow moved way more than it should never getting in the right place. After various unsuccessful attempts, I decided to move the slideshow into its own swf and load it directly in the index, together with the home file. This way, I managed to make it relocate precisely, but got myself the problem I'm asking here. I need to get the slideshow to fade away when the user clicks a page link, but they are separate files.

I tried to use a Loader.content based function, located at the index, but figures Flash help was not exactly clear on how I had to use it properly, so I did not manage to get it to work. It always reported an unspecified property. I searched around here and over the net, found similar problems and their solutions but could not resolve my problem. I think this is a little too specific..

View 1 Replies

ActionScript 3.0 :: Finding Link URL In Nested SWFs

Feb 27, 2012

I have a "wrapper swf" that loads a remote flash player that in turn loads video preroll ads from various advertisers. So my wrapper is the parent and the remote swf is a child and the video ad is a grandchild. I am looking to capture the url that the grandchild will navigate to when clicked. I am trying to trace it in the parent (wrapper) mouseUP and mouseDOwn event.

Is there a way to traverse ALL children until I get to the "bottom/last loaded" swf and get the URL? I wish to save the url to a variable so I can launch the url in another player of my own as opposed to having it launch an external IE browser.

View 18 Replies

Flash :: Dynamic Loading Of Nested Swfs

Dec 12, 2011

Background: I have a class called MultipleChoiceQuestion which pulls the stem and choices from an xml file. The choices for each question are randomized. The Quiz class has a set of specified multiple choice questions which it loads dynamically. It also references the xml file to determine # of questions. The quiz controls the question progression based on correct answers. The main movie launches the quiz at the appropriate time.

Issue I want the question building to be dynamic and load the choices and randomize them. How do I do this? Right now I publish the quiz as a swf and then load it into the main movie, but that is static and always has the same choices in the same order. How can I do this dynamically?

View 1 Replies

ActionScript 3.0 :: Find Link URL In Nested SWFs?

Feb 27, 2012

I have a "wrapper swf" that loads a remote flash player that in turn loads video preroll ads from various advertisers.

So my wrapper is the parent and the remote swf is a child and the video ad is a grandchild.

I am looking to capture the url that the grandchild will navigate to when clicked.

I am trying to trace it in the parent (wrapper) mouseUP and mouseDOwn event.

Is there a way to traverse ALL children until I get to the "bottom/last loaded" swf and get the URL?

I wish to save the url to a variable so I can launch the url in another player of my own as opposed to having it launch an external IE browser.

View 0 Replies

ActionScript 3.0 :: Error #1009 With Nested Swfs?

Feb 5, 2009

I have an index.swf that serves as the main part of my page, and it loads swfs as sub pages.One of my sub pages, home.swf, needs to be able to load it's own set of sub pages as well, which means I'll have a swf within a swf within a swf (index.swf > home.swf > home_1.swf). When I test compile home.swf by itself, it works fine. But when I test compile index.swf, I get the Error #1009. Here's my code with the line indicated where the debugger says the problem is:

Code:
// index.fla ///////////////////////////////////////
stop();

[code].....

View 10 Replies

ActionScript 2.0 :: CS3 Buttons In Loaded Swfs Loading Other External Swfs Into The Main Timeline?

Sep 11, 2009

I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf

View 3 Replies

ActionScript 3.0 :: External Swfs Load - Remove The Swfs And Sound After A New Button Is Clicked

Nov 13, 2010

I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.

[Code]...

View 5 Replies

ActionScript 2.0 :: Access Local Swfs Using Remote Swfs?

Jan 5, 2010

Is it possible to access local swfs using a remote swf

View 1 Replies

Actionscript 2.0 :: Preload Swfs While Other Swfs Are Playing?

Sep 8, 2009

I am trying to find a way to preload swfs while other swfs are playing, i've found several scripts and tutorials, but none of them seem to work for my needs.

View 1 Replies

ActionScript 2.0 :: Loading Other Swfs From Loaded Swfs?

Aug 2, 2006

Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?

View 1 Replies

ActionScript 2.0 :: Setting The Depth Of A Nested Object Higher Than That Of A Non-nested Object?

Jun 24, 2005

As the title says, i would like to have an object which is nested beneath another objects depth set higher than that of one the is NOT nested. Is this possible if so how, may be real easy and im just over-looking it but

View 1 Replies

ActionScript 2.0 :: Transitions Between External SWFs - Looks Crap As The Size Of External SWFs Grow?

Sep 2, 2006

[URL]regarding this tutorial I started my site [URL] to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions.

View 1 Replies

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

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

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







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