Yes I do have control and can make all of them modules. 

But I am not able to understand how to load/unload various modules.

 

To put it in perspective: My main application has a button which when
pressed takes me to another application which has another button which
pressed takes me to 3rd application.

If I make all of them modules and load the main application and on
pressing the button I should be able to load the second swf file and
unload the main application. And so forth..

 

Can you please give some examples to how to do this? I am attaching my 2
application which I attached before and 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. I don't need Hello1 to be shown so I guess I
need to unload it. I am not sure.

 

Thanks,

Pankaj Arora

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Pedro Sena
Sent: Saturday, August 30, 2008 3:17 PM
To: [email protected]
Subject: Re: [flexcoders] Using view stack to link to mxml

 

Pankaj,

Do you have control (can alter the source) of all those swfs? I would
recomend you to manipulate those swf files as flex modules instead of
put all of them in yout html. That way you can easily send/receive data
between them AND have the advantage to load them just when you need it,
what does not happens when you put all together in your html file.

Hope this helps

On Fri, Aug 29, 2008 at 8:29 PM, Pankaj Arora <[EMAIL PROTECTED]
<mailto:[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: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Nate Beck
Sent: Friday, August 29, 2008 3:58 PM


To: [email protected] <mailto:[email protected]> 
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]
<mailto:[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: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Nate Beck
Sent: Friday, August 29, 2008 3:15 PM
To: [email protected] <mailto:[email protected]> 
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]
<mailto:[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.

 

 




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer 
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br <http://www.netsar.com.br> 
*/

 

Attachment: Hello2.mxml
Description: Hello2.mxml

Attachment: Hello1.mxml
Description: Hello1.mxml

Reply via email to