Author Topic: onlywhenactive tag for swf's?  (Read 1314 times)

Teko

  • Newbie
  • *
  • Posts: 9
onlywhenactive tag for swf's?
« on: May 22, 2009, 06:47:52 pm »
Hi,

Ive been using the actionscript integration tutorial to get my SWF's to animate once the page is visible. I was wondering if its technically possible to add the onlywhenactive tag like you use for VID elements to the IMG type. That way when the page is visible the SWF would play. The tag would do nothing for actual images of course (jpg etc).

Thanks!


Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: onlywhenactive tag for swf's?
« Reply #1 on: May 27, 2009, 04:23:38 pm »
Hi Teko,

I did try this once, actually, but I failed getting the swf to stop at the very beginning (sometimes it played some frames anyway... sometimes I still don't get how Flash's events work :P). So I dropped it (after all, it could be some heavy loading / animating would start on the second frame, making it rather "random" when it's work and when not).

If someone else wants to give it a try and succeeds, I'd be happy to merge the code.

Regards,
Florian
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.