[flexcoders] Re: Generated code not working when app is loaded as module

2009-08-21 Thread poweribo
Fixed it by providing ApplicationDomain.currentDomain on load()

...
info = ModuleManager.getModule(moduleURL);
if (info != null) {
info.addEventListener(ModuleEvent.READY, onReady);  
info.addEventListener(ModuleEvent.ERROR, onError);  
info.load(ApplicationDomain.currentDomain);   
}   
...

Thanks a lot!

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Usually all webservice data classes need to be in the main applicationdomain.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of poweribo
 Sent: Tuesday, August 18, 2009 12:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Generated code not working when app is loaded as 
 module
 
 
 
 anyone with idea?
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 poweribo poweribo@ wrote:
 
  I used Flexbuilder to generated the proxy code for my webservices and
  my app works perfectly as standalone swf file but when I load it as a 
  module (loaded from another main swf file), it throws these kind of errors 
  (see below). I tried declaring and instantiating the objects in question, 
  also made sure are using public. I dont have custom utility function for 
  calling getDefinitionByName() as well. but im getting the same errors. Does 
  any one have a fix or workaround for this?
 
  -
 
  ReferenceError: Error #1065: Variable MyObject is not defined.
  at global/flash.utils::getDefinitionByName()




[flexcoders] Re: Generated code not working when app is loaded as module

2009-08-18 Thread poweribo
anyone with idea?

--- In flexcoders@yahoogroups.com, poweribo power...@... wrote:

 I used Flexbuilder to generated the proxy code for my webservices and 
 my app works perfectly as standalone swf file but when I load it as a module 
 (loaded from another main swf file), it throws these kind of errors (see 
 below). I tried declaring and instantiating the objects in question, also 
 made sure are using public. I dont have custom utility function for calling 
 getDefinitionByName() as well. but im getting the same errors. Does any one 
 have a fix or workaround for this?
 
 -
 
 ReferenceError: Error #1065: Variable MyObject is not defined.
 at global/flash.utils::getDefinitionByName()
 at 
 mx.rpc.xml::SchemaTypeRegistry/getClass()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:82]
 at 
 mx.rpc.xml::XMLDecoder/createContent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:1832]
 at 
 mx.rpc.xml::XMLDecoder/decode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:161]
 at 
 mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:452]
 at 
 mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:304]
 at 
 mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:236]
 at webservices.trademanager::BaseTradeManagerService/processResult()
 at mx.rpc::AsyncResponder/result()
 at 
 mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
 at 
 DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()





[flexcoders] Generated code not working when app is loaded as module

2009-08-17 Thread poweribo
I used Flexbuilder to generated the proxy code for my webservices and 
my app works perfectly as standalone swf file but when I load it as a module 
(loaded from another main swf file), it throws these kind of errors (see 
below). I tried declaring and instantiating the objects in question, also made 
sure are using public. I dont have custom utility function for calling 
getDefinitionByName() as well. but im getting the same errors. Does any one 
have a fix or workaround for this?

-

ReferenceError: Error #1065: Variable MyObject is not defined.
at global/flash.utils::getDefinitionByName()
at 
mx.rpc.xml::SchemaTypeRegistry/getClass()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:82]
at 
mx.rpc.xml::XMLDecoder/createContent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:1832]
at 
mx.rpc.xml::XMLDecoder/decode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:161]
at 
mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:452]
at 
mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:304]
at 
mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:236]
at webservices.trademanager::BaseTradeManagerService/processResult()
at mx.rpc::AsyncResponder/result()
at 
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
at 
DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete() 



[flexcoders] updating display of GroupingCollection on AdvancedDataGrid with refresh

2008-11-04 Thread poweribo
Hi All,

I have an AdvancedDataGrid, a GroupingCollection and an 
ArrayCollection as a source of GroupingCollection. 

I update the display by setting a filter on arraycollection and 
calling refresh. But the AdvancedDataGrid doesnt reflect the changes 
unless I call GroupingCollection.refresh(). Bad.

My ArrayCollection contains only 450+ items but 
GroupingCollection.refresh() takes too long time to re-render the 
list.

Is there any other way that I can do this faster? and without waiting 
and repopulating the WHOLE list? for example I just want to hide 1 
item by adding it on my filter, the list should simply adjust by 
deleting that row only (just like how a normal List 
UIComp+ArrayCollection behaves). Any ideas?

-Stephen

p.s. I have seen the 
http://flexpearls.blogspot.com/2008/06/groupingcollection-with-some-
better.html but it still re-draw the whole thing and doesnt keep the 
state of the list (expanded/collapsed).




[flexcoders] how to prevent a displayobject from being clipped?

2008-10-15 Thread poweribo
I have extended the checkbox component and set rotation property to 
45 degree angle on the text field. During rendering, the text gets 
truncated. for example if I have a label This is a long title, will 
appear something like This is a long I like it to be displayed 
w/o caring about boundaries/margins. Is this possible?