A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: 2 simple problems

  1. #1
    Follower squidlips's Avatar
    Join Date
    Oct 2001
    Location
    Rockhampton, Queesland, Australia
    Posts
    664

    2 simple problems

    So I had an link in a website that was working like this...

    Code:
    <a href="images/1.jpg" rel="lightbox[Portfolio]" title="GALLERY">
    <img src="images/link.jpg" width="800" height="533" />
    </a>
    Then I decided I wanted to use a Flash file instead of the picture, so I changed this to...

    Code:
    <a href="images/1.jpg" rel="lightbox[Portfolio]" title="GALLERY">
    <object width="800" height="553"><param name="movie" value="gallery.swf"><embed src="gallery.swf" width="800" height="553"></embed></object>
    </a>
    This created two problems..

    1. It moved the gallery.swf down 10 pixels from where the link.jpg was creating a gap.

    2. It made my face boil over in rage because apparently you cannot simply just drop a swf in like that.

    What's going to be the most simple solution to this? Some sort of

    Code:
    on(release)
    {
    
    getURL("http://www.example.com");
    
    }
    or can I simply change the HTML?

    Thanks in advanced
    subgenius.com

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    There is a mysterious padding current Flash objects dropped into a HTML page. If you remove the padding the positioning should match that of the JPG.

    More Info: http://www.webmasterworld.com/forum83/4631.htm

    As far as your second question, I can't seem to find the question. What is your second question?
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

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