A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: getURL and Javascript

  1. #1
    Member
    Join Date
    Jul 2003
    Location
    Earth
    Posts
    74

    getURL and Javascript

    Hi all!

    I'm trying to close a lightbox called "multibox" from flash (which is opened in the lightbox) but in my case, getURL seems not to be able to call any other function than alert().

    As far as I know, there is a close() method for multibox, so I tried both inline targeting like
    Code:
    getURL("javascript: myLightbox.close();");
    and
    Code:
    getURL("javascript: myCloseFunction();");
    where myCloseFunction() is just a function containing the call to close();

    I even tried putting any other code in myCloseFunction() in my HTML, just to see if the function is called at all, but for some reason getURL seems not to call this function. By the way, there is no problem on the AS side: getURL itself works on the AS, when I put a URL or "javascript:alert('blah');" in it.

    As I have had the same concept with other lightboxes, (like closing the lightbox window at the end of a video in flash) I'm sure that it should work. So I'll be very thankful for your help!

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Earth
    Posts
    74
    Any Idea?

  3. #3
    Pillow Daddy m_andrews808's Avatar
    Join Date
    May 2001
    Location
    London England
    Posts
    924
    might be worth posting up the source for this one, what you're trying to do is simple enough on the face of it


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