Well then you have a few options that you can do.. The two easiest: 1) Use the HTML DOM and communicate to each movie using JavaScript and ExternalInterface. Communicating between swfs works, but it can be flakey because you're dependent upon differences in the browsers.
2) Use Local Shared Objects to pass data between the two movies. However, I would have to agree with Pedro, it'd be much, MUCH easier just turning them into modules and having one swf embedded in the page. Cheers, Nate On Fri, Aug 29, 2008 at 4:29 PM, Pankaj Arora <[EMAIL PROTECTED]> wrote: > Yes they are completely different swf files( there are 4 of them in > total). One of them is main.swf which has few text boxes and buttons. On > clicking button 1 hello2. swf is loaded and it access all the information > from main.swf and similarly on clicking button2 another swf file hello2.swf > is loadead and so forth. > > > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Nate Beck > *Sent:* Friday, August 29, 2008 3:58 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Using view stack to link to mxml > > > > Okay, so just to clarify. You're wanting to communicate from one > application to another application? They are completely different swf > files? > > > > Like this? > > > > Example HTML page: > > <html> > > <head><title>Testing Flex</title></head> > > <body> > > <object id="Hello1" width="300" height="200"> > > <param name="movie" value="Hello1.swf" > /> > > <param name="allowScriptAccess" > value="sameDomain" /> > > <embed src="Hello1.swf" > > width="300" height="200" > name="Hello1" > > > allowScriptAccess="sameDomain" > > > type="application/x-shockwave-flash"> > > </embed> > > </object> > > > > <object id="Hello2" width="300" height="200"> > > <param name="movie" value="Hello2.swf" > /> > > <param name="allowScriptAccess" > value="sameDomain" /> > > <embed src="Hello2.swf" > > width="300" height="200" > name="Hello2" > > > allowScriptAccess="sameDomain" > > > type="application/x-shockwave-flash"> > > </embed> > > </object> > > </body> > > </html> > > > > On Fri, Aug 29, 2008 at 3:43 PM, Pankaj Arora <[EMAIL PROTECTED]> wrote: > > I am sorry I dint explain it well. Let me give you one example. > > > > Two files attached are 2 mxml applications I have in my project. I load > each independently in an .xhtml file. > > > > My requirement is when I add text on the text box in Hello1.mxml and click > the "click me" button Hello2.mxml is shown and the text box in Hello2 > contains the text from the Hello1.mxml text box. > > > > > > Do tell me if you need any more information. > > > > Thanks, > > Pankaj Arora > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Nate Beck > *Sent:* Friday, August 29, 2008 3:15 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Using view stack to link to mxml > > > > I'm a bit confused on how you mean "load another application". You could > either load a Component (compiled into your swf) or a Module > (compiled separate from your application). > > > > From how I read it, this sounds like you're trying to load one MXML swf > inside of another application. One of the easiest ways to do this would be > through using Flex Modules (mx:Module). > > > > More information would we useful. > > > > Cheers, > > Nate > > > > On Fri, Aug 29, 2008 at 2:10 PM, pankajarora_in <[EMAIL PROTECTED]> > wrote: > > I have a appplication abc.mxml > and there are 2 buttons but1 and but2 in it. > WHen I press but1 I need to call to anothe application 1.mxml > and when I press button 2 I need to call 3rd application 3.xml. Note > that pressing any button pass on data from abc.mxml to 1.mxml and > 2.mxml. Any ideas how it can be done. I think viewstack can be one way > but any examples will be appreciated. > > > > > > >