# Staging Swf for AS2 and AS3, Answer and I'll send you cookies :)

**URL:** <https://forum.kirupa.com/t/staging-swf-for-as2-and-as3-answer-and-ill-send-you-cookies/224374>\
**Category:** flash\
**Created:** [May 1, 2007, 10:24pm UTC](https://forum.kirupa.com/t/staging-swf-for-as2-and-as3-answer-and-ill-send-you-cookies/224374 "2007-05-01T22:24:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnbeck](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jnbeck/32/1502_2.png) [@jnbeck](https://forum.kirupa.com/u/jnbeck)\
**Post date:** [May 1, 2007, 10:24pm UTC](https://forum.kirupa.com/t/staging-swf-for-as2-and-as3-answer-and-ill-send-you-cookies/224374/1 "2007-05-01T22:24:21Z")

</div>

Everyone likes cookies!

So I’ve been searching every resource I could find for the past week trying to figure out how to create a staging environment for a flash embed I push out.

Here’s the situation:

I have a flash embed that gets hotlinked on many of the social networks (MySpace, Bebo, Friendster, etc…). I want to port my flash application to AS 3 to benefit from the new features it entails. However, my analytics report that only 86% of my users are using Flash Player 9.

I want to keep my current Flash 8 version of my player as a Legacy version.

What I would like to create is a swf that can load EITHER of the two versions based on the version of Flash Player. The two apps would be an AS2 version (with a note telling the user they should upgrade FP), and an AS3 version.

Here’s the problems that I’m running into:

1. I can’t seem to get an AS3 swf to run underneath a Flash 8 published app. Using attachMovie or a loader.
2. I cannot use any javascript as my flash piece is being embedded on servers that I don’t have access to.
3. I can’t use getURL on myspace due to the new FP9 security features.

I could have sworn I’ve seen this done before.

Thanks,  
Jnbeck
