A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: CS4: 2 simple problems

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

    CS4: 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="533"><param name="movie" value="gallery.swf"><embed src="gallery.swf" width="800" height="533"></embed></object>
    </a>
    This created a problem. My face boiled 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
    Last edited by squidlips; 03-24-2010 at 06:32 AM.
    subgenius.com

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    Location
    CA, USA
    Posts
    276
    I'm not sure what you want to do, but the code you have in Flash, will just open up a new link. I'm guessing it is not an entirely flash-based site, maybe HTML with just Flash navigation or header.

  3. #3
    Follower squidlips's Avatar
    Join Date
    Oct 2001
    Location
    Gladstone, Queesland, Australia
    Posts
    652
    that was just a bad example sorry. I'm simply trying to call up Lightbox 2 from within flash.

    I realised this was probably the wrong forum but there have been a few suggestions here, none of which have worked yet.

    http://board.flashkit.com/board/showthread.php?t=811638
    subgenius.com

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