RE: [flexcoders] tabnavigator transitions

2006-12-02 Thread Dustin Mercer
Choose the Transition effect?  Do you mean use a different effect than the 
fade, or change the effect at runtime?  If you want something other than fade, 
you can use any of the available effect, Zoom, Rotate, Move, ect...  If you are 
wondering if you can change it during runtime, I believe it's possible, 
although I haven't done it.  It shouldn't be much more than setting the 
showEffect or hideEffect during runtime.  Sorry if I misunderstood your 
question, but hopefully that is what you were looking for.



From: flexcoders@yahoogroups.com on behalf of Yiðit Boyar
Sent: Sat 12/2/2006 2:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] tabnavigator transitions



hmm, now i got the logic. (but did not try)
i did not used to know that i could add these effects to child containers,
thanks a lot...
in addition, is there a way to choose the transition effect?

- Original Message 
From: Dustin Mercer <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, December 2, 2006 11:55:35 PM
Subject: RE: [flexcoders] tabnavigator transitions



Yigit,

You can try to use the hide and show effects on the child containers of the 
TabNavigator. The TabNavigator will play these effects when it changes. Here is 
some small pseudo code... You can use any of the Flex events in place of the 
fade affect. Note this was coded in Outlook, so not sure if it compiles, just 
wanted to throw something together for you.











 _ _ __

From: [EMAIL PROTECTED] ups.com   on 
behalf of Yiðit Boyar
Sent: Sat 12/2/2006 11:06 AM
To: [EMAIL PROTECTED] ups.com  
Subject: [flexcoders] tabnavigator transitions

after being a coder for years, i've always been away from design... but now i 
need to do some transition efect to my tabnavigator; but i could not find any 
example; can anyone please help me? (i need an example transition code that 
works on tabnavigator)
i need:
1: basic transition effect between tab changes for the tabnavigator
2: some special effect that i trigger between specific changes. (is this 
possible; i mean while passing from tab0 to tab4 , i want to play a special 
effect)

thanks for your helps..

Yigit Boyar

 _ _ __

Everyone is raving about the all-new Yahoo! Mail beta. 
 > 





__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 
<>

[flexcoders] Two Flex Questions, Non Development

2006-12-02 Thread lostinrecursion
HI all,

I have been developing Flash applications, now Flex, for roughly 5 
years as an independent. I have no real formal training and my 
knowledge has come from many books and, of course, lively communities 
like flexcoders.

In an attempt to continue learning even as my client base grows, I 
was wondering if you could give me some recommendations of anywhere 
on the web, or in a bookstore, that I could learn a little more on 
the following topics:

1. Version Control - I have always wondered how version numbers are 
determined and, also, what best practice is in saving files, etc. As 
I do more and more RIA development and, as of late, more RIA 
development which will be licensed to third parties, I am curious to 
learn more about this as I feel it could be crucial.

2. Documentation - What are the best ways to document code? When do 
you document? How? When doing documentation for a client post 
project, what do you give them in terms of the software you have 
built for them.

Anyway, if you know of any good websites, blogs, books, etc where I 
could glean some info, that would be great.Or if you're up late with 
some time, why not toss your thoughts here?

Obviously I would prefer if you could point me to Flex/OOP based 
references since that's what we do. But, I guess any general 
programming language follows similar suit.

Thanks FG. You guys are the best around.
-Kenny



[flexcoders] MiniDebug Application

2006-12-02 Thread Clint Modien
MiniDebug is a logging target that comes with the framework and I was
wondering what it was.  I can't find info about it anywhere?

Some one asked the same question a few weeks ago in the Adobe forums.

https://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1213746&highlight_key=y&keyword1=minidebug

Is this an internal Adobe app?

Thanks...

Clint Modien
Esria Inc.


[flexcoders] Re: [flexcomponents] Re: wrap header text in datagrid ?

2006-12-02 Thread arpan srivastava
Hi Pablo,
i did headerWordWrap= "true" it is working, but the problem is that I 
am creating my own datagrid component in which I specifying the rowheight to be 
6% of the total height, so that it resizes accordingly. Now in this i need to 
keep the header height also same as rowheight or else it shows a extra empty 
row at the end.

// set the height
myDataGrid.headerHeight = myDataGrid.rowHeight = int((height * 6) / 
100);
myDataGrid.height = myDataGrid.measureHeightOfItems(-1,rowCount);


- arpan
- Original Message 
From: Pablo Rangel <[EMAIL PROTECTED]>
To: flexcomponents@yahoogroups.com
Sent: Saturday, December 2, 2006 9:49:54 PM
Subject: [flexcomponents] Re: wrap header text in datagrid ?









  



Arpan,



Try using headerWordWrap= "true" instead of wordWrap="true" I just

tested it and it works for me. 



-pablo 



--- In flexcomponents@ yahoogroups. com, arpan srivastava

 wrote:

>

> Hi ,

> I want to wrap header text in the datagrid. I did "wordWrap  =

true;" but not working.

> 

> 

> 

> 

>  

>

 _ _ _ _ _ _

> Need a quick answer? Get one in minutes from people who know.

> Ask your question on www.Answers. yahoo.com

>






  
















 

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

RE: [flexcoders] The most strange behavior I've seen with Flex...

2006-12-02 Thread Matt Chotin
I've re-opened some Player bugs on this.

 



From: Matt Chotin 
Sent: Saturday, December 02, 2006 7:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] The most strange behavior I've seen with
Flex...

 

I can only confirm that I've seen other apps with strange behavior with
wmode, in fact someone was describing similar behavior to me yesterday.
It's something I'll see if we can get looked at.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Nagle
Sent: Saturday, December 02, 2006 3:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] The most strange behavior I've seen with Flex...

 

I've uncovered some really odd behavior with my project, and I'm hoping
someone here can shed some light as to why it could be happening.

 

I've developed a game in AS3 and then I built a Flex interface to select
a game map to play.  It's a very simple HTTPService call to a standard
XML file, which contains a list of available game maps and corresponding
map file names, difficulty level, etc.

 

Everything works beautifully...the list loads and the various maps are
displayed and all is good.

 

UNLESS

 

I change the "wmode" to "opaque" in the html wrapper for the swf.  (I
have to do that in order to get the game to run smoothly at full frame
rate.)  When I do that, the XML file does not load.  How can that be??
It's 100% repeatable behavior, at least on my app.  With opaque in
wmode, no XML...without it, XML loads perfectly every time.

 

I have both modified the standard wrapper and also used SWFObject, and
the behavior is exactly the same.  It also happens regardless of whether
I'm using localhost or my remote shared server.  Apparently Flex simply
does not like an opaque wmode.

 

Any ideas???


-John

 



RE: [flexcoders] The most strange behavior I've seen with Flex...

2006-12-02 Thread Matt Chotin
I can only confirm that I've seen other apps with strange behavior with
wmode, in fact someone was describing similar behavior to me yesterday.
It's something I'll see if we can get looked at.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Nagle
Sent: Saturday, December 02, 2006 3:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] The most strange behavior I've seen with Flex...

 

I've uncovered some really odd behavior with my project, and I'm hoping
someone here can shed some light as to why it could be happening.

 

I've developed a game in AS3 and then I built a Flex interface to select
a game map to play.  It's a very simple HTTPService call to a standard
XML file, which contains a list of available game maps and corresponding
map file names, difficulty level, etc.

 

Everything works beautifully...the list loads and the various maps are
displayed and all is good.

 

UNLESS

 

I change the "wmode" to "opaque" in the html wrapper for the swf.  (I
have to do that in order to get the game to run smoothly at full frame
rate.)  When I do that, the XML file does not load.  How can that be??
It's 100% repeatable behavior, at least on my app.  With opaque in
wmode, no XML...without it, XML loads perfectly every time.

 

I have both modified the standard wrapper and also used SWFObject, and
the behavior is exactly the same.  It also happens regardless of whether
I'm using localhost or my remote shared server.  Apparently Flex simply
does not like an opaque wmode.

 

Any ideas???


-John

 



[flexcoders] The most strange behavior I've seen with Flex...

2006-12-02 Thread John Nagle
I've uncovered some really odd behavior with my project, and I'm hoping someone 
here can shed some light as to why it could be happening.

I've developed a game in AS3 and then I built a Flex interface to select a game 
map to play.  It's a very simple HTTPService call to a standard XML file, which 
contains a list of available game maps and corresponding map file names, 
difficulty level, etc.

Everything works beautifully...the list loads and the various maps are 
displayed and all is good.

UNLESS

I change the "wmode" to "opaque" in the html wrapper for the swf.  (I have to 
do that in order to get the game to run smoothly at full frame rate.)  When I 
do that, the XML file does not load.  How can that be??  It's 100% repeatable 
behavior, at least on my app.  With opaque in wmode, no XML...without it, XML 
loads perfectly every time.

I have both modified the standard wrapper and also used SWFObject, and the 
behavior is exactly the same.  It also happens regardless of whether I'm using 
localhost or my remote shared server.  Apparently Flex simply does not like an 
opaque wmode.

Any ideas???

-John

Re: [flexcoders] Problem with code in Flex 2: Training from the Source book. Help!

2006-12-02 Thread John C. Bland II

Yeah, a lot of these books were written during beta days so things may be
off. Flex 2.0: Traing... used ICursorView but it is now IViewCursor (or vice
versa; one of the two is right). Then again, utils vs util COULD be a
mistype. :-)

On 12/2/06, {reduxdj} <[EMAIL PROTECTED]> wrote:


  I just picked up these books, i guess since there is an open-market on
flex 2 books they are cranking 'em out and with the new nature of flex
it's unavoidable.

Like i've noticed in the AS 3.0 cookbook, the flash.utils is flash.util

Errata sure Sucka!

Patrick

John C. Bland II wrote:
> Starting before the first panel, wrap the rest (down to the last
> ) in an HBox (see below). Keep in mind they wrote a lot of
> this book during alpha/beta days of Flex 2. There may be some code
> inconsistencies here/there.
>
> 
> http://www.adobe.com/2006/mxml
> "
> layout="absolute">
> 
> 
> 
> 
> 
> 
>
> 
>  width="100%" height="100%"
> title="Sales Chart">
> 
> 
> 
>
>  width="100%" height="100%">
>  width="100%" height="100%"
> title="Category Chart">
> 
> 
> 
>  width="100%" height="100%"
> title="Comparison Chart">
> 
> 
> 
> 
> 
> 
>
>
> On 12/1/06, *Abe Burnett* <[EMAIL PROTECTED]
> > wrote:
>
> Hi there,
>
> I've recently purchased the book, Flex 2: Training from the Source.
> I've hit on a problem with the code in one of the lessons.
>
> Basically, given the following code (which I've triple checked is
> correct--per the book, anyway), I end up with Sales Chart superimposed
> (it appears) over both Category Chart and Comparison Chart (which
> share a VBox). This is in contrast to the image in the book which
> depicts the Sales Chart on the left, and Category Chart above
> Comparison Chart to the Right. I can somewhat fix the problem by
> wrapping Sales Chart and the VBox enclosing Category Chart and
> Comparison Chart into an HBox, but it still doesn't look as
> aesthetically pleasing as the image on page 58 of the book.
>
> Has anyone else had the same problem with this book, and how is it
> resolved?
>
> The code:
>
> I've recently purchased your excellent book, Flex 2: Training from the
> Source. I'm plowing through Lesson 3 and run into a case where my
> results don't match what the book suggests I should have. Opening the
> code provided on the CD indicates that whatever error I have exists in
> the code on CD too (so it's not just me--user/learner operator). The
> problem is that the code for Dashboard.mxml as instructed ends up with
> views laying on top of one another. My VBox "rightCharts" laying under
> (I believe) my Panel "sales." I'm very new to Flex, so I thought I'd
> seek your assistance while I continue to try and figure out what's
> wrong. I did find one partial solution to the layout problem--a
> solution that at least puts the VBox for Category Chart and Comparison
> Chart on the right side of the screen and out of the way of the Panel
> Sales Chart. That solution involves wrapping both the Panel Sales
> Chart and the VBox enclosing Category Chart and Comparison Chart in an
> HBox. The problem with this solution is that it doesn't nicely offset
> the Sales Chart/Category Chart/Comparison Chart as depicted on
> page 58
> of the book. Instead it has them all laid out correctly, but the
> borders of each run from the very bottom of the screen to the very top
> of the screen, underneath the ApplicationControlBar. And from one side
> of the screen to the other. Layed out correctly, but not
> aesthetically
> pleasing as the book depicts. I'll keep playing with it, but in the
> meantime, this code doesn't render the desired results that the book
> indicates it should:
>
> 
> http://www.adobe.com/2006/mxml
> "
> layout="absolute">
> 
> 
> 
> 
> 
> 
>
>  width="100%" height="100%"
> title="Sales Chart">
> 
> 
> 
>
>  width="100%" height="100%">
>  width="100%" height="100%"
> title="Category Chart">
> 
> 
> 
>  width="100%" height="100%"
> title="Comparison Chart">
> 
> 
> 
> 
>
> 
>
>
>
>
> --
> John C. Bland II
> Chief Geek
> Katapult Media, Inc. - www.katapultmedia.com
> 
> ---
> Biz Blog - http://blogs.katapultmedia.com/jb2
> 
> Personal Blog - http://blog.blandfamilyonline.com
> 
> http://www.lifthimhigh.com  - "Christian
> Products for Those Bold Enough to Wear Them"
> Home of FMUG.az - http://www.gotoandstop.org 
> Home of AZCFUG - http://www.azcfug.org 
>







--
John C. Bland II
Chief Geek
Katapult Media, Inc. - www.katapultmedia.com
---
Biz Blog - http://blogs.katapultmedia.com/jb2
Personal Blog - http://blog.blandfamilyonline.com
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to
Wear Them"
Home of FMUG.az - http://www.gotoandstop.org
Home of AZCFUG - http://www.azcfug.org


[flexcoders] Re: Feature request? Ability to apply multiple states or views at once..

2006-12-02 Thread Mark Shepherd
Each component (in other words, each MXML file, including the main
application) can have its own states. So if your Notes area is in a
separate MXML file, then it can have its own set of states. Same for
any other discrete area of the screen that needs to have separate states. 

Does this help? 

Mark Shepherd
Adobe FlexBuilder Engineering
mark-shepherd.com




Re: [flexcoders] Feature request? Ability to apply multiple states or views at once..

2006-12-02 Thread Steve Hindle

Hi Dustin,

 It's 'based on' that actually 'teased' me with this...
As you start having more 'optional' things in the component
('noNotes','noSaveButton',etc), you end up with a 'states explosion'...
'based on' gets about half-way there, so I figured it could be enhanced to
handle the rest?
I could do it all by manually adding/removing child components, but that
seems like overkill.

Thanks!


[flexcoders] Global error / exception handler or event

2006-12-02 Thread Clint Modien
Right now when I miss an error in my Application there isn't any way
for me to be notified that an uncaught exception has occurred. (PLEASE
correct me if I'm wrong on that... like some low level undocumented
super hack?)

I know this got shelved way back when but I wanted to start a thread
to maybe get this feature implemented for Flex 3.

I know Ely has said that this would be extremely hard to do but I
wanted to let the Adobe folks know that this is one of those REALLY
nice to haves.  If I don't want to wrap "every" piece of code in a try
catch I still want to be able to log/handle that exception some
where.. some how.

Thanks

Clint Modien
Esria Inc.


Re: [flexcoders] FDS number NaN

2006-12-02 Thread Jeff Krueger
I have considered coming up with a number like -99 and then assume that to 
be null and initialize all my Number variables to it and then translate that in 
java to null.  But that is a hack at best.
   
  Anyone else??
   
  Jeff
  

Douglas McCarroll <[EMAIL PROTECTED]> wrote:
  Okay. So this is normal FDS behavior, as explained in the docs. The 
question becomes "How can we deal with this limitation of FDS?"

I don't know an answer but perhaps others on the list do.

Has anyone else wished that they could pass NaN or null into Java? How 
did you deal with this FDS limitation?

And perhaps Adobe could comment on whether there's any chance that this 
behavior will change in the future.

Douglas

Jeff Krueger wrote:
> This is correct. My Number in my as class isn't really null it is 
> NaN. But I believe that to be the actionscript equivalent to null for 
> a number. And yes when I pass that to java function that function 
> recieves the class with a 0 for the Long instead of null. 
> 
> Here is the output from the console of the app server. Notice the 
> variable XPos, YPos and deployed. See how what I send in is NaN (or 
> null) and it is converted to a 0.
> 
> [Flex] Deserializing AMF/HTTP request
> Version: 3
> (Message #0 targetURI=null, responseURI=/2)
> (Array #0)
> [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
> operation = "findStoryByExample"
> source = null
> body = (Array #1)
> [0] = "2"
> [1] = (Typed Object #2 'com.routeto1.flex.media.vo.StoryVO')
> headline = "c"
> XPos = NaN
> validToDate = null
> pageDef = null
> deployedPath = ""
> validFromDate = null
> subHeadline = ""
> storyGraphic = null
> YPos = NaN
> keywords = ""
> body = ""
> source = ""
> bylineOccupation = ""
> publishedDate = null
> otherReferences = ""
> referenceId = ""
> deployed = NaN
> byline = ""
> pk = ""
> updatedByUser = null
> selected = false
> dateUpdated = null
> copyForSearch = false
> createdByUser = null
> createdByUserName = ""
> dateCreated = null
> clientId = null
> timeToLive = 0
> messageId = "A5C134A1-DC44-4514-6B85-43FE21B96CB1"
> headers = (Object #3)
> DSEndpoint = "my-amf"
> destination = "mediaDelegate"
> timestamp = 0
> [Flex] Adapter 'java-object' called 
> 'com.routeto1.flex.media.MediaDelegate.findS
> toryByExample(java.util.Arrays$ArrayList (Collection size:2)
> [0] = 2
> [1] = com.routeto1.flex.media.vo.StoryVO
> YPos = 0
> dateUpdated = null
> XPos = 0
> byline =
> publishedDate = null
> dateCreated = null
> pageDef = null
> copyForSearch = true
> validFromDate = null
> validToDate = null
> deployedPath =
> createdByUser = null
> bylineOccupation =
> body =
> headline = c
> keywords =
> subHeadline =
> deployed = 0
> referenceId =
> pk =
> updatedByUser = null
> otherReferences =
> storyGraphic = null
> createdByUserName =
> source =
> )'
> 
> Thanks
> 
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
> Jeff,
>
> Let me get this clear. If I understand correctly you're passing an AS
> number hoping that it will convert to a Java Long. But your number is
> set to null, and you'd like it to convert to null on the Java type.
>
> Is this correct?
>
> Douglas
>
> Jeff Krueger wrote:
> > Thanks. I am not using a primitive, I am using Long. I wonder what
> > it does for those.
> >
> > Jeff
> >
> >
> > */Douglas McCarroll <[EMAIL PROTECTED]
> >/* wrote:
> >
> > Jeff,
> >
> > I'm not sure that this will help you find a solution, but it
> confirms
> > that this is a known issue:
> >
> >
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
> >
>  >
> >
> > "Primitive values cannot be set to null in Java. When passing
> Boolean
> > and Number values from the client to a Java object, Flex
> > interprets null
> > values as the default for primitive types; for example, 0 for
> double,
> > float, long, int, short, byte, \u for char, and false for
> > Boolean.
> > Only primitive Java types get default values."
> >
> > Douglas
> >
> > -
> >
> > Douglas McCarroll
> >
> > CairngormDocs.org Webmaster
> > http://www.CairngormDocs.org 
> >
> >
> > Flex Developer
> > http://www.brightworks.com 
> >
> > 617.459.3840
> >
> > -
> >
> > Jeff Krueger wrote:
> > > All,
> > >
> > > I am finding that when I pass a actionscript class to a remote
> > > java object and a number variable type

Re: [flexcoders] tabnavigator transitions

2006-12-02 Thread Yiðit Boyar
hmm, now i got the logic. (but did not try)
i did not used to know that i could add these effects to child containers,
thanks a lot...
in addition, is there a way to choose the transition effect?
- Original Message 
From: Dustin Mercer <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, December 2, 2006 11:55:35 PM
Subject: RE: [flexcoders] tabnavigator transitions









  



Yigit,

 

You can try to use the hide and show effects on the child containers of the 
TabNavigator.  The TabNavigator will play these effects when it changes.  Here 
is some small pseudo code...  You can use any of the Flex events in place of 
the fade affect. Note this was coded in Outlook, so not sure if it compiles, 
just wanted to throw something together for you.

 





 



 

 

 

 





 _ _ __



From: [EMAIL PROTECTED] ups.com on behalf of Yiðit Boyar

Sent: Sat 12/2/2006 11:06 AM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] tabnavigator transitions



after being a coder for years, i've always been away from design... but now i 
need to do some transition efect to my tabnavigator; but i could not find any 
example; can anyone please help me? (i need an example transition code that 
works on tabnavigator)

i need:

1: basic transition effect between tab changes for the tabnavigator

2: some special effect that i trigger between specific changes. (is this 
possible; i mean while passing from tab0 to tab4 , i want to play a special 
effect)



thanks for your helps..



Yigit Boyar



 _ _ __



Everyone is raving about the all-new Yahoo! Mail beta.   






  















__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: [flexcoders] tabnavigator transitions

2006-12-02 Thread Dustin Mercer
Yigit,
 
You can try to use the hide and show effects on the child containers of the 
TabNavigator.  The TabNavigator will play these effects when it changes.  Here 
is some small pseudo code...  You can use any of the Flex events in place of 
the fade affect. Note this was coded in Outlook, so not sure if it compiles, 
just wanted to throw something together for you.
 


 

 
 
 
 




From: flexcoders@yahoogroups.com on behalf of Yiðit Boyar
Sent: Sat 12/2/2006 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tabnavigator transitions



after being a coder for years, i've always been away from design... but now i 
need to do some transition efect to my tabnavigator; but i could not find any 
example; can anyone please help me? (i need an example transition code that 
works on tabnavigator)
i need:
1: basic transition effect between tab changes for the tabnavigator
2: some special effect that i trigger between specific changes. (is this 
possible; i mean while passing from tab0 to tab4 , i want to play a special 
effect)


thanks for your helps..

Yigit Boyar




Everyone is raving about the all-new Yahoo! Mail beta. 

  

 
<>

RE: [flexcoders] Feature request? Ability to apply multiple states or views at once..

2006-12-02 Thread Dustin Mercer
Out of curiousity have you looked at the basedOn property of the state?  This 
allows you to inherit from another state.  Not sure if this is something you 
have tried or not, but at first thought, this looks like it could work.  So 
your noNotes states would be based on your show state, and then your noNotes 
states could just hide the fields that you want hidden.  Hope this helps!
 
Dustin Mercer



From: flexcoders@yahoogroups.com on behalf of Steve Hindle
Sent: Sat 12/2/2006 12:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Feature request? Ability to apply multiple states or 
views at once..



Hi All,

I've been working on some basic CRUD screens, where it would be
really useful to be able to apply either multiple states or multiple
views at once (I think states would be better...)

for instance, I have a 'show' state that goes thru and makes all my
text entry fields non-editable. This gives me a nice 'display only'
version of my input record. I also have a large text-area for 'notes'
on the records - which I don't always want to show (to conserve screen
space). So I have a 'noNotes' view state. Unfortunately, if I want
to have a 'show,noNotes' state I have to replicate both the previous
states to achieve it...

It would be great to be able to specify that both the show and
noNotes states should be applied.


 
<>

[flexcoders] Re: printf similar function

2006-12-02 Thread Patrick Mineault
There is a Sprintf class for AS2, available here: 

http://natecook.com/downloads/sprintf.html

You can try running it through my AS2 to AS3 converter here:

http://www.5etdemi.com/convert/

Good luck,

Patrick

--- In flexcoders@yahoogroups.com, Lachlan Cotter <[EMAIL PROTECTED]>
wrote:
>
> Hi Misael,
> 
> That would be useful as ActionScript string concatenation operations  
> are fairly clumsy with more than a few pieces. Unfortunately the AS  
> String class doesn't seem to have such functionality. It's not so  
> hard to roll your own, because you don't need to worry about the  
> various types, you just need a single token and call toString() on  
> all the arguments. Here's a sketch of something, but it's not very  
> robust. You would have to add checking for zero-length arguments and  
> other unexpected conditions. It might get a bit trickier also if you  
> want to do various number formats like hexadecimal.
> 
> 
> http://www.adobe.com/2006/mxml";  
> layout="absolute"
>   creationComplete="testFormat()">
>   
>   
>   
> 
> 
> Cheers,
> Lach
> 
> 
> On 07/11/2006, at 11:13 PM, Misael wrote:
> 
> > Hi,
> >
> > is there an utility class, function or anything in AS3 with similar  
> > functionality of C printf function? I need to format a string just  
> > like I do it with this function, along with all the capabilities  
> > which comes along (%d, %s, etc).
> >
> > Thanks!
>




[flexcoders] Can't get focusRoundedCorners to work on ButtonBar

2006-12-02 Thread Patrick Mineault
I'm trying to accomplish the following: have a ButtonBar in which each
of the buttons has rounded corners (unlike the default where only the
left most and right most buttons have some rounded corners). I've been
playing with this for a while now, and I can't get it to work. Here's
some minimal code:


http://www.adobe.com/2006/mxml";
xmlns="*" 
layout="vertical">

ButtonBarButton
{
focus-rounded-corners:"tl tr bl br";
corner-radius:10;
}
.ButtonBarButton
{
focus-rounded-corners:"tl tr bl br";
corner-radius:10;
}















As you can corner-radius works correctly but focusRoundedCorners fails
in all circumstances. Some of the code here is redundant or
non-sensical but it's just to show that I have tried everything I
could think of. Any ideas?



[flexcoders] Feature request? Ability to apply multiple states or views at once..

2006-12-02 Thread Steve Hindle
Hi All,

  I've been working on some basic CRUD screens, where it would be
really useful to be able to apply either multiple states or multiple
views at once (I think states would be better...)

  for instance, I have a 'show' state that goes thru and makes all my
text entry fields non-editable. This gives me a nice 'display only'
version of my input record.  I also have a large text-area for 'notes'
on the records - which I don't always want to show (to conserve screen
space).  So I have a 'noNotes' view state.  Unfortunately, if I want
to have a 'show,noNotes' state I have to replicate both the previous
states to achieve it...

  It would be great to be able to specify that both the show and
noNotes states should be applied.


Re: [flexcoders] Problem with code in Flex 2: Training from the Source book. Help!

2006-12-02 Thread {reduxdj}
I just picked up these books, i guess since there is an open-market on 
flex 2 books they are cranking 'em out and with the new nature of flex 
it's unavoidable.

Like i've noticed in the AS 3.0 cookbook, the flash.utils is flash.util

Errata sure Sucka!

Patrick

John C. Bland II wrote:
> Starting before the first panel, wrap the rest (down to the last 
> ) in an HBox (see below). Keep in mind they wrote a lot of 
> this book during alpha/beta days of Flex 2. There may be some code 
> inconsistencies here/there.
>  
> 
> http://www.adobe.com/2006/mxml 
> "
> layout="absolute">
> 
> 
> 
> 
> 
> 
>  
> 
>  width="100%" height="100%"
> title="Sales Chart">
> 
> 
> 
>
>  width="100%" height="100%">
>  width="100%" height="100%"
> title="Category Chart">
> 
> 
> 
>  width="100%" height="100%"
> title="Comparison Chart">
> 
> 
> 
> 
> 
> 
>
>  
> On 12/1/06, *Abe Burnett* <[EMAIL PROTECTED] 
> > wrote:
>
> Hi there,
>
> I've recently purchased the book, Flex 2: Training from the Source.
> I've hit on a problem with the code in one of the lessons.
>
> Basically, given the following code (which I've triple checked is
> correct--per the book, anyway), I end up with Sales Chart superimposed
> (it appears) over both Category Chart and Comparison Chart (which
> share a VBox). This is in contrast to the image in the book which
> depicts the Sales Chart on the left, and Category Chart above
> Comparison Chart to the Right. I can somewhat fix the problem by
> wrapping Sales Chart and the VBox enclosing Category Chart and
> Comparison Chart into an HBox, but it still doesn't look as
> aesthetically pleasing as the image on page 58 of the book.
>
> Has anyone else had the same problem with this book, and how is it
> resolved?
>
> The code:
>
> I've recently purchased your excellent book, Flex 2: Training from the
> Source. I'm plowing through Lesson 3 and run into a case where my
> results don't match what the book suggests I should have. Opening the
> code provided on the CD indicates that whatever error I have exists in
> the code on CD too (so it's not just me--user/learner operator). The
> problem is that the code for Dashboard.mxml as instructed ends up with
> views laying on top of one another. My VBox "rightCharts" laying under
> (I believe) my Panel "sales." I'm very new to Flex, so I thought I'd
> seek your assistance while I continue to try and figure out what's
> wrong. I did find one partial solution to the layout problem--a
> solution that at least puts the VBox for Category Chart and Comparison
> Chart on the right side of the screen and out of the way of the Panel
> Sales Chart. That solution involves wrapping both the Panel Sales
> Chart and the VBox enclosing Category Chart and Comparison Chart in an
> HBox. The problem with this solution is that it doesn't nicely offset
> the Sales Chart/Category Chart/Comparison Chart as depicted on
> page 58
> of the book. Instead it has them all laid out correctly, but the
> borders of each run from the very bottom of the screen to the very top
> of the screen, underneath the ApplicationControlBar. And from one side
> of the screen to the other. Layed out correctly, but not
> aesthetically
> pleasing as the book depicts. I'll keep playing with it, but in the
> meantime, this code doesn't render the desired results that the book
> indicates it should:
>
> 
> http://www.adobe.com/2006/mxml
> "
> layout="absolute">
> 
> 
> 
> 
> 
> 
>
>  width="100%" height="100%"
> title="Sales Chart">
> 
> 
> 
>
>  width="100%" height="100%">
>  width="100%" height="100%"
> title="Category Chart">
> 
> 
> 
>  width="100%" height="100%"
> title="Comparison Chart">
> 
> 
> 
> 
>
> 
>
>
>
>
> -- 
> John C. Bland II
> Chief Geek
> Katapult Media, Inc. - www.katapultmedia.com 
> 
> ---
> Biz Blog - http://blogs.katapultmedia.com/jb2 
> 
> Personal Blog - http://blog.blandfamilyonline.com 
> 
> http://www.lifthimhigh.com  - "Christian 
> Products for Those Bold Enough to Wear Them"
> Home of FMUG.az - http://www.gotoandstop.org 
> Home of AZCFUG - http://www.azcfug.org 
>  




Re: [flexcoders] uploading an object

2006-12-02 Thread Daryn Nakhuda
The same author wrote a jpg encoder.

I was just hoping to leverage the existing middleware that accepts a 
multipart form upload to accept this binary data in the same manner.

Thanks for your advice!




Mike Weiland wrote:
>
> Daryn,
>
> I see what you really want to do is more akin to this:
>
> http://www.kaourantin.net/2005/10/png-encoder-in-as3.html 
> 
>
> I’ve used this for something similar, I believe someone has written a 
> JPG encoder, but all you need to do is grab the bitmap data of the web 
> cam and upload the binary to the middleware that actually converts the 
> binary to an actual file.
>
> Sorry, I thought you were trying to save a Flash object like an array 
> of arrays or something.
>
> Good luck,
>
> Mike Weiland
>
>
>
> On 12/1/06 12:01 PM, "Daryn Nakhuda" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Thanks Mike!
>
> I was trying to avoid using remoting, since I'm not using it anywhere
> else in my application (yet).
>
> Basically, I have a file upload to upload your picture, and I
> wanted to
> have a webcam snapshot option, that posted to the same existing
> backend
> piece. Doesn't sound like that is currently easy/possible.
>
> I'll look at the FMS solution though, as I am already using that
> elsewhere.
>
> Daryn
>
> Mike Weiland wrote:
> >
> > Daryn,
> >
> > It's possible, but probably not the way you are going about doing
> it.
> > I've taken 2 different paths to achieve this in the past, the first
> > was on www.CertificateCreator.com when a user saves a certificate
> the
> > object that describes the certificate is sent to ColdFusion and I
> > convert the object to WDDX and store that in the database. Then
> when a
> > certificate is opened it is retrieved from the database converted
> from
> > WDDX back to a ColdFusion object that Remoting converts back to a
> > Flash object. I've done this similar thing with .NET and PHP
> remoting,
> > the trick is to find what format your middleware can store in your
> > database.
> >
> > The second approach I've used was to use Flash Media Server to
> store a
> > remote shared object of the object. My app would make the remote
> > connection get the object and start up. This approach worked great
> > because there weren't a lot of objects that needed to be saved and
> > retrieve and the application doesn't have many concurrent hits that
> > would limit our license, plus after the retrieveal of the object the
> > remote connection is closed.
> >
> > I believe FDS has the same remote object capabilites as FMS has
> so you
> > might already have that end.
> >
> > Good luck,
> >
> > Mike Weiland
> >
> > Original Message ---
> > I have data in my flex app that I want to send to my server as if it
> > were a upload from a filereference (aka, as a multipart form).
> >
> > Is there a easy way to do that?
> >
> > Basically, I already have a backend servlet that accepts file uploads
> > from my flex app, and from an html browse form, and i'd like to use
> > that same backend with arbitrary serialized objects in my swf.
> >
> > Thanks,
> >
> > Daryn
> >
> >
>
>
>
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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/
 


[flexcoders] tabnavigator transitions

2006-12-02 Thread Yiðit Boyar
after being a coder for years, i've always been away from design... but now i 
need to do some transition efect to my tabnavigator; but i could not find any 
example; can anyone please help me? (i need an example transition code that 
works on tabnavigator)
i need:
1: basic transition effect between tab changes for the tabnavigator
2: some special effect that i trigger between specific changes. (is this 
possible; i mean while passing from tab0 to tab4 , i want to play a special 
effect)


thanks for your helps..

Yigit Boyar




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Re: [flexcoders] Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-02 Thread Kelly Birr
There is a "Windows XP Tablet PC Edition 2005", it's the name given to 
Windows XP Tablet PC Edition with SP2 installed.  That is what i run on 
My Toshia Portege M200 and I do run flex 2.0 applicaitons on it and it 
seems to run perfectly. 

I admittedly rarely use the pan/tablet features and could not testify to 
how well flash apps response to pen "gestures" but I just tried some 
simple point-and-click with the pen on my flash app and it works as 
expected.

- Kelly

Chris Hill wrote:
> AFAIK there is no Windows 2005 Tablet PC edition. I am running Windows 
> XP Tablet PC edition on this computer, is that what you're talking 
> about? Or are you perhaps running Vista on a Tablet PC?
>
>
> John Dowdell wrote:
>
>   
>> Steven Toth wrote:
>> 
>>> Has any testing been done of the Flash Player 9 on Windows 2005 Tablet
>>> PC edition? When running our application under Flash Player 7 it
>>> responded as expected. However, Flash Player 9 is responding poorly to
>>> pen gestures such as textInput focus and double click. We filed a bug
>>> report and the Adobe rep. that contacted us didn't know what Windows
>>> 2005 Tablet PC edition was and wasn't sure how to help us. Any help
>>> would be greatly appreciated. Thanks.
>>>   
>> I'm pulling up 18 Google references to search phrase "Windows 2005
>> Tablet PC"... variant phrases don't return good results either. Is there
>> another label I should be searching on to find others' experience with
>> similar machines...?
>>
>> tx,
>> jd
>>
>> -- 
>> John Dowdell . Adobe Developer Support . San Francisco CA USA
>> Weblog: http://weblogs.macromedia.com/jd 
>> 
>> Aggregator: http://weblogs.macromedia.com/mxna 
>> 
>> Technotes: http://www.macromedia.com/support/ 
>> 
>> Spam killed my private email -- public record is best, thanks.
>>
>>  
>> 
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>
>
>
>
>
>   



[flexcoders] Re: Flex 2 Charting align Axis

2006-12-02 Thread Tim Hoff

Hi Sönke,

I had the same question a while ago.  Ely was nice enough to point out
the obvoius.


   



 


-TH

--- In flexcoders@yahoogroups.com, Sönke Rohde <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> How do I align my Axis e.g. I'd like to have to horizontal axis on the
top
> instead on the bottom and the vertical axis on the right instead of
left.
>
> Thanks and Cheers,
> Sönke
>





Re: [flexcoders] FDS number NaN

2006-12-02 Thread Douglas McCarroll
Okay. So this is normal FDS behavior, as explained in the docs. The 
question becomes "How can we deal with this limitation of FDS?"

I don't know an answer but perhaps others on the list do.

Has anyone else wished that they could pass NaN or null into Java? How 
did you deal with this FDS limitation?

And perhaps Adobe could comment on whether there's any chance that this 
behavior will change in the future.

Douglas



Jeff Krueger wrote:
> This is correct.  My Number in my as class isn't really null it is 
> NaN.  But I believe that to be the actionscript equivalent to null for 
> a number.  And yes when I pass that to java function that function 
> recieves the class with a 0 for the Long instead of null. 
>  
> Here is the output from the console of the app server.  Notice the 
> variable XPos, YPos and deployed.  See how what I send in is NaN (or 
> null)  and it is converted to a 0.
>  
> [Flex] Deserializing AMF/HTTP request
> Version: 3
>   (Message #0 targetURI=null, responseURI=/2)
> (Array #0)
>   [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
> operation = "findStoryByExample"
> source = null
> body = (Array #1)
>   [0] = "2"
>   [1] = (Typed Object #2 'com.routeto1.flex.media.vo.StoryVO')
> headline = "c"
> XPos = NaN
> validToDate = null
> pageDef = null
> deployedPath = ""
> validFromDate = null
> subHeadline = ""
> storyGraphic = null
> YPos = NaN
> keywords = ""
> body = ""
> source = ""
> bylineOccupation = ""
> publishedDate = null
> otherReferences = ""
> referenceId = ""
> deployed = NaN
> byline = ""
> pk = ""
> updatedByUser = null
> selected = false
> dateUpdated = null
> copyForSearch = false
> createdByUser = null
> createdByUserName = ""
> dateCreated = null
> clientId = null
> timeToLive = 0
> messageId = "A5C134A1-DC44-4514-6B85-43FE21B96CB1"
> headers = (Object #3)
>   DSEndpoint = "my-amf"
> destination = "mediaDelegate"
> timestamp = 0
> [Flex] Adapter 'java-object' called 
> 'com.routeto1.flex.media.MediaDelegate.findS
> toryByExample(java.util.Arrays$ArrayList (Collection size:2)
>   [0] = 2
>   [1] = com.routeto1.flex.media.vo.StoryVO
> YPos = 0
> dateUpdated = null
> XPos = 0
> byline =
> publishedDate = null
> dateCreated = null
> pageDef = null
> copyForSearch = true
> validFromDate = null
> validToDate = null
> deployedPath =
> createdByUser = null
> bylineOccupation =
> body =
> headline = c
> keywords =
> subHeadline =
> deployed = 0
> referenceId =
> pk =
> updatedByUser = null
> otherReferences =
> storyGraphic = null
> createdByUserName =
> source =
> )'
>  
> Thanks
>  
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
> Jeff,
>
> Let me get this clear. If I understand correctly you're passing an AS
> number hoping that it will convert to a Java Long. But your number is
> set to null, and you'd like it to convert to null on the Java type.
>
> Is this correct?
>
> Douglas
>
> Jeff Krueger wrote:
> > Thanks. I am not using a primitive, I am using Long. I wonder what
> > it does for those.
> >
> > Jeff
> >
> >
> > */Douglas McCarroll <[EMAIL PROTECTED]
> >/* wrote:
> >
> > Jeff,
> >
> > I'm not sure that this will help you find a solution, but it
> confirms
> > that this is a known issue:
> >
> >
> 
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
> 
> >
> 
>  
> >
> >
> > "Primitive values cannot be set to null in Java. When passing
> Boolean
> > and Number values from the client to a Java object, Flex
> > interprets null
> > values as the default for primitive types; for example, 0 for
> double,
> > float, long, int, short, byte, \u for char, and false for
> > Boolean.
> > Only primitive Java types get default values."
> >
> > Douglas
> >
> > -
> >
> > Douglas McCarroll
> >
> > CairngormDocs.org Webmaster
> > http://www.CairngormDocs.org 

[flexcoders] Best Practice for creating a dynamic image array for online viewing.

2006-12-02 Thread pdflibpilot
I am trying to build an array of images from which to display 2 at a
time side by side dynamically. Its important that these images be
preloaded as much as possible to maximize response times. Ideally
loading atleast 6 images in advance as the user navigated through the
sequence.

What is the best practice model for loading several images into some
sort of array for displaying on-demand in respose to the user ?

I have explored using Loader and Sprite containers which I can get to
work okay for single images but I want to have images available 'in
the wings'. Not sure that displayContainers are the right objects for
storing and managing 'hidden' images.

I have also dissected some of the photo viewers samples out there and
they reference static images so they aren't much help.

Thanks for any suggestions



Re: [flexcoders] FDS number NaN

2006-12-02 Thread Jeff Krueger
This is correct.  My Number in my as class isn't really null it is NaN.  But I 
believe that to be the actionscript equivalent to null for a number.  And yes 
when I pass that to java function that function recieves the class with a 0 for 
the Long instead of null.  
   
  Here is the output from the console of the app server.  Notice the variable 
XPos, YPos and deployed.  See how what I send in is NaN (or null)  and it is 
converted to a 0.
   
  [Flex] Deserializing AMF/HTTP request
Version: 3
  (Message #0 targetURI=null, responseURI=/2)
(Array #0)
  [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
operation = "findStoryByExample"
source = null
body = (Array #1)
  [0] = "2"
  [1] = (Typed Object #2 'com.routeto1.flex.media.vo.StoryVO')
headline = "c"
XPos = NaN
validToDate = null
pageDef = null
deployedPath = ""
validFromDate = null
subHeadline = ""
storyGraphic = null
YPos = NaN
keywords = ""
body = ""
source = ""
bylineOccupation = ""
publishedDate = null
otherReferences = ""
referenceId = ""
deployed = NaN
byline = ""
pk = ""
updatedByUser = null
selected = false
dateUpdated = null
copyForSearch = false
createdByUser = null
createdByUserName = ""
dateCreated = null
clientId = null
timeToLive = 0
messageId = "A5C134A1-DC44-4514-6B85-43FE21B96CB1"
headers = (Object #3)
  DSEndpoint = "my-amf"
destination = "mediaDelegate"
timestamp = 0
  [Flex] Adapter 'java-object' called 
'com.routeto1.flex.media.MediaDelegate.findS
toryByExample(java.util.Arrays$ArrayList (Collection size:2)
  [0] = 2
  [1] = com.routeto1.flex.media.vo.StoryVO
YPos = 0
dateUpdated = null
XPos = 0
byline =
publishedDate = null
dateCreated = null
pageDef = null
copyForSearch = true
validFromDate = null
validToDate = null
deployedPath =
createdByUser = null
bylineOccupation =
body =
headline = c
keywords =
subHeadline =
deployed = 0
referenceId =
pk =
updatedByUser = null
otherReferences =
storyGraphic = null
createdByUserName =
source =
  )'
   
  Thanks
   
  Jeff
  

Douglas McCarroll <[EMAIL PROTECTED]> wrote:
  Jeff,

Let me get this clear. If I understand correctly you're passing an AS 
number hoping that it will convert to a Java Long. But your number is 
set to null, and you'd like it to convert to null on the Java type.

Is this correct?

Douglas

Jeff Krueger wrote:
> Thanks. I am not using a primitive, I am using Long. I wonder what 
> it does for those.
> 
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
> Jeff,
>
> I'm not sure that this will help you find a solution, but it confirms
> that this is a known issue:
>
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
>
> "Primitive values cannot be set to null in Java. When passing Boolean
> and Number values from the client to a Java object, Flex
> interprets null
> values as the default for primitive types; for example, 0 for double,
> float, long, int, short, byte, \u for char, and false for
> Boolean.
> Only primitive Java types get default values."
>
> Douglas
>
> -
>
> Douglas McCarroll
>
> CairngormDocs.org Webmaster
> http://www.CairngormDocs.org 
>
> Flex Developer
> http://www.brightworks.com 
> 617.459.3840
>
> -
>
> Jeff Krueger wrote:
> > All,
> >
> > I am finding that when I pass a actionscript class to a remote
> > java object and a number variable type in the actionscript class is
> > set to NaN (Null), that the java class gets set to a 0, instead
> of a
> > null. Is there something I am missing or something I need to set
> the
> > number to so it will be null in my java class?
> >
> > Thanks
> >
> > Jeff
> >
> >
> > --
> > Access over 1 million songs - Yahoo! Music Unlimited.
> >
>  >
>
> >
> >
>
>
> --
> Want to start your own business? Learn how on Yahoo! Small Business. 
>  
>
> 



 

 
-
Eve

Re: [flexcoders] Cairngorm’s Anaemic Doma in Model

2006-12-02 Thread Douglas McCarroll
 > In most cases the 'model' isn't much more than
 > a collection of dumb value objects without complex relationships.

Lach,

Have you seen Alex Uhlmann’s Dashboard Example - “How Business Logic Can 
Manage Views”?

You'll find links here:

http://cairngormdocs.org/blog/?p=20

I'm not sure that it addresses the main thrust of your concern, but it 
does talk about using more than "a collections of dumb value objects"...


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-



Ralf Bokelberg wrote:
>
> Good point. Lately we started to put more complex objects into the
> model locator. But as soon as you do this, you want to call their
> methods from the view directly and also encapsulate some of the
> cairngorm event dispatching in there. It doesn't really feel
> cairngorm. Therefore i'm also interested in other solutions.
>
> Cheers,
> Ralf.
>
> On 12/2/06, Lachlan Cotter <[EMAIL PROTECTED] 
> > wrote:
> > Something that troubles me about the Cairngorm architecture is the
> > apparent lack of any proper domain model. Although it is argued that
> > the domain model actually exists on the server and that the Flex
> > client is essentially a view, I have always found it necessary to
> > construct some kind of object graph of the domain on the client as well.
> >
> > I have two concerns regarding this.
> >
> > First, I have never seen examples or discussion of Cairngorm that
> > deals with this issue. In most cases the 'model' isn't much more than
> > a collection of dumb value objects without complex relationships.
> >
> > Second, and more importantly, pretty much all the logic of Cairngorm
> > apps seems to reside in the Command and Delegate classes with not
> > much to speak about in the actual model. It seems to be the Commands
> > that end up manipulating the application data directly, and I'm a
> > little uncomfortable with this.
> >
> > I think Cairngorm's a good method for managing code and iterative
> > development, but I'm not sure about how well it does encapsulation
> > and MVC.
> >
> > Anyone care to discuss?
> >
> > Cheers,
> > Lach
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
> 
> > Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED] 
> >
> Flex & Flash Consultant based in Cologne/Germany
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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] Problem with code in Flex 2: Training from the Source book. Help!

2006-12-02 Thread John C. Bland II

Starting before the first panel, wrap the rest (down to the last )
in an HBox (see below). Keep in mind they wrote a lot of this book during
alpha/beta days of Flex 2. There may be some code inconsistencies
here/there.


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



























On 12/1/06, Abe Burnett <[EMAIL PROTECTED]> wrote:


  Hi there,

I've recently purchased the book, Flex 2: Training from the Source.
I've hit on a problem with the code in one of the lessons.

Basically, given the following code (which I've triple checked is
correct--per the book, anyway), I end up with Sales Chart superimposed
(it appears) over both Category Chart and Comparison Chart (which
share a VBox). This is in contrast to the image in the book which
depicts the Sales Chart on the left, and Category Chart above
Comparison Chart to the Right. I can somewhat fix the problem by
wrapping Sales Chart and the VBox enclosing Category Chart and
Comparison Chart into an HBox, but it still doesn't look as
aesthetically pleasing as the image on page 58 of the book.

Has anyone else had the same problem with this book, and how is it
resolved?

The code:

I've recently purchased your excellent book, Flex 2: Training from the
Source. I'm plowing through Lesson 3 and run into a case where my
results don't match what the book suggests I should have. Opening the
code provided on the CD indicates that whatever error I have exists in
the code on CD too (so it's not just me--user/learner operator). The
problem is that the code for Dashboard.mxml as instructed ends up with
views laying on top of one another. My VBox "rightCharts" laying under
(I believe) my Panel "sales." I'm very new to Flex, so I thought I'd
seek your assistance while I continue to try and figure out what's
wrong. I did find one partial solution to the layout problem--a
solution that at least puts the VBox for Category Chart and Comparison
Chart on the right side of the screen and out of the way of the Panel
Sales Chart. That solution involves wrapping both the Panel Sales
Chart and the VBox enclosing Category Chart and Comparison Chart in an
HBox. The problem with this solution is that it doesn't nicely offset
the Sales Chart/Category Chart/Comparison Chart as depicted on page 58
of the book. Instead it has them all laid out correctly, but the
borders of each run from the very bottom of the screen to the very top
of the screen, underneath the ApplicationControlBar. And from one side
of the screen to the other. Layed out correctly, but not aesthetically
pleasing as the book depicts. I'll keep playing with it, but in the
meantime, this code doesn't render the desired results that the book
indicates it should:


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































--
John C. Bland II
Chief Geek
Katapult Media, Inc. - www.katapultmedia.com
---
Biz Blog - http://blogs.katapultmedia.com/jb2
Personal Blog - http://blog.blandfamilyonline.com
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to
Wear Them"
Home of FMUG.az - http://www.gotoandstop.org
Home of AZCFUG - http://www.azcfug.org


[flexcoders] Flex 2 Charting align Axis

2006-12-02 Thread Sönke Rohde
Hi,

How do I align my Axis e.g. I'd like to have to horizontal axis on the top
instead on the bottom and the vertical axis on the right instead of left.

Thanks and Cheers,
Sönke



RE: [flexcoders] Flex 2 Charting dynamic backgroundElements

2006-12-02 Thread Sönke Rohde
Hi Ely,
 
again thanks a lot. This was exactly what I was looking for.
 
Cheers,
Sönke


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Tuesday, November 28, 2006 6:19 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2 Charting dynamic backgroundElements


 
 
 
You mean it's in front of the gridlines?
 
The gridlines that appear in charts by default is really just another
backgroundElement.  by default, each chart creates a single instance of the
mx.charts.GridLines class, and inserts it into the backgroundElements array.
If you set your own background elements, you end up overriding the default.
But if you still want Gridlines, you can explicitly create your own
gridlines instance in the backgroundElements:
 
 

   


   
   ...
 
 
You can put it in front or behind your other background elements by changing
the order in the array (i.e., in the MXML).
 
Ely.
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sönke Rohde
Sent: Tuesday, November 28, 2006 12:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2 Charting dynamic backgroundElements





Hi Ely,
 
thank you for your detailed answer and the code examples.
This was not exactly what I am looking for but gave me the hints to solve my
problem.
The key is that your backgroundElement extends ChartingElement.
 
But now I have got the problem that the backgroundElement is in front of the
PlotChart lines.
How can I swap them?
 
Again thanks a lot,
Sönke


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Monday, November 20, 2006 7:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2 Charting dynamic backgroundElements


 
Hi Sonke (sorry, can't figure out how to type an umlaud (sp?) on an American
keyboard ):
 
It sounds like your problem is a prime candidate for a custom background
element.  If your shapes depend on the min max of the axes, that probably
means you want to annotate/illustrate a particular data value/range, yes?
Any time you're trying to draw data values, you should really be creating a
chart element (that's pretty much what they're there for). That means a
series, a backgroundElement, or an annotationElement.
 
 
I've attached a simple example of a custom background element that takes a
series of data values and draws matching bands in the background. It should
give you a starting point for what you're trying to do.
 
Ely.
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sönke Rohde
Sent: Sunday, November 19, 2006 6:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 Charting dynamic backgroundElements



Hi,

I have to draw shapes and lines into the background of a Plotchart.
The size/position of the shapes and lines depends on the minimum and maximum
of the horizontal and vertical linear axis.

My first try was to use the backgroundElements to solve this problem.
I created a shape, drawed a polygon on it and added it to the
backgroundElements:

var shape:Shape = new Shape();
var gr:Graphics = shape.graphics;
gr.moveTo(0, 20);
gr.beginFill(0xFF9900, 50);
gr.lineTo(0, 0);
gr.lineTo(100, 0);
gr.lineTo(100, 100);
gr.lineTo(0, 20);
gr.endFill();

backgroundElements.reverse();
backgroundElements.push( shape );

I reversed the array to keep the GridLines in the front.
The polygon is visible in the background but it is scaled to fit the size of
the PlotChart.
The shape has to keep its scaling.

How do I know the width/height of the PlotChart content area?
With this information and the min/max of the x/y axis I am able to do the
drawing.

Any hint is very appreciated.

Cheers,
Sönke







 



Re: [flexcoders] printf similar function

2006-12-02 Thread Lachlan Cotter

Hi Misael,

That would be useful as ActionScript string concatenation operations  
are fairly clumsy with more than a few pieces. Unfortunately the AS  
String class doesn't seem to have such functionality. It's not so  
hard to roll your own, because you don't need to worry about the  
various types, you just need a single token and call toString() on  
all the arguments. Here's a sketch of something, but it's not very  
robust. You would have to add checking for zero-length arguments and  
other unexpected conditions. It might get a bit trickier also if you  
want to do various number formats like hexadecimal.



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

creationComplete="testFormat()">





Cheers,
Lach


On 07/11/2006, at 11:13 PM, Misael wrote:


Hi,

is there an utility class, function or anything in AS3 with similar  
functionality of C printf function? I need to format a string just  
like I do it with this function, along with all the capabilities  
which comes along (%d, %s, etc).


Thanks!




[flexcoders] White box problem with custom scrollbar skins SOLVED

2006-12-02 Thread tombaggett
I'm in the process of creating a custom look for a Flex app and ran into
a problem while creating custom skins for scrollbars.  There is a
hard-coded shape object in the mx:Container class that creates a white
box in the bottom-right corner, between the horizontal and vertical
scroll bars.

The "whiteBox" object is declared as a private data member and
instantiated and destroyed in a private function, seemingly putting it
out of reach of my derived classes.  Fortunately, I found an easy
workaround that I post about in detail on my blog here:

http://tommyb.com/2006/11/30/flex-using-custom-scrollbar-skins-youll-run\
-into-this-problem/


The short version of it is this:  Create overridden versions of both the
createChildren and validateDisplayList functions, locate the shape by
name in the display list and delete it.  FYI for anyone else that runs
into this problem!



Re: [flexcoders] uploading an object

2006-12-02 Thread Mike Weiland
Daryn,

I see what you really want to do is more akin to this:

http://www.kaourantin.net/2005/10/png-encoder-in-as3.html

I¹ve used this for something similar, I believe someone has written a JPG
encoder, but all you need to do is grab the bitmap data of the web cam and
upload the binary to the middleware that actually converts the binary to an
actual file.

Sorry, I thought you were trying to save a Flash object like an array of
arrays or something.

Good luck,

Mike Weiland



On 12/1/06 12:01 PM, "Daryn Nakhuda" <[EMAIL PROTECTED]> wrote:

>  
>  
>  
> 
> Thanks Mike!
> 
> I was trying to avoid using remoting, since I'm not using it anywhere
> else in my application (yet).
> 
> Basically, I have a file upload to upload your picture, and I wanted to
> have a webcam snapshot option, that posted to the same existing backend
> piece. Doesn't sound like that is currently easy/possible.
> 
> I'll look at the FMS solution though, as I am already using that elsewhere.
> 
> Daryn
> 
> Mike Weiland wrote:
>> >
>> > Daryn,
>> >
>> > It's possible, but probably not the way you are going about doing it.
>> > I've taken 2 different paths to achieve this in the past, the first
>> > was on www.CertificateCreator.com when a user saves a certificate the
>> > object that describes the certificate is sent to ColdFusion and I
>> > convert the object to WDDX and store that in the database. Then when a
>> > certificate is opened it is retrieved from the database converted from
>> > WDDX back to a ColdFusion object that Remoting converts back to a
>> > Flash object. I've done this similar thing with .NET and PHP remoting,
>> > the trick is to find what format your middleware can store in your
>> > database.
>> >
>> > The second approach I've used was to use Flash Media Server to store a
>> > remote shared object of the object. My app would make the remote
>> > connection get the object and start up. This approach worked great
>> > because there weren't a lot of objects that needed to be saved and
>> > retrieve and the application doesn't have many concurrent hits that
>> > would limit our license, plus after the retrieveal of the object the
>> > remote connection is closed.
>> >
>> > I believe FDS has the same remote object capabilites as FMS has so you
>> > might already have that end.
>> >
>> > Good luck,
>> >
>> > Mike Weiland
>> >
>> > Original Message ---
>> > I have data in my flex app that I want to send to my server as if it
>> > were a upload from a filereference (aka, as a multipart form).
>> >
>> > Is there a easy way to do that?
>> >
>> > Basically, I already have a backend servlet that accepts file uploads
>> > from my flex app, and from an html browse form, and i'd like to use
>> > that same backend with arbitrary serialized objects in my swf.
>> >
>> > Thanks,
>> >
>> > Daryn
>> >
>> >  
> 
>  
> 




Re: [flexcoders] Cairngorm’s Anaemic Domain Model

2006-12-02 Thread Ralf Bokelberg
Good point. Lately we started to put more complex objects into the
model locator. But as soon as you do this, you want to call their
methods from the view directly and also encapsulate some of the
cairngorm event dispatching in there. It doesn't really feel
cairngorm. Therefore i'm also interested in other solutions.

Cheers,
Ralf.


On 12/2/06, Lachlan Cotter <[EMAIL PROTECTED]> wrote:
> Something that troubles me about the Cairngorm architecture is the
> apparent lack of any proper domain model. Although it is argued that
> the domain model actually exists on the server and that the Flex
> client is essentially a view, I have always found it necessary to
> construct some kind of object graph of the domain on the client as well.
>
> I have two concerns regarding this.
>
> First, I have never seen examples or discussion of Cairngorm that
> deals with this issue. In most cases the 'model' isn't much more than
> a collection of dumb value objects without complex relationships.
>
> Second, and more importantly, pretty much all the logic of Cairngorm
> apps seems to reside in the Command and Delegate classes with not
> much to speak about in the actual model. It seems to be the Commands
> that end up manipulating the application data directly, and I'm a
> little uncomfortable with this.
>
> I think Cairngorm's a good method for managing code and iterative
> development, but I'm not sure about how well it does encapsulation
> and MVC.
>
> Anyone care to discuss?
>
> Cheers,
> Lach
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


Re: [flexcoders] Best practices for displaying large texts

2006-12-02 Thread Lachlan Cotter

Hi Pablo,

I'm not sure this is the best answer to your question but as far as I  
know the Text component is the right choice for displaying multi- 
line, non-editable text. If you want your users to be able to edit  
the text, you can use a TextArea instead.


I'm don't know of a way to do justified text in Flex. Sorry.

Lach

On 30/11/2006, at 12:15 AM, Pablo Apanasionek wrote:


Hey,

I'm trying to figure out the best (or at least optimal) way to  
display a large text (e.g. a news article) with several paragraphs  
using Flex 2. Would a Text control be the right one to use? Or is  
there another technique that would render better? Is there any way  
to justify text on -both- sides?


Thanks in advance,
Pablo Gustavo Apanasionek




[flexcoders] Cairngorm’s Anaemic Domain Model

2006-12-02 Thread Lachlan Cotter
Something that troubles me about the Cairngorm architecture is the  
apparent lack of any proper domain model. Although it is argued that  
the domain model actually exists on the server and that the Flex  
client is essentially a view, I have always found it necessary to  
construct some kind of object graph of the domain on the client as well.

I have two concerns regarding this.

First, I have never seen examples or discussion of Cairngorm that  
deals with this issue. In most cases the 'model' isn't much more than  
a collection of dumb value objects without complex relationships.

Second, and more importantly, pretty much all the logic of Cairngorm  
apps seems to reside in the Command and Delegate classes with not  
much to speak about in the actual model. It seems to be the Commands  
that end up manipulating the application data directly, and I'm a  
little uncomfortable with this.

I think Cairngorm’s a good method for managing code and iterative  
development, but I'm not sure about how well it does encapsulation  
and MVC.

Anyone care to discuss?

Cheers,
Lach


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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] drawing a stack of rectangle ?

2006-12-02 Thread Lachlan Cotter

Hi Arpan,

What would you _like_ to have happen?


On 26/11/2006, at 5:52 PM, arpan srivastava wrote:


Hi,
 I am drawing a stack which contans rectangles of different  
depending on some value. rectangles are drawn but they are  
overlapping each other by 1 or 2 pixels at the end.


I have to highlight the rectangles also, for that I am creating a  
rectangle on mouseOver event and adding the rectangle on the same  
rectangle that I am highlighting, but this way the lower border of  
the highlighter gets covered by the rectangle below that.




Re: [flexcoders] Problems with dynamic column series showDataEffect

2006-12-02 Thread Lachlan Cotter

Hi Dan,

I don't have any experience with charting components, but is there a  
way to test if the effects are triggered? Do you need to use an  
ArrayCollection instead of a plain array to manipulate the series  
information? I believe this makes a difference with binding-related  
behaviours.


Cheers,
Lach


On 25/11/2006, at 9:08 AM, daannnb wrote:


Hi All

I'm sorry to post this twice, but still no nearer to a solution, I'm
having a few problems assigning data effects to a dynamically
generated column series, while I can create a new series dynamically
ok, just don't seem to be able to get the showDataEffect to work, a
cut down version of the code that I'm using is below;


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

























Can anyone see what I'm doing wrong? Again, very sorry for the
double post

Regards

Dan




[flexcoders] Problem with code in Flex 2: Training from the Source book. Help!

2006-12-02 Thread Abe Burnett
Hi there,

I've recently purchased the book, Flex 2: Training from the Source.
I've hit on a problem with the code in one of the lessons. 

Basically, given the following code (which I've triple checked is
correct--per the book, anyway), I end up with Sales Chart superimposed
(it appears) over both Category Chart and Comparison Chart (which
share a VBox). This is in contrast to the image in the book which
depicts the Sales Chart on the left, and Category Chart above
Comparison Chart to the Right. I can somewhat fix the problem by
wrapping Sales Chart and the VBox enclosing Category Chart and
Comparison Chart into an HBox, but it still doesn't look as
aesthetically pleasing as the image on page 58 of the book. 

Has anyone else had the same problem with this book, and how is it
resolved? 

The code:

I've recently purchased your excellent book, Flex 2: Training from the
Source. I'm plowing through Lesson 3 and run into a case where my
results don't match what the book suggests I should have. Opening the
code provided on the CD indicates that whatever error I have exists in
the code on CD too (so it's not just me--user/learner operator).  The
problem is that the code for Dashboard.mxml as instructed ends up with
views laying on top of one another. My VBox "rightCharts" laying under
(I believe) my Panel "sales." I'm very new to Flex, so I thought I'd
seek your assistance while I continue to try and figure out what's
wrong. I did find one partial solution to the layout problem--a
solution that at least puts the VBox for Category Chart and Comparison
Chart on the right side of the screen and out of the way of the Panel
Sales Chart. That solution involves wrapping both the Panel Sales
Chart and the VBox enclosing Category Chart and Comparison Chart in an
HBox. The problem with this solution is that it doesn't nicely offset
the Sales Chart/Category Chart/Comparison Chart as depicted on page 58
of the book. Instead it has them all laid out correctly, but the
borders of each run from the very bottom of the screen to the very top
of the screen, underneath the ApplicationControlBar. And from one side
of the screen to the other. Layed out correctly, but not aesthetically
pleasing as the book depicts. I'll keep playing with it, but in the
meantime, this code doesn't render the desired results that the book
indicates it should:


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






















   





Re: [flexcoders] correct way to create rectangles ?

2006-12-02 Thread Lachlan Cotter

Hello Arpan,

There's nothing wrong with the way you have done it. Consider, if you  
create child components for each of the rectangles, you will have to  
create a new class and paramatise it so they know what colour to  
draw, then you will have to instantiate them, using up memory and  
cycles, then you will have to write code to position them and manage  
them. Is there any added value or functionality in that approach  
which justifies it versus what you have now?


One possible advantage is that you will get layering functionality.  
Do you need that?


There is some middle ground. You can create a class which manages the  
drawing of the rectangles but which isn't actually a sprite subclass.  
It could just be a regular object which you can use to draw within  
the context of your UIComponent. I have used this technique for  
instance to draw grid lines on a custom chart like component where I  
wanted to break up the drawing logic but didn't want to create sub- 
components.


The only reason for this is to manage complexity. What you have is  
perfectly valid. Remember to g.clear() at the beginning unless you  
want to smear your component when you move or resize it.


Cheers,
Lach


On 01/12/2006, at 6:51 PM, arpan srivastava wrote:


Hi,
I have to draw 5 rectangle inside a class extending  
UIComponent. I have done this :


// Draw first base rectangle
g.beginFill(baseRectColor1);
g.drawRect(0,baseY,bRW1,baseRectHeight);
g.endFill();

// Draw second base rectangle
g.beginFill(baseRectColor2);
g.drawRect(bRW1,baseY,bRW2,baseRectHeight);
g.endFill();

// Draw third base rectangle
g.beginFill(baseRectColor3);
g.drawRect(bRW2 + bRW1,baseY,bRW3,baseRectHeight);

g.endFill();


   is this approach ok or should I create new sprite object for  
each rectangle and add it to the class. ?




[flexcoders] Flash Player 9 beta 2 linux

2006-12-02 Thread devisbalsemin
Hi to all,
i have tested my appliction with fsp9 bet 2 and all work fine, also
work my-rtmp chanell.
Only if i call my app.swf work! with app.mxml compile my app but don't
display no data.
Good work adobe!




Re: [flexcoders] MXML editing in Eclipse (not Flex Builder2)

2006-12-02 Thread David Harris
Thanks guys!

@Tom: the picture on the link you sent me makes my eyes water!

On 12/1/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Thursday 30 November 2006 18:16, David Harris wrote:
> > I am using eclipse and was wondering if anyone had managed to get
> > Eclipse to provide MXML insite to the standard MXML tags by providing
> > a DTD or some type of definition doc?
>
> http://thefalken.livejournal.com/31865.html
>
> > I know there are AS editors, so I will look in to that soon too, but
> > if anyone knows an AS3 Eclipse plug in, that would be great too.
>
> The AS2 one from sourceforge works perfectly well
>
> --
> Tom Chiverton
> Helping to adaptively industrialize proactive networks
>
> 
>
> 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 
> St James's Court Brown Street Manchester M2 2JF.  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 Law Society.
>
> 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 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


[flexcoders] wrap header text in datagrid ?

2006-12-02 Thread arpan srivastava
Hi ,
I want to wrap header text in the datagrid. I did "wordWrap  = true;" but 
not working.




 

Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com

Re: [flexcoders] Re: Set combobox selection to data "copy paste code"

2006-12-02 Thread Yiðit Boyar
here is the copy paste code:
private function findMyVal(cb:ComboBox,n:Number):Number{
for(var i:Number=0;i




- Original Message 
From: camlinaeizerous <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, December 1, 2006 9:15:30 PM
Subject: [flexcoders] Re: Set combobox selection to data









  





--- In [EMAIL PROTECTED] ups.com, Yiðit Boyar 

wrote:

>

> i dont know whether there is a better way or not but i've used the

fallowing way.

> assume needed_val is the variable which is equal to the  data of the

one which should be selected (number in the example)

> 

> 

>

> and in the findMyVal function:

> private function findMyVal(obj: ComboBox , wanted:Number) :Number{

> for (var i:Number=0 ; i < obj.dataProvider. length;i+ +){

> if(wanted = = obj.dataProvider[ i].id ) //i assumed that the

data label is id of the dataProvider

> return i;

> }

> return 0;

> }

>

> whenever the dataProvider is refreshed, the function will

"automatically" be called and set the right selected index...

> by the way, i did not copy and paste a code so it may include some

typing errors, but the logic is this...

>

> i wish it helps, if this does not work, send a reply and  i can send a

copy paste code that surely works.

>

> Yigit Boyar

> Middle East Technical University Dept of Computer Science / sophomore

> - Original Message 

> From: Wally Randall wally.randall@ ...

> To: [EMAIL PROTECTED] ups.com

> Sent: Friday, December 1, 2006 2:51:13 PM

> Subject: [flexcoders] Set combobox selection to data

>

>

>

>

>

>

>

>

>

>

>

>

>

> How do I set the selected value of a combobox to that of

the data

>

> returned from the database record?

>

>

>

>

>

>

>

>

>

>

>

>

>

>

> 

>

>

>

>

>

>

>

>

>

>

 _ _ _ _ _ _\



> Do you Yahoo!?

> Everyone is raving about the all-new Yahoo! Mail beta.

> http://new.mail. yahoo.com

>






  
















 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

Re: [flexcoders] Igor: override a resize event or lock a VBox container... no idea how

2006-12-02 Thread Igor Costa

http://www.google.com/search?hl=en&q=Actionscript+3+override+a+function&btnG=Google+Search

here's a good collection of example.


Best.



On 12/2/06, {reduxdj} <[EMAIL PROTECTED]> wrote:



>
>
>
> how do i override a resize event or lock a VBox container not to
> get smaller as children are removed
>
> just uses the override method, please take a look at the help.
>

Igor:

I searched through help, there's nothing specific mentioning overriding
a method to stop a resize event.
You have to figure that I'm learning so I need examples to see these work.

Thanks,
Patrick

>
>
>
> Regards.
>
> On 11/30/06, * [EMAIL PROTECTED]  *
<[EMAIL PROTECTED] 
> > wrote:
>
> These little things take me forever to find and i simply can't find
> these solutions easily, if you have a moment. Answer one or two of
> them.
>
> I appreciate it, i'd gladly paypal you a few bucks for a peet's
> coffee, i'm going to get one myself and maybe i'll have my answer
> when i return, yum.
>
> Thanks,
> Patrick
>
> 1. How do I get the length of my UITextField, not 100% - that's just
> plain silly
>
> 2. What if i don't want a broken image skin, no image i want nothing
>
> 3. how do i override a resize event or lock a VBox container not to
> get smaller as children are removed
>
> 4. How do I set the font of UITextField with stylesheet, or embedded
> font
>
> 5. How do I make the UITextfield's font not to be so pixelated.
>
>
>
>
> --
> 
> Igor Costa
> www.igorcosta.com 
>

 





--

Igor Costa
www.igorcosta.com