A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: getting a flash 5.0 movie to play within a table cell...please help!

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    5
    I'm trying to get my movie (hey, my first ever, yeah!)...to play within a table cell on my homepage. At the moment I have the swf file uploaded, but can't figure out how to get it to play. Someone was attempting to help me and it only got worse...

    Please I need help. I was hoping to have this up and running by tomorrow. I know it is simple html or something to get the object to load up, but I have no idea where to start.

    You can view and probably tell what I'm trying to do at:
    http://www.soapquarry.com/newindex.htm
    http://www.soapquarry.com/contest.swf

    Thanks in advance...

    Stacey

  2. #2
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    Six celled table three accross by two down flash file is called "myflashfile.swf and is positioned in the top right hand cell of the table


    <table width="75%" border="1">
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="345">
    <param name=movie value="images/myflashfile.swf">
    <param name=quality value=high>
    <embed src="images/myflashfile.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="345">
    </embed>
    </object></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>

    regards
    steve

  3. #3
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    opps forgot to disable smilies should read:

    <table width="75%" border="1">
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="345">
    <param name=movie value="images/myflashfile.swf">
    <param name=quality value=high>
    <embed src="images/myflashfile.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="345">
    </embed>
    </object></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>

  4. #4
    Junior Member
    Join Date
    Feb 2001
    Posts
    5

    Smile link

    Thanks Swampy...one more thing. The movie when clicked should link to contest.htm, but the link doesn't seem to be working. If you have a moment can you check that coding for me? I really appreciate it.

    Thanks
    Stacey

  5. #5
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    there are a few ways you can do this. some with javascript on your HTML page but the easiest way to do this would be to create an invisible button in flash and put it in a layer above all of the other content.

    to make an invisible button

    insert > new symbol.. > button .

    go to the "hit area" frame and press f7 to create a blank keyframe. draw a rectangle (or whatever).

    Done !

    go back into the main timeline, drag the button from your library onto the stage. (it will look a greeny flourescent colour on the stage but will be invisible when you test or publish your movie).


    attach the follwing code to the button where "MyURL.html" is the page you want to link to.

    on (release) {
    getURL ("MyURL.html", "_parent");
    }



    enjoy !


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center