Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15306

Zoom effect throws TypeError 1009

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • Effects
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      I installed the FlexBuilder 3 trial, so I assume that corresponds to SDK Flex 3. My apologies if this bug is already in the database. I couldn't locate it.

      Steps to reproduce:
      1. Here is some application code. The images (which I have not included) are just icons.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Sequence id="zoom">
      <mx:Zoom zoomWidthTo="3" zoomHeightTo="3" duration="2000"/>
      <mx:Zoom zoomWidthTo="1" zoomHeightTo="1" duration="2000"/>
      </mx:Sequence>
      <mx:Button x="571" y="120" icon="@Embed(source='../images/NotRun2.gif')" rollOverEffect="

      {zoom}" />
      <mx:Button x="571" y="178" icon="@Embed(source='../images/NotRun.gif')" rollOverEffect="{zoom}

      " />
      <mx:Button x="571" y="237" icon="@Embed(source='../images/Time.gif')" rollOverEffect="

      {zoom}

      " />
      </mx:Application>

      2. Run app. Move the mouse cursor over and off of one of the buttons, which will cause it to grow and then shrink back.
      3. Before it finishes the effect, move the mouse cursor back over the same button. I get an exception dialog.

      Here is the exception I see:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.effects.effectClasses::ZoomInstance/onTweenUpdate()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:422]
      at mx.effects.effectClasses::TweenEffectInstance/onTweenEnd()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\TweenEffectInstance.as:385]
      at mx.effects.effectClasses::ZoomInstance/onTweenEnd()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:459]
      at mx.effects::Tween/endTween()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Tween.as:524]
      at mx.effects::Tween()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Tween.as:278]
      at mx.effects.effectClasses::TweenEffectInstance/createTween()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\TweenEffectInstance.as:291]
      at mx.effects.effectClasses::ZoomInstance/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:362]
      at mx.effects::EffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:569]
      at mx.effects::EffectInstance/http://www.adobe.com/2006/flex/mx/internal::playWithNoDuration()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:704]
      at mx.effects.effectClasses::SequenceInstance/end()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:293]
      at mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:698]
      at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]

      Workaround (if any): None that I know of.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: