Re: [flexcoders] Re: Trying to pass a value to the mxml/swf file from java(android).How?

2011-09-27 Thread Alex Harui
If you produce a Flex/AIR app for Android, it is basically an AIR app and you’d 
have to launch it and pass it parameters like any other Android app.  I’m 
pretty sure flashvars don’t work on AIR apps in Android.


On 9/27/11 6:52 AM, "Shunmuga"  wrote:








No Saurabh, its not the part of android
The flex project contains the mxml application file. flex produces the build in 
"swf" format.

The following method is used to get the run time arguments in flex side
var flashVarsObj:Object = Application.application.parameters as Object;
arg1 = flashVarsObj.arg1;
arg2 = flashVarsObj.arg2;

Using the FlashVars object you can pass the arguments to swf file
 FlashVars="arg1=val&arg2=val2"

please follow the below link to know how to load swf in android.
"http://stackoverflow.com/questions/6532303/problem-loading-swf-file-in-android";

Thanks,

--- In flexcoders@yahoogroups.com  , 
"rawat"  wrote:
>
> Hi Rohini,
> Is the part of the code above mxml in android(in androidmanifest.xml 
> file).PLz elaborate , i would like to know more about what you have posted.
> Best rgds and Thanks in advance
> Saurabh
>
> --- In flexcoders@yahoogroups.com  , 
> "Shunmuga"  wrote:
> >
> > you can pass the arguments to swf file by using Flashvars:
> > FlashVars="arg1=val&arg2=val2"
> >
> > string htmlUrl = "  > name=\"movie\" value=\"file:///android_asset/sample.swf\">  > src=\"file:///android_asset/sample.swf\" FlashVars="arg1=val&arg2=val2" 
> > width=\"550\" height=\"400\"> ";
> >
> > In MXML file:
> >
> > var flashVarsObj:Object = Application.application.parameters as Object;
> > arg1 = flashVarsObj.arg1;
> > arg2 = flashVarsObj.arg2;
> >
> >
> > Thanks, Rohini.
> >
> > --- In flexcoders@yahoogroups.com  , 
> > "rawat"  wrote:
> > >
> > > HI,
> > > I have been trying to pass the values to the mxml file(whose output is 
> > > .swf file) via android (java code) , But i am unable to do this.Here is 
> > > my problem, I think tht .SWF file is a binary file(like exe , .out or 
> > > .dll or .iso) which runs on flash platforms(browser, mobile phone 
> > > supporting flash).Now i want the output of the .swf to be dependent on 
> > > some values which I want to pass thourgh the android code.
> > >
> > > Other way is that I put the mxml files itself inside the eclipse(android 
> > > project IDE) and pass the values to it (don't know how) compile it using 
> > > mxmlc.exe compiler and link(don't know how ) with the android project and 
> > > generate the final output file(we call it apk) and run it.Please suggest 
> > > me which way to go even though my study is still partial but I am at the 
> > > cross roads of confusion.Please suggest me which way to go and how.
> > > Rgds,
> > > Saurabh
> > >
> >
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Trying to pass a value to the mxml/swf file from java(android).How?

2011-09-27 Thread Shunmuga


No Saurabh, its not the part of android
The flex project contains the mxml application file. flex produces the build in 
"swf" format.

The following method is used to get the run time arguments in flex side
var flashVarsObj:Object = Application.application.parameters as Object;
arg1 = flashVarsObj.arg1;
arg2 = flashVarsObj.arg2;

Using the FlashVars object you can pass the arguments to swf file
 FlashVars="arg1=val&arg2=val2"

please follow the below link to know how to load swf in android.
"http://stackoverflow.com/questions/6532303/problem-loading-swf-file-in-android";

Thanks, 

--- In flexcoders@yahoogroups.com, "rawat"  wrote:
>
> Hi Rohini,
> Is the part of the code above mxml in android(in androidmanifest.xml 
> file).PLz elaborate , i would like to know more about what you have posted.
> Best rgds and Thanks in advance
> Saurabh
> 
> --- In flexcoders@yahoogroups.com, "Shunmuga"  wrote:
> >
> > you can pass the arguments to swf file by using Flashvars:
> > FlashVars="arg1=val&arg2=val2"
> > 
> > string htmlUrl = "  > name=\"movie\" value=\"file:///android_asset/sample.swf\">  > src=\"file:///android_asset/sample.swf\" FlashVars="arg1=val&arg2=val2" 
> > width=\"550\" height=\"400\"> ";
> > 
> > In MXML file:
> > 
> > var flashVarsObj:Object = Application.application.parameters as Object;
> > arg1 = flashVarsObj.arg1;
> > arg2 = flashVarsObj.arg2;
> > 
> > 
> > Thanks, Rohini.
> > 
> > --- In flexcoders@yahoogroups.com, "rawat"  wrote:
> > >
> > > HI, 
> > > I have been trying to pass the values to the mxml file(whose output is 
> > > .swf file) via android (java code) , But i am unable to do this.Here is 
> > > my problem, I think tht .SWF file is a binary file(like exe , .out or 
> > > .dll or .iso) which runs on flash platforms(browser, mobile phone 
> > > supporting flash).Now i want the output of the .swf to be dependent on 
> > > some values which I want to pass thourgh the android code.
> > > 
> > > Other way is that I put the mxml files itself inside the eclipse(android 
> > > project IDE) and pass the values to it (don't know how) compile it using 
> > > mxmlc.exe compiler and link(don't know how ) with the android project and 
> > > generate the final output file(we call it apk) and run it.Please suggest 
> > > me which way to go even though my study is still partial but I am at the 
> > > cross roads of confusion.Please suggest me which way to go and how.
> > > Rgds,
> > > Saurabh
> > >
> >
>




[flexcoders] Re: Trying to pass a value to the mxml/swf file from java(android).How?

2011-09-23 Thread rawat
Hi Rohini,
Is the part of the code above mxml in android(in androidmanifest.xml file).PLz 
elaborate , i would like to know more about what you have posted.
Best rgds and Thanks in advance
Saurabh

--- In flexcoders@yahoogroups.com, "Shunmuga"  wrote:
>
> you can pass the arguments to swf file by using Flashvars:
> FlashVars="arg1=val&arg2=val2"
> 
> string htmlUrl = "  value=\"file:///android_asset/sample.swf\">  src=\"file:///android_asset/sample.swf\" FlashVars="arg1=val&arg2=val2" 
> width=\"550\" height=\"400\"> ";
> 
> In MXML file:
> 
> var flashVarsObj:Object = Application.application.parameters as Object;
> arg1 = flashVarsObj.arg1;
> arg2 = flashVarsObj.arg2;
> 
> 
> Thanks, Rohini.
> 
> --- In flexcoders@yahoogroups.com, "rawat"  wrote:
> >
> > HI, 
> > I have been trying to pass the values to the mxml file(whose output is .swf 
> > file) via android (java code) , But i am unable to do this.Here is my 
> > problem, I think tht .SWF file is a binary file(like exe , .out or .dll or 
> > .iso) which runs on flash platforms(browser, mobile phone supporting 
> > flash).Now i want the output of the .swf to be dependent on some values 
> > which I want to pass thourgh the android code.
> > 
> > Other way is that I put the mxml files itself inside the eclipse(android 
> > project IDE) and pass the values to it (don't know how) compile it using 
> > mxmlc.exe compiler and link(don't know how ) with the android project and 
> > generate the final output file(we call it apk) and run it.Please suggest me 
> > which way to go even though my study is still partial but I am at the cross 
> > roads of confusion.Please suggest me which way to go and how.
> > Rgds,
> > Saurabh
> >
>




[flexcoders] Re: Trying to pass a value to the mxml/swf file from java(android).How?

2011-09-22 Thread Shunmuga
you can pass the arguments to swf file by using Flashvars:
FlashVars="arg1=val&arg2=val2"

string htmlUrl = "   ";

In MXML file:

var flashVarsObj:Object = Application.application.parameters as Object;
arg1 = flashVarsObj.arg1;
arg2 = flashVarsObj.arg2;


Thanks, Rohini.

--- In flexcoders@yahoogroups.com, "rawat"  wrote:
>
> HI, 
> I have been trying to pass the values to the mxml file(whose output is .swf 
> file) via android (java code) , But i am unable to do this.Here is my 
> problem, I think tht .SWF file is a binary file(like exe , .out or .dll or 
> .iso) which runs on flash platforms(browser, mobile phone supporting 
> flash).Now i want the output of the .swf to be dependent on some values which 
> I want to pass thourgh the android code.
> 
> Other way is that I put the mxml files itself inside the eclipse(android 
> project IDE) and pass the values to it (don't know how) compile it using 
> mxmlc.exe compiler and link(don't know how ) with the android project and 
> generate the final output file(we call it apk) and run it.Please suggest me 
> which way to go even though my study is still partial but I am at the cross 
> roads of confusion.Please suggest me which way to go and how.
> Rgds,
> Saurabh
>