View Full Version : Flash 8 coding advice
TheJazzMan
07-06-2007, 05:15 PM
I'm building a Flash 8 app for the web and I'm loading external SWF files and XML files. Works well, but now I have to add hyperlinks to various websites. When accessing the sites the Flash Player security dialog box appears and instructs me to change my player settings. This will not work for my customers. They don't want to configure anything or change any settings. They just want to click the buttons and go to the web sites
So how can I code my app so that I can access "local" files (XML and SWF) and also visit websites without having to configure player settings? This must be a very common thing for Flash developers! How do the rest of you handle this situation?
Thanks!
jazzman
box86rowh
07-06-2007, 06:11 PM
does it work if you create a projector file (an exe) for the main flash movie?
TheJazzMan
07-06-2007, 07:36 PM
Yes, if I make the file into a projector (exe) then everything works fine. I don't think there are nearly as many limitations for a projector as for an SWF.
If I publish as "Local" then the web links do not work but the SWF and XML files are loaded. If I publish as "Network" then the web links work but the SWFs and the XML do not load.
I did find that if I publish as Flash 7 then I can access both web sites AND the external SWF and XML files without a security dialog box. However, I do lose some functionality by publishing as to Flash 7.
So how does everyone use external content AND provide web links in Flash 8?
Thanks!
box86rowh
07-06-2007, 07:46 PM
odd..cause I have built flash 8 projectors that were able to do that before..
what code are you using for your web links?
nyghtrunner
07-06-2007, 08:01 PM
There are 2 things I would try.
The first and foremost: There are some security problems with allowing that much access through a browser, and this seems to be accented when the file is run locally and is trying to get stuff externally (XML files from a server for instance) and more so if I try to leave an open connection. This usually seems to resolve itself so long as I place everything on the server. But then, what it sounds like is happening when you do that, is that you have the paths(XML and SWFs) set up for the local machine, and so it's not finding them server side. I'd try to use EXACTLY the same file structure in both instances, and even then, from what I understand, this might not always work depending on the OS of the server (Linux, OSx.x etc.), as (if memory serves), the file structure syntax is a bit different.
The other thing I would try is to manually create an HTML page to house the main SWF using the swfObject (explained much better than I could off the top of my head here: http://blog.deconcept.com/swfobject/). If you are still having problems, try posting some source code that is problematic.
If none of this helps, then try posting some source code or files. :)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.