简体   繁体   中英

Flash AS3 - Access external swf on the same domain

I ran into this problem and could not solve it, so I have a swf file that loads assets from another swf file, everything's fine, until I put them on the server, they are under the same domain, relative path doesnt work nor does absolute path. This is not even a cross domain problem, since both files are on the same server.

Did anyone ever have the same problem? Thanks.

If you're using Flex Builder you can set the right -use-network compiler flag. If you're using Flash IDE and the content is on the same server, make sure you've got the Local playback security set to 'Access local files only', in the Flash tab under Publish Settings.

alt text http://www.adobe.com/devnet/flash/articles/local_network_playback/fig01.jpg

That should do it. As Dru stated, what is the error message you are receiving ?

The images comes from this article which might come in handy.

Goodluck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM