Re: [flexcoders] Blank Application in existing project is throwing errors how?

2010-06-12 Thread dorkie dork from dorktown
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
mx.core::UIComponent/getStyle()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:10372]
at
spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:588]
at
spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
at
spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
at
spark.components::SkinnableContainer/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:821]
at
mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at
spark.components::Application/initialize()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Application.as:916]
at examples::loadingapp/initialize()
at
mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
at
mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:341]
at
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2810]
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::kickOff()[E
:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2637]
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E
:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2539]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:515]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

FYI My other applications are using a custom preloader but this one, brand
new, isn't.

On Sat, Jun 12, 2010 at 12:51 AM, Alex Harui aha...@adobe.com wrote:



 It is not finding the applicationskin.  The CSS is not configured properly.
  I assume you set the new app to be the default app when building and
 running it?

 It looks like the stack trace you posted is truncated.  What does the rest
 of it look like?



 On 6/11/10 6:27 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I mean I added it to the default package.
 /mainapp.mxml
 /testapp.mxml

 On Fri, Jun 11, 2010 at 8:10 PM, Alex Harui aha...@adobe.com wrote:






 Not sure what you mean by “add a new app”.  App’s aren’t normally added.
 They are the top level tag in a document.


 On 6/11/10 5:22 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:




*[Attachment(s) #TopText * from dorkie dork from dorktown included
 below]


 I can create a new project with a blank application and it works fine
 but in my existing project if i add a new application i get an error
 when i run it??? What could be causing this?

 I'm attaching an image of this error:
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
 at
 mx.core::UIComponent/getStyle()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:10372]
 at
 spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:588]
 at
 spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
 at
 spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
 at
 spark.components::SkinnableContainer/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:821]
 at
 mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
 at
 spark.components::Application/initialize()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Application.as:916]
 at scratchpad/initialize()

 JP





 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui
   



[flexcoders] How do I get a reference to the application in the current domain from a static method?

2010-06-12 Thread dorkie dork from dorktown
How do I get a reference to the application in the current domain from
a static method? Not the FlexGlobals.topLevelApplication application.

I have to create a method that meets this requirement:

* If you load app B into app A when you call this method from app B
you'll get app B application.
* When calling from app A you get app A application.

JP


[flexcoders] Re: Has anyone seen this weird CombBox behavior?

2010-06-12 Thread lynw...@swbell.net
Why would it happen on only the first click of any of the combo boxes in the 
window? No matter which one you click first, this happens, and only that one 
time.

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

 If the click causes any slight shift of resizing or updating of the 
 dataprovider, that can happen.
 
 
 On 6/10/10 6:52 PM, lynw...@... lynw...@... wrote:
 
 
 
 
 
 
 This is happening consistently throughout an Air application on any form with 
 one or more ComboBoxes. Immediately after the first click on any ComboBox on 
 the form, the clicked ComboBox's items are all disabled and it closes. After 
 that all of the ComboBox's on the form behave normally.
 
 Also, I debugged one form and at the point where the ComboBox closed and the 
 event trigger was null.
 
 Any insight into why this is happening would be appreciated.
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Read feed from XML into flex

2010-06-12 Thread chaituchowdary85
Hi Guys,

  I am working on a flex form in which i have to read feeds from an XML 
file and show it in the form and after updating the form i need to push the new 
values into the XML again.

  Can anybody guide me on how to do this task. Thank you in advance!!





[flexcoders] Relayout component

2010-06-12 Thread Marco Catunda
Is there any way to force re-layout an component?

Some child elements within a tabNavigator change this size and I would like 
that it re-layout
all children instead of put a scroll bar.

Cheers
--
Marco Catunda





Re: [flexcoders] Relayout component

2010-06-12 Thread Jeffry Houser


 running invalidateDisplayList() will force updateDisplayList to rerun, 
which should relayout the component as appropriate.


 However a component's size is determined by it's parent; so you'll 
need to run updateDisplayList on the parent of the container you want to 
change.  Depending on the components you're using and how they work, 
this may or may give you your expected results.



On 6/12/2010 9:21 AM, Marco Catunda wrote:


Is there any way to force re-layout an component?

Some child elements within a tabNavigator change this size and I would 
like that it re-layout

all children instead of put a scroll bar.

Cheers
--
Marco Catunda





--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] CPU Hog : Bubble Chart + CategoryAxis + showDataEffect + dataProvider change .... :-/ [1 Attachment]

2010-06-12 Thread Stephane Guyot

Hi list,

does anybody tell me why Bubble Chart with at least two series , 
showDataEffect and CategoryAxis are playnig in loop  when dataProvider change ?
Example attached illustrates my trouble, I surely miss something  
but what ?
The only thing i've found on the subject : 
http://forums.adobe.com/thread/560631




Thanks in advance,
Stephane



Just do it :  http://www.kiva.org/lender/stephane4127



[flexcoders] Flash Builder GUI: center window on Run?

2010-06-12 Thread Roy Pardi
Hi - I'm working on a WindowedApplication in FB and when I run or debug it,
the resulting window is always in the lower right of my screen. Is there
some option in FB to always center it on the current screen? I've looked
through the prefs, etc. but haven't found anything.

I figured out how to center the window through code but it seems like I am
missing some simple GUI setting in FB.

thanks / Roy
-- 
-
http://www.roypardi.com/





[flexcoders] Re: Read feed from XML into flex

2010-06-12 Thread Alex
One approach would be to to use model objects as a third party: you deserialize 
the xml into an object (more correct, a tree like structure of objects), use it 
to bind data onto the form view, make the changes on the object then 
deserialize in into XML. This way you do not deal with xml except when you read 
the object at beginning and save it at the end. Also, if you decide you want 
something else rather than xml you make the change at the serialization level 
rather than in your views. You can use an xml marshalling library to help you 
render and parse the xml automatically (like FlexXB - 
http://code.google.com/p/flexxb) or you can do it by hand.

Alex

--- In flexcoders@yahoogroups.com, chaituchowdary85 chaituchowdar...@... 
wrote:

 Hi Guys,
 
   I am working on a flex form in which i have to read feeds from an XML 
 file and show it in the form and after updating the form i need to push the 
 new values into the XML again.
 
   Can anybody guide me on how to do this task. Thank you in advance!!