# Need help with loading a swf using AS2, please

**URL:** <https://forum.kirupa.com/t/need-help-with-loading-a-swf-using-as2-please/300209>\
**Category:** Uncategorized\
**Created:** [November 17, 2009, 5:52pm UTC](https://forum.kirupa.com/t/need-help-with-loading-a-swf-using-as2-please/300209 "2009-11-17T17:52:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![landeos](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@landeos](https://forum.kirupa.com/u/landeos)\
**Post date:** [November 17, 2009, 5:52pm UTC](https://forum.kirupa.com/t/need-help-with-loading-a-swf-using-as2-please/300209/1 "2009-11-17T17:52:29Z")

</div>

I wanted to thank all that takes the time to help beginners like me.  
After reading through info and tutorials, here’s what I’m dealing with:  
Using  
loadMovieNum(“pic1.swf”, 1);  
I can see a new window opening and showing the pic1.swf (a test file)  
when I try to use the photo slide show I’m trying to open pic2.swf, all I get is a white small window. I get no errors reported.  
I attached an archive with the files I’m using.  
My questions are:  
are big differences between .swf files that will make some play and some not?  
should I use other way to open pic2.swf?  
the program that created pic2 asks to insert the following code, unfortunatelly didn’t work either, same white small window:  
(I had to delete the stuff that is underlined because I was getting errors “unexpected” something)  
\<script language=“javascript”\>  
document.write(’\<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.0.0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.0.0)” [COLOR=#0000ff]width=" 720" height=“540”[/COLOR] ID=“sf” VIEWASTEXT\>’);  
document.write(’ \<param name=“movie” value="[COLOR=#ff0000]pic2.swf[/COLOR]" /\>’);  
document.write(’ \<param name=“quality” value=“high” /\>’);  
document.write(’ \<param name=“wmode” value=“window” /\>’);  
document.write(’ \<param name=“allowScriptAccess” value=“always” /\>’);  
document.write(’ \<param name=“allowFullScreen” value=“True” /\>’);  
document.write(’ \<embed src="[COLOR=#ff0000]pic2.swf[/COLOR]" quality=“high” name=“sf” allowScriptAccess=“always” allowFullScreen=“true” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” type=“application/x-shockwave-flash” [COLOR=#0000ff]width=“720” height=“540”[/COLOR]\>\</embed\>’);  
document.write(’\</object\>’);  
\</script\>

all the files are on the same folder and I’m using flash cs4 AS2  
Thank you in advance for your help,  
landeos
