you can use flash embed code in your html file just like you would add an image reference. using divs allows excellent control but, may not be necessary for your needs.
My entire website is in Flash, not HTML
you use html to embed your swf(s).
Thanks but I don't know HTML yet.. is there a way to do it with actionscript?
No, actionscript cannot embed a Flash movie in a web page. Flash will generate the html page/code, and you can copy/paste it into another html file if you are inciorporating multiple Flash elements. In your Publish Settings you need to select an html file output along with the swf for Flash to generate an html page that contains the swf file.
if you don't know html and don't make the effort to inspect the html file that embeds your swf (or, an alternative embedding html like swfobject), you cannot display 2 swfs on the same browser page unless you have someone else do this for you.
ie, you can't solve your problem unless you open your mind and learn something (or, hire someone to do this for you).
I just purchased an HTML book and I am making an effort. I was just trying to get some direction.
you don't really need to read a book. but, good going. you got direction and you're following it.
but, html itself is not intimidating. html is not a coding language. it's much simpler than coding languages like actionscript because it's just a formatting language.
and you don't need to learn much html to do what you want. you just need to learn a little.
between inspecting the embedding html file and using an online search engine (or, your book), you can probably solve your problem pretty quickly.
Thanks for the help. The reason that I purchased an HTML book is that Flash seems to be on the way out and I'd like to learn how to build a website without using relying solely Flash.
Assuming that you are making the Flash website, just use a loader to load the .swf file and add it to the stage, like you would an image:
pseudo code (meaning that im just typing from memory, so it should work but might have an error)
var myLoader = new Loader();
var myBannerUrl = ("bannerFolder/banner.swf"); //full url OR path relative to the file loading it.
//to be thorough, an error listener and posibly a progress listener would be useful
var myBanner = myLoader.content as MovieClip; //if you want to access its functions/vars etc like any movieclip
myBanner.x = 0; // x position
myBanner.y = 0; // y position
oh and an alternate method--use an embed tag (cs4):
var myBanner = new Banner();
myBanner.x = yadiyada, add your position stuff here
I found this simple way to do it:
make a little rectangle box and place it in the upper left corner and make it a movie clip. Give the movie clip a property name of PlaceHolder or something simalair. THen type the fallowing code.
This worked but the .swf spills out of the movie clip. I don't have the original as I did not create it. Do I need to make a mask or is there another way to make it so that it does not spill out of the movie clip?
The last thing is that it also is clickable but the link goes nowhere. Because I didn't create the .swf I can't change the link. Is there a way to make it not clickable?
you can resize name.swf AFTER loading is complete by assigning the _width and _height of PlaceHolder that you want.
you can disable that swf's mouse handlers by assigning (again, AFTER loading is complete):
PlaceHolder.onRelease = null;
PlaceHolder.useHandCursor = false;