git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Consume URL information


Hi bilbosax,

Actually there's an easy way to do this if you don't mind it being just a
little bit clunky.

In the Project-app.xml file, find the allowBrowserInvocation line and set it
to true.

Make the first line of the Main.mxml init function -
NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE,
yourFunction);

In the email set the link with a querystring containing the data that
defines the page you want to open and point it to an html file on your
website.

In the html file, use javascript to get the data out of the querystring,
then in the html put a button for the user to click - you can put some text
like - For security, please click here if you opened this page from
myCompany's email.

Put a mouse click event handler in the javascript and in there put the code
as shown in this link -

https://help.adobe.com/en_US/air/build/WSfffb011ac560372f-1c6efe05128cca667e7-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7cd2

Place the querystring vars in the arguments and when the user clicks this
button your app will open and you can use the arguments in yourFunction
(event.arguments is an array) to direct it immediately to the page required
by the user.

Doug



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flex-development/msg02557.html on line 106
Call Stack
#TimeMemoryFunctionLocation
10.0007363400{main}( ).../msg02557.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flex-development/msg02557.html on line 106
Call Stack
#TimeMemoryFunctionLocation
10.0007363400{main}( ).../msg02557.html:0