Simple AS question

Now that I’ve finished my flash, and I have the swf. ready, AND I’ve uploaded it to my server… BUT whats the HTML code to insert the swf.? so it shows up on the page…

When you publish your Flash movie, it should create an HTML page as well. Open that page and view its source, that’s the code you need… copy and paste that code into a seperate HTML page.

Hi Wizard,

I am following this thread also. I was about to answer Dominerd exactly the same like what you answer, but I am just waiting until someone else answer that question in order that I do not make any mistake.

The thing is that, I had a really infuriating interview yesterday when I bid the tender for development of flash project.

Just so you know, ridicoulously, I was given a test ala Macromedia Certification. There are 20 questions starting with "What is the quick way to insert keyframe to “What is difference between movieclip and component?”

One ridicoulous question is : " What is the html code to insert flash movie?" . Mind you this test is not an open book so how can I remember this following code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="780" HEIGHT="550" id="resizer" ALIGN="">
 <PARAM NAME=movie VALUE="example.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="example.swf" quality=high bgcolor=#FFFFFF  WIDTH="780" HEIGHT="550" NAME="resizer" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

It amazes me how some employer can be too literal. It’s not the job that I concern, It’s the shallowness. I then back home, sleep, and have a dream winning lottery.

Cheers

Hey Beebs, I’m sorry to tell you but you’re asking the wrong person about HTML… I’m sure there’s a proper name for that code but I don’t know it.

[QUOTE…]…there’s a proper name for that code [/QUOTE]

Pardon for my stupidity, anyone can point me to the right direction of

  1. What is the code to insert flash movie in the HTML ?
  2. What is the proper name for that code?

Dominerd, please do not think that I hijack your thread

Cheers

Pardon for my stupidity, anyone can point me to the right direction of

  1. What is the code to insert flash movie in the HTML ?
  2. What is the proper name for that code?

Dominerd, please do not think that I hijack your thread

Cheers[/QUOTE] Don’t worry, I thank you for your help… But I’m still a noobie… I uploaded my file to freewebs.com but I still cant find the code you were talkin about… Where is it?

Dominerd, I quote that quote from Wizard who said that "there’s a proper name for that code ", so It’s not me but him/her.

On my experience, I never heard and know that there is a “code” and the “proper name of that code” if it’s exist. Wizard said that there is any, but Wizard said that he/she does not proficient with HTML so I invite anyone else to point me what is the code and the name of that particular matter.

Before I open any other question the “code” (with quote and unquote) that I talked about above is the code like in “Easing code”, “Scale code”, “Randomize code” or something like that.

The code for inserting flash movie into HTML is automatically done by Flash Publish Settings command. I think this is fair and very helpful because it will be such waste of time to remember and I can’t imagine to write those long code with numbers by hand.

Still, before I share my experience how to insert swf into html I would be very happy if anyone can tell me “what is the proper code name to insert swf into html”

OK Dominerd here’s the steps how to :

  1. Suppose your flash movie/document call test.fla
  2. Open test.fla
  3. Go to File -->Publish setting
  4. You will see Formats
  5. Under Formats check Flash (.swf) , and HTML (.html)
  6. Publish.
  7. Check the directory where test.fla reside, you will automatically have a new file called test.html
  8. Upload your swf into the server as well as test.html
  9. Call them in the URL address like this : www.yourdomain.com/test.html
    10 Now you are successfully “insert swf into HTML”

Do you want to know the real code of the “test.swf” in the HTML? Here it is:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="550">
        <param name="movie" value="test.swf">
        <param name="quality" value="high">
        <embed src="test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="550"></embed></object

That’s it