how to make HTML link with swf object?

Discussion in 'HTML & Website Design' started by i_am_dhaval, Oct 22, 2009.

  1. #1
    how to make HTML link with swf object?
     
    i_am_dhaval, Oct 22, 2009 IP
  2. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #2
    here is my code..

    i need to add link in .swf file

    what is the error in my 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' id='simplemovie1' ALIGN='' style="width: 187px; height: 69px"> <param name='movie' value='home_add/1-1.jpg'> <param name='quality' value=medium> <param name='bgcolor' value=#FFFFFF> <param name='wmode' value='transparent' /> <embed src='../home_add/1-1.jpg' quality=medium swliveconnect='true' bgcolor=#FFFFFF name='simplemovie1' align='' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'> </embed></OBJECT>
    
    HTML:
     
    i_am_dhaval, Oct 26, 2009 IP
  3. Corwin

    Corwin Well-Known Member

    Messages:
    2,438
    Likes Received:
    107
    Best Answers:
    0
    Trophy Points:
    195
    #3
    The link should be part of the SWF code, from when you created the .fla.
     
    Corwin, Oct 28, 2009 IP
  4. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #4
    what step rong in my coding?
     
    i_am_dhaval, Oct 28, 2009 IP
  5. Fez

    Fez Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #5
    the swf file contains the link, basically you need to put gotoUrl() action into ur .fla before publishing it as an .swf .

    looking at the code you pasted it looks like you are embedding a jpeg file :S
     
    Fez, Oct 28, 2009 IP
  6. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #6
    in my code user can upload japg or swf file both
     
    i_am_dhaval, Oct 28, 2009 IP
  7. Fez

    Fez Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #7
    I don't understand what you are saying.
     
    Fez, Oct 28, 2009 IP
  8. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #8
    so what i am developing is..in front end there is a advertise space

    now we have devloping user can upload there swf or jpg file from admin part..so when i advert is display then link is not come..something is wrong in my code
     
    i_am_dhaval, Oct 29, 2009 IP
  9. Fez

    Fez Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #9
    You'll need to distinguish between jpeg and swf to generate different type of code for each also, if you are getting people to upload their own adverts into your website and they are using swf files they will already contain the links, at least that is what's implied and expected.
     
    Fez, Oct 29, 2009 IP