Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-24-2006, 04:35 PM   #1
isvaljek
Registered User
 
Join Date: Oct 2006
Posts: 9
Default Security Sandbox Violation when transforming mc inside MovieClipLoader.onLoadInit

I'm trying to load an image into a placeholder movieclip, using movieClipLoader.loadClip.
When the onLoadInit event fires, i do some resize and alpha fade-in code. The resize code causes Security Sandbox Violation. This is the culprit:

mat=target.transform.matrix;
mat.scale(frame2picRatio,frame2picRatio);
target.transform.matrix=mat;

When I comment it out in the onLoadInit, the error goes away. I don't know what connection is there between scaling a matrix and Security Sandbox.

Any thoughts?

Thanks.
isvaljek is offline   Reply With Quote
Old 10-24-2006, 04:52 PM   #2
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,528
Default

this whole answer is from another thread i found with the same problem
see it here. http://chattyfig.figleaf.com/piperma...er/173228.html

Quote:
Hi,
try this:

trace(System.security.sandboxType);

You should get "localTrusted". If you don't use Adobe Settings Manager
to add the swf as a trusted swf.
__________________
www.mustcodemore.com
Adobe Certified Flash 8 Developer
mcmcom 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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sandbox Violation summer ActionScript 2.0 2 02-27-2006 10:31 AM
Security sandbox violation - preloading external swf Littlemad ActionScript 1.0 (and below) 3 09-24-2005 02:00 PM
*** Security Sandbox Violation *** Paul Ferrie Other Flash General Questions 2 06-03-2005 07:06 PM
Security SandBox Violation? grizjr ActionScript 2.0 1 08-02-2004 04:13 PM
FLASH MX 2004 and new Security Sandbox issues... idpexec ActionScript 1.0 (and below) 0 09-10-2003 07:06 PM


All times are GMT. The time now is 02:11 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.