dirtybirdsurf
03-30-2008, 12:56 PM
how can i get this swf to play on this page?
http://www.dirtybirdsurf.com/test/index2.html
http://www.dirtybirdsurf.com/test/index2.html
|
Click to See Complete Forum and Search --> : SWF not playing dirtybirdsurf 03-30-2008, 12:56 PM how can i get this swf to play on this page? http://www.dirtybirdsurf.com/test/index2.html CharlesFarley 03-30-2008, 03:10 PM Hi Your code tells the browser to run the Javascript function AC_FL_RunContent(...parameters & variables...) but this function is not on the page. Gord dirtybirdsurf 03-30-2008, 06:04 PM thats the code dreamweaver put in there to embed the flash file dirtybirdsurf 03-30-2008, 06:09 PM it has to do with the sandboxing security thing i think, i dont think they have a crossdomain.xml file on the root. how can i bypass this? all im doing is loading text from this location (http://www.ndbc.noaa.gov/data/latest_obs/41035.txt) and displaying it in a simple flash file. CharlesFarley 03-30-2008, 06:44 PM No. The problem is that there is no AC_FL_RunContent(...parameters & variables...) function defined. thats the code dreamweaver put in there to embed the flash file Unfortunately I don't use Dreamweaver, but presumably it should have given you either an external Javascript file to embed on the page or it is found elsewhere in a Dreamweaver Javascript library for you to copy & paste into script tags in the head section. What's going on here is as follows: Browser renders the page down from body tag. Renders page to this point. <script type="text/javascript"> AC_FL_RunContent(....... parameters & variables......etc..) </script> This tells the browser to find the Javascript function called AC_FL_RunContent. ( which will load the swf movie). The function is not defined anywhere so it silently ignores the code. There may / may not be other problems loading your external data into flash, but at the moment the problem is that there is no code to load the Flash movie. If you can get your head round it , there is an excellent alternative embedding script here.( which is more universally adopted on the web ) ttp://blog.deconcept.com/swfobject/ Gord CharlesFarley 03-30-2008, 07:56 PM http://blog.deconcept.com/swfobject/ dirtybirdsurf 03-30-2008, 08:22 PM thanks gord, ill be reading it tonight! dirtybirdsurf 03-30-2008, 08:50 PM oh man, it never ends, i got the new way of handling and embedding the flash but now this, Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.dirtybirdsurf.com/test/Untitled-2.swf cannot load data from http://www.ndbc.noaa.gov/data/latest_obs/41035.txt. at Untitled_fla::MainTimeline/Untitled_fla::frame1() ???? this is the crossdomain deal isnt it CharlesFarley 03-31-2008, 08:34 AM Yep. This is not something I'm familiar with but it seems to be a permanent restriction for security reasons. http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16520 If this is correct, you will maybe need to get the txt file via a server script or client side via Javascript & pass it into the .swf from your server or the client browser. Gord webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |