Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post

    onclick event for OBJECT element in IE

    Hello,

    I can't set onclick event properly for OBJECT (flash) element properly. onclick just don't bubble outside flash object. Could this be caused by AS getUrl() function?

    I tried to attach thru .htc, tried transparent IFRAME on top of object, etc. Nothing seems to work.

    Is there any reasonable way to attach onclick to OBJECT element or flash movie by using JS or plain HTML? Should I do something for event bubbling?
    Zvona
    First Aid for
    Web Design

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    There is nothing you can do. Flash object overrides all the HTML elelemnts. Every event regarding the Flash object must be done inside the Flash object with the Flash events, if you have the original (the FLA file)
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why not make something happen all in actionscript? Don't depend on javascript or the browser. onactivate will work in IE but only IE.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by _Aerospace_Eng_
    Why not make something happen all in actionscript? Don't depend on javascript or the browser. onactivate will work in IE but only IE.
    Yes, this is the recommendation. But there comes situations (like mine) where one needs other solutions.

    I got it work on FF & Opera, so I should try onactivate for IE. Thanks.

    Edit: Found a workaround with onfocus.
    Last edited by Zvona; 05-03-2006 at 03:01 PM.
    Zvona
    First Aid for
    Web Design


  •  

    Posting Permissions

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