Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > Projectors and CDs

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-22-2012, 08:30 PM   #1
flasnwb
Registered User
 
Join Date: Mar 2012
Posts: 2
Default [AS3] Open URL on local swf (without setting permissions))

Hello,

How can I open a URL from a as3 local flash application (on a cd-rom), without
setting the browser permission? If it were to be accessed online, the param "allowScriptAccess" would do the trick, but locally I canīt find the way to do it.

Thanks
flasnwb is offline   Reply With Quote
Old 03-22-2012, 08:43 PM   #2
Barna Biro
Senior Member
 
Barna Biro's Avatar
 
Join Date: Nov 2009
Location: LU, Switzerland
Posts: 1,406
Default

You should not run .swf files from a CD-Rom or local disk in the first place. Such files were meant to run in a browser, if that is not what you want, then you shouldn't be working with a .swf file but some other format ( like Projector or Adobe Air or a completely different technology ).
__________________
Titus M. Plautus - Not by age but by capacity is wisdom acquired.
Barna Biro is offline   Reply With Quote
Old 03-22-2012, 09:29 PM   #3
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,796
Send a message via AIM to abeall
Default

If you aren't running the Flash application on your CD through a browser, how are you running it? You can still use HTML on a CD app, just include an HTML wrapper. It will run in the user's browser locally. You would be able to set allowScriptAccess but you will run into local sandbox restrictions, I'm not sure how allowScriptAccess will interact with that, and at the very least you will not be able to interact with the HTML and load a URL at the same time (you can only get local access or network access, not both -- at least not without a way to put the app in the local-trusted sandbox.)
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Old 03-22-2012, 11:50 PM   #4
flasnwb
Registered User
 
Join Date: Mar 2012
Posts: 2
Default

Thanks for the replies. I am running the app thru a browser and a html wrapper and those local sandbox restrictions are the things that are troubling me. If the user manually set the flash player restrictions, the app will work, but I am trying to do it beforehand. I could come up with a gross workaround, on which the app calls an auxiliar html that opens the desired URL. But I am still trying to find a better way.

Thanks again
flasnwb is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:22 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.