[flexcoders] die hard 4 glass like interfaces

2008-09-26 Thread stinasius
hi guys this is gonna sound very ridiculous but just asking, does
anyone know how to design nice glassy interfaces like the one in the
die hard 4 movie eg a datagrid with a glassy feel and no grid rows and
columns showing. 



[flexcoders] Re: LCDS: Debug RTMP Traffic

2008-09-26 Thread Geoffrey
As it turns out, there appears to be a bug in DataServices.  To be more 
specific, the 
DataStore object that sits between the DataService and the server does not 
dispatch a 
result or fault event when the second DataService connects via the 
DataService.connect() 
call.

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> Adobe support thought that it might be that too, but it doesn't look 
> like that's the issue since it didn't really do anything different 
> when I commented that out.
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I'll try using the TraceTarget class.
> > 
> > Our config uses port 2040 for RTMP.  I tried filtering on 
> "tcp.port==2040", but that didn't 
> > seem to get anything.  I also tried "rtmp.port==2040" and 
> "rtmpt.port==2040".  Those 
> > didn't seem to work either.  By 'work' I mean that when the filter 
> was applied, there were 
> > no network activity listed in the Wiresshark top panel.
> > 
> > Any other ideas on filtering?
> > 
> > --- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
> > >
> > > Have you tried enabling the client side debug logging with 
> ? You 
> > get the highest level client side tracing that way... just make sure 
> you use the debug 
> > player, then look in the flashlog.txt.
> > > 
> > > For wireshark, I think you can probably filter based on the server 
> port used to establish 
> > the connection.   Look at your RTMP configuration but typically it 
> is 2038 or 1935 or 
> > something like that.
> > > 
> > > Jeff
> > > 
> > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Geoffrey
> > > Sent: Friday, September 19, 2008 7:35 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] LCDS: Debug RTMP Traffic
> > > 
> > > 
> > > I'm having some issues with 2 DataServices running over RTMP. The
> > > first DataService loads on application startup and work fine (I 
> get
> > > data). The second load later on in the application, but this one
> > > get's no data. It doesn't appear that it even makes the connect
> > > request because my result and fault handlers don't get hit.
> > > 
> > > Is there a tool (like Charles, ServiceCapture, or Wireshark) that 
> can
> > > be used to verify that something over an RTMP channel is being 
> sent
> > > from the client? Like I said, nothing seems to happen when I issue
> > > the DataService.connect() call.
> > > 
> > > I've enabled a bunch of logging on the server(via the
> > > services-config.xml file), but if that traffic isn't reaching the
> > > server, all the logging in the world won't help.
> > > 
> > > BTW, if you say that Wireshark can be used, then please post the
> > > filter you use because I couldn't figure out one that only showed 
> RTMP
> > > traffic. As a matter of fact, I couldn't find anything that looked
> > > like RTMP traffic in the log session.
> > > 
> > > I don't know if it's important or not, but the server and the 
> client
> > > are all running locally.
> > > 
> > > Env:
> > > Tomcat 6.0.16
> > > LCDS 2.6
> > > Flex 3
> > > 
> > > Thanks,
> > > ~Geoff
> > >
> >
>





[flexcoders] Re: Listen itemClick Event on MenuBar

2008-09-26 Thread Tim Hoff

Perhaps a tree menu instead.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> :-)
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> >
> > Maybe a custom MenuBarItemRenderer would solve this. Just guessing,
> > though.
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Tracy Spratt
> > Sent: Friday, September 26, 2008 8:57 PM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] Listen itemClick Event on MenuBar
> >
> >
> >
> > Hmm, I have use the "click" event with top-level menu items with no
> > children and it fires, but the click event does not fire on sub menu
> > items with children.
> >
> >
> >
> > I couldn't get MouseDown or up to fire either.
> >
> >
> >
> > I am stumped.
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Andres Serral
> > Sent: Friday, September 26, 2008 8:45 AM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] Listen itemClick Event on MenuBar
> >
> >
> >
> > Tracy.
> >
> > Maybe I don't explain very well.
> >
> >
> >
> > Look in the next menu structure... I want to capture the event click
> on
> > "SubMenu 1.1"
> >
> >
> >
> > Menu
> >
> > ->SubMenu 1
> >
> > -> "SubMenu 1.1"
> >
> > -> SubMenu 1.1.1
> >
> > -> SubMenu 1.1.2
> >
> > -> SubMenu 1.2
> >
> > -> SubMenu 1.2.1
> >
> > -> SubMenu 1.2.2
> >
> > ->SubMenu 2
> >
> > -> SubMenu 1.1
> >
> > -> SubMenu 1.2
> >
> >
> >
> > I looked at the SDK source that the itemClick event only is
dispatched
> > when the node hasn't childrens
> >
> >
> >
> > here is an example
> >
> >
> >
> > 
> > http://www.adobe.com/2006/mxml
> >  " layout="absolute"
> > creationComplete="initCollections();"
> > >
> >
> > 
> > 
> > 
> >
> >
> >  > labelField="@label"
> > dataProvider="{menuBarCollection}"
> > itemClick="menuItemClickHandler(event)"
> > />
> >
> > 
> >
> >
> >
> > Andres
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Tracy Spratt
> > Sent: Thursday, September 25, 2008 9:34 PM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] Listen itemClick Event on MenuBar
> >
> > This is an aggravating aspect of Menu.
> >
> > You have to listen for both itemClick and click.
> >
> > Tracy
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Andres Serral
> > Sent: Thursday, September 25, 2008 3:54 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Listen itemClick Event on MenuBar
> >
> > Hello people
> >
> > I have a problem... someone maybe can help me
> >
> > The MenuBar control doesn't dispatch the "itemClick" event on items
> that
> > has childrens.
> >
> > Anybody knows how can I capture the click event on any item (with
> > childrens or without them)?
> >
> > Thanks
> >
> > Andres
> >
>





[flexcoders] Re: Listen itemClick Event on MenuBar

2008-09-26 Thread Tim Hoff

:-)

-TH

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Maybe a custom MenuBarItemRenderer would solve this. Just guessing,
> though.
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Tracy Spratt
> Sent: Friday, September 26, 2008 8:57 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Listen itemClick Event on MenuBar
>
>
>
> Hmm, I have use the "click" event with top-level menu items with no
> children and it fires, but the click event does not fire on sub menu
> items with children.
>
>
>
> I couldn't get MouseDown or up to fire either.
>
>
>
> I am stumped.
>
>
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Andres Serral
> Sent: Friday, September 26, 2008 8:45 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Listen itemClick Event on MenuBar
>
>
>
> Tracy.
>
> Maybe I don't explain very well.
>
>
>
> Look in the next menu structure... I want to capture the event click
on
> "SubMenu 1.1"
>
>
>
> Menu
>
> ->SubMenu 1
>
> -> "SubMenu 1.1"
>
> -> SubMenu 1.1.1
>
> -> SubMenu 1.1.2
>
> -> SubMenu 1.2
>
> -> SubMenu 1.2.1
>
> -> SubMenu 1.2.2
>
> ->SubMenu 2
>
> -> SubMenu 1.1
>
> -> SubMenu 1.2
>
>
>
> I looked at the SDK source that the itemClick event only is dispatched
> when the node hasn't childrens
>
>
>
> here is an example
>
>
>
> 
> http://www.adobe.com/2006/mxml
>  " layout="absolute"
> creationComplete="initCollections();"
> >
>
> 
> 
> 
>
>
>  labelField="@label"
> dataProvider="{menuBarCollection}"
> itemClick="menuItemClickHandler(event)"
> />
>
> 
>
>
>
> Andres
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Tracy Spratt
> Sent: Thursday, September 25, 2008 9:34 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Listen itemClick Event on MenuBar
>
> This is an aggravating aspect of Menu.
>
> You have to listen for both itemClick and click.
>
> Tracy
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Andres Serral
> Sent: Thursday, September 25, 2008 3:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Listen itemClick Event on MenuBar
>
> Hello people
>
> I have a problem... someone maybe can help me
>
> The MenuBar control doesn't dispatch the "itemClick" event on items
that
> has childrens.
>
> Anybody knows how can I capture the click event on any item (with
> childrens or without them)?
>
> Thanks
>
> Andres
>





RE: [flexcoders] Re: Obtaining name of method

2008-09-26 Thread Tracy Spratt
But what good would it be to have fifty lines in your trace file that
said:

"function_name"

"function_name"

"function_name"

Etc?

 

Ohhh, you mean type in the function name in every trace statement?
Perhaps you are missing the point here.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitri Girski
Sent: Friday, September 26, 2008 9:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Obtaining name of method

 

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I bet you are trying to find a nifty way to log your code's 
processing,
> right? This comes up a lot and really, there is no good way to do 
it.
> 

> 
> You might try the archives, in case I missed something, but if I'd 
ever
> heard a good solution I would have used it myself.
> 

trace("function_name") ? 

It works even in C++ :))

Cheers,
Dmitri.

 



[flexcoders] Re: Obtaining name of method

2008-09-26 Thread Dmitri Girski
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I bet you are trying to find a nifty way to log your code's 
processing,
> right?  This comes up a lot and really, there is no good way to do 
it.
> 
 
> 
> You might try the archives, in case I missed something, but if I'd 
ever
> heard a good solution I would have used it myself.
> 


trace("function_name") ? 

It works even in C++ :))


Cheers,
Dmitri.





RE: [flexcoders] Listen itemClick Event on MenuBar

2008-09-26 Thread Tracy Spratt
Maybe a custom MenuBarItemRenderer would solve this.  Just guessing,
though.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, September 26, 2008 8:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listen itemClick Event on MenuBar

 

Hmm, I have use the "click" event with top-level menu items with no
children and it fires, but the click event does not fire on sub menu
items with children.

 

I couldn't get MouseDown or up to fire either.

 

I am stumped.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andres Serral
Sent: Friday, September 26, 2008 8:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listen itemClick Event on MenuBar

 

Tracy.

Maybe I don't explain very well.

 

Look in the next menu structure... I want to capture the event click on
"SubMenu 1.1" 

 

Menu

->SubMenu 1

-> "SubMenu 1.1"

-> SubMenu 1.1.1

-> SubMenu 1.1.2

-> SubMenu 1.2

-> SubMenu 1.2.1

-> SubMenu 1.2.2

->SubMenu 2

-> SubMenu 1.1

-> SubMenu 1.2

 

I looked at the SDK source that the itemClick event only is dispatched
when the node hasn't childrens

 

here is an example

 


http://www.adobe.com/2006/mxml
 " layout="absolute"
 creationComplete="initCollections();" 
 >
 
 
  
 
 
 
 
  


 

Andres

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, September 25, 2008 9:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listen itemClick Event on MenuBar

This is an aggravating aspect of Menu.

You have to listen for both itemClick and click.  

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andres Serral
Sent: Thursday, September 25, 2008 3:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Listen itemClick Event on MenuBar

Hello people

I have a problem... someone maybe can help me

The MenuBar control doesn't dispatch the "itemClick" event on items that
has childrens.

Anybody knows how can I capture the click event on any item (with
childrens or  without them)?

Thanks

Andres

 



RE: [flexcoders] Listen itemClick Event on MenuBar

2008-09-26 Thread Tracy Spratt
Hmm, I have use the "click" event with top-level menu items with no
children and it fires, but the click event does not fire on sub menu
items with children.

 

I couldn't get MouseDown or up to fire either.

 

I am stumped.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andres Serral
Sent: Friday, September 26, 2008 8:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listen itemClick Event on MenuBar

 

Tracy.

Maybe I don't explain very well.

 

Look in the next menu structure... I want to capture the event click on
"SubMenu 1.1" 

 

Menu

->SubMenu 1

-> "SubMenu 1.1"

-> SubMenu 1.1.1

-> SubMenu 1.1.2

-> SubMenu 1.2

-> SubMenu 1.2.1

-> SubMenu 1.2.2

->SubMenu 2

-> SubMenu 1.1

-> SubMenu 1.2

 

I looked at the SDK source that the itemClick event only is dispatched
when the node hasn't childrens

 

here is an example

 


http://www.adobe.com/2006/mxml
 " layout="absolute"
 creationComplete="initCollections();" 
 >
 
 
  
 
 
 
 
  


 

Andres

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, September 25, 2008 9:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listen itemClick Event on MenuBar

This is an aggravating aspect of Menu.

You have to listen for both itemClick and click.  

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andres Serral
Sent: Thursday, September 25, 2008 3:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Listen itemClick Event on MenuBar

Hello people

I have a problem... someone maybe can help me

The MenuBar control doesn't dispatch the "itemClick" event on items that
has childrens.

Anybody knows how can I capture the click event on any item (with
childrens or  without them)?

Thanks

Andres

 



[flexcoders] AS3 - single-fire event listener

2008-09-26 Thread Matt Bennett
Hi all,

In certain javascript libraries I've used previously, there is the
ability to create a single-fire event listener -- one that
automatically removes itself as a listener immidiately after it has
executed.

I'd really like a generic solution that just involved an overridden
'addEventListener' function and an optional 'single-fire' argument.
Hopefully someone out there has solved this problem already.

In the mean time however, I tried a more simplistic approach - calling
removeEventListener inside my listener function, so it runs once and
then removes itself. I can't get this approach to work for anonymous
functions though, because I don't know how the anonymous function can
refer to itself. There doesn't appear to be anything useful in the
Event object passed to the listener, the 'this' keyword refers to
something else, and I don't know how to alter the scope with which the
listener function is called.

Does anyone have a simple way to acheive this?

Many thanks,
Matt.





[flexcoders] Re: Passing Variables from PHP to Flex

2008-09-26 Thread Hyder

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "ghus32" stevenpo@ wrote:
> >
> > Hello Everyone,
> >
> > I have an upload functions in Flex that works fine using php as a
> > backend.
> >
> > I can pass the data to the PHP but I cannot send data back ex.. like
> a
> > filename..
> >
> > Anyone know how to do this?
>
> Are you saying you are only having trouble getting it to work within
> Flex, or you don't know about $echo?
>
> If you could be more specific about what you're having trouble with,
we
> could help you better.
>




[flexcoders] Re: Flex SEO solutions success?

2008-09-26 Thread Hyder
I use google's webmaster tools and it doesn't see any content other 
than the metatags.

Hyder


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Friday 26 Sep 2008, Hyder wrote:
> > if you have to so I get to experiment with data. Google hasn't 
managed
> > to read any content on it as yet.
> 
> How do you know ?
> Do you see their spider crawling, but yet you don't show in their 
index ?
> 
> -- 
> Tom Chiverton
> Helping to dramatically revolutionize relationships
> 
> 
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB.  A list of members is available for inspection at 
the registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above 
and may be confidential or legally privileged.  If you are not the 
addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>





RE: RE[flexcoders] S: LCDS - how can I improve the createItem function?

2008-09-26 Thread Jeff Vroom
So if you have all 1000 in the same batch, it should essentially just be 
processing 1000 insert statements.  While that is happening, your "commit" call 
is still outstanding - i.e. it has not yet received the response back.You 
could pretty easily add a result handler for that commit operation so your user 
knows when it is finished (i.e. set up a busy cursor when the commit occurs and 
remove it when the commit result/fault comes back).

I guess the other question is whether there is a more efficient way to insert 
all of those 1000 items.   LC DS will add some overhead onto that process of 
creating those items but I would not think it would be a ton more than just the 
overhead of running 1000 insert statements.

It would certainly be possible to create all 1000 items on the server using a 
remote object call, then use the DataServiceTransaction.createItem call to 
notify the data management system (and the flex client) that they are all 
there.   It's not clear though that this would be more efficient.

Note too that the LC DS debug logging is pretty expensive so if you turn that 
off, it will speed up the server a lot.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
kcCedrics
Sent: Friday, September 26, 2008 6:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: RE[flexcoders] S: LCDS - how can I improve the createItem function?


Thanks for your answer.
I already did that. But the problem is the same : I have LCDS which make
1000 createItem request.
In fact in my application I have my 1000 items in a datagrid, but when I
check my lcds log file I see that LCDS is still creating item
--
View this message in context: 
http://www.nabble.com/LCDS---how-can-I-improve-the-createItem-function--tp19687486p19688593.html
Sent from the FlexCoders mailing list archive at Nabble.com.

<><>

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Hyder
It's definitely history management.

Donald, do this... in your project settings, under flex compiler, 
uncheck 'Enable integration with browser navigation"... clean and 
rebuild your project. It fixed it for me... but when I re-enable 
integration with browser navigation, the issue re-appears.

Try it and see what you get.

Hyder
www.GulfSpecials.com
www.AlamgirDesigns.com
alamgirdesigns.blogspot.com


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This is definitely not normal behavior, so you must have something
> unusual going on.  We haven't seen any code so we are just stabbing 
in
> the dark.
> 
>  
> 
> Rip out everything until it works, start adding it back til it 
breaks.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of Tim Hoff
> Sent: Friday, September 26, 2008 12:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: TabNavigator - have to click twice on tab 
to
> display page
> 
>  
> 
> 
> So, when you click the 2nd tab, does the 2nd tab remain selected, or
> does it switch back to the first tab? If it stays on the 2nd tab, 
are
> you still seeing the content from the first tab, or is it just 
blank;
> until you click the 2nd tab again?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com 

> , "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > No, I m not doing that, thats what I thought it was originally.
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com
>  , "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Cool, one other thing to check would be if you are manually 
setting
> > the
> > > selectedIndex of the TabNavigator anywhere. Just guessing 
though;
> > > without seeing the code.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com
>  , "donald_d_hook" 

> > > wrote:
> > > >
> > > > TH -
> > > >
> > > > THanks - I will give it a shot and see.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
>  , "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Sounds suspiciously like a callLater() solution. Have you 
tested
> > > > > whether the creationComplete event is actually firing, 
before
> > you
> > > > click
> > > > > tab2, for all of the child components? Sometimes not setting 
the
> > > > data,
> > > > > in a timely fashion, can also make a view appear blank.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
>  , Manu Dhanda 

> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tracy,
> > > > > >
> > > > > > It's really an issue with TabNavigator and we had faced 
it.
> > > > > > I won't say that I need to click the tab twice, but I need 
to
> > > > switch
> > > > > back to
> > > > > > Tab1 and then come back to Tab2 to see the content on my 
2nd
> > Tab.
> > > > > >
> > > > > > And yes, already tried with creationPolicy='all', but it 
din't
> > > > worked.
> > > > > >
> > > > > > -Manu.
> > > > > >
> > > > > >
> > > > > > Tracy Spratt wrote:
> > > > > > >
> > > > > > > Are you programatically doing anything with the content 
of
> > tab
> > > > 2?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Do you understand about deferred instantiation and
> > > > creationPolicy?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Tracy
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > From: flexcoders@yahoogroups.com
>  
> > > > [mailto:flexcoders@yahoogroups.com
>  ]
> > > > > On
> > > > > > > Behalf Of donald_d_hook
> > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > To: flexcoders@yahoogroups.com
>  
> > > > > > > Subject: [flexcoders] TabNavigator - have to click twice 
on
> > tab
> > > > to
> > > > > > > display page
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I have a tab navigator with 3 tabs. Each tab has a 
canvas
> > with
> > > > > > > several components on it. when the page is displayed, 
you
> > see
> > > > the
> > > > > 1st
> > > > > > > tab. When I navigate to the 2nd tab, I have to click the 
2nd
> > tab
> > > > > > > twice in order to view the contents of the tab. It looks
> > like
> > > > the
> > > > > > > first click on the 2nd tab goes back to the first tab, 
then
> > the
> > > > 2nd
> > > > > > > click displays the contents of the 2nd tab.
> > > > > > >
> > > > > > > Was wondering if anyone has experienced this behavior 
and
> > > > wondering
> > > > > > > what I am doing wrong.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > http://www.nabble.com/T

[flexcoders] GroupingCollection GroupingFunction posted

2008-09-26 Thread Amy
Hi, all;

I've posted an example that shows how to use groupingFunctions to allow 
you to group dates different ways for use in a Calendar application.  
http://flexdiary.blogspot.com/2008/09/groupingcollection-example-
featuring.html.

HTH;

Amy



[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski
*sigh* Another blank message. Rich Text Editor doesn't like me today, 
it seems.

What I had written was:
Are you making a registerClassAlias call for each complex object? 
That's the only thing I can think of. I've got a similar situation 
with nested complex objects, and while I'm using SharedObject rather 
than LocalConnection, the docs say the encoding format is the same.

--- In flexcoders@yahoogroups.com, "Jonathon Stierman" <[EMAIL PROTECTED]> 
wrote:
>
> Ahh, thank you!  That does retain the class definition.  
> 
>  
> 
> But it doesn't seem to have included all the nested complex objects 
- I
> have a three layer deep model (Library >> Bookshelf >> Book, for
> example), and while all the classes are being recognized, none of 
the
> data for Bookshelf is coming through.  The property comes back null.
> I'm printing out the object prior to sending it, and it is full of 
data
> at the time of sending...  Any ideas?
> 
>  
> 
> Again, thanks for your help! 
> 
>  
> 
> Jonathon
>



[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski

--- In flexcoders@yahoogroups.com, "Jonathon Stierman" <[EMAIL PROTECTED]>
wrote:
>
> Ahh, thank you!  That does retain the class definition.
>
>
>
> But it doesn't seem to have included all the nested complex objects -
I
> have a three layer deep model (Library >> Bookshelf >> Book, for
> example), and while all the classes are being recognized, none of the
> data for Bookshelf is coming through.  The property comes back null.
> I'm printing out the object prior to sending it, and it is full of
data
> at the time of sending...  Any ideas?
>
>
>
> Again, thanks for your help!
>
>
>
> Jonathon
>




[flexcoders] Re: Passing Variables from PHP to Flex

2008-09-26 Thread Amy
--- In flexcoders@yahoogroups.com, "ghus32" <[EMAIL PROTECTED]> wrote:
>
> Hello Everyone,
> 
> I have an upload functions in Flex that works fine using php as a 
> backend.
> 
> I can pass the data to the PHP but I cannot send data back ex.. like 
a 
> filename..
> 
> Anyone know how to do this?

Are you saying you are only having trouble getting it to work within 
Flex, or you don't know about $echo?

If you could be more specific about what you're having trouble with, we 
could help you better.



RE: [flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread Jonathon Stierman
Ahh, thank you!  That does retain the class definition.  

 

But it doesn't seem to have included all the nested complex objects - I
have a three layer deep model (Library >> Bookshelf >> Book, for
example), and while all the classes are being recognized, none of the
data for Bookshelf is coming through.  The property comes back null.
I'm printing out the object prior to sending it, and it is full of data
at the time of sending...  Any ideas?

 

Again, thanks for your help! 

 

Jonathon

 



[flexcoders] Re: Bad quality for JPEG encoded images ,,<***(sample images INSIDE)***>

2008-09-26 Thread semelak1
So, has anybody else experienced similar problems ?? Is there 
something wrong in my code ?? How can improve the quality of the 
encoded images ??

--- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]> 
wrote:
>
> That's a fair point, it might not be public yet.
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> 
> The information in this internet email is confidential and is 
intended
> solely for the addressee. Access, copying or re-use of information 
in it
> by anyone else is not authorised. Any views or opinions presented 
are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact [EMAIL PROTECTED]
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of Tom Chiverton
> Sent: 24 September 2008 16:05
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Bad quality for JPEG encoded images
> ,,<***(sample images INSIDE)***>
> 
> On Tuesday 23 Sep 2008, Gregor Kiddie wrote:
> > There is a compiler that can take C / C++ code and output 
Actionscript
> > that you might want to take a look at.
> 
> AFAIK there is no public compiler to do this, is there ?
>





[flexcoders] Re: Error when PopupManager hides a popup in the middle of an effect

2008-09-26 Thread ozziegt
The problem seems to be related to the sequence. If I remove the
sequence effect, I can't reproduce the bug anymore.

The bug happens when I remove the popup but add back it before the
sequence effect has time to complete.

My workaround for now is to just bypass the popupmanager, break up the
sequence into two parts, keep the popup on my stage at all times and
use the showEffect and hideEffect properties instead (FYI: using a
sequence in hideEffect also throws an error). For my particular
situation and use of this popup, it works out pretty well without any
additional code.

If a solution is ever found for this problem, I might go back to using
the popupmanager.

--- In flexcoders@yahoogroups.com, "ozziegt" <[EMAIL PROTECTED]> wrote:
>
> Sample can be found here:
> 
> http://osmanu.com/flex/SamplePopup/SamplePopup.html
> 
> source is either through right click or here:
> http://osmanu.com/flex/SamplePopup/SamplePopup.zip
> http://osmanu.com/flex/SamplePopup/srcview/index.html
> 
> Steps:
> 
> 1) Click "remove and add" to see the behavior.
> 2) Once popup is gone, click "remove and add" again.
> 3) Quickly press "remove only". Popup will disappear.
> 4) Pressing "remove and add" will trigger the error.
> 
> 



[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski
Sorry about the empty post - meant to say:
Take a look at registerClassAlias
- http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#reg\
isterClassAlias()
--- In flexcoders@yahoogroups.com, "Jonathon Stierman" <[EMAIL PROTECTED]>
wrote:
>
> Has anyone been able to make this work?  I have a sample up and
running
> (and receiving the callbacks), but my arguments come back only as
Object
> class instances.
>
>
>
> Using an args[0] is MyComplexObject returns false always, and
attempting
> to convert them to their proper type also fails.  I can however,
convert
> the argument into a String with no issues.
>
>
>
> Is the LocalConnection only for String data, or can it support complex
> object types?  I have ensured that both SWF files have the complex
type
> imported, and there is an instance of it existing - so the class ought
> to be available to the SWF, correct?
>
>
>
> Worst case scenario, I can serialize my object into a String and parse
> it back out... but I would very much prefer a clean object transfer.
>
>
>
> Jonathon
>



[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski

--- In flexcoders@yahoogroups.com, "Jonathon Stierman" <[EMAIL PROTECTED]>
wrote:
>
> Has anyone been able to make this work?  I have a sample up and
running
> (and receiving the callbacks), but my arguments come back only as
Object
> class instances.
>
>
>
> Using an args[0] is MyComplexObject returns false always, and
attempting
> to convert them to their proper type also fails.  I can however,
convert
> the argument into a String with no issues.
>
>
>
> Is the LocalConnection only for String data, or can it support complex
> object types?  I have ensured that both SWF files have the complex
type
> imported, and there is an instance of it existing - so the class ought
> to be available to the SWF, correct?
>
>
>
> Worst case scenario, I can serialize my object into a String and parse
> it back out... but I would very much prefer a clean object transfer.
>
>
>
> Jonathon
>




[flexcoders] Re: Overriding Combobox and ListBase

2008-09-26 Thread johnlukemills
Hi Shuan,

Your suggestion works great.  It turns out that it's keyDownHandler
that really needs to be modified, but so what.

Thanks a bundle,  John Luke Mills




[flexcoders] passing complex objects through LocalConnection

2008-09-26 Thread Jonathon Stierman
Has anyone been able to make this work?  I have a sample up and running
(and receiving the callbacks), but my arguments come back only as Object
class instances.  

 

Using an args[0] is MyComplexObject returns false always, and attempting
to convert them to their proper type also fails.  I can however, convert
the argument into a String with no issues.   

 

Is the LocalConnection only for String data, or can it support complex
object types?  I have ensured that both SWF files have the complex type
imported, and there is an instance of it existing - so the class ought
to be available to the SWF, correct?

 

Worst case scenario, I can serialize my object into a String and parse
it back out... but I would very much prefer a clean object transfer.

 

Jonathon



[flexcoders] Re: dataProvider.editField not posting change to DataGrid?

2008-09-26 Thread nolanathomas
Hello Tracy,

Thanks for your suggestions. I am now using the event.result directly
and got rid of the refresh and invalidateProperties calls.

However, it still isn't working and "MONKEY" still isn't showing up in
fund field. Hoping to do a lot of this type of ActionScript so getting
it sorted out will be very helpful.

Regards,

Nolan

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> editField should handle the event dispatching fine and you should not
> need to use the invalidation manually.  Have you tried it without that?
> 
>  
> 
> Refresh is re-applying the filter, are you sure you want that?
> 
>  
> 
> Also, though I doubt is it related, do not use lastResult in an AS
> function.  It is intended for binding expressions only.  It might work
> usually, but its value could be changed by framework when you do not
> expect.  Instead do::
> 
> fundingCollection=ArrayCollection(event.result.fundinglist.funding) ;
> 
>  
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of nolanathomas
> Sent: Friday, September 26, 2008 2:46 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] dataProvider.editField not posting change to
> DataGrid?
> 
>  
> 
> Hello,
> 
> I am working on a prototype. Getting the data form an HttpService and
> loading it into an bindable ArrayCollection for my fundDg DataGrid.
> When i call editField in my ActionScript the change isn't refreshing
> back to the DataGrid...
> 
> i)
>  url="http://localhost:8080/funding-service.do
>  "
> result="fundingServiceResultListener(event);">
> 
> ii)
> [Bindable] private var fundingCollection:ArrayCollection ;
> private function fundingServiceResultListener( event:ResultEvent ):void
> {
> fundingCollection=
> ArrayCollection(fundingService.lastResult.fundinglist.funding) ;
> }
> 
> iv) when i do the following nothing happens to the data grid
> 
> fundDg.dataProvider.editField(fundDg.selectedIndex, "fund", "MONKEY" ) ;
> fundDg.invalidateProperties() ; 
> fundDg.dataProvider.refresh() ;
> 
> Regards,
> 
> Nolan
>




[flexcoders] Re: Error when PopupManager hides a popup in the middle of an effect

2008-09-26 Thread ozziegt
Sample can be found here:

http://osmanu.com/flex/SamplePopup/SamplePopup.html

source is either through right click or here:
http://osmanu.com/flex/SamplePopup/SamplePopup.zip
http://osmanu.com/flex/SamplePopup/srcview/index.html

Steps:

1) Click "remove and add" to see the behavior.
2) Once popup is gone, click "remove and add" again.
3) Quickly press "remove only". Popup will disappear.
4) Pressing "remove and add" will trigger the error.


--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> That is an interesting error. Basically it's telling you that the
tween for
> the actual effect got de-referenced somehow.
> 
> two places that could happen;
> 
> end()
> 
> and onTweenEnd()
> 
> Can you get a simple example to reproduce this in mxml? ... Quick little
> application.
> 
> Mike
> 
> On Fri, Sep 26, 2008 at 2:03 PM, ozziegt <[EMAIL PROTECTED]> wrote:
> 
> >   I have a popup with an addedEffect defined on it. It works great
when
> > I call PopUpManager.addPopup, but if I click anyhere while the effect
> > is in progress, looks like the tweening engine barfs since the popup
> > is gone.
> >
> > Any suggestions on what I can to do prevent this from happening?
> >
> > Here is the top of the stacktrace:
> >
> > TypeError: Error #1009: Cannot access a property or method of a null
> > object reference.
> > at
> >
> >
mx.effects.effectClasses::ZoomInstance/onTweenUpdate()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:422]
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




RE: [flexcoders] dataProvider.editField not posting change to DataGrid?

2008-09-26 Thread Tracy Spratt
editField should handle the event dispatching fine and you should not
need to use the invalidation manually.  Have you tried it without that?

 

Refresh is re-applying the filter, are you sure you want that?

 

Also, though I doubt is it related, do not use lastResult in an AS
function.  It is intended for binding expressions only.  It might work
usually, but its value could be changed by framework when you do not
expect.  Instead do::

fundingCollection=ArrayCollection(event.result.fundinglist.funding) ;

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nolanathomas
Sent: Friday, September 26, 2008 2:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dataProvider.editField not posting change to
DataGrid?

 

Hello,

I am working on a prototype. Getting the data form an HttpService and
loading it into an bindable ArrayCollection for my fundDg DataGrid.
When i call editField in my ActionScript the change isn't refreshing
back to the DataGrid...

i)
http://localhost:8080/funding-service.do
 "
result="fundingServiceResultListener(event);">

ii)
[Bindable] private var fundingCollection:ArrayCollection ;
private function fundingServiceResultListener( event:ResultEvent ):void
{
fundingCollection=
ArrayCollection(fundingService.lastResult.fundinglist.funding) ;
}

iv) when i do the following nothing happens to the data grid

fundDg.dataProvider.editField(fundDg.selectedIndex, "fund", "MONKEY" ) ;
fundDg.invalidateProperties() ; 
fundDg.dataProvider.refresh() ;

Regards,

Nolan

 



[flexcoders] dataProvider.editField not posting change to DataGrid?

2008-09-26 Thread nolanathomas
Hello,

I am working on a prototype. Getting the data form an HttpService and
loading it into an bindable ArrayCollection for my fundDg DataGrid.
When i call editField in my ActionScript the change isn't refreshing
back to the DataGrid...

i)
http://localhost:8080/funding-service.do";
result="fundingServiceResultListener(event);">

ii)
[Bindable] private var fundingCollection:ArrayCollection ;
private function fundingServiceResultListener( event:ResultEvent ):void {
 fundingCollection=
ArrayCollection(fundingService.lastResult.fundinglist.funding) ;
}

iv) when i do the following nothing happens to the data grid

fundDg.dataProvider.editField(fundDg.selectedIndex, "fund", "MONKEY" ) ;
fundDg.invalidateProperties() ; 
fundDg.dataProvider.refresh() ;

Regards,

Nolan









[flexcoders] Re: Sharing xml data across components

2008-09-26 Thread Jimmy Neutron
Many thanks tracy(& wesley) and yes i was intending to change to contents of 
the scroller on click - whose public property is text at the moment - an 
adoption of venkat's example on his blog 
http://butterfliesandbugs.wordpress.com/2007/09/06/marquee-component/

so i now have to find out how to parse to this

thanks for your patience

JN




  

Re: [flexcoders] Error when PopupManager hides a popup in the middle of an effect

2008-09-26 Thread Michael Schmalle
Hi,
That is an interesting error. Basically it's telling you that the tween for
the actual effect got de-referenced somehow.

two places that could happen;

end()

and onTweenEnd()

Can you get a simple example to reproduce this in mxml? ... Quick little
application.

Mike

On Fri, Sep 26, 2008 at 2:03 PM, ozziegt <[EMAIL PROTECTED]> wrote:

>   I have a popup with an addedEffect defined on it. It works great when
> I call PopUpManager.addPopup, but if I click anyhere while the effect
> is in progress, looks like the tweening engine barfs since the popup
> is gone.
>
> Any suggestions on what I can to do prevent this from happening?
>
> Here is the top of the stacktrace:
>
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
> at
>
> mx.effects.effectClasses::ZoomInstance/onTweenUpdate()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:422]
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread djbrown_rotonews
We have a winner! My filterFunction for this collection checks on 
that attrib (among others) that I am modifying. I didn't realize the 
collection would be filtered without an explicit call to refresh().

thanks!

--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
> Do you have a filter on the collection?
> 
> 
> On 9/26/08 9:00 AM, "djbrown_rotonews" <[EMAIL PROTECTED]> 
wrote:
> 
> 
> 
> 
> My entire class (SOCAdvisorVO) is marked as Bindable:
> 
> [Bindable]
> public class SOCAdvisorVO
> {
> // used for problem flight 'cleared'
> public var flightHasBeenClearedByUser:Boolean=false;
> 
> --- In flexcoders@yahoogroups.com  , "Michael Schmalle"
>  wrote:
> >
> > Hi,
> > Sounds like you need to check your bindings.
> >
> > I don't think there is any way possible that the ArrayCollection
> can become
> > intelligent and start deleting items without being told to by 
some
> outside
> > force. ;-)
> >
> > Sounds like it has to do with the;
> >
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true
> >
> > That would be my guess.
> >
> > Mike
> >
> > On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
> > djbrown_rotonews@> wrote:
> >
> > >   has anyone run into this problem? The code below is 
*removing*
> the
> > > item from the ArrayCollection when I modify that one attribute 
on
> > > the object. And the size of my ArrayCollection isn't increasing
> > > after the call to addItem() either. the call to getItemIndex is
> > > working just fine, but the object is removed and the size of 
the
> > > ArrayCollection is decreased by 1 when the
> > > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > > line is reached.
> > >
> > > any ideas?
> > >
> > > 
> > > var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> > > var indexOfFlightToEdit:int =
> > > flightsForStation.getItemIndex(flightToMarkAsRemoved);
> > > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > >
> > > // for some reason, simply setting the attrib to true is 
causing
> > > //the item to be removed from the array collection.
> > > flightsForStation.addItem(flightToMarkAsRemoved);
> > >
> > >
> > >
> >
> >
> >
> > --
> > Teoti Graphix, LLC
> > http://www.teotigraphix.com
> >
> > Teoti Graphix Blog
> > http://www.blog.teotigraphix.com
> >
> > You can find more by solving the problem then by 'asking the
> question'.
> >
>




[flexcoders] Error when PopupManager hides a popup in the middle of an effect

2008-09-26 Thread ozziegt
I have a popup with an addedEffect defined on it. It works great when
I call PopUpManager.addPopup, but if I click anyhere while the effect
is in progress, looks like the tweening engine barfs since the popup
is gone.

Any suggestions on what I can to do prevent this from happening?


Here is the top of the stacktrace:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.effects.effectClasses::ZoomInstance/onTweenUpdate()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:422]



[flexcoders] Re: Variable width column to fill a variable width datagrid?

2008-09-26 Thread ozziegt
Thanks. Yeah I built a sample and I can't get the bug to occur there.
So I don't know what is going on. :(

Time to debug further I guess...

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Sorry, this line should be:
> 
>   
> 
> I'm an idiot. :)
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> >
> > Hmm, not sure what to tell you. The example below works for me; the
> > third column takes up the rest of the available space. The only thing
> > that I can think of, is that perhaps the width of the DataGrid is
> > turning out to be smaller than the sum of the fixed column widths. In
> > this case the columns would all get resized in proportion.
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > -TH
> > --- In flexcoders@yahoogroups.com, "ozziegt" osman.ullah@ wrote:
> > >
> > > That is what I have tried, and it is not working. The documentation
> > > says that a datagridcolumn has a default width of 100. I haven't
> been
> > > able to find anything in the flex documentation to mention the
> > > possibility of a variable width column.
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Are you setting explicit width values for the columns that you
> want
> > to
> > > > remain fixed? Thie following code should keep the first two
> columns
> > at
> > > > a fixed width and the third column should take up the rest of the
> > > > variable width:
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "ozziegt"  wrote:
> > > > >
> > > > > I have a datagrid which I want to be variable width. I need some
> > of
> > > > > the columns to remain fixed width while maybe one or two expand
> to
> > > > > fill the rest of the space. However, any solution I am trying
> > isn't
> > > > > working. The DataGrid is resizing all the columns. Any
> > suggestions?
> > > > >
> > > > > Thanks
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tim Hoff

Something must be going on in your code that is setting the
selectedChild or selectedIndex.  As Tracy suggests, post some code and
maybe someone can help.  Another approach is to create a new test
application and build up the components from scratch; to see where the
problem is occuring.   More than likely an event (probably change) is
causing some code to execute that is setting the index.

-TH

--- In flexcoders@yahoogroups.com, "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> When I hit the 2nd tab, it flickers and the 1st tab is displayed
> (still since I started on the first tab). I hit it again and he
> contents of the 2nd tab are displayed
>
> Thanks
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > So, when you click the 2nd tab, does the 2nd tab remain selected, or
> > does it switch back to the first tab? If it stays on the 2nd tab,
> are
> > you still seeing the content from the first tab, or is it just
> blank;
> > until you click the 2nd tab again?
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> > wrote:
> > >
> > > TH -
> > >
> > > No, I m not doing that, thats what I thought it was originally.
> > >
> > > Thanks
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Cool, one other thing to check would be if you are manually
> setting
> > > the
> > > > selectedIndex of the TabNavigator anywhere. Just guessing
> though;
> > > > without seeing the code.
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "donald_d_hook"
> 
> > > > wrote:
> > > > >
> > > > > TH -
> > > > >
> > > > > THanks - I will give it a shot and see.
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > > >
> > > > > >
> > > > > > Sounds suspiciously like a callLater() solution. Have you
> tested
> > > > > > whether the creationComplete event is actually firing,
> before
> > > you
> > > > > click
> > > > > > tab2, for all of the child components? Sometimes not setting
> the
> > > > > data,
> > > > > > in a timely fashion, can also make a view appear blank.
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, Manu Dhanda
> 
> > > > > > wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi Tracy,
> > > > > > >
> > > > > > > It's really an issue with TabNavigator and we had faced
> it.
> > > > > > > I won't say that I need to click the tab twice, but I need
> to
> > > > > switch
> > > > > > back to
> > > > > > > Tab1 and then come back to Tab2 to see the content on my
> 2nd
> > > Tab.
> > > > > > >
> > > > > > > And yes, already tried with creationPolicy='all', but it
> din't
> > > > > worked.
> > > > > > >
> > > > > > > -Manu.
> > > > > > >
> > > > > > >
> > > > > > > Tracy Spratt wrote:
> > > > > > > >
> > > > > > > > Are you programatically doing anything with the content
> of
> > > tab
> > > > > 2?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Do you understand about deferred instantiation and
> > > > > creationPolicy?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Tracy
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 
> > > > > > > >
> > > > > > > > From: flexcoders@yahoogroups.com
> > > > > [mailto:[EMAIL PROTECTED]
> > > > > > On
> > > > > > > > Behalf Of donald_d_hook
> > > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > > To: flexcoders@yahoogroups.com
> > > > > > > > Subject: [flexcoders] TabNavigator - have to click twice
> on
> > > tab
> > > > > to
> > > > > > > > display page
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I have a tab navigator with 3 tabs. Each tab has a
> canvas
> > > with
> > > > > > > > several components on it. when the page is displayed,
> you
> > > see
> > > > > the
> > > > > > 1st
> > > > > > > > tab. When I navigate to the 2nd tab, I have to click the
> 2nd
> > > tab
> > > > > > > > twice in order to view the contents of the tab. It looks
> > > like
> > > > > the
> > > > > > > > first click on the 2nd tab goes back to the first tab,
> then
> > > the
> > > > > 2nd
> > > > > > > > click displays the contents of the 2nd tab.
> > > > > > > >
> > > > > > > > Was wondering if anyone has experienced this behavior
> and
> > > > > wondering
> > > > > > > > what I am doing wrong.
> > > > > > > >
> > > > > > > > Thanks in advance.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-
> tab-
> > > to-
> > > > > displ\
> > > > > > ay-page-tp19675428p19681501.html
> > > > > > > Sent from the FlexCoders mailing list archive at
> Nabble.com.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
When I hit the 2nd tab, it flickers and the 1st tab is displayed 
(still since I started on the first tab).  I hit it again and he 
contents of the 2nd tab are displayed

Thanks


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> So, when you click the 2nd tab, does the 2nd tab remain selected, or
> does it switch back to the first tab?  If it stays on the 2nd tab, 
are
> you still seeing the content from the first tab, or is it just 
blank;
> until you click the 2nd tab again?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > No, I m not doing that, thats what I thought it was originally.
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Cool, one other thing to check would be if you are manually 
setting
> > the
> > > selectedIndex of the TabNavigator anywhere. Just guessing 
though;
> > > without seeing the code.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "donald_d_hook" 

> > > wrote:
> > > >
> > > > TH -
> > > >
> > > > THanks - I will give it a shot and see.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Sounds suspiciously like a callLater() solution. Have you 
tested
> > > > > whether the creationComplete event is actually firing, 
before
> > you
> > > > click
> > > > > tab2, for all of the child components? Sometimes not setting 
the
> > > > data,
> > > > > in a timely fashion, can also make a view appear blank.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, Manu Dhanda 

> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tracy,
> > > > > >
> > > > > > It's really an issue with TabNavigator and we had faced 
it.
> > > > > > I won't say that I need to click the tab twice, but I need 
to
> > > > switch
> > > > > back to
> > > > > > Tab1 and then come back to Tab2 to see the content on my 
2nd
> > Tab.
> > > > > >
> > > > > > And yes, already tried with creationPolicy='all', but it 
din't
> > > > worked.
> > > > > >
> > > > > > -Manu.
> > > > > >
> > > > > >
> > > > > > Tracy Spratt wrote:
> > > > > > >
> > > > > > > Are you programatically doing anything with the content 
of
> > tab
> > > > 2?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Do you understand about deferred instantiation and
> > > > creationPolicy?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Tracy
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > From: flexcoders@yahoogroups.com
> > > > [mailto:[EMAIL PROTECTED]
> > > > > On
> > > > > > > Behalf Of donald_d_hook
> > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > To: flexcoders@yahoogroups.com
> > > > > > > Subject: [flexcoders] TabNavigator - have to click twice 
on
> > tab
> > > > to
> > > > > > > display page
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I have a tab navigator with 3 tabs. Each tab has a 
canvas
> > with
> > > > > > > several components on it. when the page is displayed, 
you
> > see
> > > > the
> > > > > 1st
> > > > > > > tab. When I navigate to the 2nd tab, I have to click the 
2nd
> > tab
> > > > > > > twice in order to view the contents of the tab. It looks
> > like
> > > > the
> > > > > > > first click on the 2nd tab goes back to the first tab, 
then
> > the
> > > > 2nd
> > > > > > > click displays the contents of the 2nd tab.
> > > > > > >
> > > > > > > Was wondering if anyone has experienced this behavior 
and
> > > > wondering
> > > > > > > what I am doing wrong.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-
tab-
> > to-
> > > > displ\
> > > > > ay-page-tp19675428p19681501.html
> > > > > > Sent from the FlexCoders mailing list archive at 
Nabble.com.
> > > > > >
> > > > >
> > > >
> > >
> >
>





Re: [flexcoders] Re: Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread Paul Andrews
+1
- Original Message - 
From: "nathanpdaniel" <[EMAIL PROTECTED]>
To: 
Sent: Friday, September 26, 2008 6:31 PM
Subject: [flexcoders] Re: Flex Books - Detailed/Nitty-Gritty


>I highly suggest the Flex 3 Cookbook - not so great for "tutorials"
> but it is "freakin' AWESOME" (my thoughts personally... :D) if you
> have a decent grasp & know what you wanna do.  I use it everyday
>
> Just a thought!
> -Nathan D.
>
>
> --- In flexcoders@yahoogroups.com, Chet Haase <[EMAIL PROTECTED]> wrote:
>>
>>
>> Anyways, I guess coming from Swing there are books (such as Filthy
>> Rich Clients, one author Chet Haase works for Adobe now) which cover
>>
>> Yeah, I heard that rumor as well...
>>
>> lots of neat tricks, details, expert type info. That's what I was
>> sort of wondering about.
>>
>> To be fair, Filthy Rich Clients was written when Java/Swing/2D was
> pretty mature. At the time, the only other Swing books available just
> covered the basics. Flex is newer, so maybe the advanced books or
> books covering specific niche topics about Flex aren't there yet
> because most people are still getting into it. On the other hand,
> it's a very approachable platform, so it doesn't take too much of an
> intro to get you to a place where you can dive in.
>>
>> It is worth checking out some of the blogs and learning sites out
> there; it's not as easy as having it collected in a table of
> contents, but there's some nice deep topics covered out there, both
> for AS3/Flash development in general and for Flex in particular.
>>
>> Chet.
>>
>>
>> --- In flexcoders@yahoogroups.com 40yahoogroups.com>, Samuel Colak  wrote:
>> >
>> >
>> > This strikes me a bit odd - what do people think Flex is ? It is
>> > simply a tool
>> > for AS3 development - or do people think this is a RAD tool like
> VB
>> > where everything
>> > is just point and click with no code ?
>> >
>> > Craig - unfortunately the actual best book is the Adobe online
>> > tutorials and API
>> > reference - its not terribly difficult to pick up once you have an
>> > understanding or
>> > background in C# or Java. If you are new to the development scene,
>> > then obviously
>> > flex will be rather more "daunting" - but it is worthwhile.
>> >
>> > On Sep 26, 2008, at 12:43 PM, cwicky99 wrote:
>> >
>> > > I'm looking for one or more books to really dive into Flex (and
>> > > perhaps AS3). I know the basics and have been using it for a
> while,
>> > > but I really want to get into the advanced topics and the
> details for
>> > > some serious Flex development. Most of the books I've seen all
> seem
>> > > to have the some Table of Contents covering very basic stuff.
>> > >
>> > > Is there anything out there that covers all the details (you
> know
>> > > sometimes when you read a blog, or watch a videocast you find
> out
>> > > about a little nugget of information you had never heard of)?
>> > >
>> > > Thanks!
>> > >
>> > >
>> > >
>> >
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



RE: [flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tracy Spratt
This is definitely not normal behavior, so you must have something
unusual going on.  We haven't seen any code so we are just stabbing in
the dark.

 

Rip out everything until it works, start adding it back til it breaks.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Friday, September 26, 2008 12:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: TabNavigator - have to click twice on tab to
display page

 


So, when you click the 2nd tab, does the 2nd tab remain selected, or
does it switch back to the first tab? If it stays on the 2nd tab, are
you still seeing the content from the first tab, or is it just blank;
until you click the 2nd tab again?

-TH

--- In flexcoders@yahoogroups.com 
, "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> TH -
>
> No, I m not doing that, thats what I thought it was originally.
>
> Thanks
>
> --- In flexcoders@yahoogroups.com
 , "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Cool, one other thing to check would be if you are manually setting
> the
> > selectedIndex of the TabNavigator anywhere. Just guessing though;
> > without seeing the code.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com
 , "donald_d_hook" 
> > wrote:
> > >
> > > TH -
> > >
> > > THanks - I will give it a shot and see.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
 , "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Sounds suspiciously like a callLater() solution. Have you tested
> > > > whether the creationComplete event is actually firing, before
> you
> > > click
> > > > tab2, for all of the child components? Sometimes not setting the
> > > data,
> > > > in a timely fashion, can also make a view appear blank.
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com
 , Manu Dhanda 
> > > > wrote:
> > > > >
> > > > >
> > > > > Hi Tracy,
> > > > >
> > > > > It's really an issue with TabNavigator and we had faced it.
> > > > > I won't say that I need to click the tab twice, but I need to
> > > switch
> > > > back to
> > > > > Tab1 and then come back to Tab2 to see the content on my 2nd
> Tab.
> > > > >
> > > > > And yes, already tried with creationPolicy='all', but it din't
> > > worked.
> > > > >
> > > > > -Manu.
> > > > >
> > > > >
> > > > > Tracy Spratt wrote:
> > > > > >
> > > > > > Are you programatically doing anything with the content of
> tab
> > > 2?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Do you understand about deferred instantiation and
> > > creationPolicy?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Tracy
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > > From: flexcoders@yahoogroups.com
 
> > > [mailto:flexcoders@yahoogroups.com
 ]
> > > > On
> > > > > > Behalf Of donald_d_hook
> > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > To: flexcoders@yahoogroups.com
 
> > > > > > Subject: [flexcoders] TabNavigator - have to click twice on
> tab
> > > to
> > > > > > display page
> > > > > >
> > > > > >
> > > > > >
> > > > > > I have a tab navigator with 3 tabs. Each tab has a canvas
> with
> > > > > > several components on it. when the page is displayed, you
> see
> > > the
> > > > 1st
> > > > > > tab. When I navigate to the 2nd tab, I have to click the 2nd
> tab
> > > > > > twice in order to view the contents of the tab. It looks
> like
> > > the
> > > > > > first click on the 2nd tab goes back to the first tab, then
> the
> > > 2nd
> > > > > > click displays the contents of the 2nd tab.
> > > > > >
> > > > > > Was wondering if anyone has experienced this behavior and
> > > wondering
> > > > > > what I am doing wrong.
> > > > > >
> > > > > > Thanks in advance.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-
 
> to-
> > > displ\
> > > > ay-page-tp19675428p19681501.html
> > > > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > > > >
> > > >
> > >
> >
>

 



RE: [flexcoders] Re: e4x filtering of xml nodes...

2008-09-26 Thread Tracy Spratt
Also, your myData variable does not have a type declared.  You should
always type your vars.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Durres76
Sent: Friday, September 26, 2008 10:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: e4x filtering of xml nodes...

 

Daniel, that was exactly the problem. some of my MetaData nodes did
not have entryid items and that's why i was getting the errors. your
suggestion takes care of that.

Thanks,
d

 



[flexcoders] Re: Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread nathanpdaniel
I highly suggest the Flex 3 Cookbook - not so great for "tutorials" 
but it is "freakin' AWESOME" (my thoughts personally... :D) if you 
have a decent grasp & know what you wanna do.  I use it everyday 

Just a thought!
-Nathan D.


--- In flexcoders@yahoogroups.com, Chet Haase <[EMAIL PROTECTED]> wrote:
>
> 
> Anyways, I guess coming from Swing there are books (such as Filthy
> Rich Clients, one author Chet Haase works for Adobe now) which cover
> 
> Yeah, I heard that rumor as well...
> 
> lots of neat tricks, details, expert type info. That's what I was
> sort of wondering about.
> 
> To be fair, Filthy Rich Clients was written when Java/Swing/2D was 
pretty mature. At the time, the only other Swing books available just 
covered the basics. Flex is newer, so maybe the advanced books or 
books covering specific niche topics about Flex aren't there yet 
because most people are still getting into it. On the other hand, 
it's a very approachable platform, so it doesn't take too much of an 
intro to get you to a place where you can dive in.
> 
> It is worth checking out some of the blogs and learning sites out 
there; it's not as easy as having it collected in a table of 
contents, but there's some nice deep topics covered out there, both 
for AS3/Flash development in general and for Flex in particular.
> 
> Chet.
> 
> 
> --- In flexcoders@yahoogroups.com, Samuel Colak  wrote:
> >
> >
> > This strikes me a bit odd - what do people think Flex is ? It is
> > simply a tool
> > for AS3 development - or do people think this is a RAD tool like 
VB
> > where everything
> > is just point and click with no code ?
> >
> > Craig - unfortunately the actual best book is the Adobe online
> > tutorials and API
> > reference - its not terribly difficult to pick up once you have an
> > understanding or
> > background in C# or Java. If you are new to the development scene,
> > then obviously
> > flex will be rather more "daunting" - but it is worthwhile.
> >
> > On Sep 26, 2008, at 12:43 PM, cwicky99 wrote:
> >
> > > I'm looking for one or more books to really dive into Flex (and
> > > perhaps AS3). I know the basics and have been using it for a 
while,
> > > but I really want to get into the advanced topics and the 
details for
> > > some serious Flex development. Most of the books I've seen all 
seem
> > > to have the some Table of Contents covering very basic stuff.
> > >
> > > Is there anything out there that covers all the details (you 
know
> > > sometimes when you read a blog, or watch a videocast you find 
out
> > > about a little nugget of information you had never heard of)?
> > >
> > > Thanks!
> > >
> > >
> > >
> >
>




RE: [flexcoders] Quick reference to Application.application

2008-09-26 Thread Tracy Spratt
And if your conponents are not intended for use in other apps, you can
type the variable as the application name and get type checking and code
hinting.

private var _appMain:MyMainAppMxmlFileName = Application.application;

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Friday, September 26, 2008 7:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Quick reference to Application.application

 


- Original Message - 
From: "itdanny2002" <[EMAIL PROTECTED]
 >
To: mailto:flexcoders%40yahoogroups.com> >
Sent: Friday, September 26, 2008 11:50 AM
Subject: [flexcoders] Quick reference to Application.application

>I have main application and many modules.
> While I do the coding in modules, I need
> to Application.application for refering
> to variable and functions in Main application.
> All works but I want to type shorted name.
> Any methods ?

Quick and dirty - in your code declare: var a:Object = 
Application.application;

It won't make your code very readable and there are better ways to go
about 
things - for example using a singleton class to hold 'global' variables 
rather than refering to variables declared in the main application.

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails
&productId=2&postId=262
 

Paul. 

 



Re: [flexcoders] Re: getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread Matt Chotin
Do you have a filter on the collection?


On 9/26/08 9:00 AM, "djbrown_rotonews" <[EMAIL PROTECTED]> wrote:




My entire class (SOCAdvisorVO) is marked as Bindable:

[Bindable]
public class SOCAdvisorVO
{
// used for problem flight 'cleared'
public var flightHasBeenClearedByUser:Boolean=false;

--- In flexcoders@yahoogroups.com  , 
"Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> Sounds like you need to check your bindings.
>
> I don't think there is any way possible that the ArrayCollection
can become
> intelligent and start deleting items without being told to by some
outside
> force. ;-)
>
> Sounds like it has to do with the;
>
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true
>
> That would be my guess.
>
> Mike
>
> On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
> [EMAIL PROTECTED]> wrote:
>
> >   has anyone run into this problem? The code below is *removing*
the
> > item from the ArrayCollection when I modify that one attribute on
> > the object. And the size of my ArrayCollection isn't increasing
> > after the call to addItem() either. the call to getItemIndex is
> > working just fine, but the object is removed and the size of the
> > ArrayCollection is decreased by 1 when the
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > line is reached.
> >
> > any ideas?
> >
> > 
> > var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> > var indexOfFlightToEdit:int =
> > flightsForStation.getItemIndex(flightToMarkAsRemoved);
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> >
> > // for some reason, simply setting the attrib to true is causing
> > //the item to be removed from the array collection.
> > flightsForStation.addItem(flightToMarkAsRemoved);
> >
> >
> >
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the
question'.
>





[flexcoders] Re: Programming 101: event target

2008-09-26 Thread gwangdesign
Hi Matt and all,

Thanks for the clarification. I know you guys are busy;)

The DOM thing, "target" and "currentTarget" make sense. If a button or
its parent container registers interest in a mouse click event, either
the button or its container becomes "currentTarget" while the button
is the "target" at bubbling propagation.

In Flex/Flash, things like SystemManager (which is instantiated by
Application and which inherits from flash.display.MovieClip) can also
register its interest in any UIComponent(not stylized skins that are
drawn by the drawing API), which as Matt says will "broadcast" the
event(i.e., call the event handlers). In this case, "currentTarget" is
the systemManager and "target" can be the visual stuff or the loader
of the visual content "under" the stage who is the source of the event.

Geng
--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
> For one thing, target comes a little bit from the W3C DOM event
model. It was standard naming for that I believe.
> 
> Target represents the object on which can be thought of as having
originally broadcast the event.  Whomever mentioned the UI part of it
is right on.  When you think of the MouseEvent CLICK, the target is
the actual display object that was clicked on.  CurrentTarget is
useful when you're dealing with event propagation, it reflects the
object that is currently broadcasting the event.  For example, if a
button was clicked on but that button lives within a container, the
container may dispatch the CLICK event via bubbling.  Basically
indicating that something within it was clicked. In that case,
currentTarget is the container, target is the original button that was
clicked.
> 
> I agree source might be a better name, but I think the UI aspect of
it kind of held.
> 
> Matt
> 
> 
> On 9/24/08 3:04 PM, "gwangdesign" <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> I just read the documentation for Flex, "The Event Flow":
> 
> "Flash Player or AIR dispatches event objects whenever an event
> occurs. If the event target is not on the display list, Flash Player
> or AIR dispatches the event object directly to the event target. For
> example, Flash Player dispatches the progress event object directly to
> a URLStream object. If the event target is on the display list,
> however, Flash Player dispatches the event object into the display
> list, and the event object travels through the display list to the
> event target."
> 
>
http://livedocs.adobe.com/flex/3/html/help.html?content=16_Event_handling_4.html
> 
> It looks to me like, in the case in which they mention above, "Flash
> Player" or "AIR" becomes the source who dispatches the event object
> and the event target is actually the one that "listens" to the event.
> Does this "target" term then sound something that makes more sense to
> lower level programming (such as Flash Player engineers?)? From an API
> user's point of view, an event source is only "source" anyways...
> 
> Thanks.
> 
> --- In flexcoders@yahoogroups.com
 , Samuel Colak  wrote:
> >
> > Umm
> >
> > You have "currentTarget" and "target" - most of the time, these return
> > very different
> > values depending on what happened ...
> >
> > On Sep 24, 2008, at 11:14 PM, Chuck Preston Jr. wrote:
> >
> > > For the same reason tree structures are upside down, with their
> > > roots at the top. ActionScript
> > > is from the Bizzaro world.
> > >
> > > --- In flexcoders@yahoogroups.com
 , "gwangdesign" 
> > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > I am just wondering why, in ActionScript, the subject of an
event is
> > > > called a "target"? Is it kind of counter intuitive? In Java, it is
> > > > called "source", which sounds much more understandable to me.
> > > >
> > > > Thanks.
> > > >
> > >
> > >
> > >
> >
>




[flexcoders] Re: getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread djbrown_rotonews
My entire class (SOCAdvisorVO) is marked as Bindable:

[Bindable]
public class SOCAdvisorVO
{
// used for problem flight 'cleared'
public var flightHasBeenClearedByUser:Boolean=false;


--- In flexcoders@yahoogroups.com, "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> Sounds like you need to check your bindings.
> 
> I don't think there is any way possible that the ArrayCollection 
can become
> intelligent and start deleting items without being told to by some 
outside
> force. ;-)
> 
> Sounds like it has to do with the;
> 
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true
> 
> That would be my guess.
> 
> Mike
> 
> On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
> [EMAIL PROTECTED]> wrote:
> 
> >   has anyone run into this problem? The code below is *removing* 
the
> > item from the ArrayCollection when I modify that one attribute on
> > the object. And the size of my ArrayCollection isn't increasing
> > after the call to addItem() either. the call to getItemIndex is
> > working just fine, but the object is removed and the size of the
> > ArrayCollection is decreased by 1 when the
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > line is reached.
> >
> > any ideas?
> >
> > 
> > var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> > var indexOfFlightToEdit:int =
> > flightsForStation.getItemIndex(flightToMarkAsRemoved);
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> >
> > // for some reason, simply setting the attrib to true is causing
> > //the item to be removed from the array collection.
> > flightsForStation.addItem(flightToMarkAsRemoved);
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the 
question'.
>




[flexcoders] Passing Variables from PHP to Flex

2008-09-26 Thread ghus32
Hello Everyone,

I have an upload functions in Flex that works fine using php as a 
backend.

I can pass the data to the PHP but I cannot send data back ex.. like a 
filename..

Anyone know how to do this?


Thanks




[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tim Hoff

So, when you click the 2nd tab, does the 2nd tab remain selected, or
does it switch back to the first tab?  If it stays on the 2nd tab, are
you still seeing the content from the first tab, or is it just blank;
until you click the 2nd tab again?

-TH

--- In flexcoders@yahoogroups.com, "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> TH -
>
> No, I m not doing that, thats what I thought it was originally.
>
> Thanks
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Cool, one other thing to check would be if you are manually setting
> the
> > selectedIndex of the TabNavigator anywhere. Just guessing though;
> > without seeing the code.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> > wrote:
> > >
> > > TH -
> > >
> > > THanks - I will give it a shot and see.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Sounds suspiciously like a callLater() solution. Have you tested
> > > > whether the creationComplete event is actually firing, before
> you
> > > click
> > > > tab2, for all of the child components? Sometimes not setting the
> > > data,
> > > > in a timely fashion, can also make a view appear blank.
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, Manu Dhanda 
> > > > wrote:
> > > > >
> > > > >
> > > > > Hi Tracy,
> > > > >
> > > > > It's really an issue with TabNavigator and we had faced it.
> > > > > I won't say that I need to click the tab twice, but I need to
> > > switch
> > > > back to
> > > > > Tab1 and then come back to Tab2 to see the content on my 2nd
> Tab.
> > > > >
> > > > > And yes, already tried with creationPolicy='all', but it din't
> > > worked.
> > > > >
> > > > > -Manu.
> > > > >
> > > > >
> > > > > Tracy Spratt wrote:
> > > > > >
> > > > > > Are you programatically doing anything with the content of
> tab
> > > 2?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Do you understand about deferred instantiation and
> > > creationPolicy?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Tracy
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > > From: flexcoders@yahoogroups.com
> > > [mailto:[EMAIL PROTECTED]
> > > > On
> > > > > > Behalf Of donald_d_hook
> > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > To: flexcoders@yahoogroups.com
> > > > > > Subject: [flexcoders] TabNavigator - have to click twice on
> tab
> > > to
> > > > > > display page
> > > > > >
> > > > > >
> > > > > >
> > > > > > I have a tab navigator with 3 tabs. Each tab has a canvas
> with
> > > > > > several components on it. when the page is displayed, you
> see
> > > the
> > > > 1st
> > > > > > tab. When I navigate to the 2nd tab, I have to click the 2nd
> tab
> > > > > > twice in order to view the contents of the tab. It looks
> like
> > > the
> > > > > > first click on the 2nd tab goes back to the first tab, then
> the
> > > 2nd
> > > > > > click displays the contents of the 2nd tab.
> > > > > >
> > > > > > Was wondering if anyone has experienced this behavior and
> > > wondering
> > > > > > what I am doing wrong.
> > > > > >
> > > > > > Thanks in advance.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-
> to-
> > > displ\
> > > > ay-page-tp19675428p19681501.html
> > > > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > > > >
> > > >
> > >
> >
>





Re: [flexcoders] compc: locking assertion failure

2008-09-26 Thread Maciek Sakrejda
So after some research, this seems to be a Sun JRE problem:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373

Any idea whether the assertion failure really is harmless, as it seems
to be? This seems to affect a number of Java programs for some people,
and some of them crash when the assertion is triggered. Is it safe to
just ignore it?

Thanks,
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Maciek Sakrejda <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders 
Subject: [flexcoders] compc: locking assertion failure
Date: Thu, 25 Sep 2008 18:38:00 -0700

Running compc after adding some embedded assets, I get the following
assertion failure. The build seems to finish fine, but this is somewhat
disconcerting. Any ideas?

[compc] Locking assertion failure. Backtrace:
[compc] #0 /usr/lib/libxcb-xlib.so.0 [0xb740d767]
[compc] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb740d8b1]
[compc] #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x926071bd]
[compc]
#3 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
[0x926d9dce]
[compc]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
[0x926c3d77]
[compc]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
[0x926c3ef3]
[compc]
#6 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26)
 [0x926c4136]
[compc] #7 [0xb140f008]
[compc] #8 [0xb1408b6b]
[compc] #9 [0xb1408b6b]
[compc] #10 [0xb1406236]
[compc]
#11 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb76aceac]
[compc]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb787caa8]
[compc]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb76accdf]
[compc]
#14 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x32d)
 [0xb770a7ed]
[compc]
#15 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
 [0xb73ba30d]
[compc] #16 [0xb140e898]
[compc] #17 [0xb1408a94]
[compc] #18 [0xb1406236]
[compc]
#19 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb76aceac]
[compc] Locking assertion failure. Backtrace:
[compc] #0 /usr/lib/libxcb-xlib.so.0 [0xb740d767]
[compc] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb740d81e]
[compc] #2 /usr/lib/libX11.so.6 [0x92606518]
[compc] #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0x925fd0a6]
[compc]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
[0x926c30b9]
[compc]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
[0x926c3303]
[compc]
#6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
[0x926c3fa1]
[compc]
#7 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26)
 [0x926c4136]
[compc] #8 [0xb140f008]
[compc] #9 [0xb1408b6b]
[compc] #10 [0xb1408b6b]
[compc] #11 [0xb1406236]
[compc]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb76aceac]
[compc]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb787caa8]
[compc]
#14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so
[0xb76accdf]
[compc]
#15 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x32d)
 [0xb770a7ed]
[compc]
#16 
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
 [0xb73ba30d]
[compc] #17 [0xb140e898]
[compc] #18 [0xb1408a94]
[compc] #19 [0xb1406236]




 




[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
TH -

No, I m not doing that, thats what I thought it was originally.

Thanks

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Cool, one other thing to check would be if you are manually setting 
the
> selectedIndex of the TabNavigator anywhere.  Just guessing though;
> without seeing the code.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > THanks - I will give it a shot and see.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Sounds suspiciously like a callLater() solution. Have you tested
> > > whether the creationComplete event is actually firing, before 
you
> > click
> > > tab2, for all of the child components? Sometimes not setting the
> > data,
> > > in a timely fashion, can also make a view appear blank.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, Manu Dhanda 
> > > wrote:
> > > >
> > > >
> > > > Hi Tracy,
> > > >
> > > > It's really an issue with TabNavigator and we had faced it.
> > > > I won't say that I need to click the tab twice, but I need to
> > switch
> > > back to
> > > > Tab1 and then come back to Tab2 to see the content on my 2nd 
Tab.
> > > >
> > > > And yes, already tried with creationPolicy='all', but it din't
> > worked.
> > > >
> > > > -Manu.
> > > >
> > > >
> > > > Tracy Spratt wrote:
> > > > >
> > > > > Are you programatically doing anything with the content of 
tab
> > 2?
> > > > >
> > > > >
> > > > >
> > > > > Do you understand about deferred instantiation and
> > creationPolicy?
> > > > >
> > > > >
> > > > >
> > > > > Tracy
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED]
> > > On
> > > > > Behalf Of donald_d_hook
> > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > To: flexcoders@yahoogroups.com
> > > > > Subject: [flexcoders] TabNavigator - have to click twice on 
tab
> > to
> > > > > display page
> > > > >
> > > > >
> > > > >
> > > > > I have a tab navigator with 3 tabs. Each tab has a canvas 
with
> > > > > several components on it. when the page is displayed, you 
see
> > the
> > > 1st
> > > > > tab. When I navigate to the 2nd tab, I have to click the 2nd 
tab
> > > > > twice in order to view the contents of the tab. It looks 
like
> > the
> > > > > first click on the 2nd tab goes back to the first tab, then 
the
> > 2nd
> > > > > click displays the contents of the 2nd tab.
> > > > >
> > > > > Was wondering if anyone has experienced this behavior and
> > wondering
> > > > > what I am doing wrong.
> > > > >
> > > > > Thanks in advance.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-
to-
> > displ\
> > > ay-page-tp19675428p19681501.html
> > > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > > >
> > >
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tim Hoff

Cool, one other thing to check would be if you are manually setting the
selectedIndex of the TabNavigator anywhere.  Just guessing though;
without seeing the code.

-TH

--- In flexcoders@yahoogroups.com, "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> TH -
>
> THanks - I will give it a shot and see.
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Sounds suspiciously like a callLater() solution. Have you tested
> > whether the creationComplete event is actually firing, before you
> click
> > tab2, for all of the child components? Sometimes not setting the
> data,
> > in a timely fashion, can also make a view appear blank.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, Manu Dhanda 
> > wrote:
> > >
> > >
> > > Hi Tracy,
> > >
> > > It's really an issue with TabNavigator and we had faced it.
> > > I won't say that I need to click the tab twice, but I need to
> switch
> > back to
> > > Tab1 and then come back to Tab2 to see the content on my 2nd Tab.
> > >
> > > And yes, already tried with creationPolicy='all', but it din't
> worked.
> > >
> > > -Manu.
> > >
> > >
> > > Tracy Spratt wrote:
> > > >
> > > > Are you programatically doing anything with the content of tab
> 2?
> > > >
> > > >
> > > >
> > > > Do you understand about deferred instantiation and
> creationPolicy?
> > > >
> > > >
> > > >
> > > > Tracy
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED]
> > On
> > > > Behalf Of donald_d_hook
> > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] TabNavigator - have to click twice on tab
> to
> > > > display page
> > > >
> > > >
> > > >
> > > > I have a tab navigator with 3 tabs. Each tab has a canvas with
> > > > several components on it. when the page is displayed, you see
> the
> > 1st
> > > > tab. When I navigate to the 2nd tab, I have to click the 2nd tab
> > > > twice in order to view the contents of the tab. It looks like
> the
> > > > first click on the 2nd tab goes back to the first tab, then the
> 2nd
> > > > click displays the contents of the 2nd tab.
> > > >
> > > > Was wondering if anyone has experienced this behavior and
> wondering
> > > > what I am doing wrong.
> > > >
> > > > Thanks in advance.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-to-
> displ\
> > ay-page-tp19675428p19681501.html
> > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > >
> >
>





[flexcoders] Zoneinfo database to use for AIR applications.

2008-09-26 Thread george_w_canada
Anyone knows are there any best way to use the public zoneinfo
database (from original Olson database) in AIR applications?

http://en.wikipedia.org/wiki/Zoneinfo



[flexcoders] Re: Variable width column to fill a variable width datagrid?

2008-09-26 Thread Tim Hoff

Sorry, this line should be:

  

I'm an idiot. :)

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> Hmm, not sure what to tell you. The example below works for me; the
> third column takes up the rest of the available space. The only thing
> that I can think of, is that perhaps the width of the DataGrid is
> turning out to be smaller than the sum of the fixed column widths. In
> this case the columns would all get resized in proportion.
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> 
> 
> 
> 
> 
> 
> 
>
> -TH
> --- In flexcoders@yahoogroups.com, "ozziegt" osman.ullah@ wrote:
> >
> > That is what I have tried, and it is not working. The documentation
> > says that a datagridcolumn has a default width of 100. I haven't
been
> > able to find anything in the flex documentation to mention the
> > possibility of a variable width column.
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Are you setting explicit width values for the columns that you
want
> to
> > > remain fixed? Thie following code should keep the first two
columns
> at
> > > a fixed width and the third column should take up the rest of the
> > > variable width:
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "ozziegt"  wrote:
> > > >
> > > > I have a datagrid which I want to be variable width. I need some
> of
> > > > the columns to remain fixed width while maybe one or two expand
to
> > > > fill the rest of the space. However, any solution I am trying
> isn't
> > > > working. The DataGrid is resizing all the columns. Any
> suggestions?
> > > >
> > > > Thanks
> > > >
> > >
> >
>




[flexcoders] Re: Variable width column to fill a variable width datagrid?

2008-09-26 Thread Tim Hoff

Hmm, not sure what to tell you.  The example below works for me; the
third column takes up the rest of the available space.  The only thing
that I can think of, is that perhaps the width of the DataGrid is
turning out to be smaller than the sum of the fixed column widths.  In
this case the columns would all get resized in proportion.


http://www.adobe.com/2006/mxml";
layout="absolute">






 


-TH
--- In flexcoders@yahoogroups.com, "ozziegt" <[EMAIL PROTECTED]> wrote:
>
> That is what I have tried, and it is not working. The documentation
> says that a datagridcolumn has a default width of 100. I haven't been
> able to find anything in the flex documentation to mention the
> possibility of a variable width column.
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Are you setting explicit width values for the columns that you want
to
> > remain fixed? Thie following code should keep the first two columns
at
> > a fixed width and the third column should take up the rest of the
> > variable width:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "ozziegt"  wrote:
> > >
> > > I have a datagrid which I want to be variable width. I need some
of
> > > the columns to remain fixed width while maybe one or two expand to
> > > fill the rest of the space. However, any solution I am trying
isn't
> > > working. The DataGrid is resizing all the columns. Any
suggestions?
> > >
> > > Thanks
> > >
> >
>




[flexcoders] Re: Livecycle / FMS3 - remote calls

2008-09-26 Thread Anthony DeBonis
Looks to be a bug that is solved in BlazeDS - so you would expect it to 
work in LCDS.

Can you try it with BlazeDS?

Bug https://bugs.adobe.com/jira/browse/BLZ-83 



Re: [flexcoders] Flex Framework - To cache or not to cache? - Specific case

2008-09-26 Thread Steve Mathews
First off I don't understand this line
"I suspect that the app would need to be marked as a
 trusted file using Flash Player Settings Manager, otherwise it would
 result in Security Sandbox violation."

Secondly you seem to be listing configuration (i.e. work on your side) as
a negative. In my opinion you should only consider your user's point of view
to make the determination.

Your calculations are pretty accurate as to the size differences and you
seem to have a good understanding of the possible scenarios that users will
face when visiting your app. I would say that in this case you should BOTH
look into modularizing your app and implementing the framework RSLs. This
will give users who have the framework a better experience, and by using
modules give all your users a better experience. Setting up the framework
caching is so simple that it seems odd that you would not do it for an
application of this size.

Steve

On Thu, Sep 25, 2008 at 5:53 PM, tenni5fan <[EMAIL PROTECTED]> wrote:

> Hi,
> I have read previous posts on Flex framework caching, did some
> experiments with different compiler options and searched Google.  Many
> posts advocate using the framework cache in general, however what is
> your opinion for this specific case.
> I am working on the app having 1.6Mb in size when compiled with Flex
> framework statically linked.  If I use framework RSL, the app size
> goes down to 1.2Mb.  The goal I'm trying to achieve is to have the app
> downloaded as fast as possible the first and subsequent times users
> visit the site.
> Originally I thought it would be a good idea to use framework caching
> - the first time users would incur slight penalty 0.1Mb (1.2+0.5 vs
> 1.6) vs subsequent downloads of 1.2Mb.  Unless a framework is cached
> already by visiting some other app (I think the percentage of our
> users having the framework already cached by visiting other website is
> very small).
> That penalty of 0.1M does not seem as much, but should result in
> longer than 10% delay because there will 2 separate http requests.
> The bigger concern is that after the first visit our users will
> already have the application cached in the browser cache and will load
> the app from there when they subsequently visit.  Of course the cache
> could be cleared, or we can release a newer version, but in majority
> of cases users should be getting the app from the cache.  Another
> drawback of using cache is extra deployment configuration (ant build
> scripts and deploying .swf and .swz) and more importantly running the
> app from Flash Player would require different security permissions
> because the app would first download the framework into cache if it's
> not present.  I suspect that the app would need to be marked as a
> trusted file using Flash Player Settings Manager, otherwise it would
> result in Security Sandbox violation.
> With all that said, I think in general it is worth caching the
> framework, but in this particular case I see more disadvantages than
> advantages.  Maybe in a year or so when enough people get the
> framework cached on the FP cache, it'll be worth it, but for now I
> don't see worth doing it because my goal is to minimize the download
> time of the app the first time a user visits our website and caching
> actually makes it longer.  So I'll be turning my attention to modules.
> What is your opinion for this case?
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


Re: [flexcoders] Hi Alex

2008-09-26 Thread krshnaonweb
+ 1 , I totally agree to your point. No ambiguity...

.kr

On Fri, Sep 26, 2008 at 9:23 PM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

>Hi,
> If I understand you correctly, thats not the point (reading the
> question regardless of the title). The archives get searched all the time
> and titles that are ambiguous serve no purpose. I read the question to, just
> moderating.
>
> Mike
>
>   On Fri, Sep 26, 2008 at 11:17 AM, krshnaonweb <[EMAIL PROTECTED]>wrote:
>
>>  Mike!!
>>
>> I did not notice the title at all. Just saw her query.  Thats it ;)
>>
>>
>> .kr
>>
>>   On Fri, Sep 26, 2008 at 4:50 PM, Michael Schmalle <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Deepa,
>>> This is a professional list, the title "Hi Alex" just doesn't work here,
>>> please try a more descriptive title for your next post.
>>>
>>>   Mike
>>>
>>>
>>> On Fri, Sep 26, 2008 at 2:31 AM, Manu Dhanda <[EMAIL PROTECTED]>wrote:
>>>

 First of all, you should be talking about an application (not an swf).
 Now, the SIX pages, I took it as SIX views.

 There are many ways to do that. One of them is:
 
 
 private function return nextPrevView():void{
 if(buttonClicked == prev){
 viewstack.selectedIndex =
 viewstack.selectedIndex(viewstack.selectedIndex-1);
 }
 if(buttonClicked == next){
 viewstack.selectedIndex =
 viewstack.selectedIndex(viewstack.selectedIndex+1);
 }

 }
 

 
 
 
 
 
 
 
 
 
 

 It's just an outlook of an application.
 Get it worked by urself.

 -Manu.


 deepa_pathuri wrote:
 >
 > I have a .swf file which has 6 pages in it.i want to control that
 > .swf ie to show each page of .swf file on click of next and previous
 > button...How can i do this
 >
 >
 >

 --
 View this message in context:
 http://www.nabble.com/Hi-Alex-tp19681631p19683180.html
 Sent from the FlexCoders mailing list archive at Nabble.com.


>>>
>>>
>>> --
>>> Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>>
>>> Teoti Graphix Blog
>>> http://www.blog.teotigraphix.com
>>>
>>> You can find more by solving the problem then by 'asking the question'.
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>> Krishna
>> Read my blogs
>> http://flashactions.wordpress .com
>> Gtalk:krshnaraj
>> YahooIM:krishna.rajs
>> Live Messenger: krishna.rajs
>> Skype: krishna.rajs
>> Linkedin: http://www.linkedin.com/in /krishnarajs
>> Cellular Contact: 0091.998.5013.316
>> Cellular Contact: 0091.924.8763.069
>> Twitter:krshnaonweb
>>
>>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>
> 
>



--


[flexcoders] Flex Builder 3 XMLDecoding problem

2008-09-26 Thread Varun Shetty
Hi,

I recently tried the flex builder 3 'Import web service' feature to generate
web service proxy classes that return strongly typed objects.

The wizard worked well for simple object types, but when used with complex
types it broke down. After investigating, I found that the problem was in
the XMLDecoder class.
and it wasn't able to decode complex types appropriately.

Searching online showed up the following Flex Bug reports filed.

http://bugs.adobe.com/jira/browse/FB-12253

http://bugs.adobe.com/jira/browse/SDK-14800

http://bugs.adobe.com/jira/browse/FB-11025

http://bugs.adobe.com/jira/browse/FB-12319

has anyone encountered this and found any appropriate solution to this. any
clue when this would be fixed.
I am having this problem with Flex builder 3 and Oracle JAXB web services.

regards,
Varun Shetty


Re: [flexcoders] Hi Alex

2008-09-26 Thread Michael Schmalle
Hi,
If I understand you correctly, thats not the point (reading the
question regardless of the title). The archives get searched all the time
and titles that are ambiguous serve no purpose. I read the question to, just
moderating.

Mike

On Fri, Sep 26, 2008 at 11:17 AM, krshnaonweb <[EMAIL PROTECTED]> wrote:

>   Mike!!
>
> I did not notice the title at all. Just saw her query.  Thats it ;)
>
>
> .kr
>
> On Fri, Sep 26, 2008 at 4:50 PM, Michael Schmalle <[EMAIL PROTECTED]
> > wrote:
>
>>   Deepa,
>> This is a professional list, the title "Hi Alex" just doesn't work here,
>> please try a more descriptive title for your next post.
>>
>> Mike
>>
>>
>> On Fri, Sep 26, 2008 at 2:31 AM, Manu Dhanda <[EMAIL PROTECTED]>wrote:
>>
>>>
>>> First of all, you should be talking about an application (not an swf).
>>> Now, the SIX pages, I took it as SIX views.
>>>
>>> There are many ways to do that. One of them is:
>>> 
>>> 
>>> private function return nextPrevView():void{
>>> if(buttonClicked == prev){
>>> viewstack.selectedIndex =
>>> viewstack.selectedIndex(viewstack.selectedIndex-1);
>>> }
>>> if(buttonClicked == next){
>>> viewstack.selectedIndex =
>>> viewstack.selectedIndex(viewstack.selectedIndex+1);
>>> }
>>>
>>> }
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> It's just an outlook of an application.
>>> Get it worked by urself.
>>>
>>> -Manu.
>>>
>>>
>>> deepa_pathuri wrote:
>>> >
>>> > I have a .swf file which has 6 pages in it.i want to control that
>>> > .swf ie to show each page of .swf file on click of next and previous
>>> > button...How can i do this
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Hi-Alex-tp19681631p19683180.html
>>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> Teoti Graphix, LLC
>> http://www.teotigraphix.com
>>
>> Teoti Graphix Blog
>> http://www.blog.teotigraphix.com
>>
>> You can find more by solving the problem then by 'asking the question'.
>>
>>
>
>
> --
> Thanks and Regards,
> Krishna
> Read my blogs
> http://flashactions.wordpress .com
> Gtalk:krshnaraj
> YahooIM:krishna.rajs
> Live Messenger: krishna.rajs
> Skype: krishna.rajs
> Linkedin: http://www.linkedin.com/in /krishnarajs
> Cellular Contact: 0091.998.5013.316
> Cellular Contact: 0091.924.8763.069
> Twitter:krshnaonweb
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: BarChart - Different colors for negative and positive values

2008-09-26 Thread Amy
--- In flexcoders@yahoogroups.com, "diffgal" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
> I want to have different colours for the positive and negative values 
> for bars in a barchart.
> 
> Unable to work it out..

fillFunction

HTH;

Amy



Re: [flexcoders] Hi Alex

2008-09-26 Thread krshnaonweb
Mike!!

I did not notice the title at all. Just saw her query.  Thats it ;)


.kr

On Fri, Sep 26, 2008 at 4:50 PM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

>   Deepa,
> This is a professional list, the title "Hi Alex" just doesn't work here,
> please try a more descriptive title for your next post.
>
> Mike
>
>
> On Fri, Sep 26, 2008 at 2:31 AM, Manu Dhanda <[EMAIL PROTECTED]>wrote:
>
>>
>> First of all, you should be talking about an application (not an swf).
>> Now, the SIX pages, I took it as SIX views.
>>
>> There are many ways to do that. One of them is:
>> 
>> 
>> private function return nextPrevView():void{
>> if(buttonClicked == prev){
>> viewstack.selectedIndex =
>> viewstack.selectedIndex(viewstack.selectedIndex-1);
>> }
>> if(buttonClicked == next){
>> viewstack.selectedIndex =
>> viewstack.selectedIndex(viewstack.selectedIndex+1);
>> }
>>
>> }
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> It's just an outlook of an application.
>> Get it worked by urself.
>>
>> -Manu.
>>
>>
>> deepa_pathuri wrote:
>> >
>> > I have a .swf file which has 6 pages in it.i want to control that
>> > .swf ie to show each page of .swf file on click of next and previous
>> > button...How can i do this
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Hi-Alex-tp19681631p19683180.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>
> 
>



-- 
Thanks and Regards,
Krishna
Read my blogs
http://flashactions.wordpress .com
Gtalk:krshnaraj
YahooIM:krishna.rajs
Live Messenger: krishna.rajs
Skype: krishna.rajs
Linkedin: http://www.linkedin.com/in /krishnarajs
Cellular Contact: 0091.998.5013.316
Cellular Contact: 0091.924.8763.069
Twitter:krshnaonweb


Re: [flexcoders] getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread Michael Schmalle
Hi,
Sounds like you need to check your bindings.

I don't think there is any way possible that the ArrayCollection can become
intelligent and start deleting items without being told to by some outside
force. ;-)

Sounds like it has to do with the;

flightToMarkAsRemoved.flightHasBeenClearedByUser=true

That would be my guess.

Mike

On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
[EMAIL PROTECTED]> wrote:

>   has anyone run into this problem? The code below is *removing* the
> item from the ArrayCollection when I modify that one attribute on
> the object. And the size of my ArrayCollection isn't increasing
> after the call to addItem() either. the call to getItemIndex is
> working just fine, but the object is removed and the size of the
> ArrayCollection is decreased by 1 when the
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> line is reached.
>
> any ideas?
>
> 
> var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> var indexOfFlightToEdit:int =
> flightsForStation.getItemIndex(flightToMarkAsRemoved);
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
>
> // for some reason, simply setting the attrib to true is causing
> //the item to be removed from the array collection.
> flightsForStation.addItem(flightToMarkAsRemoved);
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] FileReference to ByteArray

2008-09-26 Thread Jon Bradley


On Sep 26, 2008, at 4:48 AM, aytuganov wrote:


Does somebody know is it possible to select file using
FileReference.browse() and than set it to ByteArray instance.
(There is an object that has an ByteArray property. I have to set this
property and send the object to server using RemoteObject - but it's
not a matter)


In Flash 10.

You have no access to the content of a FileReference object or item  
in any version of Flash earlier than v10. That's a resounding answer  
of "no".


There may be ways to hack the HTTPHeader information to include  
additional content information when the FileReference is uploaded.  
Otherwise, you'll need to send that data separately to the server.


good luck,

jon

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
TH - 

THanks - I will give it a shot and see.


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Sounds suspiciously like a callLater() solution.  Have you tested
> whether the creationComplete event is actually firing, before you 
click
> tab2, for all of the child components?  Sometimes not setting the 
data,
> in a timely fashion, can also make a view appear blank.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, Manu Dhanda 
> wrote:
> >
> >
> > Hi Tracy,
> >
> > It's really an issue with TabNavigator and we had faced it.
> > I won't say that I need to click the tab twice, but I need to 
switch
> back to
> > Tab1 and then come back to Tab2 to see the content on my 2nd Tab.
> >
> > And yes, already tried with creationPolicy='all', but it din't 
worked.
> >
> > -Manu.
> >
> >
> > Tracy Spratt wrote:
> > >
> > > Are you programatically doing anything with the content of tab 
2?
> > >
> > >
> > >
> > > Do you understand about deferred instantiation and 
creationPolicy?
> > >
> > >
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
> On
> > > Behalf Of donald_d_hook
> > > Sent: Thursday, September 25, 2008 2:15 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] TabNavigator - have to click twice on tab 
to
> > > display page
> > >
> > >
> > >
> > > I have a tab navigator with 3 tabs. Each tab has a canvas with
> > > several components on it. when the page is displayed, you see 
the
> 1st
> > > tab. When I navigate to the 2nd tab, I have to click the 2nd tab
> > > twice in order to view the contents of the tab. It looks like 
the
> > > first click on the 2nd tab goes back to the first tab, then the 
2nd
> > > click displays the contents of the 2nd tab.
> > >
> > > Was wondering if anyone has experienced this behavior and 
wondering
> > > what I am doing wrong.
> > >
> > > Thanks in advance.
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-to-
displ\
> ay-page-tp19675428p19681501.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
>





[flexcoders] getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread djbrown_rotonews
has anyone run into this problem? The code below is *removing* the 
item from the ArrayCollection when I modify that one attribute on 
the object. And the size of my ArrayCollection isn't increasing 
after the call to addItem() either. the call to getItemIndex is 
working just fine, but the object is removed and the size of the 
ArrayCollection is decreased by 1 when the 
flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
line is reached. 

any ideas?


var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
var indexOfFlightToEdit:int = 
flightsForStation.getItemIndex(flightToMarkAsRemoved);
flightToMarkAsRemoved.flightHasBeenClearedByUser=true;

// for some reason, simply setting the attrib to true is causing 
//the item to be removed from the array collection.
flightsForStation.addItem(flightToMarkAsRemoved);



[flexcoders] Re: e4x filtering of xml nodes...

2008-09-26 Thread Durres76
Daniel, that was exactly the problem. some of my MetaData nodes did
not have entryid items and that's why i was getting the errors. your
suggestion takes care of that.

Thanks,
d



[flexcoders] Re: Variable width column to fill a variable width datagrid?

2008-09-26 Thread ozziegt
That is what I have tried, and it is not working. The documentation
says that a datagridcolumn has a default width of 100. I haven't been
able to find anything in the flex documentation to mention the
possibility of a variable width column.

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Are you setting explicit width values for the columns that you want to
> remain fixed?  Thie following code should keep the first two columns at
> a fixed width and the third column should take up the rest of the
> variable width:
> 
> 
>  
>  
>  
>  
>  
> 
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "ozziegt"  wrote:
> >
> > I have a datagrid which I want to be variable width. I need some of
> > the columns to remain fixed width while maybe one or two expand to
> > fill the rest of the space. However, any solution I am trying isn't
> > working. The DataGrid is resizing all the columns. Any suggestions?
> >
> > Thanks
> >
>




Re: [flexcoders] e4x filtering of xml nodes...

2008-09-26 Thread Daniel Freiman
It looks like your provided example should work.  However, the expression
will fail if there is an "MetaData" node without any "itemid" node child, so
if your example is not your actual test/use case, then this might be your
problem.  If it is, solve it by using this:

myData.Entry..MetaData.(elements("itemid") == 1234)

- Daniel Freiman

On Thu, Sep 25, 2008 at 10:48 PM, Durres76 <[EMAIL PROTECTED]> wrote:

>   hi,
> i'm getting a strange error, strange to me at least, when i run the
> following expression on the below xml data:
> - expression: myData.Entry..MetaData.(itemid == 1234)
> - var myData =
> 
> 
> 
> 1234
> 
> 
> 
> 
> 1234
> 
> 
> 
> 
> 12345
> 
> 
> 
>
> This is the runtime error in Flex:
> ReferenceError: Error #1065: Variable itemid is not defined
>
> i can't understand how itemid is not defined.
>
> Thanks,
> d
>
>  
>


RE: [flexcoders] Re: Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread Chet Haase

Anyways, I guess coming from Swing there are books (such as Filthy
Rich Clients, one author Chet Haase works for Adobe now) which cover

Yeah, I heard that rumor as well...

lots of neat tricks, details, expert type info. That's what I was
sort of wondering about.

To be fair, Filthy Rich Clients was written when Java/Swing/2D was pretty 
mature. At the time, the only other Swing books available just covered the 
basics. Flex is newer, so maybe the advanced books or books covering specific 
niche topics about Flex aren't there yet because most people are still getting 
into it. On the other hand, it's a very approachable platform, so it doesn't 
take too much of an intro to get you to a place where you can dive in.

It is worth checking out some of the blogs and learning sites out there; it's 
not as easy as having it collected in a table of contents, but there's some 
nice deep topics covered out there, both for AS3/Flash development in general 
and for Flex in particular.

Chet.


--- In flexcoders@yahoogroups.com, Samuel 
Colak <[EMAIL PROTECTED]> wrote:
>
>
> This strikes me a bit odd - what do people think Flex is ? It is
> simply a tool
> for AS3 development - or do people think this is a RAD tool like VB
> where everything
> is just point and click with no code ?
>
> Craig - unfortunately the actual best book is the Adobe online
> tutorials and API
> reference - its not terribly difficult to pick up once you have an
> understanding or
> background in C# or Java. If you are new to the development scene,
> then obviously
> flex will be rather more "daunting" - but it is worthwhile.
>
> On Sep 26, 2008, at 12:43 PM, cwicky99 wrote:
>
> > I'm looking for one or more books to really dive into Flex (and
> > perhaps AS3). I know the basics and have been using it for a while,
> > but I really want to get into the advanced topics and the details for
> > some serious Flex development. Most of the books I've seen all seem
> > to have the some Table of Contents covering very basic stuff.
> >
> > Is there anything out there that covers all the details (you know
> > sometimes when you read a blog, or watch a videocast you find out
> > about a little nugget of information you had never heard of)?
> >
> > Thanks!
> >
> >
> >
>



Re: [flexcoders] SimpleXmlEncoder SimpleXmlDecoder problem

2008-09-26 Thread bpjadam

Andres,

Your problems are actually two-fold, I believe.

The first is that SimpleXMLEncoder and SimpleXMLDecoder do not appear to be
symmetrical with Array properties. 

If your object has a property 

  var arrayProperty:Array

The SimpleXMLEncoder writes


  val1
  val2


But when SimpleXMLDecoder decodes this XML it produces an object with

  arrayProperty = { item: [val1, val2] }

This is becase SimpleXMLDecoder tries to be "smart" and sees the two 
tags and decides that the implied array you want is actually a property
called "item".

I regard this as a bug in Flex 3 - encode/decode should be symmetrical.

Your second problem is that you can't just cast an arbitrary object to being
of a specified type. Whether the fields line up or not doesn't matter: you
simply can't cast this way.


  

Andres Serral wrote:
> 
> Hello.
> I want to convert my object "MyVO" into a XML. for this I use the
> SimpleXmlEncoder class
> then I want to decode this xml into a new object MyVO class using the
> SimpleXmlDecoder class <- Here fails
> I think that it isn´t work because my MyVo contains a Array. 
>  
> public class MyVO {
> public var id : int;
> public var name : String;
> public var childs : Array;
> }
>  
>  
> here is a code examplo:
>  
> // first create MyVO for example
> var myObj : MyVO = new MyVO();
> myObj.id = 1;
> myObj.name = "pp";
> myObj.childs = new Array();
> myObj.childs.push(new MyVO());
> myObj.childs.push(new MyVO());
>  
> // now Encode MyVO into XML
> var qName:QName = new QName("root");
> var xmlDocument:XMLDocument = new XMLDocument();
> var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument);
> var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(myObj, qName,
> xmlDocument);
>  
> // now decode the XML
> var decoder:SimpleXMLDecoder = new SimpleXMLDecoder();
> var myObj : Object = decoder.decodeXML(XMLNode(xmlDocument.firstChild));
>  
> // finally cast the object to MyVO
> var newVO : MyVO = obj as MyVO; // this dont work
>  
> // at this point newVO is null
> // take attention on myObj var see the "childs" property it must to be an
> Array and is a Object type
>  
>  
> Thanks
>  
> Andres
>  
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SimpleXmlEncoder-SimpleXmlDecoder-problem-tp18535572p19688811.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: RE[flexcoders] S: LCDS - how can I improve the createItem function?

2008-09-26 Thread kcCedrics

Thanks for your answer.
I already did that. But the problem is the same : I have LCDS which make
1000 createItem request.
In fact in my application I have my 1000 items in a datagrid, but when I
check my lcds log file I see that LCDS is still creating item
-- 
View this message in context: 
http://www.nabble.com/LCDS---how-can-I-improve-the-createItem-function--tp19687486p19688593.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RES: [flexcoders] LCDS - how can I improve the createItem function?

2008-09-26 Thread Luciano Manerich Junior
Hi,

what about autoCommit = false, so, you commit everything once its finished. 

-Mensagem original-
De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de kcCedrics
Enviada em: sexta-feira, 26 de setembro de 2008 09:29
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] LCDS - how can I improve the createItem function?


Hi everybody!
I'm using a dataService with LCDS which can create many objects (more than 
1000). So I'm calling 1000 times the createItem function of my custom assembler 
which make an INSERT SQL request.
My question is : is it possible to give several object to the dataService to 
add them with just one request, instead of 1000??
Thanks for your help ;)

Cédric
--
View this message in context: 
http://www.nabble.com/LCDS---how-can-I-improve-the-createItem-function--tp19687486p19687486.html
Sent from the FlexCoders mailing list archive at Nabble.com.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





[flexcoders] BarChart - Required Different colours for negative and positive values

2008-09-26 Thread Diff Gal
Hi,

I want to have different colours for bars representing positive and negative 
values in my application.
Unable to work it around.. Any ideas.

Thanks,

Diffy


  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

RE: [flexcoders] Listen itemClick Event on MenuBar

2008-09-26 Thread Andres Serral
Tracy.
Maybe I don't explain very well.
 
Look in the next menu structure... I want to capture the event click on
"SubMenu 1.1" 
 
Menu
->SubMenu 1
-> "SubMenu 1.1"
-> SubMenu 1.1.1
-> SubMenu 1.1.2
-> SubMenu 1.2
-> SubMenu 1.2.1
-> SubMenu 1.2.2
->SubMenu 2
-> SubMenu 1.1
-> SubMenu 1.2
 
I looked at the SDK source that the itemClick event only is dispatched when
the node hasn't childrens
 
here is an example
 

http://www.adobe.com/2006/mxml"; layout="absolute"
 creationComplete="initCollections();" 
 >
 
 
  
 
 
 
 
  


 
Andres

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, September 25, 2008 9:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listen itemClick Event on MenuBar




This is an aggravating aspect of Menu.

You have to listen for both itemClick and click.  

Tracy

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andres Serral
Sent: Thursday, September 25, 2008 3:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Listen itemClick Event on MenuBar

Hello people

I have a problem... someone maybe can help me

The MenuBar control doesn't dispatch the "itemClick" event on items that has
childrens.

Anybody knows how can I capture the click event on any item (with childrens
or  without them)?

Thanks

Andres

 


[flexcoders] Regarding a flex app with integratiion of java

2008-09-26 Thread chandra_mcas
HI all
  this is chandu i am new to flex its good but i facing a lot to
integrate with java application using lcds and i want clarification on
tomcat,weblogic also i can connect flex app directly with out using
lcds just by tomcat. if any one having idea on this one pls send me
the reply k bye




[flexcoders] catching uncaught exception

2008-09-26 Thread Stefaan_Nachtergaele
Java has a method on the thread class:
setUncaughtExceptionHandler(Handler). This way you can ensure that all
 exception will be handled. Does  flex have something like this?

This is what I'm trying to achieve: People runnning my app will not
have the debug version of flash running.  When an error occurs I want
to be able to catch it and show it to the user so he can copy paste it
into an email and send it to me. I have it rigged so I can
enable/disable this feature per user. 

I understand that surrounding everything with try/catch but that is
not the answer I'm looking for. Anyone?
Thanks,
Stefaan



[flexcoders] FileReference to ByteArray

2008-09-26 Thread aytuganov
Does somebody know is it possible to select file using
FileReference.browse() and than set it to ByteArray instance.
(There is an object that has an ByteArray property. I have to set this
property and  send the object to server using  RemoteObject - but it's
not a matter)



[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
Hyder -

Thanks for your insight - I will check it out as well to see if I have 
the same results.

Thanks!

--- In flexcoders@yahoogroups.com, "Hyder" <[EMAIL PROTECTED]> wrote:
>
> I started having the same problem with my application recently. 
What's 
> interesting is that it only happens with the debug version of my 
> application. The debug version, not necessarily in debug mode 
> (application-debug.swf). But when I compile a release version, the 
> tabnav works just fine.
> 
> Also, after further testing, I noticed that it actually really 
happens 
> only in my development environment. When I move the compiled debug 
> version over to the server, it works fine!
> 
> Ahh... another thing, when i open the debug version swf in a 
> standalone flash player, it works fine. So, I've narrowed it down to 
> one of the html / js files... it probably has something to do with 
> history management, i'm thinking.
> 
> Will post on further updates.
> 
> 
> Hyder
> 
> 
> --- In flexcoders@yahoogroups.com, Manu Dhanda  
> wrote:
> >
> > 
> > Hi Tracy,
> > 
> > It's really an issue with TabNavigator and we had faced it.
> > I won't say that I need to click the tab twice, but I need to 
switch 
> back to
> > Tab1 and then come back to Tab2 to see the content on my 2nd Tab.
> > 
> > And yes, already tried with creationPolicy='all', but it din't 
> worked.
> > 
> > -Manu.
> > 
> > 
> > Tracy Spratt wrote:
> > > 
> > > Are you programatically doing anything with the content of tab 
2?
> > > 
> > >  
> > > 
> > > Do you understand about deferred instantiation and 
creationPolicy?
> > > 
> > >  
> > > 
> > > Tracy
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of donald_d_hook
> > > Sent: Thursday, September 25, 2008 2:15 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] TabNavigator - have to click twice on tab 
to
> > > display page
> > > 
> > >  
> > > 
> > > I have a tab navigator with 3 tabs. Each tab has a canvas with 
> > > several components on it. when the page is displayed, you see 
the 
> 1st 
> > > tab. When I navigate to the 2nd tab, I have to click the 2nd tab 
> > > twice in order to view the contents of the tab. It looks like 
the 
> > > first click on the 2nd tab goes back to the first tab, then the 
> 2nd 
> > > click displays the contents of the 2nd tab.
> > > 
> > > Was wondering if anyone has experienced this behavior and 
> wondering 
> > > what I am doing wrong.
> > > 
> > > Thanks in advance.
> > > 
> > >  
> > > 
> > > 
> > > 
> > 
> > -- 
> > View this message in context: http://www.nabble.com/TabNavigator--
-
> have-to-click-twice-on-tab-to-display-page-tp19675428p19681501.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
>





[flexcoders] BarChart - Different colors for negative and positive values

2008-09-26 Thread diffgal
Hi All,

I want to have different colours for the positive and negative values 
for bars in a barchart.

Unable to work it out..

Pls help!

Thanks,

Diffy



[flexcoders] Re: Composite renderer for Tree

2008-09-26 Thread mrhassell
--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> Is it possible to create a composite custom item renderer for a tree 
> component?
> 
> Thanks
>

Use a static array in the item renderer. Keep information 
in the item renderer only, isolated from other components.

// declare static array
private static var expandedItems:Array = new Array();

// Setter function of item renderer where we set the data object
// Set the size quickly and directly.
if(expandedItems.indexOf(data)>-1){
   // show item in expanded state without any effect
} else {
   // show item in contract size
}


// Expand and collapse the item renderer on double click
// play the expand or contract effect and remember
// the size in a static array:

private function setRowSize():void{
var arrayPosition:int = expandedItems.indexOf(data);
if( arrayPosition>-1 ){
contract.end();
contract.play();
expandedItems.splice(arrayPosition,1);
} else {
expand.end();
expand.play();
expandedItems.push( data );
}
} 

The above should provide the basis and there is another interesting
elaboration, with mxml source available on flexcomguru which should
get you started.

http://www.flashcomguru.com/apps/flex/expandinglist/ExpandingList.html



Re: [flexcoders] Overriding Combobox and ListBase

2008-09-26 Thread shaun
Hi John,

John Luke Mills wrote:
> I am trying to modify Combobox so one can type multiple characters into a
> non-editable drop-down.  Combobox.as uses ListBase.as.  In ListBase there is
> the following:
> 
>  
> //--
> //
> //  Methods: Keyboard lookup
> //
>  
> //--
> 
> /**
>  *  Tries to find the next item in the data provider that
>  *  starts with the character in the eventCode parameter.
>  *  You can override this to do fancier typeahead lookups.  The search
>  *  starts at the selectedIndex location; if it reaches
>  *  the end of the data provider it starts over from the beginning.
>  *
>  *  @param eventCode The key that was pressed on the keyboard
>  *  @return true if a match was found
>  */
> protected function findKey(eventCode:int):Boolean
> {
> var tmpCode:int = eventCode;
> var junk:int = 4;
> junk += 4;
> 
> 
> return tmpCode >= 33 &&
>tmpCode <= 126 &&
>findString(String.fromCharCode(tmpCode));
> }
> 
> What do I have to do to have my own version of this?  Various attempts to
> make my own copy or extend and override this function  haven't worked.
> 
> Thanks,  John Luke Mills
> 
> 

List extends ListBase. Extend List, override the findKey function as 
you need. Then modify the code for ScrollableComboBox(below) to use your 
List subclass.

http://javatoflex.blogspot.com/2008/09/scrollablecombobox.html


Change the line:

   public var clazz:Class = mx.controls.List;

to reference your own subclass of List.

   public var clazz:Class = com.foo.controls.MyList;

HTH.
   - shaun



Re: [flexcoders] Not to harp on about it....

2008-09-26 Thread Jon Bradley


On Sep 25, 2008, at 12:15 PM, Doug McCune wrote:


I didn't mean to come off as rude :) Writing your own 3D engine is a
huge undertaking and it's an impressive accomplishment. Congrats on
the work.

Is it going to be released (open source?)



I think Sam's confusion was related to "how" the engine was implemented.

I haven't seen anything yet, but he might be implying that the engine  
was built as a collection of custom UIComponent elements that can be  
nested with MXML to make your scenes and objects - ie, Degrafa for 3d  
(which would be pretty cool).


That's my take on it at least. : ) If so, that would certainly be a  
bit novel.


cheers,

jon

Re: [flexcoders] html in flex

2008-09-26 Thread Sajid Hussain
it seems htmltext cant support inline images , try flowlayout control from 
flexlib I was looking for same problem 
http://kiorull.com/Flex/FlexSmilies/FlexSmilies.html
this is not related to ur requirment but we could do our code with tht

Sajid

 


- Original Message 
From: abhishekchess1 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, September 26, 2008 9:34:59 AM
Subject: [flexcoders] html in flex


hello frnds,
i'm using html in flex , in my html code i'm showing first 1 image
then its details then at next line
anather image and its details , but when i'm doing this , it shows
first image then text of its beside it and next line but beside first
img 2nd image's details also and then it showing 2nd image.
so could u tell how can i show it in proper format like in html.

my code is


http://serverpath/ files/i1. jpg" />KB Hi how are you Nimo pls feel free to join us">

 

abhishekchess1@ gmail.com

 


  

Re: [flexcoders] Not to harp on about it....

2008-09-26 Thread Jon Bradley


On Sep 25, 2008, at 2:00 PM, Ryan Graham wrote:

Isn't Flash Player 10 going to have some basic 3D support built in?  
I thought I read that somewhere. Should be awesome if so...


It does, but it only provides marginal speed improvements.

- jon

Re: [flexcoders] Not to harp on about it....

2008-09-26 Thread Jon Bradley


On Sep 25, 2008, at 1:28 PM, Samuel Colak wrote:

If you want to be pedantic, yes its written in AS3 using Flex  
(hence flexcoders !!)


Pepervision is written using Flash


All 3d engines are written in Actionscript. AS3 is AS3, doesn't  
matter what program you used to compile the final SWF.


Both Away3D and PV3D engines work perfectly fine with Flex. The  
difference is that in Flex Builder, you have to create a UIComponent  
class to add the scene to your view. Everything else is the same.


The Flex framework is AS3, as is any code written in the Flash IDE  
(and published to Flash 9). Flex Builder is just a way of compiling  
SWF files from writing a combination of MXML and AS3 (among some  
other things).


The end result is still the same - actionscript code that executes in  
the Flash Player.


PV3D and Away3D are easy to use in Flex Builder, btw.

- jb



Re: [flexcoders] your 3d engine

2008-09-26 Thread Jon Bradley


On Sep 26, 2008, at 7:17 AM, Michael Schmalle wrote:

Might want to make sure that you are sending to the actual private  
email before you hit send or it's all public,


Mike



Eh, no worries. :)

- j

[flexcoders] LCDS - how can I improve the createItem function?

2008-09-26 Thread kcCedrics

Hi everybody!
I'm using a dataService with LCDS which can create many objects (more than
1000). So I'm calling 1000 times the createItem function of my custom
assembler which make an INSERT SQL request.
My question is : is it possible to give several object to the dataService to
add them with just one request, instead of 1000??
Thanks for your help ;)

Cédric
-- 
View this message in context: 
http://www.nabble.com/LCDS---how-can-I-improve-the-createItem-function--tp19687486p19687486.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Quick reference to Application.application

2008-09-26 Thread Paul Andrews

- Original Message - 
From: "itdanny2002" <[EMAIL PROTECTED]>
To: 
Sent: Friday, September 26, 2008 11:50 AM
Subject: [flexcoders] Quick reference to Application.application


>I have main application and many modules.
> While I do the coding in modules, I need
> to Application.application for refering
> to variable and functions in Main application.
> All works but I want to type shorted name.
> Any methods ?

Quick and dirty -  in your code declare:   var a:Object = 
Application.application;

It won't make your code very readable and there are better ways to go about 
things - for example using a singleton class to hold 'global' variables 
rather than refering to variables declared in the main application.

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=262

Paul. 



Re: [flexcoders] Hi Alex

2008-09-26 Thread Michael Schmalle
Deepa,
This is a professional list, the title "Hi Alex" just doesn't work here,
please try a more descriptive title for your next post.

Mike

On Fri, Sep 26, 2008 at 2:31 AM, Manu Dhanda <[EMAIL PROTECTED]>wrote:

>
> First of all, you should be talking about an application (not an swf).
> Now, the SIX pages, I took it as SIX views.
>
> There are many ways to do that. One of them is:
> 
> 
> private function return nextPrevView():void{
> if(buttonClicked == prev){
> viewstack.selectedIndex =
> viewstack.selectedIndex(viewstack.selectedIndex-1);
> }
> if(buttonClicked == next){
> viewstack.selectedIndex =
> viewstack.selectedIndex(viewstack.selectedIndex+1);
> }
>
> }
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> It's just an outlook of an application.
> Get it worked by urself.
>
> -Manu.
>
>
> deepa_pathuri wrote:
> >
> > I have a .swf file which has 6 pages in it.i want to control that
> > .swf ie to show each page of .swf file on click of next and previous
> > button...How can i do this
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Hi-Alex-tp19681631p19683180.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] your 3d engine

2008-09-26 Thread Michael Schmalle
Might want to make sure that you are sending to the actual private email
before you hit send or it's all public,
Mike

On Fri, Sep 26, 2008 at 3:35 AM, Samuel Colak <[EMAIL PROTECTED]>wrote:

>   Jon,
>
> Lets talk over IM or gtalk or something. will be better and ill send you a
> copy of the engine.
> Obviously there are strings attached to using it - at the moment at least
> ;)
>
> Regards
> Samuel
>
>
>
> Im-At-Home BV
> http://www.im-at-home.com
>
> Overtoom 238-II / 1054HZ Amsterdam / The Netherlands
> Tel: +31 20 750 8304 (Amsterdam, NL) / +1 646 385 7345 (Manhattan, US)
> / Mobile: +31 64 328 5922
>
> Skype: samcolak / MSN: [EMAIL PROTECTED] / AIM: [EMAIL PROTECTED]
>
> On Sep 25, 2008, at 11:29 PM, Jon Bradley wrote:
>
>
> On Sep 25, 2008, at 12:54 PM, Samuel Colak wrote:
>
> Jon,
> There is really no api documentation - im looking to release the code line
> into the community or basically
> just keep this internal. I've done alot of work into getting the framerate
> acceptable without hitting the CPU dramatically.
>
>
>
> Samuel,
>
> Sounds cool.  Definitely would like to have a look at some point,
> especially if you got he OS route.
>
> As far as your statement on flexcoders that this is all written in Flex ..
> does that imply that you didn't use any AS to write this stuff? I see
> classes referenced in the code that you sent as a snippet in the last email
> (com.***).
>
> cheers,
>
> jon
>
>
>
>  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread cwicky99
Thanks (i think) for the feedback.  I realize Flex is more than  RAD
tool, in fact I have hardly used the GUI builder.  My background was
Java/Swing -> python -> C# -> Flex, based on the projects I was
working on.

Anyways, I guess coming from Swing there are books (such as Filthy
Rich Clients, one author Chet Haase works for Adobe now) which cover
lots of neat tricks, details, expert type info.  That's what I was
sort of wondering about.

--- In flexcoders@yahoogroups.com, Samuel Colak <[EMAIL PROTECTED]> wrote:
>
> 
> This strikes me a bit odd - what do people think Flex is ? It is  
> simply a tool
> for AS3 development - or do people think this is a RAD tool like VB  
> where everything
> is just point and click with no code ?
> 
> Craig - unfortunately the actual best book is the Adobe online  
> tutorials and API
> reference - its not terribly difficult to pick up once you have an  
> understanding or
> background in C# or Java. If you are new to the development scene,  
> then obviously
> flex will be rather more "daunting" - but it is worthwhile.
> 
> On Sep 26, 2008, at 12:43 PM, cwicky99 wrote:
> 
> > I'm looking for one or more books to really dive into Flex (and
> > perhaps AS3). I know the basics and have been using it for a while,
> > but I really want to get into the advanced topics and the details for
> > some serious Flex development. Most of the books I've seen all seem
> > to have the some Table of Contents covering very basic stuff.
> >
> > Is there anything out there that covers all the details (you know
> > sometimes when you read a blog, or watch a videocast you find out
> > about a little nugget of information you had never heard of)?
> >
> > Thanks!
> >
> >
> >
>




[flexcoders] Quick reference to Application.application

2008-09-26 Thread itdanny2002
I have main application and many modules.
While I do the coding in modules, I need
to Application.application for refering 
to variable and functions in Main application.
All works but I want to type shorted name.
Any methods ? 





Re: [flexcoders] Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread Samuel Colak


This strikes me a bit odd - what do people think Flex is ? It is  
simply a tool
for AS3 development - or do people think this is a RAD tool like VB  
where everything

is just point and click with no code ?

Craig - unfortunately the actual best book is the Adobe online  
tutorials and API
reference - its not terribly difficult to pick up once you have an  
understanding or
background in C# or Java. If you are new to the development scene,  
then obviously

flex will be rather more "daunting" - but it is worthwhile.

On Sep 26, 2008, at 12:43 PM, cwicky99 wrote:


I'm looking for one or more books to really dive into Flex (and
perhaps AS3). I know the basics and have been using it for a while,
but I really want to get into the advanced topics and the details for
some serious Flex development. Most of the books I've seen all seem
to have the some Table of Contents covering very basic stuff.

Is there anything out there that covers all the details (you know
sometimes when you read a blog, or watch a videocast you find out
about a little nugget of information you had never heard of)?

Thanks!







[flexcoders] Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread cwicky99
I'm looking for one or more books to really dive into Flex (and
perhaps AS3).  I know the basics and have been using it for a while,
but I really want to get into the advanced topics and the details for
some serious Flex development.  Most of the books I've seen all seem
to have the some Table of Contents covering very basic stuff. 

Is there anything out there that covers all the details (you know
sometimes when you read a blog, or watch a videocast you find out
about a little nugget of information you had never heard of)?

Thanks!



[flexcoders] Re: Base64Encoder / Base64Decoder

2008-09-26 Thread Joao Coelho
--- In flexcoders@yahoogroups.com, Peter Farland <[EMAIL PROTECTED]> wrote:
>
> Just curious, where'd folks see the decoder docs talk about a
toString()? Base64Decoder's primary use is to decode to a ByteArray so
it has a toByteArray() method. If you wanted to construct a String
from this ByteArray you'd need to know the charset encoding used in
the bytes.
> 
> Pete
> 

My point was, in the docs there is a reference to a toString() method
as being inherited from Object.
Even if it is not reasonable to use toString(), it is in the docs as
being available.
Either it should be removed or an example of how to use the class
should be provided.

Joao



Re: [flexcoders] Type Coercion failed: cannot convert mx.controls::[EMAIL PROTECTED] to mx.core.Container.

2008-09-26 Thread Samuel Colak

Button can't be cast to container - try displayobject instead.


Sent from my iPhone

On Sep 26, 2008, at 11:06, Duke Duke <[EMAIL PROTECTED]> wrote:


Hi

I am getting the error Type Coercion failed: cannot convert  
mx.controls::[EMAIL PROTECTED] to mx.core.Container.


when i try to run the application.

No where it is pointing out where the error is xactly.

i dont know how to find..

Please somone help me

Thanks

Duke

Add more friends to your messenger and enjoy! Invite them now.



[flexcoders] Type Coercion failed: cannot convert mx.controls::[EMAIL PROTECTED] to mx.core.Container.

2008-09-26 Thread Duke Duke
Hi

I am getting the error Type Coercion failed: cannot convert mx.controls::[EMAIL 
PROTECTED] to mx.core.Container.

when i try to run the application.

No where it is pointing out where the error is xactly.

i dont know how to find..

Please somone help me

Thanks

Duke



  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] x,y position of inner container relative to app?

2008-09-26 Thread Tom Chiverton
On Friday 26 Sep 2008, Mic wrote:
> browser. Can a deeply embedded container get its position relative to
> the app? I can hard-code popup restraining values of course, but these

localToGlobal()/globalToLocal()

-- 
Tom Chiverton
Helping to apprehensively build next-generation granular plug-and-play niches





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Flex SEO solutions success?

2008-09-26 Thread Tom Chiverton
On Friday 26 Sep 2008, Hyder wrote:
> if you have to so I get to experiment with data. Google hasn't managed
> to read any content on it as yet.

How do you know ?
Do you see their spider crawling, but yet you don't show in their index ?

-- 
Tom Chiverton
Helping to dramatically revolutionize relationships





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] FocusManager seems unhappy

2008-09-26 Thread Guy Morton

I have a sinking feeling that this is what I'm seeing:

http://thanksmister.com/?p=64

If so, it's caused by the UMap component.

This is not good.

I'm guessing this may be a terminal issue. Anyone know if there is a  
way to work around it?



On 26/09/2008, at 5:41 PM, Guy Morton wrote:

More clues...if I *don't* click in the text input first, but start  
tabbing once the popup appears I can see the focus shifting around  
my inputs and buttons and no error is triggered. If I now click into  
a text box and then tab, no error is triggered.



So, it seems it only occurs if I click in an input THEN tab.


On 26/09/2008, at 5:35 PM, Guy Morton wrote:

Note that even though it has whined like this, it still seems to  
work, ie after you dismiss the error you can tab around the items  
in the popup window like you'd expect.



I'd really appreciate a clue on this one, if anyone has one.

TIA


On 26/09/2008, at 5:28 PM, Guy Morton wrote:


Hi list

I'm creating a popup using this code:

var lookupWindow:IFlexDisplayObject =  
PopUpManager.createPopUp(MyApp,

AddressLookup, true);
PopUpManager.centerPopUp(lookupWindow);

So far so good. This form has two text inputs. If I click in one and
then hit the tab key Flex throws this error:

ArgumentError: Error #2025: The supplied DisplayObject must be a  
child

of the caller.
at flash.display::DisplayObjectContainer/getChildIndex()
at mx.core::Container/getChildIndex()[C:\dev\flex_201_gmc\sdk
\frameworks\mx\core\Container.as:2442]
at fl.managers::FocusManager/getChildIndex()
at fl.managers::FocusManager/sortByDepth()
at Array$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at fl.managers::FocusManager/sortFocusableObjects()
at fl.managers::FocusManager/keyDownHandler()

and I have NO idea why. Anyone able to help?

Guy












[flexcoders] x,y position of inner container relative to app?

2008-09-26 Thread Mic
I need to constrain a popup to a container embedded deep within
canvases and modules. A popup belongs to SystemManager and its
parent is the main app, so 0,0 sends it to the top left of the
browser. Can a deeply embedded container get its position relative to
the app? I can hard-code popup restraining values of course, but these
would not work if the user resizes the browser. TIA,

Mic.



Re: [flexcoders] e4x filtering of xml nodes...

2008-09-26 Thread Haykel BEN JEMIA
I'm not getting any error! Here's the code I'm using:
var myData:XML = 


1234




1234




12345


;
trace(myData.Entry..MetaData.(itemid == 1234));

and here's the output:

  1234


  1234



On Fri, Sep 26, 2008 at 4:48 AM, Durres76 <[EMAIL PROTECTED]> wrote:

>   hi,
> i'm getting a strange error, strange to me at least, when i run the
> following expression on the below xml data:
> - expression: myData.Entry..MetaData.(itemid == 1234)
> - var myData =
> 
> 
> 
> 1234
> 
> 
> 
> 
> 1234
> 
> 
> 
> 
> 12345
> 
> 
> 
>
> This is the runtime error in Flex:
> ReferenceError: Error #1065: Variable itemid is not defined
>
> i can't understand how itemid is not defined.
>
> Thanks,
> d
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com


Re: [flexcoders] Still working on learning AMFPHP

2008-09-26 Thread Haykel BEN JEMIA
I don't know if it's possible, but I think you can use this
myservice.getOperation(_somthing) to get/create an operation. You could call
it with:
myservice.getOperation(_somthing).send(... args);


On Fri, Sep 26, 2008 at 6:11 AM, timgerr <[EMAIL PROTECTED]> wrote:

>   Here is a Flex question that I have,
> If I do this code:
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  showBusyCursor="true" source="tutorials.HelloWorld" destination="amfphp">
> 
> 
>
> All works fine, but if a add a variable to the  private var _somthing:string = "sayHello";
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  showBusyCursor="true" source="tutorials.HelloWorld" destination="amfphp">
> 
> 
>
> I get an error for this 
> How can I have 
> thanks for the help,
> timgerr
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com


  1   2   >