[flexcoders] dragmanager - swfloader as dragproxy

2006-08-07 Thread Angus Johnson



Hi everyone, I was wondering if anyone has successfully used a swfloader instead of an image for a dragproxy. I've been playing around with it but have come up against a 1009 error (below). My code passes the swfloader to the dragmanager only after the complete event has fired. When running in flash player I can click through the error and then drag the SWF properly. Makes me think that something else needs to be initialised. 
Any ideas?AngusConfigured listener handler: progressHandler loaded:130556 total: 130556[SWF] /bin/test.swf - 266,539 bytes after decompressionConfigured listener handler: httpStatusHandler: [HTTPStatusEvent type=httpStatus bubbles=false cancelable=false eventPhase=2 status=0]
Configured listener handler: completeHandler: [Event type=complete bubbles=false cancelable=false eventPhase=2]trace SWFDrag.doLoadedtrace Drag ItTypeError: Error #1009: Cannot access a property or method of a null object reference.
 at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::updateCallbacks()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:4664] at mx.core::UIComponent/set nestLevel()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:2403]
 at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager.as:1488] at mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWindow
()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager.as:2268] at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager.as:2180]


The debugger stops on this line in UIComponent.

   // Force a render event to happen soon
   _systemManager.stage.invalidate();

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] dragmanager - swfloader as dragproxy

2006-08-07 Thread Matt Chotin












Is the UIComponent that is throwing the
error the SWFLoader? Image is just a special subclass of SWFLoader, any chance
you can try using that instead and see if it makes a difference?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Angus Johnson
Sent: Monday, August 07, 2006 6:13
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dragmanager
- swfloader as dragproxy











Hi
everyone, 

I was wondering if anyone has successfully used a swfloader instead of an image
for a dragproxy. 

I've been playing around with it but have come up against a 1009 error (below).


My code passes the swfloader to the dragmanager only after the complete event
has fired. When running in flash player I can click through the error and then
drag the SWF properly. Makes me think that something else needs to be
initialised. 

Any ideas?
Angus


Configured listener handler: progressHandler loaded:130556 total: 130556
[SWF] /bin/test.swf - 266,539 bytes after decompression
Configured listener handler: httpStatusHandler: [HTTPStatusEvent
type=httpStatus bubbles=false cancelable=false eventPhase=2
status=0] 
Configured listener handler: completeHandler: [Event type=complete
bubbles=false cancelable=false eventPhase=2]
trace SWFDrag.doLoaded
trace Drag It
TypeError: Error #1009: Cannot access a property or method of a null object
reference. 
 at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::updateCallbacks()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:4664]
 at mx.core::UIComponent/set nestLevel()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:2403]

 at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager.as:1488]
 at mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWindow
()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager.as:2268]
 at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager.as:2180]


The debugger stops on this line in UIComponent.

   // Force a
render event to happen soon
   _systemManager.stage.invalidate();






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___