Jump to content
Search Community

braitsch

Members
  • Posts

    2
  • Joined

  • Last visited

braitsch's Achievements

0

Reputation

  1. Hi, nope no nested functions. Just a straight call into the public method in the SWF from JavaScript via ExternalInterface. I agree, it's probably something in the Safari Flash Player for the Mac - but just wanted to document it here in case anyone else starts scratching their head. I will post a quick example page here in a bit. Cheers, Stephen
  2. In Safari, I'm experiencing a strange issue when attempting to fire a tween after a delay when that tween has already been executed once before. I have a setup where I am using ExternalInterface to call methods on a SWF and execute a tween after a short delay. The first time I call the method on the SWF the tween executes fine, however if I call my method again it appears that the delay property is ignored and the tween executes immediately (however only in Safari!) FF and MSIE8 appear to be fine. So it's very likely this could be a plugin issue on FP MAC 10,0,42,34. In case anyone else experiences this, here specifically is my code and workaround : I have an HTML button in the DOM - I click it and call a startTween method on a SWF embedded in the page. My startTween method just simply tweens a box after a 1 second delay and calls back out to the DOM onTweenComplete. function startTween() { TweenLite.to(_box, 2, {y:-1000, delay:1, ease:Quad.easeOut, onComplete:onPlayComplete}); } function onPlayComplete() { ExternalInterface.call("TellDOMTweenComplete"); } TellDOMTweenComplete just sets the CSS visible property of the SWF to false. Now if we click our HTML button again, I toggle visibility of the SWF back to true and call startTween on it, however at this point the Tween executes immediately instead of after a 1 second delay. Workaround - use setTimeout or a native AS3 TimerEvent. Just wanted to post in case anyone experiences this. *EDIT - I'm using TweenLite v11.2* Cheers, Stephen
×
×
  • Create New...