Jump to content
Search Community

AS3 LoaderMax

arobertson test
Moderator Tag

Recommended Posts

Hello,

 

I've just stumbled on this wicked product and I don't know how I've survived without it - but I am having a bit of a problem. I've been able to build a mini-simulation application that functions flawlessly when I test the movie within Flash CS6 but when I export to SWF/HTML the images do not load. Is there anything that I should look at (settings? code?)? Any help would be greatly appreciated.

 

Cheers,

Andrew

Link to comment
Share on other sites

It might just be the Flash setting that only allows loading EITHER over the network OR locally (can't do both). Perhaps you're testing it locally when it's set to load over the network. It's in publish settings. Have you tried putting it on your server and testing it from there? 

 

FYI, we shifted focus to our HTML5/JS tools a few years ago because that's where the market clearly wanted us to go, thus we've "sunset" our ActionScript tools and no longer actively support them. You're welcome to use them, of course. Just letting you know that we don't plan any updates and support is limited. 

 

Good luck with your project. 

Link to comment
Share on other sites

That's a shame that the market indicated a new direction because these tools are sharp.

 

I ran in debug mode and was wondering if you could make sense of the errors?

 

Cheers.

Andrew

 

Attempting to launch and connect to Player using URL E:\Training Development\......\Evaluation.swf
[SWF] E:\Training Development\......\Evaluation.swf - 144760 bytes after decompression
*** Security Sandbox Violation ***
Connection to http://locallms/coursecontent/images/1/BW_View2.jpg?purpose=audit&cacheBusterID=1470944960635 halted - not permitted from file:///E|/Training%20Development/....../Evaluation.swf
-- Untrusted local SWFs may not contact the Internet.
SecurityError: Error #2028: Local-with-filesystem SWF file file:///E|/Training%20Development/....../Evaluation.swf cannot access Internet URL http://locallms/coursecontent/images/1/BW_View2.jpg?purpose=audit&cacheBusterID=1470944960635.
at flash.net::URLStream/load()
at com.greensock.loading.core::LoaderItem/auditSize()[E:\Training Development\..........\EN\Flash\com\greensock\loading\core\LoaderItem.as:116]
at com.greensock.loading::LoaderMax/_auditSize()[E:\Training Development\..........\EN\Flash\com\greensock\loading\LoaderMax.as:731]
at com.greensock.loading::LoaderMax/_loadNext()[E:\Training Development\..........\EN\Flash\com\greensock\loading\LoaderMax.as:755]
at com.greensock.loading::LoaderMax/_load()[E:\Training Development\..........EN\Flash\com\greensock\loading\LoaderMax.as:293]
at com.greensock.loading.core::LoaderCore/load()[E:\Training Development\..........\EN\Flash\com\greensock\loading\core\LoaderCore.as:173]
at xrayEvaluation_fla::MainTimeline/loadImg()[Evaluation_fla.MainTimeline::frame1:97]
at xrayEvaluation_fla::MainTimeline/xmlLoaded()[Evaluation_fla.MainTimeline::frame1:56]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Cannot display source code at this location.

 

Link to comment
Share on other sites

I switched the settings to NETWORK only and then the following came up...

 

Attempting to launch and connect to Player using URL E:\Training Development\...............\Evaluation.swf[SWF] E:\Training Development\.................\Evaluation.swf - 144326 bytes after decompressionWarning: Failed to load policy file from http://locallms/crossdomain.xml*** Security Sandbox Violation ***Connection to http://locallms/coursecontent/BW_View2.jpg?cacheBusterID=1470946166727&purpose=audit'>http://locallms/coursecontent/BW_View2.jpg?cacheBusterID=1470946166727&purpose=audit halted - not permitted from file:///E|/Training%20Development/................./Evaluation.swfLoading error on ImageLoader 'BlackWhite_View2' (http://locallms/coursecontent/xraypertstudy/xrayevalimages/1/BW_View2.jpg): Error #2048: Security sandbox violation: file:///E|/Training%20Development/..................../Evaluation.swf cannot load data from http://locallms/coursecontent/BW_View2.jpg?cacheBusterID=1470946166727&purpose=audit'>http://locallms/coursecontent/BW_View2.jpg?cacheBusterID=1470946166727&purpose=audit.Error occured with ImageLoader 'BlackWhite_View2' (http://locallms/coursecontent/BW_View2.jpg): ImageLoader 'BlackWhite_View2' (http://locallms/coursecontent/BW_View2.jpg) > Error #2048: Security sandbox violation: file:///E|/Training%20Development........................../BW_View2.jpg?cacheBusterID=1470946166727&purpose=audit.Error: Request for resource at http://locallms/coursecontent/............./BW_View2.jpg?cacheBusterID=1470946166727&purpose=audit by requestor from file:///E|/Training%20Development/.............../Evaluation.swf is denied due to lack of policy file permissions. 
Link to comment
Share on other sites

Yep, that's exactly the error I was describing. It's saying that you're running a file locally that's attempting to load something over the network. Adobe won't allow that. Nor can you run a file from the network that attempts to load a local file. You need to make sure you're either loading everything locally (where the swf is) or over the network (in which case the container swf must also be served from the network). It might be worthwhile to research Flash's security restrictions (this isn't something LoaderMax can solve for you). 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...