Broader Utilization in Flash: Can we get some new Code?

Specific Q&A about the new Flash export
Posts: 19
Joined: Fri Jun 08, 2007 4:09 pm

Tue Jun 12, 2007 12:41 am

I realize that the answer to this problem may not reside here, but this is a good place to start.

This is a great app, but right now it seems to be geared towards those folks who need a .swf file to put into an HTML page. If possible, I'd like to see more emphasis placed on better Flash integration. Here's the problem:

The example .fla file for the Virtual Tour is coded with ActionScript that loads the panoramas, radar, and map at the root level. This causes no end of problems when you want to call the .swf file into a larger Flash movie. Once the main pano .swf you've created is loaded into your larger movie, it never goes away.

My ActionScript knowledge is less than stellar and I'm wondering if it's possible to provide another example of how we can incorporate our Virtual Tours into larger Flash movies without the _root command?

I'm going to try and post the code at some Flash forums and see what kind of response I get. In the meantime, who created the Virtual Tour sample .fla file for this site? Can they do another that alters the code to just use standard loadMovie script? Thanks much.
Posts: 19
Joined: Fri Jun 08, 2007 4:09 pm

Tue Jun 12, 2007 5:17 pm

I think I've found a solution.

I've simply removed the

Code: Select all

whenever there's loading to be done.

I then took that code and dumped it into a movieClip that resides in my main project library. A button loads the clip to level 10 (which is where all my movieClips reside). Press another menu button and that clip is replaced. If I hadn't removed the root, it gets difficult to remove.

So far it works great. Now I just have to figure out how to incorporate mask via ActionScript, then load the pano .swf file into that mask movieClip![/code]
User avatar
Posts: 3506
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA

Tue Jun 12, 2007 6:57 pm

Thanks for the information. Even though we do not do that type of flash work.. I find its an interesting read.

And yes, I have been to your website.. great work !
Pano2VR Forum Global Moderator