[flexcoders] datagrid refresh

2010-06-16 Thread Scott
When I use CF9 as the datasource; I'm missing the option to refresh the
dataProvider.

 

Eg. getAllRecords_paged.lastResult.Refresh() is missing.

 

Does anyone know how I can refresh the datagrid?

 

Thanks. 

  sj



Re: [flexcoders] Label must be a simpler identifier

2010-06-16 Thread Alex Harui
Try a clean and rebuild.  Also look for stray punctuation, especially a colon.


On 6/16/10 7:51 PM, "ilikeflex"  wrote:






Hi

I have the following class..

package com.vzw.mpi.rss.bussvalidations
{
public class BussValidation
{
public var message:String;
public var isError:Boolean;
}
}

when i try to do something like this

var object:BussValidation = new BussValidation();
object.message = "Error Number 1" ; //any string

i get the error
"Label must be a simpler identifier"

Do anybody no why is this happening???

Thanks
ilikeflex






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


[flexcoders] Configuring LCDS tomcat server in Eclipse IDE

2010-06-16 Thread Ganesh Suyampirakasam
Hi all
I have installed LCDS with tomcat.
Where i installed LCDS inside that itself Tomcat server also installed.
I want to configure that Tomcat server in Eclipse IDE.
while configuring,when i am setting path of the root directory of tomcat it is 
telling "Installation Path is Not correct." but actually that is the Exact path 
where tomcat is resided.

Any Help..Its an urgent issue.
Thanks
Ganesh



Re: [flexcoders] Amfphp Error

2010-06-16 Thread K~SATHYAN~M
Hi,

Use this http://localhost/amfphp/browser/ and check whether your class
is error free or not.. otherwise replace it with amfphp 1.9 version from
www.amfphp.org


- - - - - - - - -
With Regards,
Sathya Moorthi K



On Thu, Jun 17, 2010 at 3:18 AM, Christophe
wrote:

>
>
> Hello,
>
> I have this error:
> AMFPHP runtime error
>
> Do you have such an error ?
>
> Thx,
> Christophe,
>
>  
>


RE: [flexcoders] ConflictDetector... Why?

2010-06-16 Thread Scott
Ok, I'm encountering yet another bug.  3 found in the past 4 days...
I'm beginning to think the FB4 data management is pretty buggy and not a
lot of time was spent cleaning it up...

 

I'm still not sure I understand the data management functionality very
well but I found this article that helped a bit as far as code goes:
http://www.adobe.com/devnet/flex/articles/fcf_managing_data_print.html

 

The issue seems to be that the update function doesn't like it when
there are multiple fields being updated in the single call.  I had a
foreign key that I was not adding to a dataGrid for display so that
value was coming up null in my update function.

 

Here's the buggy part

 

I added a DataGridColumn for that field and set visible="false" then
re-ran the program and received the same error:

 

"Local item has changes to properties that conflict with remote change."

 

I decided I wanted to see that value to make sure it was getting
populated correctly so I set it to visible="true" then re-ran...

 

All of a sudden it was working.  The value should still exist if
visible="false" is set on the DataGridColumn.

 

2 days of wasted time on this one... UG.  I wish I could have found
better documentation on how the process works (or any documentation at
all...)  I would have at least realized that it's expecting to update
only one field at a time.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Wednesday, June 16, 2010 8:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ConflictDetector... Why?

 

  

I've been arguing with the FB4 / CF9 conflict detector the past couple
of days and it's become very apparent that I'm misunderstand something.

 

I have a datagrid component that is populated from a CF9/MySQL
datasource.  I set the datagrid to editable and created the associated
functions to update the datagrid.  My first issue was that the function
was giving me an error : "Attempt to use managed delete method with an
item that is not managed on this client".After hours of playing
around with this I ended up enabling datamanagement on the object for
the delete and update functions which took care of that error mesasge.  

 

I now get an error: "Local item has changes to properties that conflict
with remote change".  I can run the data service call manually in FB4
just fine using "Test Operation" so I know the function works.  But when
I try to update a record I get that error message.  The data I'm
presenting to the user would only be modified/changed/updated by the
data owner.  I know the items are different; that's why I'm updating the
remote DB!

 

1)   Why is there a conflict checker and is there a good reason that
this is in place?  

2)   Is there an easy way to turn this functionality off?

 

There's very little documentation out there on this subject

 

Thanks

  SJ




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 


[flexcoders] Label must be a simpler identifier

2010-06-16 Thread ilikeflex
Hi

I have the following class..

package com.vzw.mpi.rss.bussvalidations
{
public class BussValidation
{
public var message:String;
public var isError:Boolean;
}
}


when i try to do something like this

var object:BussValidation = new BussValidation();
object.message = "Error Number 1" ; //any string

i get the error
"Label must be a simpler identifier"

Do anybody no why is this happening???

Thanks
ilikeflex



Re: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Oleg Sivokon
Well, it's not exactly like that... the type of the local variable is
checked at compile time. Later on local variables kind of "don't exist",
that is the bytecode doesn't have a concept of "get local function variable
strict" because what's used is the address. I.e. take for example something
as simple as this:

var foo:int = 100;
foo++;

will translate into something like:

"push local" 100
"increment by one"

Or, more precisely, let's look at example:

package
{
import flash.display.Sprite;
 public class VarTest extends Sprite
{
public function VarTest()
{
super();
var foo:int = 100; // we declared a local variable
foo++; // performed some operation involving the varible
}
}
}

o...@home:~/flex/sdk/bin$ ./swfdump -abc ./VarTest.swf

. . .

function :VarTest:::VarTest():
maxStack:1 localCount:2 initScopeDepth:9 maxScopeDepth:10
debugfile "/home/oleg/projects/Keeper/src;;VarTest.as"
debugline 7
getlocal0
pushscope
debug 1 4 0 10
debugline 9
getlocal0
constructsuper (0)
debugline 10
pushbyte   100
convert_i
setlocal1
debugline 11
getlocal1
increment_i
convert_i
setlocal1
debugline 12
returnvoid
0 Extras
0 Traits Entries

Explanation:
grey - the mandatory initialization stuff and debugging information, not
important for our code
blue - the variable declaration part, this place corresponds to var foo:int
= 100;
red - this is where we increment foo.

Now, convert_i opcode converts the *value *into integer, regardless of the
type of the variable. We could omit the type, in that case we would not have
this opcode, but, this would not affect the variable type, because there
"isn't a variable", there is only an address, a register, where we saved the
integer value of 100.
Next, we retrieve the value from register and increment it,
Then, we set back the register. Note, there are no type checking at this
point. We operate on values and the compiler adds the necessary casting /
conversion if required, but there isn't such thing as a local variable
"runtime type information" because, technically, a local variable is purely
a compile time entity. The local variables may not be accessed by any
external code, so, they don't require the type safety as, say, public API
do. More yet, the compiler will convert all operation concerning variables
into series of procedures, which don't require variables as such. It's
easier to imagine this as a kind of an int-hash table, or something more
like: Dictionary, with the difference from a real dictionaty
being that the actual types are verified at compile time, and therefore
there is no point at doing the same verification at runtime. Or, think about
it as passport control at the airport: once before the flight the passports
are verified, but there's no point to verify them again inside the aircraft
because, regardless of what you will discover during the flight, everyone
will lend in the same destination airport :)


[flexcoders] ConflictDetector... Why?

2010-06-16 Thread Scott
I've been arguing with the FB4 / CF9 conflict detector the past couple
of days and it's become very apparent that I'm misunderstand something.

 

I have a datagrid component that is populated from a CF9/MySQL
datasource.  I set the datagrid to editable and created the associated
functions to update the datagrid.  My first issue was that the function
was giving me an error : "Attempt to use managed delete method with an
item that is not managed on this client".After hours of playing
around with this I ended up enabling datamanagement on the object for
the delete and update functions which took care of that error mesasge.  

 

I now get an error: "Local item has changes to properties that conflict
with remote change".  I can run the data service call manually in FB4
just fine using "Test Operation" so I know the function works.  But when
I try to update a record I get that error message.  The data I'm
presenting to the user would only be modified/changed/updated by the
data owner.  I know the items are different; that's why I'm updating the
remote DB!

 

1)   Why is there a conflict checker and is there a good reason that
this is in place?  

2)   Is there an easy way to turn this functionality off?

 

There's very little documentation out there on this subject

 

Thanks

  SJ



Re: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Alex Harui
Sounds reasonable.  Removal causes stage to be null and then the error can 
occur.  Good luck.


On 6/16/10 5:02 PM, "Battershall, Jeff"  wrote:






Alex,

I’m so far along with the workaround, I don’t know if I’m going to see it again 
– hopefully not. My workaround is to display the popup and simply show/hide it 
without using PopUpManager to remove it. Somehow the removal of the popup 
combined with FocusManager is producing the behavior.

Jefff




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 7:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Jeff,

What does the call stack look like?


On 6/16/10 1:57 PM, "Battershall, Jeff"  wrote:





Alex,

Looks like I spoke too soon.  When loading one customer and then switching to 
another, I’m seeing the error again. Getting to the point where I might look to 
a completely different method of showing and hiding this subform and forget 
about PopUpAnchor.  But it isn’t just PopAnchor, its PopUpAnchor + Spark List + 
virtual layout.

Jeff




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



It’s definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, "Battershall, Jeff"  wrote:





Alex,

I’ve worked around this – here’s what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn’t there – possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn’t 
be happening but for the time being I can move forward.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn’t have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn’t always because the 
binding chain wasn’t fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I’m using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







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


RE: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Gordon Smith
I think you're right that you can't find out at runtime that 'bar' was typed as 
IBitmapDrawable. But using IBitmapDrawable as a type annotation does ensure 
that it gets compiled in unless you deliberately exclude it.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Oleg Sivokon
Sent: Wednesday, June 16, 2010 4:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: how to access action script variable data type in 
mxml


Nope, sorry Amy, it's not possible to get the type of a local variable, you can 
only get the type of a value it references. Example:

function foo():void {

var bar:IBitmapDrawable = new BitmapData();

}

you can only know what the type of the value is ( BitmapData ) the type of the 
"bar" variable (IBitmapDrawable) may not even exist in the compiled code - 
there's no need for it to exist anyway.



RE: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Alex,

I'm so far along with the workaround, I don't know if I'm going to see it again 
- hopefully not. My workaround is to display the popup and simply show/hide it 
without using PopUpManager to remove it.  Somehow the removal of the popup 
combined with FocusManager is producing the behavior.

Jefff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 7:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Jeff,

What does the call stack look like?


On 6/16/10 1:57 PM, "Battershall, Jeff"  wrote:





Alex,

Looks like I spoke too soon.  When loading one customer and then switching to 
another, I'm seeing the error again. Getting to the point where I might look to 
a completely different method of showing and hiding this subform and forget 
about PopUpAnchor.  But it isn't just PopAnchor, its PopUpAnchor + Spark List + 
virtual layout.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



It's definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, "Battershall, Jeff"  wrote:





Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






Re: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Alex Harui
Jeff,

What does the call stack look like?


On 6/16/10 1:57 PM, "Battershall, Jeff"  wrote:






Alex,

Looks like I spoke too soon.  When loading one customer and then switching to 
another, I’m seeing the error again. Getting to the point where I might look to 
a completely different method of showing and hiding this subform and forget 
about PopUpAnchor.  But it isn’t just PopAnchor, its PopUpAnchor + Spark List + 
virtual layout.

Jeff




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



It’s definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, "Battershall, Jeff"  wrote:





Alex,

I’ve worked around this – here’s what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn’t there – possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn’t 
be happening but for the time being I can move forward.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn’t have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn’t always because the 
binding chain wasn’t fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I’m using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







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


Re: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Oleg Sivokon
Nope, sorry Amy, it's not possible to get the type of a local variable, you
can only get the type of a value it references. Example:

function foo():void {

var bar:IBitmapDrawable = new BitmapData();

}

you can only know what the type of the value is ( BitmapData ) the type of
the "bar" variable (IBitmapDrawable) may not even exist in the compiled code
- there's no need for it to exist anyway.


[flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Amy


--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> Look up the manual on describeType. Note that local variables type isn't
> possible to get at runtime.
>

I've learned over time that if I say "It's not possible to..." someone else 
will come back with how to do it.  So I usually say "I don't know of any way 
to..."  That way, I don't inadvertently give a newbie the wrong impression that 
something can't be done, just because _I_ don't know how to do it.

In this case, many Flex classes have a className property, or you can use 
flash.utils.getQualifiedClassName().  On the latter, you will have to do some 
parsing to pare it down to _just_ the class name.

HTH;

Amy



[flexcoders] Flex4 - using DropDownList as itemEditor in AdvancedDataGrid

2010-06-16 Thread Andrea Varga
Hi All,

I am using DropDownList in the itemEditor of an  AdvancedDataGrid. The
problem: after an item is selected from the DropDownList and the mouse is
released over the AdvancedDataGrid's row, that row gets  selected and the
cell edited (DropDownList appears).  It does not appear in DataGrid.

You can try it out here: http://narancs.net/flex/ADGTest/index.html
Edit the 'year' column in the first row, and select 2003. You'll see that
the 4th row will get edited in the AdvancedDataGrid but not in the DataGrid

Source: http://narancs.net/flex/ADGTest/srcview/

Do you have an idea how to fix this issue in the AdvanncedDataGrid?

Thanks,
Andrea


[flexcoders] Amfphp Error

2010-06-16 Thread Christophe
Hello, 

I have this error: 
AMFPHP runtime error

Do you have such an error ? 

Thx,
Christophe, 



RE: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Alex,

Looks like I spoke too soon.  When loading one customer and then switching to 
another, I'm seeing the error again. Getting to the point where I might look to 
a completely different method of showing and hiding this subform and forget 
about PopUpAnchor.  But it isn't just PopAnchor, its PopUpAnchor + Spark List + 
virtual layout.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



It's definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, "Battershall, Jeff"  wrote:





Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






Re: [flexcoders] Tabbing within Spark ItemRenderer

2010-06-16 Thread Alex Harui
I think the game plan for editing in Spark List is to simply get the display 
object tree to make all of the focusable widgets visible to the FocusManager.  
However, I would expect trouble if you are using virtual renderers, and tabbing 
to renderers scrolled off-screen may not work either.

The principle is pretty straightforward.  Every display object needs tabEnabled 
= true and tabChildren = true.  Containers that are not getting focus have  
hasFocusableChildren = true.  Objects that receive focus need focusEnabled=true 
and tabFocusEnabled=true and implement IFocusManagerComponent.  TabIndex should 
be optional.

Watch out for the outer component and its skin.  The skins and their 
sub-components often don’t have these flags set up for editable renderers.

Post a simple example if you’re still stuck and I’ll take a look.


On 6/16/10 11:24 AM, "Battershall, Jeff"  wrote:






Hi,

Here’s something that shouldn’t be this hard:

I have a spark list that has an itemrenderer with multiple items that I want to 
tab between.  For the life of me, I haven’t been able to get it work. I’ve 
tried tabEnabled, tabFocusEnabled, hasFocusableChildren, setting tabIndex on 
the individual components inside the ItemRenderer, etc., so far, no dice.  
There’s been a lot written about this, but so far I haven’t chanced upon the 
definitive solution.   Can someone put me on the fast track to resolution?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







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


Re: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Alex Harui
It’s definitely a bug.  FocusManager should be forgiving.  I assume it will get 
fixed for the next major release.  Glad you got around it.

FocusManager is expecting children it has seen added to its tree to be on stage 
when their visibility gets changed.


On 6/16/10 10:22 AM, "Battershall, Jeff"  wrote:






Alex,

I’ve worked around this – here’s what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting. But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn’t there – possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn’t 
be happening but for the time being I can move forward.

Jeff



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn’t have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn’t always because the 
binding chain wasn’t fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I’m using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







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


[flexcoders] Hey

2010-06-16 Thread Jeri Lamy
Hey
how are you recently ?
I would like to recommend you a very good company and the website is 「www.
godool . com」 .
It can offer you all kinds of electronic products ,such as  laptops ,gps ,TV
LCD ,cell phones ,ps3 ,MP3/4, and so on.
You can take some time to have a look ,there must be something you like .
Hope you can enjoy yourself in shopping from that company !
Regards !


[flexcoders] Tabbing within Spark ItemRenderer

2010-06-16 Thread Battershall, Jeff
Hi,

Here's something that shouldn't be this hard:

I have a spark list that has an itemrenderer with multiple items that I want to 
tab between.  For the life of me, I haven't been able to get it work. I've 
tried tabEnabled, tabFocusEnabled, hasFocusableChildren, setting tabIndex on 
the individual components inside the ItemRenderer, etc., so far, no dice.  
There's been a lot written about this, but so far I haven't chanced upon the 
definitive solution.   Can someone put me on the fast track to resolution?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



RE: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting.  But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






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






Re: [flexcoders] FocusManager chillHideHandler Error 1009 workaround ?

2010-06-16 Thread Alex Harui
This indicates that the viewstack is not on stage.  Is it being newly created 
or destroyed?


On 6/16/10 1:02 AM, "Stephane Guyot"  wrote:






Hi list,

working with Flex 4, I'm looking for a workaround for a very annoying bug :  
http://bugs.adobe.com/jira/browse/SDK-26273

TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at 
mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]

at 
mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]

at 
mx.containers::ViewStack/commitSelectedIndex()[E:\dev\4.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:1201]



Sometimes the bug appears for ViewStack, CheckBox  working with Flex 
charting components I'm in a hybrid world, spark and halo 

Any suggestions are wellcome,
Stephane

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






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


Re: [flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Alex Harui
Unfortunately got deferred because we didn’t have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn’t always because the 
binding chain wasn’t fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff"  wrote:






Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I’m using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)







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


Re: [flexcoders] Re: flex3 upload function seems not calling the php script

2010-06-16 Thread David Pariente
I get all alerts but the one of the catch error.

i dont get any warning or errors.

at first the try/catcch was inside the subeArchivo function...but i moved it to 
the object itself for test and leave code more clear for me. same result.

i didn't try charles (commercial, and don't think i could install it here) but 
tryied with httpfox and i can't see the call to the php file when click upload. 
(I see any other communication).

thnks for the help...i continued trying but still have no hint...:(







De: valdhor 
Para: flexcoders@yahoogroups.com
Enviado: mié,16 junio, 2010 14:47
Asunto: [flexcoders] Re: flex3 upload function seems not calling the php script

   
What alerts actually show?
Does the try block produce an error? If so, what error?
What happens if you include the try block inside the subeArchivo function 
rather than using getChildByName?
What does Charles (http://www.charlesproxy.com) show?

--- In flexcoders@yahoogroups.com, David Pariente  wrote:
>
> Hi all,
> 
> I have a website with an upload code that stopped to work...if ever did 
> (thought this was tested).
> 
> After checking for many hours i still can't find a reason why is not 
> working, or stopped to.
> 
> I checked with httpFox, and looks like the php file is never called...so i 
> wonder if the upload(request) is not being called, and why...:(
> 
> this is an extract of the upload function:
> 
> public function subeArchivo(fm_id:Number, filename:String):void
> {
> var request:URLRequest=new URLRequest(HOST + 
> "/php/collection/collection_image_upload.php");
> var params:URLVariables= new URLVariables();
> 
> request.method = URLRequestMethod.POST;
> 
> if (fm_id==1){
> params.folderbase="album";
> }
> if (fm_id==2){
> 
> params.folderbase="product";
> }
> 
> params.web=this.web;
> params.photo=filename;
> 
> request.data = params;
> 
> fm_saving_load();
> 
> 
> //Alert.show("filename: "+request.data);
> (this.getChildByName("fm_image_upload") as 
> form_Image_Upload).uploadfile(request);
> 
> }
> 
> and this is the function called in the fm_image_upload form:
> 
> 
> [Bindable] public var thefile:FileReference = new FileReference();
> 
> public function uploadfile(request:URLRequest):void{
> 
> 
> try
> {
> this.thefile.upload(request);
> }
> catch (error:Error)
> {
> trace("Unable to upload file.");
> Alert.show("Unable to upload file");
> }
> 
> Alert.show("uploading: "+request.data);
> Alert.show("url: "+request);
> 
> }
> 
> This is all the code invloved. I can't manage the php to do anything i ask it 
> to do, and then after using httpfox i noticed there is no call to the php 
> file.
> The alerts show perfectly, so the uploadfile function is executing, and the 
> request data seems correct.
> 
> If someone could bring some light into this...i didn't worked in this code 
> for a year, and can't find a hint of what's wrong about it :(
> Thank you very much!
>


 


  

[flexcoders] Re: Jazzing Up Your Flex Applications

2010-06-16 Thread Netaman
Check out TourDeFlex, some stunning effects, also look into changing the layout 
for lists, etc to make stunning effects. If you havn't looked into LCDS for 
RTMP. Real Time Messaging is very cool, and allows the application to be 
updated from the server, instead of pulling data from the server it is pushed 
to you.

Randy 

--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> Hi Flexcoders,
> 
> Am looking for some possible recommendations for ideas on how to jazz up an 
> application.  Jazz up means, placing effects, transitions, animations, etc. 
> which would make the user be amazed and astounded on the visuals of the 
> application.
> 
> Although I am not a designer by nature, I know that through Flex, once could 
> make the applications really look good and function awesome visually.
> 
> Would anyone share how they make their applications visually stunning with 
> effects, animations and transitions?
> 
> I saw an application on Bill White's blog 
> (http://www.billdwhite.com/wordpress/?p=98) where there's a good amount of 
> effects in place to make the application stunning.
> 
> Would you be able to share me as well some screenshots or samples of your 
> application (business, data-aware) where I could reference as to make my 
> applications behave and look visually good.
> 
> Thanks.
> 
> angelo
>




[flexcoders] FocusManager Bug in Flex 4

2010-06-16 Thread Battershall, Jeff
Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)



[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-16 Thread Netaman

I use viewStack.removeAllChildren();

also, what I do with the NavigatorContent, is everytime I create a new 
NavigatorContent container I load the resulting child UI component object into 
an arrayCollection then when I need to get to the object inside the 
NavigatorContent I use the viewStack.selectedIndex as an index to the 
ArrayCollection to manipulate the object, or generate a popup, etc...

public function setNavContent(navLabel:String, newView:*):void {
var itemNav:NavigatorContent = new NavigatorContent();
itemNav.label = navLabel;
itemNav.addEventListener(MouseEvent.DOUBLE_CLICK, 
circleD.editForms);
itemNav.doubleClickEnabled = true;
itemNav.minHeight = 300;
itemNav.minWidth = 400;
itemNav.addElement(newView);
circleD.peViewStack.addChild(itemNav);
}

Where navLabel is a tab string and newView is a UI component usually a 
composite component 

If you need a whitewashed code example let me know.

Randy
--- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
>
> myPanel.owner is the same as myPanel.parent so that won't work.
>  
> Making it a property would work. What would the disadvantages be with using 
> myPanel.parent.parent.parent (a trace shows this to be the navigatorcontent)?
> 
> I wonder why there is no such property like 'elementParent' to go with 
> addElement()  analagous to 'parent' and addChild()?
> 
> one follow up question -
> I'm now adding the NavigatorContent to a viewstack.
> When i do viewstack.removeChild(nc), how do i make sure nc (naviagtorcontent) 
> is destroyed?
> thanks
> 
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > Or make nc a property of the class so you can use it in any method.
> > 
> > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > >
> > > Try myPanel.owner
> > > 
> > > 
> > > On 6/9/10 8:23 AM, "bhaq1972"  wrote:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > I added a Panel component into a NavigatorContent
> > > 
> > > public function aMethod():void
> > > {
> > >  var nc:NavigatorContent = new NavigatorContent();
> > > 
> > > nc.addElement(myPanel);
> > > }
> > > Now, in another method I want to access this NavigatorContent
> > > 
> > > eg
> > > public function anotherMethod(myPanel:Panel):void
> > > {
> > > var nc:NavigatorContent = myPanel.parent as NavigatorContent;
> > > 
> > > however nc is not myPanel.parent.
> > > 
> > > doing a trace, the navigatorContent is actually
> > > the myPanel.parent.parent.parent
> > > 
> > > Is there not a property/method which gets me a reference to the element 
> > > Parent
> > > 
> > > (a bit like addChild() / parent relationship)
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe System, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
>




[flexcoders] DateChooser - multiple Dates without Ctrl-Key

2010-06-16 Thread flxde...@ymail.com
Hello @all!

I am searching for an option to use the DateChooser "multiple selection" 
without holding the ctrl-Key. I tried to find the right place in the 
DateChooser-class but i can´t find it, maybe i´m searching at the wrong place. 
Any ideas where i should look? I tried to find some existing sources but it 
seems nobody else needs this "function" :-(

Thanks in advance! 



[flexcoders] Re: flex3 upload function seems not calling the php script

2010-06-16 Thread valdhor
What alerts actually show?
Does the try block produce an error? If so, what error?
What happens if you include the try block inside the subeArchivo function 
rather than using getChildByName?
What does Charles (http://www.charlesproxy.com) show?





--- In flexcoders@yahoogroups.com, David Pariente  wrote:
>
> Hi all,
> 
> I have a website with an upload code that stopped to work...if ever did 
> (thought this was tested).
> 
> After checking for many hours i still can't find a reason why is not 
> working, or stopped to.
> 
> I checked with httpFox, and looks like the php file is never called...so i 
> wonder if the upload(request) is not being called, and why...:(
> 
> this is an extract of the upload function:
> 
> public function subeArchivo(fm_id:Number, filename:String):void
> {
> var request:URLRequest=new URLRequest(HOST + 
> "/php/collection/collection_image_upload.php");
> var params:URLVariables= new URLVariables();
>   
> request.method = URLRequestMethod.POST;
> 
> if (fm_id==1){
> params.folderbase="album";
> }
> if (fm_id==2){
> 
> params.folderbase="product";
> }
> 
> params.web=this.web;
> params.photo=filename;
> 
> request.data = params;
> 
> fm_saving_load();
> 
> 
> //Alert.show("filename: "+request.data);
> (this.getChildByName("fm_image_upload") as 
> form_Image_Upload).uploadfile(request);
> 
> }
> 
> and this is the function called in the fm_image_upload form:
> 
> 
> [Bindable] public var thefile:FileReference = new FileReference();
> 
> public function uploadfile(request:URLRequest):void{
> 
> 
> try
> {
> this.thefile.upload(request);
> }
> catch (error:Error)
> {
> trace("Unable to upload file.");
> Alert.show("Unable to upload file");
> }
> 
> Alert.show("uploading: "+request.data);
> Alert.show("url: "+request);
> 
> }
> 
> This is all the code invloved. I can't manage the php to do anything i ask it 
> to do, and then after using httpfox i noticed there is no call to the php 
> file.
> The alerts show perfectly, so the uploadfile function is executing, and the 
> request data seems correct.
> 
> If someone could bring some light into this...i didn't worked in this code 
> for a year, and can't find a hint of what's wrong about it :(
> Thank you very much!
>




[flexcoders] Re: what's happen with my 'array' ?

2010-06-16 Thread valdhor

You'll need to strip unwanted characters...

cards = new ArrayCollection(green.text.replace(/[\[\]']/g,
"").split(","));


--- In flexcoders@yahoogroups.com, cholid cholid 
wrote:
>
>
>
> but data i've is use '[]'
> when it split with ',' it doesn't work
>
>
>
>
> 
> From: valdhor valdhorli...@...
> To: flexcoders@yahoogroups.com
> Sent: Wed, June 16, 2010 1:39:54 AM
> Subject: [flexcoders] Re: what's happen with my 'array' ?
>
>
> You don't have an array - all you have is a string. You need to
convert it to an array. Try this:
>
> 
> 
>  creationComplete= 'test()'>
> 
> 
> 
>  paddingTop=' 10' paddingBottom= '10' paddingLeft= '10'
paddingRight= '10'>
> 
> 
> 
> 
> 
> 
>
>
>
> --- In flexcod...@yahoogro ups.com, cholid cholid 
wrote:
> >
> > hi all
> > i've new problem
> >
> > im make mx:ComboBox that the data is from array that's request from
mx:Text
> >
> > i've two mx:Text that string source is
> >
> > 1.array string =
> >
> > ['M3-02-06-2010- 10-05-04. flv', 'M3-02-06-2010- 22-17-16. flv',
'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv']
> >
> > 2.array string that source is from external fungtion (call with
https)
> >
> > THE PROBLEM IS:
> > if i call array from second mx:Text, the mx:ComboBox is not show
data
> > but if i call array from first, the mx:ComboBox is not working
> >
> > the source code is here:
> >
> > 
> > 
> > http://www.adobe. com/2006/ mxml' creationComplete= 'test()'>
> > 
> >  
> >   
> >  
> >
> >   >   layout='horizontal'
> >   paddingTop=' 10' paddingBottom= '10' paddingLeft= '10'
paddingRight= '10'>
> >
> >   
> >
> >   
> >
> > 
> >
> >   
> >
> >  
> > 
> >
>



Re: [flexcoders] Android Hero denies XMLSocket or Socket connection? ....errors #2031, #2048

2010-06-16 Thread claudiu ursica
I am not using the FP 10, I tried running code I AS2 instead of AS3 I was able 
to talk to the server from the Android emulator when compiled with air. Bu that 
runs only on Foryo (Android 2.2) I still have 2.1 on these phones and a version 
of flash lite. The thing is I cannot find anywhere something like Flash lite on 
android does not supports XMLSockets.

C






From: Gregor Kiddie 
To: flexcoders@yahoogroups.com
Sent: Wed, June 16, 2010 2:20:55 PM
Subject: RE: [flexcoders] Android Hero denies XMLSocket or Socket connection? 
errors #2031, #2048

   
Isn’t FP only for Android 2.2?
 
And there are pre-release forums you’d be better posting this in!
 
Gk.
 


  

RE: [flexcoders] Android Hero denies XMLSocket or Socket connection? ....errors #2031, #2048

2010-06-16 Thread Gregor Kiddie
Isn't FP only for Android 2.2?

 

And there are pre-release forums you'd be better posting this in!

 

Gk.



[flexcoders] Android Hero denies XMLSocket or Socket connection? ....errors #2031, #2048

2010-06-16 Thread claudiu
Hi,
I am trying to adapt an existing flash web chat application for the Android 
mobile phone and I am having this really annoying issue. The server is a custom 
based solution and can send back both binary messages or XML. So I can use 
either XMLSocket class or the Socket class to get data from the server. 
Everything works fine when deployed and I connect from the desktop but when I 
try it from the android mobile I get the infamous errors #2031, followed by 
#2048. Now the crossdomain.xml file is rock solid and works well for desktop. 
When the connect socket method runs I see that the server replies with the 
crossdomain file but I get the error when running on the mobile. Has anyone 
bumped into this? Is there some limitation from the mobile phone part. I wasn't 
able to find anything relevant for this issue, in terms of the phone not 
allowing Socket or SMLSocket connections. 

The phone runs Android 2.1 and indicates the FL10,1,123,358 version of flash. 
The issue can be reproduced also on the HTC Desire.

Any input on this would be highly appreciated...
10x,
Claudiu



[flexcoders] Re: Question: How to Catch/Handle of Exiting of AIR Application

2010-06-16 Thread Arik de Guzman
thank you alex for replying, i was able to handle the exiting event but i would 
like to prompt a confirmation exit when ctrl+f4 is pressed before the actual 
exit. like before closing the app it would likely have an alert of confirmation 
of exit.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Should be flash.events.Event.EXITING
> 
> 
> On 6/14/10 8:07 PM, "Arik de Guzman"  wrote:
> 
> 
> 
> 
> 
> 
> Hi,
> 
> i would like to ask how can i catch an "ALT+F4" close on my application so i 
> set some rules/methods before exiting.
> 
> i have tried catching a keyboard.keydown event, it directly closes the 
> application.
> 
> Thanks in advance for the people who would reply to this post :)
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




Re: [flexcoders] how to access action script variable data type in mxml

2010-06-16 Thread Oleg Sivokon
Look up the manual on describeType. Note that local variables type isn't
possible to get at runtime.


Re: [flexcoders] Error while doing the Linked list demo using flex

2010-06-16 Thread Oleg Sivokon
Hi, I think I know this implementation, and, I don't really like it, so I've
made my own, you're welcome to try:
http://code.google.com/p/e4xu/source/browse/trunk/src/org/wvxvws/data/DataList.as
(+ dependencies)

Or from templates, if you are using FD:
http://code.google.com/p/e4xu/source/browse/trunk/templates/List.as.fdt


[flexcoders] FocusManager chillHideHandler Error 1009 workaround ?

2010-06-16 Thread Stephane Guyot
Hi list,

working with Flex 4, I'm looking for a workaround for a very annoying 
bug :  http://bugs.adobe.com/jira/browse/SDK-26273 

TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at 
mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]

at 
mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]

at 
mx.containers::ViewStack/commitSelectedIndex()[E:\dev\4.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:1201]

   

Sometimes the bug appears for ViewStack, CheckBox  working with 
Flex charting components I'm in a hybrid world, spark and halo 

Any suggestions are wellcome,
Stephane


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



[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-16 Thread bhaq1972

thanks
--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> nc = null;
> 
> --- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
> >
> > myPanel.owner is the same as myPanel.parent so that won't work.
> >  
> > Making it a property would work. What would the disadvantages be with using 
> > myPanel.parent.parent.parent (a trace shows this to be the 
> > navigatorcontent)?
> > 
> > I wonder why there is no such property like 'elementParent' to go with 
> > addElement()  analagous to 'parent' and addChild()?
> > 
> > one follow up question -
> > I'm now adding the NavigatorContent to a viewstack.
> > When i do viewstack.removeChild(nc), how do i make sure nc 
> > (naviagtorcontent) is destroyed?
> > thanks
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > Or make nc a property of the class so you can use it in any method.
> > > 
> > > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > > >
> > > > Try myPanel.owner
> > > > 
> > > > 
> > > > On 6/9/10 8:23 AM, "bhaq1972"  wrote:
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > I added a Panel component into a NavigatorContent
> > > > 
> > > > public function aMethod():void
> > > > {
> > > >  var nc:NavigatorContent = new NavigatorContent();
> > > > 
> > > > nc.addElement(myPanel);
> > > > }
> > > > Now, in another method I want to access this NavigatorContent
> > > > 
> > > > eg
> > > > public function anotherMethod(myPanel:Panel):void
> > > > {
> > > > var nc:NavigatorContent = myPanel.parent as NavigatorContent;
> > > > 
> > > > however nc is not myPanel.parent.
> > > > 
> > > > doing a trace, the navigatorContent is actually
> > > > the myPanel.parent.parent.parent
> > > > 
> > > > Is there not a property/method which gets me a reference to the element 
> > > > Parent
> > > > 
> > > > (a bit like addChild() / parent relationship)
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --
> > > > Alex Harui
> > > > Flex SDK Team
> > > > Adobe System, Inc.
> > > > http://blogs.adobe.com/aharui
> > > >
> > >
> >
>