However, when I tried creating a movie gallery and do this - File>Import and import my SWF onto stage, my swf files became bitmaps (pictures). So, what did I do wrong?
You can't directly import SWF files within the Flash IDE. Doing so breaks it up into it's constituent parts and strips the ActionScript. To be able to target another .swf file from a parent .swf file, like you're trying to do, you need to call it via ActionScript.
You would need to use the MovieClipLoader class to do this. Instead of explaining it, I'll point you towards a video tutorial (which might be easier to follow) made by Lee Brimelow and posted at gotoAndLearn(). The video is here.
Secondly, if this is not possible, could I do something similiar with Dreamweaver MX 2004? Click on the thumbnail and the 360 pano flash movie will be played in a desinated table on the same page?
Well, it is possible. But you could also do something like this via a whole host of methods -- Ajax, javascript with url segments, just javascript. The use of Dreamweaver makes no difference (execpt maybe making it harder to insert clean code) to the functionality available to do this. Dreamweaver supports javascript and HTML, so in theory, there should be no problems. However, Dreamweaver -- and others of its ilk -- have a habit of messing with code, so it's best to insert it directly into the markup with a basic text editor instead of going through the Dreamweaver inputs.
In any case, the simplest way to do this would be to do the following:
Add this to the <head> section:
Code:
<style text="text/css">
.hide {
display:none;
}
</style>
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>
Add this to your html:
Code:
<div id="flash1" class="hide">
<!-- Embed code for the first flash movie -->
</div>
<div id="flash2" class="hide">
<!-- Embed code for the second flash movie -->
</div>
<img src="thumbnail1.jpg" onclick="toggle_visibility('flash1');">
<img src="thumbnail2.jpg" onclick="toggle_visibility('flash2');">
You could also use one of the Lightbox-esqe scripts to display a popup with the panoramic .swfs when you click a thumbnail.
Bookmarks