Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Communication


So I've been using actionscript for almost a year now and I feel like I've been able to make some real progress in understanding how it works and learning code.

The biggest problem I have been running into lately is communication between loaded clips and the main timeline.

I recently learned how to use dispatch event which has been a huge help but it doesn't seem to be solving everything. Communicating from a loaded clip to the main timeline is easy since the loaders are created on the maintimeline and I can easily reference them when adding a listener to them from a dispatched event.

Going the other way has proved more difficult. When trying to dispatch an event up the chain I do not know what to add the listener to.

I have tried to use the variable that the clip from which I am dispatching the event loaded from but it since it was not not declared in the clip to which I am communicating it tosses an undefined variable error. Once I declare it I get a namespace internal error for declaring the same variable twice.

Should I be using some other method to do this?

I'm confused...




KirupaForum > Flash > ActionScript 3.0
Posted on: 01-12-2009, 03:42 PM


View Complete Forum Thread with Replies

Sponsored Links:

PHP Communication
Hi !
I guess I am not the first with this problem but I have not found where the solution is... ;-(
I have a swf file that use some php programms to communicate values. Every thing is allright on my hard drive but I put the swf file on a http server, it apparently don't read datas...

Where is the solution ?

Thanx a lot...

View Replies !    View Related
Communication Between Two Swf.
I´ve got several text variables within a .swf and I´d like to know if there is a way to send them to another .swf

Thanks in advance

View Replies !    View Related
.swf To .swf Communication ?
I spent hours on this swf to swf thing and still failed. I will not give up but I could use some help?

IM trying to link My two flash movies(that are on the same page) together. I would like my bottom flash movie buttons to open a pop "upmenu" out of the top flash movie. I was told I could do this from nerdinside with this link http://www.polar-lights.com/fla/fla/sendcommand.zip
and I havent heard from him sense.

Here is my button code

on (release) {
// Notice the Decoy A / WIN1
if (_root.decoyA._currentFrame == 1) {
_root.draglines.swapDepths(10);
_root.WIN1.swapDepths(10);
tellTarget (_root.decoyA) {
gotoAndStop (2);
}
tellTarget ("WIN1") {
// Notice the WIN1
loadVariables ("text.txt", "text_box");
// load from txt file
loaded = 1;
}
} else if (_root.decoyA._currentFrame == 2) {
tellTarget (_root.decoyA) {
gotoAndStop (1);
}
tellTarget ("WIN1") {
loadVariables ("blank.txt", "text_box");
// loads a blank text file when closed to kill text
loaded = 0;
}
}
tellTarget ("click") {
gotoAndPlay (2);
}
}

How would I integrate the code from this zip file http://www.polar-lights.com/fla/fla/sendcommand.zip that (NURD INSIDE) sent me into this to add to my bottom buttons to link to Win1(which is my popup menu in the top flash section).

This is what I tryed so far:

on (release) {
getURL ("javascript:go()");
}
I added this to the top of my button code.

I also tried making my bottom buttons from the zip file and just deleting the starwars pic and loading....


Any comments would be appreciated.
Thanks,

View Replies !    View Related
Communication SWF To SWF
Alrighty

I have two SWF files (file1.swf and file2.swf), and I have two different frames (frame1 with frame1.html, and frame2 with frame2.html) each of them holding their respective swf's.

I want file1.swf to act as a menu... when a button is clicked, I want it to change the url of another frame: (name: main, filename: content.html) and at the same time, I want it to execute a function in file2.swf.

1. How would I make file1.swf talk to file2.swf?
2. How would I make the frame main change content.html to something else?

I realize that it requires javascript, but I seem to have trouble with my target= and it seems to pop a new window everytime...

Any help would be greatly appreciated.

View Replies !    View Related
Communication Between Two .swf's
Hi

just wandering if it is at all possible to have two .swf files, one with navigation, one with the content, then when the button id pressed in the navigaion .swf the content changes.

thanks

View Replies !    View Related
Communication Between Two .swf's?
Hi,

I was wondering if it's possible for two separate .swf files to exchange information and work together. If so, what's the basic idea behind it?

For example, if you had a webpage with two .swf movies in it (call them top.swf and bottom.swf), could you have a button in top.swf that changes the background color of bottom.swf when it's clicked?

Thanks!

View Replies !    View Related
Communication Between SWF's
Hey there,
I've hit a block and need a bit of knowledge...
I've got 2 sfw's on a page, I need to unload or goto and play to have it unload on keyframe inside it on sfw #2. When I choose a menuitem in #1 I should be able to do this right?

I've tried various method’s and no luck yet...

I thought that a simple
on(release)
Unload("http://site.com/#2.sw");

But no

Tried levels to but not in same movie so didn't figure this to work.any tips i'm probably missing obvious things but tries a bunch and no luck!

Help would be great!!!

Thanks for any i get!

mmeye

View Replies !    View Related
Swf To Swf Communication
I want to make two swf files to be communicated. for example::
I've two files "a.swf" and "b.swf". in a.swf i have one varaiable named "myVal" and itz value is "true"... ie (myVal="true").. i vant to pass this value from "a.swf" to "b.swf".... I've used LoadMoviennum , nbut it needs explorer... i want to do it with swf files alone

View Replies !    View Related
Communication Between 2 .swf's
Is it possible for a swf loaded in level 1 of the main swf to control the main swf?

I am trying to get a button in level 1 to make the main swf to goto frame 30.

I am using Flash MX

View Replies !    View Related
Communication
If I have two swf files on a web page...say one that lets the user enter information and another with shapes on it (for simplicity) is there a way for the two movies to communicate without having to sent info to a server and back? (directly) thanks!

mikell

View Replies !    View Related
Communication
If I have two swf files on a web page...say one that lets the user enter information and another with shapes on it (for simplicity) is there a way for the two movies to communicate without having to sent info to a server and back? (directly) thanks!

mikell

View Replies !    View Related
.swf Communication
If you have 2 different .swf on the same HTML page, can these 2 .swf files send commands back and forth to each other using tell target?

IN other words can i have a button in one file that tells the other one to load the movie. OR can this only be done in the same movie?

Thanks..

View Replies !    View Related
Swf To Swf Communication
using flash mx
Does Anyone know how I can send a message from one swf (level_10) to change the value of a variable the caller swf (level_1)?
Cheers

View Replies !    View Related
Communication?
what do i need to do to get 2 separate swf 's to communicate with each other, if they are placed in two separate table cells on the same html page?

rat

View Replies !    View Related
XML Swf Communication
i have one XML doc, and two swfs
accessing it. the swfs are both loaded into MCs in the
main timeline. the nodes in the XML are grouped into
sections with children who are items with info in attributes.


Code:
EX:
<project label="Misc">

<item label="Mural" url="images/projects
/project_img.jpg" link="www" resp="info">My description is here</item>

</project>


one swf("navSwf") goes through the XML and generates a
menu of link using html textboxes and hrefs. thats
fine. the other swf("displaySwf") take the nodes info
and displays it. that works fine. on the nav hrefs i
currently have asfunctions(which do nothing, i am
thinking its the way to go), and i am trying to pass
the info of the selected item from the navSwf to
displaySwf.
EX:
in navSwf i click on item 3, so i need to tell the
displaySwf to access that item 3 node and
parse/display its attributes.

it is here where i am lost, how can i do this?

let me explain a bit about the swfs. in my main timeline i have 3 empty MCs. one loads a main nav swf, one that loads a sub nav swf, and one that loads content...so if i someone clicks on the "project section", the subnav project swf loads, parses the project XML. the content swf also parses the project XML to load the first project's info. which works fine, but the subnav swf is a html text box with hrefs, and i need to pass the node info that selected in the subnav to the content swf.


i may not be setting this up the best i understand,
but any help to get this working is greatly
appreciated. thanks

View Replies !    View Related
Swf Communication
I have a flash movie for navigation, and a movie for the page it self....is there anyway to have the navigation send as to the main page movie...like a gotoAndPlay......

I want to do an outro play on a hybrid site.......

Possible?

View Replies !    View Related
Help XML Swf Communication
bear with me here. i have one XML doc, and two swfs accessing it. the swfs are both loaded into MCs in the main timeline. the nodes in the XML are grouped into sections with children who are items with info in attributes. EX:


Code:
<project label="Misc">
<item label="IPS Mural" url="images/projects /project_img.jpg" link="www" resp="info">My description is here</item>
</project>


one swf("navSwf") goes through the XML and generates a menu of link using html textboxes and hrefs. thats fine. the other swf("displaySwf") take the nodes info and displays it. that works fine. on the nav hrefs i currently have asfunctions(which do nothing, i am thinking its the way to go), and i am trying to pass the info of the selected item from the navSwf to displaySwf. EX: in navSwf i click on item 3, so i need to tell the displaySwf to access that item 3 node and parse/display its attributes. it is here where i am lost, how can i do this?

i may not be setting this up the best i understand, but any help to get this working is greatly appreciated. thanks for taking the time to read this.

View Replies !    View Related
Swf Communication To Another Swf
I've been on the verge of tears with this... so.. I saved in it all back in mx and got rid of the 2004 coding (got rid of the loader (2004 loadMovieClip) and replace it with loadMovieNum), and figured I try my luck with mx... well, once again I've hit the wall and find myself dazed and confused. All I want to do is get the about button... hell, at this point, any button in the nav swf to communicate with the dataBox swf and gotoand play a label on the data_mc timeline.

frame1 of nav.swf :
code: stop();
trace("nav.swf file is LOADED and resides on Level: "+this._level);
about_btn.onRelease = function() {
trace(pic_mc);
_level15.pic_mc._alpha = 0;
//trace(_level15.data_mc); ???
_level0.data_mc.gotoAndPlay("textboxLG"); ???
// trace(data_mc);
};

I'm hoping, if ya get a free moment, you might help rescue me before I pull the rest of my hair out. : /
I attached the 3 fla's that I built and a text file that the data_mc utilizes..,can ya give these the once over and help me to get this working. I think once I overcome this situation... I can apply it to the other buttons and things down the road.

actually to be sure I stay within the upload limit..I have broken down the files into 2zip files ..
(var.fla, text.txt) 2.zip
(master.fla, dataBox.fla) 1.zip

GOD BLESS ALL that help me overcome this!

View Replies !    View Related
.SWF -TO- .SWF Communication
I thought this would work, but unfortunately it doesnt.
I am trying to get one .swf file to talk to another. The only data I need to pass, is when you release inside of one movie clip, it calles on the a function in another.

Here is the code.

Buttons SWF
============
sender = new LocalConnection();
_root.forward.onRelease = arrowForwardOnRelease;
{
myLoad = 0;
_root.sender.send("ldMovieConnection", "onReceive", arrowForwardOnRelease);
}

_root.back.onRelease = arrowBackOnRelease;
{
myLoad = 1;
_root.sender.send("ldMovieConnection", "onReceive", arrowbackOnRelease);
}


Now I need this to call the function arrowForwardOnRelease in the Holder.swf file.

Holder.swf
================
_root.createEmptyMovieClip("movieHolder",1);
receiver = new LocalConnection();
receiver.onReceive = function(myLoad) {
_root.movieHolder.loadMovie("nav.swf", 1);
}
receiver.connect("ldMovieConnection");

Everything was working until I broke those 2 button calls out to the buttons.swf so the only problem is transferring the data.

Can anyone tell me what I have done wrong here?? Any help is much appreciated.

Thank you

--J

View Replies !    View Related
Swf-swf Communication
I thought this would work, but unfortunately it doesnt.
I am trying to get one .swf file to talk to another. The only data I need to pass, is when you release inside of one movie clip, it calles on the a function in another.

Here is the code.

Buttons SWF
============
sender = new LocalConnection();
_root.forward.onRelease = arrowForwardOnRelease;
{
myLoad = 0;
_root.sender.send("ldMovieConnection", "onReceive", arrowForwardOnRelease);
}

_root.back.onRelease = arrowBackOnRelease;
{
myLoad = 1;
_root.sender.send("ldMovieConnection", "onReceive", arrowbackOnRelease);
}


Now I need this to call the function arrowForwardOnRelease in the Holder.swf file.

Holder.swf
================
_root.createEmptyMovieClip("movieHolder",1);
receiver = new LocalConnection();
receiver.onReceive = function(myLoad) {
_root.movieHolder.loadMovie("nav.swf", 1);
}
receiver.connect("ldMovieConnection");

Everything was working until I broke those 2 button calls out to the buttons.swf so the only problem is transferring the data.

Can anyone tell me what I have done wrong here?? Any help is much appreciated.

Thank you

--J

View Replies !    View Related
Swf-swf Communication
I thought this would work, but unfortunately it doesnt.
I am trying to get one .swf file to talk to another. The only data I need to pass, is when you release inside of one movie clip, it calles on the a function in another.

Here is the code.

Buttons SWF
============
sender = new LocalConnection();
_root.forward.onRelease = arrowForwardOnRelease;
{
myLoad = 0;
_root.sender.send("ldMovieConnection", "onReceive", arrowForwardOnRelease);
}

_root.back.onRelease = arrowBackOnRelease;
{
myLoad = 1;
_root.sender.send("ldMovieConnection", "onReceive", arrowbackOnRelease);
}


Now I need this to call the function arrowForwardOnRelease in the Holder.swf file.

Holder.swf
================
_root.createEmptyMovieClip("movieHolder",1);
receiver = new LocalConnection();
receiver.onReceive = function(myLoad) {
_root.movieHolder.loadMovie("nav.swf", 1);
}
receiver.connect("ldMovieConnection");

Everything was working until I broke those 2 button calls out to the buttons.swf so the only problem is transferring the data.

Can anyone tell me what I have done wrong here?? Any help is much appreciated.

Thank you

--J

View Replies !    View Related
Swf-swf Communication
hello,

i am trying to send the value of where a line is to another field in another movie.

===================
the code for the sender is:
// On moving line
onClipEvent(enterFrame) {
this._x = -( _root.xvalue = Math.round(_root._xmouse) - 800);
}

onClipEvent(mouseDown) {
userMessage.text = _root.clickVal = Math.round(_root._xmouse - 400);

buttonInstance.onRelease = function()
{
outgoing_lc = new LocalConnection();

outgoing_lc.send("lc_name", "methodToExecute", userMessage.text);
};

}



===============
the code for the receiver is:
// On the background
incoming_lc = new LocalConnection();

incoming_lc.methodToExecute = function (param)
{
_root.clickVal = param;
}

incoming_lc.connect("lc_name");





I can get the value of the location of the line to display in a text box on the sender movie, but not to display in the Uni Val text field in the other movie.

Any help would great be appreciated.

I have also attached the fla files for your review.

Thank you.

View Replies !    View Related
SWF Communication
I need two swf to communicate. I have a main swf and i load the button swf into it. via a load movie script put int he timeline frame.

Main SWF:
- has contact_text MC
- has empty MC to load button swf into

Button SWF
-has all the buttons
-all buttons are in a MC on the main timeline(_root.buttonMC.button_instance)

I need the button instance in the button MC in the button SWF to play a MC on Main SWF.

thanks again

View Replies !    View Related
Swf To Swf Communication
I have two swf files (A.swf and B.swf) communicating with each other. They are on the same html page. They communicate fine.

However when i open another window with another swf file (c.swf)... the 2 swf files (A.swf and B.swf) fail communicating...why is that?

View Replies !    View Related
[F8] Communication Between MC's
I'm having trouble targeting loaded mc's and getting them to talk to each other!

the structure is: a mainMC with loaded navHolder and picHolder empty clips, i want buttons in my loaded nav to move the picHolder position. Sounds simple but i'm not getting any luck. Where do i put the function below in the mainMC or the navMC and how do i target the function from my navMC buttons.

//move pic's
function imgPos1()
{
extendTween = new TweenExtended(_root.picHolder,["_y"],easingType1,[MC._y],[0],0.4,true);
}
function imgPos2()
{
extendTween = new TweenExtended(_root.picHolder,["_y"],easingType1,[MC._y],[-21],0.4,true);
}
function imgPos3()
{
extendTween = new TweenExtended(_root.picHolder,["_y"],easingType1,[MC._y],[-42],0.4,true);
}

View Replies !    View Related
AS 3.0 <--> PHP Communication
I was wondering is the priniciple the same as with AS 2.0 (using LoadVars) or something is changed in AS 3.0? Any tutorials on the subject?

thanks

View Replies !    View Related
Communication
Hi,

I have main.swf that loads several externals swf's.

How do I communicate that I need to have an external swf unload another swf once it's loaded?

Something like unloadMovie(2); in the last frame of the new loaded swf, but this isn't working obviously.

Also I have buttons that are in a separate swf; how do I write this properly in order for it to go to the time line in the main swf?

on (release) {
_root.gotoAndStop("contact");
}

Thanks!

View Replies !    View Related
[CS3] Web Communication
I'm not very good when it comes to Flash and communicating with the web and what i was wondering is this...

I'm guessing most people know what rapidshare is and they have a system which checks the links to see if they are still active. I've seen many websites replicate this "Link checker" so if its possible for a site to do it, is it possible through Flash?

So basically i want users to input links into an input box and it checks the links to see if they are working.

Can anybody help me out on this?

I'm just interested in learning new things when it comes to Flash and the web. I'm then hoping to turn the program into an AIR application, which i'll probably end up needed help on as i am fairly inexperienced with AIR.. but when the time comes ill post it in the AIR forum.

Thanks in advance

View Replies !    View Related
[CS3] AS2 To AS3 Communication
Hello all, I'm with a bit of a problem here...

I have this AS3 movie that loads other movies. It loads an AS2 movie also and I need to make the main AS3 movie detect if the AS2 movie clicks a particular button. I tried a lot of examples from the net and nothing works so far...

I have an error on the AS3 movie that I can't understand:


PHP Code:



//this is the connection thing. It has no problem (I think)
import flash.net.LocalConnection;
var myReceiver:LocalConnection = new LocalConnection();
myReceiver.connect("myConnections");

//now when I try to "import" the action from the AS2 file so that the AS3 movie can detect it, something goes wrong...
myReceiver.myAction = function(doThis) {
    if (doThis = 1) {
        trace("testing, testing");
    }
};




the error in my output file says "1119: Access of possibly undefined property myAction through a reference with static type flash.net:LocalConnection."

But how can it be undefined if I defined it on the AS2 movie?
Can anyone help me?

View Replies !    View Related
Help With SWF To SWF Communication
This subject may have been discussed and explored already, but I'm having the worst luck finding exactly what I am trying to accomplish. If anyone out there can help me out, it'd be great!

Here's what I need to do. I have a "mother" SWF that's running from one server. The "mother" needs to call a "child" from another location. This location, if possible, needs to be from another server. The "child" will also be in a format of SWF. When "mother" calls the "child," she pauses everything she's doing and calls the "child" on top of her in a "overlay" format. When the "child" is finished playing through (more likely to be a FLV clip), she has to communicate back to her "mother" to start playing again, which she closes herself.

Obviously if I put the "child" in the same directory as the "mother" I have no problem controlling it, using "_parent" command, but once she was moved to another location, the "mother" was no longer being recognized using "_parent" tag.

Is there a better way to handle this situation, or am I simply missing something?

Help~?!

View Replies !    View Related
3 Way Communication
I'm pretty new at writing action script but have been reading up on it as much as I can. What I'm trying to do is select a vocabulary word from a list of words in column A and communicate to the buttons I've created in column B (ex. Definition, Synonym, Used in a Sentence) which word I've selected from the list. So in turn when I press the appropriate button in Column B it populates Column C with the correct information for that particular word. What's the best way to go about doing this?

Any help would greatly be appreciated.

Thanks!

Russ

View Replies !    View Related
Swf Communication
Hi,

I have a swf file, 3.0, which I want to play for a set amount of time and then load another swf file, 2.0, and after the 2.0 has played in its entirety then go back to the 3.0 swf file, thus creating a loop. Is there a way to do this? Is more information needed? Thanks!

View Replies !    View Related
Communication With Swf
I load some swf movies into a main movie. Each one has some movie clips inside. How do I communicate with them?
For example how do I stop a mc that is in a movie I load into an empty movie clip?

View Replies !    View Related
2 Way SWF Communication?
Hey,

Ive just been looking at tutorials on loading external SWFs, and its all great ive got my SWF loaded into a main SWF imagine the hierarchy like this:

MainFlash.swf
|
|---- Flash1.swf


So the Main Flash loads in the Flash1.swf, the Flash1.swf contains some events, however on one of them (a button press) i would like to send an event to the Main Flash, here is where i cant find any tutorials on the subject.

I was thinking of maybe having a static event dispatcher class in MainFlash.swf, but then the Flash1 wouldnt be able to use it as it doesnt know it exists... so how do you get a 2 way event communication system going? or dont you...

Later on i would like to have multiple things, so the MainFlash would act like an MDI application, and the other flash things would load up within there and manage themselves, but i would need to make sure they can all communicate events properly...

Any advice would be great!

View Replies !    View Related
AS3 -> JS Communication
Is there any way to send variables to JS from within a SWF without using a query string? There used to be a "Javascript and Flash Integration Kit" but it was in beta in 2005 and is/was intended for AS2. Any suggestions?

Thanks,

- MT

View Replies !    View Related
Communication PHP - AS 3
Hello,

please help me with communication between flash CS3 (Actionscript 3) and PHP. .sfw and PHP script are on the same server. I need to send variables
from flash to php and get response from php back to flash in XML format. I need to know, if this code is good and right or if there is a better solution for solving this problem.


Code:
function CommunicationFlashPHP():void
{
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, dataLoaded);
var request:URLRequest = new URLRequest("http://PHPScript.php?what=question" + "&sid=" + _sid + "&actualLevel=" + _actualLevel);
loader.load(request);
}

function dataLoaded(evt:Event):void
{
var xmlResponse:XML = XML((evt.target as URLLoader).data);
trace(xmlResponse);
}

View Replies !    View Related
Help On AS3 Communication With PHP
Hi, I'm having a strange problem and need help I'm trying to make a two-player game. On the server side there's a PHP page handling game data. One player creates a game by calling a PHP page which creates a PHP session, and it retrieves the session ID and passes it on to the other player. The other player passes the session ID as an argument in URL and runs the same PHP page. In this way the two players can share the PHP session data. The URL used by the second player is like this:
http://domain/host.php?PHPSESSID=1234
where 1234 is the session ID obtained from the first player. When I used a URLLoader with this URL in the game to call the PHP page, it didn't get into the specified session (the current session ID appears to be another number). However, when I typed the URL in IE, everything works perfectly and the session data can be accessed. I'm really confused...Is there anything I missed with URLLoader? I though it works exactly like a URL typed in the browser, but here it's different...Any help would be appreciated!

View Replies !    View Related
Communication Between Pop Ups
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, it never hurts to have an abundance of potential solutions.

heres the site by the way

http://3stripesnet.tv/home

View Replies !    View Related
2 Way Communication
Hi,

Can I send a movieclip and its content to Flash Communication Server and have it save it as a jpg image on the server?

Are there any alternatives to what I want to do? Send a snapshot of my movieclip on the client's browser/screen to my server and have it saved as an image therein?

http://playscape.arrrg.org/whiteboard.php

Luke

View Replies !    View Related
XML Swf Communication
i have one XML doc, and two swfs
accessing it. the swfs are both loaded into MCs in the
main timeline. the nodes in the XML are grouped into
sections with children who are items with info in
attributes.

Code:
EX:
<project label="Misc">

<item label="IPS Mural" url="images/projects
/project_img.jpg" link="www" resp="info">My
description is here</item>

</project>
one swf("navSwf") goes through the XML and generates a
menu of link using html textboxes and hrefs. thats
fine. the other swf("displaySwf") take the nodes info
and displays it. that works fine. on the nav hrefs i
currently have asfunctions(which do nothing, i am
thinking its the way to go), and i am trying to pass
the info of the selected item from the navSwf to
displaySwf.
EX:
in navSwf i click on item 3, so i need to tell the
displaySwf to access that item 3 node and
parse/display its attributes.

it is here where i am lost, how can i do this?

i may not be setting this up the best i understand,
but any help to get this working is greatly
appreciated. thanks

View Replies !    View Related
Communication Between Two SWF's
HI all,

Can any one give me link to some tutorial or any thread,where in i can get information of how to communicate between to SWF's running in different machines or Running on the Two Separate Page or windows or browser or even popup windows.

View Replies !    View Related
DB Communication
We are wondering:

1. What type of luck have you have had directly communicating between Flash and a database?
2. What type of software have you used?
3. How does this compare with Action Script-to-Java Script-to-PHP-to database communication?
4. Any tutorials?

Thanks,
JIF

View Replies !    View Related
Swf To Swf Communication
I'm trying to use LiveConnect to have two seperate swfs located on difent parts of an HTML page to talk to each other -

basically - when one movie plays , I want the other to stop.

i tried this - but to no avail ...

it's still not working.
I do this:
First swf with button, action for button:
btn.onRelease = function() {
outgoing_lc = new LocalConnection();
outgoing_lc.send("connection", "methodToExecute", _root.gotoAndStop(14));
};

Second swf
incoming_lc = new LocalConnection();
incoming_lc.connect("connection");

missing somthing ?

View Replies !    View Related
Communication Between Swf
I'm not very good in ActionScript, so i need help about this.
I've 2 swf (A and B). "A" have 3 buttons, on realese I need that they go and
stop at frame 1,2 or 3 in a movie clip in "B".
It should be simple, but I'm not able to do that.
Someone could help me please with code?

Thank you indeed,
Fanky

View Replies !    View Related
Swf To Swf Communication
Hello, I have one swf which contains a user entry form.
When submitted, I want to send the user submission result variables to a second SWF on my server. This second SWF is not actually open until the first SWF calls and loads it.
Can I achieve this ?

Thanks for any advice.

View Replies !    View Related
Swf And Xml Communication
Hi I’m new at this. 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. Honestly I am about to give up hope, where can I find an answer?

View Replies !    View Related
Two Way Communication Necessary...
From the root timeline,...The first line below initiates a class which runs a remoting script, yada yada - and so forth. That part works and stuff. Now on the next line, I am populating a List component (also on the root timeline) with a DataProvider variable that was generated in the previous line. That works...sort of (will explain in a minute). The third line populates a comboBox via another DataProvider that was generated from the class on line 1. This also works (again, sort of). Line 4 doesn't work at all. However, AFTER everything is loaded, I can run code to change the selectedIndex for the comboBox using the syntax from line 4 with no problem.

clientList=new getClientList();
myList.dataProvider = clientList.myData;
logoData.dataProvider = clientList.xmlLogoData;
logoData.selectedIndex = 2;

From what I can surmise, the data isn't getting returned before lines 2,3 and 4 are getting ran. I don't know how to "wait" for that data before I run lines 2-4. Seems like my core issues seem to be with (what is apparently) a one-way communication between the root functions and the class functions (and also class functions that initiate classes themselves). Seems like the root can call a class and that class can call a class, but a class cannot call functions in the parent class or the root. I don't know if a person can even (somehow) return a "thumb's up" that the function that was called is finished (that way I can call a class and tell the root to "wait" indefinitely for the return).

For example, in remoting, you can send a call to the remote server and it can take a millisecond or it can take a whole minute or more. The thing is,...when it is done, you get a callback either RESULT or FAULT. I want to do something similiar with classes. I want to call the class, have it do it's thing, then report back when done (whenver that is). It would be at this point that I would run lines 2-4. What seems to be happening is that the remoting call isn't finishing in the class before lines 2-4 run. So sometimes they work and sometimes they don't (with Line 4 never working).

I would populate the data into the List on root from the class in the remoting success function. However, classes don't seem to like to communicate backwards very easily. I have read that you have to sort of "make" a root to force a root into existance. I have also read that addListener works across classes, but I am not sure what listener to use since I would want the listener to fire at the end of a function instruction set and not on a CLICK. Can you fire a listener off with a line of code like that and are listeners "global"? If so...what would the event property be and how does one call it? Is that even a viable solution?

Any thoughts outside of what I am thinking that might work?

View Replies !    View Related
Swf To Swf Communication
Hi, I have two swf files. And i want to send data from one swf to another. So how can i do that? Please help me.

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

If any body know then please let me know asap.

View Replies !    View Related
Pls Help About Communication Between Two Swf
ok here my problem I want to click a button in 1.swf and change the sound in 2.swf ,note both of them are loaded.. is it possible?

thanks

View Replies !    View Related
Swf To Swf Communication
Hello,
I was wondering if there is a way to pass information between two swf files that are not contained within a common movie. For example I want to be able to say on some keypress action that is going on in one.swf housed within site.html to have an effect on two.swf which is housed within the same html file.

Is there any way to do this?

Thanks!

View Replies !    View Related
Communication
I'm having some trouble with figuring out the correct lingo for having loaded movies talk to the movies that loaded them. What would be the correct syntax for accomplishing this? I don't know what the target path would be if I load it in a movieclip or a higher level.

Help!

View Replies !    View Related
Communication Between Swf's
Hello,
I want my menu and my main swf’s to be in separate files. How do you control the playhead of main.swf with menu.swf?

To clarify I will NOT be loading menu.swf into main.swf – they will be two separate files on one HTML page.

Any help would be great. Thanks

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved