Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
3AnhEm

How to avoid running scripts/access to main .swf from child

Recommended Posts

HI everyone and Greensock,

 

I have a problem in my project that my application allows users can upload a .swf to use it as a avatar.

I use SWFLoader to add it into a container(MovieClip).

I want the external .swf cannot run scripts or access to the parent/main.swf.

How can I do this with SWFLoader? I have searched on Google for a long time but I haven't found a solution for this.

 

Hope to see your answer :) Thanks.

Link to post
Share on other sites

Thanks carl schooff :).

 

My colleague has another solution is override the parent property so the child .swf cannot access the main .swf. Do you think it is ok?

Link to post
Share on other sites

I'm not familiar with overriding the parent property or even making swfs bullet-proof security-wise. I would assume that using the built-in security mechanisms of the Player are a safer bet, but its worth exploring the options.

Link to post
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.

×