ActionScript 2.0 :: MX Communication Between Movies?

Jan 14, 2003

I've got an html page with 2 different movies: 'movie1.swf' and 'movie2.swf'. Is there a way that 'movie1.swf' can play to a certain frame and when it reaches that frame, can tell 'movie2.swf' to start playing? The thing is they are 2 separate swfs rather than 2 movie clips within the same swf.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Communication Between SWF Movies On Different Browsers?

Feb 17, 2009

I was wondering if it is possible for two instances of the same SWF movie (for simplicity) running on different browser windows (or tabs, for that matter) to communicate with each other?

I guess the key question is that are there facilites built into AS 3.0 that allows an SWF to "listen" for different events or notifications coming from other browser windows/tabs? I know this might be an application or sandbox security violation, but I would like a new instance of the same SWF to cause the older one to close itself.

View 3 Replies

ActionScript 2.0 :: Communication Between Movies - OnRollOut Function?

Sep 26, 2005

I am having trouble making 2 movies communicate with one another. One movie (series) is embedded into the other (content2). 'content2' is a horizontal scroll menu of images. 'series' is a movie that holds 'content2' and contains a mask which will reveal everything upon the rollover of the 'series' button. I can get the scroll to show and work when the button is rolled over but it fails to hide on roll out.

Here is the code I have used on the roll over button called 'series':
Code:
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
sym2.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
[Code] .....

View 1 Replies

ActionScript 3.0 :: External Movies Communication (Array / Functions And Variables)

Jun 23, 2009

I'm new on AS3, I'll try to explain what my project consists: Well, There is a main.fla and It loads external movies triggered by button items. The content animation sequence introduction starts with tweenLite and fills the stage with elements from Library (movieClips, buttons) and some sprites. I've built the intro animation through actionscript. Perhaps I'll need to explain how I did it the TweenLite structure, but the code lines are too long

The transitions / navigation:
Each button before load the external movie has a respective animation that removes the other buttons from the stage. It triggers an "outro" animation and then loads the External Swf.

First:
Each external Swfs contains a removeChild action in a MovieClip that CLOSES and removes the movie.. Like a "pop up" with a close action. After closed It should replay the intro animation and replace the buttons in the stage but it's not happening because I don't know how to communicate between different timelines / external movies.

View 1 Replies

ActionScript 1/2 :: Sound Linkage When Loading Movies Into Movies?

Jan 16, 2007

I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :

musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start();
to play the sound in intro.swf.

However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far

View 9 Replies

ActionScript 2.0 :: Creating Reverse Rollover Movies Within Movies?

Oct 25, 2005

I have been having trouble creating a movie clip with a reverse rollover effect within a movie which has a reverse rollover effect. that sounds confusing

In essence I wish to create a panel that rolls out on rollover and rolls back in reverse when the you rollout. I have done this using this script

[Code]...

However I wish to make movies within this movie that have the same effect on them. But when I create another movie or button within this movie it is not registering on rollover. I guess because the script on the main movie overrides it?

View 2 Replies

ActionScript 2.0 :: References & Movies Within Movies?

May 24, 2003

I am creating a calendar and only one part isnt work. That part is the movie (mc_nav). I have the mc_nav movie on each month's stage. The buttons are named correctly since I used normal modes reference thingy to double check the references. I am trying to have it move to the next frame in the movie, or back, or to the 3rd frame etc. The first section (NAVIGATION BUTTON LINKS) works fine. It is just when I try to navigate on the Scene 1 stage, from a movie within a movie, that the trouble arises. Each of the month movies (mc_sep, mc_oct, etc) have mc_nav placed on them. Then the month movies are placed in Scene 1 on each of their respective frames (mc_sep = 4, mc_oct = 5, etc). When testing the movie and I am sent to any month page, the navigation (mc_nav) wont work. The syntax according to the flash debugger is correct. The action script goes all the way through to the last frame (13) and the stop(); command is set to stop the movie at frame 3 (the splash page).

[Code]...

View 2 Replies

Professional :: Using Movies In Movies?

Apr 9, 2011

I have a small FLA file i created myself. its just a simple mp3 player, pause and stop and a volume slider, thats it.I want to import three instances of this into a bigger movie and have them all available to run at the same time.I need them to be all on the screen at one time (same frames) and I need them each to be able to play a different mp3 The user will not be able to decide which mp3, this is all 'hard coded' into the fla file.So how can I do this and get access to each individual movie's controls?
 
For example when I use the slider on the first player, I only want the volume to change on the first mp3.Would I even have to worry about this in the big file that has all three movies in it?I mean could I just code the volume slider to work right in the mp3 player file and then the bigger movie file will automatically know that when the volume slider is moved, only to affect the voume of the first mp3?if i do it that way, would I have to save out 3 different versions of the mp3 player file. one with '1.mp3', say, hard coded into it, another with '2.mp3' hard coded into it, etc?

View 7 Replies

Communication Between Swf?

Dec 3, 2009

I have a communication problem between to SWF. Here is my code, SwfA is the caller :Shared interface between the 2 Swf :public interface ItfA {  // some code} In the second Swf, SwfB, the document class :
 
public class MainB extends MovieClip {  private var a:Itfa;  public function start(_a:ItfA) {    a = _a;    // etc  }} 
 
In the first Swf, SwfA:
 
public A implements ItfA {  var mLoader:Loader;  [...]   public function startLoad()  {    mLoader = new Loader();    var mRequest:URLRequest = new URLRequest("B.swf");    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,  onCompleteHandler);    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onprogressHandler);    mLoader.load(mRequest);  }  public function

[code]....

When I test in the fash environment (ctrl + enter), there is no problem, but in my browser it failes and says that A is not an ItfA (TypeError: Error #1034)

View 1 Replies

ActionScript 3.0 :: Swf To Swf Communication?

Aug 21, 2008

I have two swf files. And i want to send data from one swf to another. So how can i do that?

I have 4 tabs in one swf file and when i click tabs then it should send data respectively to second swf file.

View 8 Replies

ActionScript 3.0 :: Communication Between 2 Swf?

May 15, 2011

I am using localconnection to communicate between 2 standalone swf. It works. I want to communicate between standalone swf and from browser/ from exe. Currently i cannot achieve this. How can achieve this?

View 7 Replies

Flash - Communication Between As2 And As3

Mar 16, 2010

I have this code under a button in 'as2.swf'

[code]...

and this swf is being loaded into as3 container called 'main.swf', but when i press it nothing happens and the file does not unload itself.

View 1 Replies

Asp.net :: Asp Communication With Flex?

Oct 26, 2010

i was developed one .net application. It contains flash animation in one of the asp pages. And i need to write action script code for playing and pausing that swf file. I am using flex builder3. However how can i execute the asp application from flex builder? How can i load asp page into mxml file?

View 1 Replies

ActionScript 2.0 :: Communication Between Pop Ups?

Jan 27, 2009

Im develp. a site with a remote control, and television pop ups, can i use the remote to communicate with the tv? I think i may have a proper (yet typically teedious) method but in these situations,

[URL]

View 3 Replies

ActionScript 3.0 :: Communication Between An SWF And C#?

Nov 10, 2010

I'm using Visual C# 2010, and I want to add an SWF-file to a C#-form. Then, I want the C# code and AS3 code to communicate.

View 3 Replies

ActionScript 3.0 :: 2 Way Communication With Php?

Jun 3, 2011

I have read a few things on 2 way communication for as3 to php but most of the examples are a bunch of var's being sent. an example of AS3 sending 1 var out to php and php receiving it. how to go from PHP to as3 just not the other way!

View 4 Replies

IDE :: Portlet And Swf Communication

Oct 6, 2009

i am creating portlet project and one of my portlets has embedded swf file in it.so i foud out how to send datas from portlet to swf,now i need to know how to do it in backward direction i.e. to send data from swf to portlet

View 1 Replies

IDE :: Swf Communication Within Same Html

Oct 7, 2009

I am having one html including table in it.In one cell of table i have 1.swf & in another cell in table have 2.swf.Is there any way to have communication between these two swfs? Like in 1.swf - have one play button with on clicking will play animation from secong swf.

View 1 Replies

ActionScript 3.0 :: Enlighment Between Communication Between SWF

Jun 9, 2010

i want to ask someone to give me some enlighment between communication between SWF..,let say i have one main swf (parentSWF) which load another swf (let's call it loadedSWF)what i want to do is calling parentSWF calling function which is remain in the loadedSWF..,please do mind i am talking about desktop application and not browserapplication..,

View 2 Replies

Data Integration :: Swf And Xml Communication

Aug 27, 2007

I want a swf to load var into an xml file so that when the swf re-opens it can look in the xml file to see where it last stopped playing.

View 2 Replies

Professional :: Flash And ASP.net Communication

Mar 7, 2011

I recently made a mp3 player in Flash. I have an aspx page that has the mp3 player in it as well as a .net button which is disabled on page load. The .net page tells the audio player waht file to play and the player plays. What is supposed to happen next is when the audio player reaches the end of the file the button on the aspx page is supposed to become enabled. I am not sure how to do this [have Flash tell the aspx page that it is done playing].

View 2 Replies

Flex :: Communication Between Two Apps?

Aug 11, 2009

I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so.

View 2 Replies

Php :: Php-Flash Communication Over Sockets?

Nov 5, 2009

I am not any kind of network programming pro, but it happened that I have faced necessity to develop socket-server on php (no way for using Java) for flash multiplayer browser-game (standard features like locations, team battles, etc).

The main problem is that TCP is point-to-point protocol and it completely occupies given port.Of course it is possible to create some kind of queue, which will manage connections to the socket, but this solution doesn't seems to be the fittest one.

It seems to me that using interval of "fair" ports (from 2000 to 2200, for example) is more fitting solution, because one request may take a lot of time to execute and players won't be happy to wait in queue.

But how can I implement this "port inteval" strategy?The solutions that I see are:

launcing php-script per every port (he-he, 2 hundreds of launched scripts!);somehow forking the initial process to new processes (2 hundreds of processed? Not nice too), one for every port;additional while-loop, which listens all the ports (looks very bad);using threading or something like that (the problem is that php is single-threaded, as far as I know; pcntl?).But somehow I don't like any of them, or at least don't know how to implement them in the best possible way.

What is the best existing strategy to handle multiple requests from multiple users per time unit without delays, and how to implement this strategy in php? We have our own Debian-server, so it is possible to use any required php extensions.

For example, if we are trying to develop chat application, we need some sort of fixed (I mean persistent) connections for each user. For example, we have 80 users in chat, and then one of them posted a message, which server tries to handle and send to all other connected users, also putting an entry to the history file or something like that.

In this situation polling server for new messages every 10 seconds from each of 80 users is craziness, so the need in persistent connection gets obvious.But I don't know what is the best way to implement something like this, considering that not all requests are handled instanlty.

View 2 Replies

Actionscript 3 :: Communication Across Different Classes?

Apr 1, 2010

I always have the trouble that make different classes communicate with each other.

1. using get set methods

2. eventdispatch to dispatch custom event.

Today, I am working on this confused issue again. I still can't get through it.this time what I wanna do is this: I wanna use a button (_zoom) to control a mc (_board) located in different class. Let's me give a simple structure for you:

ProjectAppear.as
|_ _board (mc)
|_ Project.as
|_ _work (mc)
|_ _zoom (mc)

My thought is I add a mouse event listener for _zoom, and then when mouse click it will dispatch a custom event..

View 2 Replies

Java :: Communication Between EJB And Flash?

May 19, 2010

Is it possible to call my ejbs from Flash actionscript?Also if my ejbs are returning List how will flash come to know about this class?

View 2 Replies

Communication Between Flash Files?

Jun 28, 2010

How can I make something like this: [URL]One flash triggers the other one.

View 1 Replies

Communication Between Two Flex Applications?

Aug 6, 2010

I have two web applications written in Flex I would like to integrate. I would like one Flex app (let's call it application A) to invoke second Flex app (let's call it application B). Application A has access only to swf file of application B (not source code). When application A invokes application B, it should be able to pass some data to application B. After application B is invoked it should be able to pass some data back to application A. These two applications will be hosted on the same server, but will use different server code.

The easiest way of implementing this (or one of the ways to be more precise) would be to have UI element on app A (button, link, menu item, etc) that would invoke app B. But in that case, two Flex applications couldn't communicate directly (since only one is active at a time), and they would have to communicate through server code, which is something I would like to avoid.

In short application A should invoke application B, pass some data to it. Application B should do it's work, display some content, and have a mean of passing some data back to application A. I'm aware of LocalConnection, and I've seen similar question, but in that case I would have to have both application in the same browser window. This would be acceptable to some extend, but only if app B is contained in app A (not if they are both on the same HTML page). Would LocalConnection work in that case?

Do you have any recommendations on how to implement this kind of communication?

View 2 Replies

AS3 :: C# - Socket / Server MMO Communication

Nov 27, 2010

I'm working on a flash MMO with a c# server. I have a simple messaging protocol for the sockets. When a client joins he sends out this:

[Code]...

View 2 Replies

Actionscript 3.0 :: Communication Between The Classes?

Feb 21, 2008

Im building my first OOP project with classes in AS3, Ive done a lot of tutorials and Im grasping the concepts well. Im just having trouble with the concept of communicating between classes. Whats the best way for a class to talk back to its parent once its instantiated? It seems when your inside a class, you're kinda stuck there as far as scope goes? ie one way street. Or am i missing something? Im used to the days where I was coding on the timeline and could just use this._parent etc. But obviously those days are gone.Or should I not need worry about this If I have planned the structure/heirachy correctly?

View 14 Replies

ActionScript 2.0 :: F5-communication Different Swf In Html?

Oct 3, 2003

To have two separate movies embed in an html and communicate the two.Let's say I have a button in movie#1 that makes movie#2 jump to frame 10. I'd like to know if this is possible without creating a swf holder for the 2 movies. Just communicating them being independent.

View 2 Replies







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