RE: [flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread Tracy Spratt
Use the = operator.  

 

We need more detail if you want a more detailed answer.  Post what you have
so far.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, March 12, 2009 1:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: storing login data from a cfquery for use throught
flex app

 

hi how do i assign the properties of UserInfo in the result handler?





[flexcoders] FlexPrintJob - start function

2009-03-12 Thread arieljake
How does the start function pause the execution of code until the print dialog 
is responded to?

Could the Flex guys provide us a way to do something like that ourselves? Like, 
instead of having to use listeners with an Alert?



Re: [flexcoders] Control remote desktop with Flash

2009-03-12 Thread Carlos Rovira
thanks sam, I was aware of fvnc but it's not a solution since the user must
have a vnc server and for standard users this woud be not possible.
Adobe uses a special plugin installed when you become presenter, I think I
'm searching something like that

thanks!

Carlos


2009/3/12 Sam Lai samuel@gmail.com

   http://www.google.com/search?hl=enrls=com.microsoft%3A*q=vnc+flash

 2009/3/12 Carlos Rovira carlos.rov...@gmail.comcarlos.rovira%40gmail.com
 :

  Hi all!
 
  I need a way to control remote desktops within a Flex Application. I have
 a
  client with an ActiveX solution and we want to change their collaborative
  applications to Flash RIA (chats, video chats, etc...). The only show
  stopper is this special functionality that I saw in Adobe Connect through
 a
  special plugin developed by Adobe but from what I know, there's no way to
  get it outside Adobe Connect (and we need a solution we can integrate in
 our
  software)
 
  Someone could point me to an Open Source solution? if not...commercial
  maybe?
 
  Thanks in advance
 
  Carlos Rovira
 
 
 
  



[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread stinasius
in my cfc the return type is boolean and is set to return true if there is a 
match. when i set the return type to query to return the query 
result(checkAuthentication), nothing happens.

cffunction name=loginUser access=remote returntype=boolean
cfargument name=username type=string required=true/
cfargument name=password type=string required=true/

cfquery name=checkAuthentication 
datasource=authentication
  SELECT *
  FROM profile
  where username = cfqueryparam 
cfsqltype=cf_sql_varchar value=#arguments.username#
and Password = cfqueryparam 
cfsqltype=cf_sql_varchar value=#arguments.password#
/cfquery  

cfif checkAuthentication.recordCount EQ 1
   cfreturn true/
   !---cfreturn checkAuthentication---
cfelse
   cfreturn false/
/cfif
   /cffunction



[flexcoders] Streaming radio

2009-03-12 Thread aphexyuri
I was wondering if anyone has played with streaming radio to a flash / flex ui?



[flexcoders] ListBase error

2009-03-12 Thread Simon Bailey

Hi all,

Any ideas why on scroll of a datagrid the #1010 error is firing from  
the ListBase class on this line of code: rowMap[r.name].rowIndex =  
newIndex;


I have seen this problem in the past with Flex 2 and funnily enough  
have not seen it since, now its rearing its head again.  Using the  
below code (love the comments by the Adobe team)  and digging in the  
debugger I see that r.name (CustomGridRenderer3134) is not showing in  
list of items on the rowMap hence the error being thrown?


protected function shiftRow(oldIndex:int, newIndex:int, numCols:int,  
shiftItems:Boolean):void

{
var r:IListItemRenderer;
for (var j:int = 0; j  numCols; j++)
{
r = listItems[oldIndex][j];
if (shiftItems)
{
listItems[newIndex][j] = r;
rowMap[r.name].rowIndex = newIndex;
}
// this is sort of a hack to accomodate the fact that
// scrolling down does a splice which throws off these values.
// probably better to call shiftRow with different parameters?
else
rowMap[r.name].rowIndex = oldIndex;
}
if (shiftItems)
rowInfo[newIndex] = rowInfo[oldIndex];
}

Cheers, Simon

Re: [flexcoders] ListBase error

2009-03-12 Thread Simon Bailey

Here is the debug trace:

ypeError: Error #1010: A term is undefined and has no properties.
	at mx.controls.listClasses::ListBase/shiftRow()[C:\autobuild 
\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses 
\ListBase.as:6975]
	at mx.controls.dataGridClasses::DataGridBase/shiftRow()[C:\autobuild 
\3.2.0\frameworks\projects\framework\src\mx\controls\dataGridClasses 
\DataGridBase.as:2170]
	at mx.controls.listClasses::ListBase/scrollVertically()[C:\autobuild 
\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses 
\ListBase.as:6677]
	at mx.controls::DataGrid/scrollVertically()[C:\autobuild 
\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:5098]
	at mx.controls.listClasses::ListBase/set verticalScrollPosition()[C: 
\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls 
\listClasses\ListBase.as:1314]
	at mx.controls::DataGrid/set verticalScrollPosition()[C:\autobuild 
\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:906]
	at mx.controls::DataGrid/scrollHandler()[C:\autobuild\3.2.0\frameworks 
\projects\framework\src\mx\controls\DataGrid.as:1942]

at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks 
\projects\framework\src\mx\core\UIComponent.as:9298]
	at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent() 
[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls 
\scrollClasses\ScrollBar.as:1261]
	at mx.controls.scrollClasses::ScrollThumb/mouseMoveHandler()[C: 
\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls 
\scrollClasses\ScrollThumb.as:206]


On 12 Mar 2009, at 11:35, Simon Bailey wrote:


Hi all,


Any ideas why on scroll of a datagrid the #1010 error is firing from  
the ListBase class on this line of code: rowMap[r.name].rowIndex =  
newIndex;


I have seen this problem in the past with Flex 2 and funnily enough  
have not seen it since, now its rearing its head again.  Using the  
below code (love the comments by the Adobe team)  and digging in the  
debugger I see that r.name (CustomGridRenderer3134) is not showing  
in list of items on the rowMap hence the error being thrown?


protected function shiftRow(oldIndex:int, newIndex:int, numCols:int,  
shiftItems:Boolean):void

{
var r:IListItemRenderer;
for (var j:int = 0; j  numCols; j++)
{
r = listItems[oldIndex][j];
if (shiftItems)
{
listItems[newIndex][j] = r;
rowMap[r.name].rowIndex = newIndex;
}
// this is sort of a hack to accomodate the fact that
// scrolling down does a splice which throws off these values.
// probably better to call shiftRow with different parameters?
else
rowMap[r.name].rowIndex = oldIndex;
}
if (shiftItems)
rowInfo[newIndex] = rowInfo[oldIndex];
}

Cheers, Simon






[flexcoders] Re: Find the middel of the screen

2009-03-12 Thread bartman279
Very cool, Sam.

Thanks!!

--- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote:

 You can get the screen resolution from the Capabilities object - see
 here 
 http://www.thedesilva.com/2008/06/finding-client-machine-capabilities-using-flex-flash/.
 From that you can work out the middle of the screen.
 





[flexcoders] Re: Control remote desktop with Flash

2009-03-12 Thread Amy
--- In flexcoders@yahoogroups.com, Carlos Rovira carlos.rov...@... wrote:

 Hi all!
 
 I need a way to control remote desktops within a Flex Application. I have a
 client with an ActiveX solution and we want to change their collaborative
 applications to Flash RIA (chats, video chats, etc...). The only show
 stopper is this special functionality that I saw in Adobe Connect through a
 special plugin developed by Adobe but from what I know, there's no way to
 get it outside Adobe Connect (and we need a solution we can integrate in our
 software)
 
 Someone could point me to an Open Source solution? if not...commercial
 maybe?

There was a guy in Italy who had developed an open source Flex app that allowed 
screen sharing.  I haven't heard any more about it since I saw his presentation 
at a conference, and I don't remember the name of the project.  I'm vaguely 
recalling that his name might have been Giorgio Natali...?

Maybe that will be enough for you to find info on this.

HTH;

Amy



[flexcoders] Re: ArrayCollection or XML

2009-03-12 Thread tiend...@ezweb.ne.jp
It's OK with me.
Anyway thanks Tracy

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 In all cases, use the appropriate API to navigate to the desired data
 object, then access the data via the methods and properties provided by that
 object.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of tiend...@...
 Sent: Wednesday, March 11, 2009 9:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ArrayCollection or XML
 
  
 
 Hi all guru,
 
 [Database Table]
 id
 firstname
 lastname
 
 At Backend I use PHP and Mysql. PHP script can return Array or XML string.
 At Flex app, I use Remote Object
 
 1)PHP script return Array:
 and in Flex code I get Array as :
 
 dp = new ArrayCollection( ArrayUtil.toArray(event.result));
 
 If I show dp in Datagrid or List, TileList - it OK . But I want to get
 value of firstname , lastname into textbox . I don't know , can flex do that
 ? And how to get value from ArrayCollection.
 
 2)PHP script return XML string :
 
 I don't know how to parse XML string and show result in textbox. And how to
 get value from XML string.
 
 Please help me or any idea
 
 Thanks





[flexcoders] Re: Maintaining sessions while interacting with Flex using alt back-end services

2009-03-12 Thread wubac1
Here are a couple of options I'm considering;

1.) When a page is being generated under an active session that contains a full 
screen Flex application (all interaction is with the Flex application), set the 
session lifetime to infinite.  When a user leaves the Flex application page, 
restore the session lifetime to the pre-Flex setting.  So, if a user leaves a 
page with a full screen Flex app and enters a non-Flex page, the session 
lifetime would be restored to a reason value (consistent for the entire site).

2.) Create a session/cookie with a token indicating that an application is in 
use.  When the user leaves the application, unset the token.  When validating a 
session, if it has expired, check for the token.  If the token exists, generate 
a new session.  This option may have security issues and assumes cookies are 
enabled.

Both options allow the flex application to exist without concern for sessions.  
Between the two, I'm leaning toward option 1.  This fits the need while not 
requiring a heartbeat from the application.  Are there issues associated with 
either of these options that need to be addressed?  Do you have other ideas?


--- In flexcoders@yahoogroups.com, wubac1 wub...@... wrote:

 I'm hoping someone can shed some light on a design issue I'm facing.  If I 
 have a sign in form external to Flex, but it controls access to the Flex 
 application, what are the best practices for maintaining the session when the 
 user is interacting with the Flex application?  I can provide the Flex 
 application the session ID, but what do I do with it to ensure that the 
 session does not expire while a user is working in the application?  I'm 
 using web services, so I wonder if I should be checking the session at the 
 point.  For example, if I have a PHP-based website hosting an adobe Flex 
 application, with a PHP sign in form, what should I be doing with regard to 
 Flex, if the application uses web services outside of PHP (such as gSOAP, 
 Axis2/C, or one of the various Java options)?
 
 I can see how this would work if the Flex application used PHP as the 
 back-end, since all communication would go though a single source that 
 manages the session.  However, what I don't understand and have found little 
 with regard to answers on the subject, is how to integrate a Flex application 
 that utilizes an alternate back-end from the hosting website.  I'm my case, 
 the alternate back-end is in the same domain, so I suspect there should be a 
 way to share the session information between PHP and other services such as 
 web services in gSOAP.  Has anyone faced this design issue?  Thoughts on an 
 appropriate solution?  Is this approach worth the trouble or should I be 
 calling PHP that then routes requests to the web services (or implements the 
 service)?
 
 A visualization:
 
 PHP login -- PHP back-end -- database
|
|
Flex  -- (PHP returns page with Flex Application)
 -- web service (non-PHP; but same domain) -- database





[flexcoders] Problems with HTTP Status Codes

2009-03-12 Thread park96
Hi all, 

I've been searching everywhere for a more comprehensive explanation 
or work around but here's my problem.

I have a flex app that dynamically accesses a bunch of xml files to 
populate and configure itself.  Some of these files do not change 
very often so I was hoping to use the URLRequest and set the 
If-Modified-Since HTTP Header to make the HTTP call.  If the file 
hasn't changed, I would just load it from a SharedObject thereby 
saving the download time.  I wrote a handler to handle the 
HTTPStatusEvent.HTTP_STATUS event, but when I run this, I always get 
a response code of 0.

I would like to get the response code of 304 from the http request 
and not deal with downloading if the file hasn't changed but have 
been banging my head on this problem all day.  I've read that FF 3 
and flex 3 might have this problem, but I also see this issue in 
Safari.

Anyone have any thoughts or experience with this problem?

Any help would be greatly appreciated.

S.Park



[flexcoders] Re: Maintaining sessions while interacting with Flex using alt back-end services

2009-03-12 Thread wubac1
If I did something like that, then the Flex application would effectively cause 
the session to never expire.  What I'm looking for is a way to integrate a Flex 
application with sessions such that user interaction in the application keeps 
the session alive.  That said, I'd also prefer to not make calls specific to 
maintaining the session, such as calling PHP and an alternate web service in 
the same domain.  If that is required, I'd be better off calling PHP and 
handling the service on the PHP side.

When a session is created, the session ID is provided with all calls back to 
that domain, correct?  So, is there a way to check the status of a session from 
a web service and keep it alive?  In other words, can I access the session 
information stored by PHP by an external source?

--- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... 
wrote:

 if your session expires every lets say 30 minutes, make the client hit a
 simple page that does nothing every lets say 25 minutes-
 make sure that this is not cached by appending a timestamp in the url
 
 On Wed, Mar 11, 2009 at 11:23 PM, wubac1 wub...@... wrote:
 
I'm hoping someone can shed some light on a design issue I'm facing. If
  I have a sign in form external to Flex, but it controls access to the Flex
  application, what are the best practices for maintaining the session when
  the user is interacting with the Flex application? I can provide the Flex
  application the session ID, but what do I do with it to ensure that the
  session does not expire while a user is working in the application? I'm
  using web services, so I wonder if I should be checking the session at the
  point. For example, if I have a PHP-based website hosting an adobe Flex
  application, with a PHP sign in form, what should I be doing with regard to
  Flex, if the application uses web services outside of PHP (such as gSOAP,
  Axis2/C, or one of the various Java options)?
 
  I can see how this would work if the Flex application used PHP as the
  back-end, since all communication would go though a single source that
  manages the session. However, what I don't understand and have found little
  with regard to answers on the subject, is how to integrate a Flex
  application that utilizes an alternate back-end from the hosting website.
  I'm my case, the alternate back-end is in the same domain, so I suspect
  there should be a way to share the session information between PHP and other
  services such as web services in gSOAP. Has anyone faced this design issue?
  Thoughts on an appropriate solution? Is this approach worth the trouble or
  should I be calling PHP that then routes requests to the web services (or
  implements the service)?
 
  A visualization:
 
  PHP login -- PHP back-end -- database
  |
  |
  Flex -- (PHP returns page with Flex Application)
  -- web service (non-PHP; but same domain) -- database
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





[flexcoders] Datagrid Display update problem

2009-03-12 Thread elnomdeguerre1
HI,

I know that there have been lots of discussion about the datagrid topic but I 
simply couldn't figure this bug out. 

I have a datagrid with a custom editor and renderer that displays an amount. 
Based on this amount I make a calculation which is then displayed in an 
adjacent uneditable cell. 

When the focus leaves the first cell the second cell is not updated 
immediately, I have to change focus to either outside the datagrid or to 
another row in the datagrid for the calculated amount to show up. 

I do call the the Datagrid(owner).invalidateList() function and I've tried the 
IList(dataprovider).itemupdated(data) function as well. None of them seem to 
work... I've even called invalidateDisplayList in desperation. 

The cell that is supposed to display the data has a custom itemrender(label), 
which does nothing but change the color of the text based on some other 
variable and assign text= data.CalculatedAmount on DataChange. I've debugged 
through this method and I do see that the data is is there, and it is assigned 
but it simply isn't shown on the screen.

I'm really at my wit's end with this problem. Any help would be greatly 
appreciated. 



[flexcoders] Re: How to get RemoteClass alias?

2009-03-12 Thread limscoder
awesome, thanks

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Use ObjectUtil.getClassInfo (In the mx.utils package) and look at the alias 
 property of the returned object.
 
 
 --- In flexcoders@yahoogroups.com, limscoder limscoder@ wrote:
 
  I have the following metadata attached to a class:
  [RemoteClass(alias=models.User)]
  public class User...
  
  Is there a way to retrieve the alias string from the class?
 





[flexcoders] Re: flash cs3 skinning

2009-03-12 Thread quinrou
Hi,

I used the scale9grid which is part of the flash cs3 ide. the button template 
in flash cs3 already offers the scale9grid guides. All I did is move them to 
the right place so it wouldn't deform my round bits on my skin.

here is the css I used to apply the skin

.flipButton
{
skin: ClassReference(FlipButtonSkin); 
color: 0xC8C8C8;
textRollOverColor: 0xFF;
textSelectedColor: 0xFF;
textAlign: left;
}


how would you apply the scale9grid to the skin in this case?


many thanks
S




--- In flexcoders@yahoogroups.com, Alain Thibodeau thibodeau.al...@... wrote:

 You mean you did the scale 9 in Flash with the guides or in the flex css? I 
 haven't had to set it in both before, but sounds like it isn't set properly. 
 I'd play around with the guides in flash and in the css...
 
 
 I've never had issues with it in flash or in css with bitmaps.
 
 http://www.adobe.com/devnet/flex/articles/flex_skins_08.html
 
 hth
 
 
 
 
 
 
 From: quinrou quin...@...
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, March 11, 2009 1:23:14 PM
 Subject: [flexcoders] flash cs3 skinning
 
 
 Hi,
 
 I have skinned a button using the flex skinning template in flash cs3. The 
 skinned is composed of bitmaps and vertors. The skin has some rounded corners 
 so I used a scale9grid to make sure they wouldn't be distorted when used.
 However when the skin is used in flex the scale9grid doesn't seem to work on 
 the bipmap, they are distorted. the vector graphics seem to behave as 
 expected.
 
 Does anyone know what I need to do to get this working properly?
 
 thanks
 S
 
 
 
 
 
   __
 Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
 favourite sites. Download it now at
 http://ca.toolbar.yahoo.com.





[flexcoders] flex + mysql unicode support

2009-03-12 Thread cvsikh
Hello all,

I am displaying data from mySql database.  This data some unicode text which I 
want to display in a datagrid in uncide.  Is this possble?

Thanks



[flexcoders] Re: ArrayCollection or XML

2009-03-12 Thread cvsikh
From help menu, click on Help contents and search for datagrid.  Open
the first result and you'll find your answer there about displaying
datagrid content in 'textbox'.

Basically, you can use dg.selectedItem.whichcolumn to show data any
where.
--- In flexcoders@yahoogroups.com, tiend...@... tienda...@... wrote:

 Hi all guru,

 [Database Table]
 id
 firstname
 lastname

 At Backend I use PHP and Mysql. PHP script can return Array or XML
string.
 At Flex app, I use Remote Object

 1)PHP script return Array:
 and in Flex code I get Array as :

 dp = new ArrayCollection( ArrayUtil.toArray(event.result));

 If I show dp in Datagrid or List, TileList - it OK . But I want to
get value of firstname , lastname into textbox . I don't know , can flex
do that ? And how to get value from ArrayCollection.

 2)PHP script return XML string :

 I don't know how to parse XML string and show result in textbox. And
how to get value from XML string.

 Please help me or any idea

 Thanks





[flexcoders] [ANN] Gilead 1.2.2

2009-03-12 Thread bruno.marchesson
The Gilead library (http://gilead.sourceforge.net) permits you to send 
Hibernate entities (and especially the partially loaded ones) to the Flex 
client side (through BlazeDS) without pain.

This release is a maintenance one, fixing half a dozen bugs, and providing many 
improvements (see release notes for details).

A particular work was made on improving clone performances for big object graph.

Hope this helps !
Bruno



[flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-12 Thread jedierikb
[Hello.  New to the list.  Found you from a google search for a bug I've 
encountered.  Looks like I've found the right people!]

I have encountered this same bug and wonder if there was ever a resolution?

As a work around, I have removed every bit of security enabled code (no 
javascript to actionscript calls) from my home-rolled rsl libraries.

Is there a way to build the SWC/SWFs or link to them or some crossdomain.xml 
trickery which can properly solve this problem?


--- In flexcoders@yahoogroups.com, Jamie S jsjph...@... wrote:

 Does Framework Caching affect the security settings?
 
 I was banging my head against a wall because my app was throwing
 security violations all over the place when an outside swf ( or
 JavaScript ) tried to access the main app. I was using
 Security.allowDomain(*) but it was being ignored completely. I
 turned framework caching off and everything worked again.
 
 What is the connection? How can I use framework caching and still keep
 my security settings intact?
 
 Jamie





[flexcoders] May I install Flex Builder 3 and Flex Builder 4 in same computer?

2009-03-12 Thread markflex2007
I hope they works independently and do nor affect each other.

Thanks for your help

Mark



Re: [flexcoders] May I install Flex Builder 3 and Flex Builder 4 in same computer?

2009-03-12 Thread Paul Kukiel
Yes you can on windows at least.  They work fine side by side.

Paul

On Thu, Mar 12, 2009 at 10:08 AM, markflex2007 markflex2...@yahoo.com wrote:
 I hope they works independently and do nor affect each other.

 Thanks for your help

 Mark

 


Re: [flexcoders] flex + mysql unicode support

2009-03-12 Thread Paul Kukiel
Yes it's possible I have a multi language application and have several
double byte languages displaying in flex datagrids via coldfusion.


Paul

On Wed, Mar 11, 2009 at 8:32 PM, cvsikh
sonofgurugobindsing...@hotmail.com wrote:
 Hello all,

 I am displaying data from mySql database. This data some unicode text which
 I want to display in a datagrid in uncide. Is this possble?

 Thanks

 


[flexcoders] Question from a C developper

2009-03-12 Thread christophe_jacquelin
Hello, 

I am a C developper and now I am developing in Action Script. I have questions 
about ActionScript

- Is it possible to define a variable as a long ? 

- How to program the overloading of an operator like the equal between 2 
objects of a same class.

- What is the equivalent of a structure ? 

- When I call a function with a parameter, did this parameter is modified when 
I return from this function ? 

- How to convert an int to a Number ? 

Thank you,
Christophe, 



Re: [flexcoders] Re: flash cs3 skinning

2009-03-12 Thread Alain Thibodeau
hi there,
What I meants was: I don't think you can apply scale 9 to a class in css. I 
think you can only do one or the other..either in flash with classes or in css 
with bitmaps, but not 100% sure on this, I've never had to do it.

I wonder why it isn't stretching properly from the flash, and I assume there is 
a reason you are using flash with bitmaps, perhaps because of an 
animation?...if there isn't then why not go with all bitmaps only? In that your 
css would look like something like this:

.flipButton{upSkin: 
Embed(source=../images/iconCloseImage.png,scaleGridLeft=1,scaleGridTop=1,scaleGridRight=2,scaleGridBottom=2);overSkin:
 
Embed(source=../images/iconCloseImage.png,scaleGridLeft=1,scaleGridTop=1,scaleGridRight=2,scaleGridBottom=2);downSkin:
 
Embed(source=../images/iconCloseImage.png,scaleGridLeft=1,scaleGridTop=1,scaleGridRight=2,scaleGridBottom=2);color:
 0xC8C8C8;textRollOverColor: FF;textSelectedColor: FF;textAlign
}: left;



 




From: quinrou quin...@yahoo.co.uk
To: flexcoders@yahoogroups.com
Sent: Thursday, March 12, 2009 6:37:33 AM
Subject: [flexcoders] Re: flash cs3 skinning


Hi,

I used the scale9grid which is part of the flash cs3 ide. the button template 
in flash cs3 already offers the scale9grid guides. All I did is move them to 
the right place so it wouldn't deform my round bits on my skin.

here is the css I used to apply the skin

.flipButton
{
skin: ClassReference( FlipButtonSkin ); 
color: 0xC8C8C8;
textRollOverColor: 0xFF;
textSelectedColor: 0xFF;
textAlign: left;
}

how would you apply the scale9grid to the skin in this case?

many thanks
S

--- In flexcod...@yahoogro ups.com, Alain Thibodeau thibodeau.alain@ ... 
wrote:

 You mean you did the scale 9 in Flash with the guides or in the flex css? I 
 haven't had to set it in both before, but sounds like it isn't set properly. 
 I'd play around with the guides in flash and in the css...
 
 
 I've never had issues with it in flash or in css with bitmaps.
 
 http://www.adobe. com/devnet/ flex/articles/ flex_skins_ 08.html
 
 hth
 
 
 
 
 
  _ _ __
 From: quinrou quin...@... 
 To: flexcod...@yahoogro ups.com
 Sent: Wednesday, March 11, 2009 1:23:14 PM
 Subject: [flexcoders] flash cs3 skinning
 
 
 Hi,
 
 I have skinned a button using the flex skinning template in flash cs3. The 
 skinned is composed of bitmaps and vertors. The skin has some rounded corners 
 so I used a scale9grid to make sure they wouldn't be distorted when used.
 However when the skin is used in flex the scale9grid doesn't seem to work on 
 the bipmap, they are distorted. the vector graphics seem to behave as 
 expected.
 
 Does anyone know what I need to do to get this working properly?
 
 thanks
 S
 
 
 
 
 
  _ _ _ _ _ _
 Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
 favourite sites. Download it now at
 http://ca.toolbar. yahoo.com.






  __
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/

Re: [flexcoders] May I install Flex Builder 3 and Flex Builder 4 in same computer?

2009-03-12 Thread Romuald Quantin
Where did you get a copy, is there any way I can try it as well?

Romu

Paul Kukiel wrote:

 Yes you can on windows at least. They work fine side by side.

 Paul

 On Thu, Mar 12, 2009 at 10:08 AM, markflex2007 markflex2...@yahoo.com 
 mailto:markflex2007%40yahoo.com wrote:
  I hope they works independently and do nor affect each other.
 
  Thanks for your help
 
  Mark
 
 

 



Re: [flexcoders] May I install Flex Builder 3 and Flex Builder 4 in same computer?

2009-03-12 Thread Paul Kukiel
At Max in Nov 2008.  It was for Max Attendees only.



On Thu, Mar 12, 2009 at 10:33 AM, Romuald Quantin
soundstep.mail...@googlemail.com wrote:
 Where did you get a copy, is there any way I can try it as well?

 Romu

 Paul Kukiel wrote:

 Yes you can on windows at least. They work fine side by side.

 Paul

 On Thu, Mar 12, 2009 at 10:08 AM, markflex2007 markflex2...@yahoo.com
 mailto:markflex2007%40yahoo.com wrote:
  I hope they works independently and do nor affect each other.
 
  Thanks for your help
 
  Mark
 
 



 


[flexcoders] Re: Question from a C developper

2009-03-12 Thread wubac1

long (c++)  -- uint (ActionScript)

There is no struct option in ActionScript, you can only create a class.

Only objects are pass by reference in ActionScript.

Converting an int to Number:

var i : int = 47;
var num : Number = i as Number;

--- In flexcoders@yahoogroups.com, christophe_jacquelin 
christophe_jacque...@... wrote:

 Hello, 
 
 I am a C developper and now I am developing in Action Script. I have 
 questions about ActionScript
 
 - Is it possible to define a variable as a long ? 
 
 - How to program the overloading of an operator like the equal between 2 
 objects of a same class.
 
 - What is the equivalent of a structure ? 
 
 - When I call a function with a parameter, did this parameter is modified 
 when I return from this function ? 
 
 - How to convert an int to a Number ? 
 
 Thank you,
 Christophe,





Re: [flexcoders] Question from a C developper

2009-03-12 Thread Alain Thibodeau
- Is it possible to define a variable as a long ? 
int is 32 bits and if you need bigger than go with Number
http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html
 

- How to program the overloading of an operator like the equal between 2 
objects of a same class.
Overloading is not possible in AS3, but google around some ppl have workarounds

- What is the equivalent of a structure ? 
I think you would want to use Object class...?

- When I call a function with a parameter, did this parameter is modified when 
I return from this function ? 
All ActionScript objects are always passed by reference except primitive data 
types: Boolean, Number, int, uint, and String
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=03_Language_and_Syntax_160_19.html
 
- How to convert an int to a Number ? 
just cast it
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html

 




From: christophe_jacquelin christophe_jacque...@yahoo.fr
To: flexcoders@yahoogroups.com
Sent: Thursday, March 12, 2009 10:27:32 AM
Subject: [flexcoders] Question from a C developper


Hello, 

I am a C developper and now I am developing in Action Script. I have questions 
about ActionScript

- Is it possible to define a variable as a long ? 

- How to program the overloading of an operator like the equal between 2 
objects of a same class.

- What is the equivalent of a structure ? 

- When I call a function with a parameter, did this parameter is modified when 
I return from this function ? 

- How to convert an int to a Number ? 

Thank you,
Christophe, 





  __
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/

Re: [flexcoders] flex + mysql unicode support

2009-03-12 Thread Alan K
If your app is set to use a unicode font, then you will have n0 problem.

Alan
I am displaying data from mySql database. This data some unicode text which I
want to display in a datagrid in uncide. Is this possble?






RE: [flexcoders] Question from a C developper

2009-03-12 Thread Yves Riel
Salut Christophe,
 
Other will definitely pitch in but here are some answers:
 
 Is it possible to define a variable as a long ?
 
The data type is Number. It's a IEEE-754 double-precision
floating-point number.
 
 How to program the overloading of an operator like the equal between 2
objects of a same class.
 
There are no operator overloading in AS3. You would have to code a
specific function (such as compare(a, b):Boolean) to achieve this. You
can only compare object instances using the == and === operators.
 
 What is the equivalent of a structure ?
 
You can use the Object data type. Basically {pair1:value1,
{pair1:value1}. It is not a structure but can be used for its
replacement I guess. You can also just code a plain old class.
 
 When I call a function with a parameter, did this parameter is
modified when I return from this function ?
 
All parameters are passed as reference except for the fundamental data
types (String, Number, int, uint, Boolean).

 How to convert an int to a Number ?
 
Numeric types are implicitely converted into each other. However, you
can cast it like this Number() if you want to make it clear in your
code.
 
 
http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=138809/stime=1236868087/nc1=1/nc2=2/nc3=3 


[flexcoders] Re: Question from a C developper

2009-03-12 Thread wubac1
Object equality can be done with the ObjectUtil.compare method or by 
utilization of the UID interface, depending on your needs.

I prefer uint over Number for representing a long.

--- In flexcoders@yahoogroups.com, Alain Thibodeau thibodeau.al...@... wrote:

 - Is it possible to define a variable as a long ? 
 int is 32 bits and if you need bigger than go with Number
 http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html
  
 
 - How to program the overloading of an operator like the equal between 2 
 objects of a same class.
 Overloading is not possible in AS3, but google around some ppl have 
 workarounds
 
 - What is the equivalent of a structure ? 
 I think you would want to use Object class...?
 
 - When I call a function with a parameter, did this parameter is modified 
 when I return from this function ? 
 All ActionScript objects are always passed by reference except primitive data 
 types: Boolean, Number, int, uint, and String
 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=03_Language_and_Syntax_160_19.html
  
 - How to convert an int to a Number ? 
 just cast it
 http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html
 
  
 
 
 
 
 From: christophe_jacquelin christophe_jacque...@...
 To: flexcoders@yahoogroups.com
 Sent: Thursday, March 12, 2009 10:27:32 AM
 Subject: [flexcoders] Question from a C developper
 
 
 Hello, 
 
 I am a C developper and now I am developing in Action Script. I have 
 questions about ActionScript
 
 - Is it possible to define a variable as a long ? 
 
 - How to program the overloading of an operator like the equal between 2 
 objects of a same class.
 
 - What is the equivalent of a structure ? 
 
 - When I call a function with a parameter, did this parameter is modified 
 when I return from this function ? 
 
 - How to convert an int to a Number ? 
 
 Thank you,
 Christophe, 
 
 
 
 
 
   __
 Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
 Canada Messenger at http://ca.beta.messenger.yahoo.com/





[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-12 Thread per.olesen
For the record. Someone provided me the solution i show below directly by email:

/**
* Runs on change converting all text to upper case
*/
private function changeHandlerToUpper(event:Event):void{
  event.target.text = event.target.text.toUpperCase();
}

which works fine.




[flexcoders] Prevent a custom controll appearing in the Design view.

2009-03-12 Thread Wesley Acheson
How do I prevent some custom controls appearing in the design view.  For
example when doing ItemRenderers or extending DataGridColumn or other such
like. There is no reason for the controls to appear in the custom components
box as they don't make sense to add to a layout.

Regards,

Wesley Acheson


[flexcoders] XSLT Processor for AS3?

2009-03-12 Thread Merrill, Jason
I've asked this on several lists, and Twitter, never had a single reply
yet. Hoping someone here knows.  

Is there an XSLT parser/processor for Actionscript 3?  I would like an
Actionscript native one to transform some XML client-side.  I have the
XSLT file for it already written, which I verified works fine
transforming with Javascript and IE browser's DOM, but I'm looking for
an Actionscript solution, not Javascript/IE, PHP or anything else.
Does this kind of class exist for Actionscript 3?  If not, I'm surprised
nobody has written one - maybe just too much work?   

In an ideal world, I am imagining someone has a class (or component)
that takes two arguments, an XML string or URL and an XSLT file, and
returns the transformed XML in the new format.  Anyone know if this
thing exists or at least is being worked on by either Adobe or the os
community?

Thanks,


Jason Merrill 

 Picture (Device Independent Bitmap) Bank of  America   |  Learning
Performance Solutions Instructional Technology  Media   

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx  





attachment: ole0.bmp

Re: [flexcoders] XSLT Processor for AS3?

2009-03-12 Thread Rick Winscot
In Flex? I suppose you could include the AIR libraries... and then...

http://blogs.adobe.com/briggs/2008/05/using_air_for_xslt_processing.html

Rick Winscot


On 3/12/09 11:05 AM, Merrill, Jason jason.merr...@bankofamerica.com
wrote:

  
  
 
 I¹ve asked this on several lists, and Twitter, never had a single reply yet.
 Hoping someone here knows.
 
 Is there an XSLT parser/processor for Actionscript 3?  I would like an
 Actionscript native one to transform some XML client-side.  I have the XSLT
 file for it already written, which I verified works fine transforming with
 Javascript and IE browser's DOM, but I'm looking for an Actionscript solution,
 not Javascript/IE, PHP or anything else.   Does this kind of class exist for
 Actionscript 3?  If not, I'm surprised nobody has written one - maybe just too
 much work?   
 
 In an ideal world, I am imagining someone has a class (or component) that
 takes two arguments, an XML string or URL and an XSLT file, and returns the
 transformed XML in the new format.  Anyone know if this thing exists or at
 least is being worked on by either Adobe or the os community?
 
 Thanks,
 
 Jason Merrill
 
 Bank of  America   |  Learning Performance Solutions Instructional Technology
  Media  
 
 Monthly meetings on the Adobe Flash platform for rich media experiences - join
 the Bank of America Flash Platform Community
 http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx
 
 
 
 
   
 
 
 

image.png

Re: [flexcoders] Re: Question from a C developper

2009-03-12 Thread Maciek Sakrejda
I prefer uint over Number for representing a long.

To clarify, uint is just that: an unsigned 32-bit integer. A long is
(typically) a signed 64-bit integral number. A uint will allow you to
express numbers that are twice as large as the largest int, but that's
only a small fraction of the range of long (and it ignores the negative
range entirely).

A Number, as mentioned before, is an IEEE-754 double (64-bit floating
point number). The problem with representing longs as double is that at
some point, you'll find a long x such that

((Number) x) == ((Number) x + 1)

due to the properties of IEEE-754 floating point (i.e., there simply
aren't enough bits in the representation to distinguish those two). I'm
not sure what that long x is exactly.

So basically, there is no long in ActionScript. You can approximate one
with uint, you can approximate one with Number, or you can write your
own BigInteger class and do the math internally. That's probably going
to be quite ugly and complicated, especially since you can't use
operator overloading for basic arithmetic.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com





[flexcoders] Re: offline flex3 app - security error

2009-03-12 Thread banshee...@ymail.com
Hi Alex,

thank you, i already studied the whitepapers. I tried with the 
allowScriptAccess, allowNetworking parameters. Didn't work.

Now i tried the app on 3 windows laptops, IE and FF, and ... no problem ! Only 
on the macs here there is the network access warning  (?)
I'll have to try on other windows pc's...

rgrds,

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

 Read the whitepapers on Security on the Adobe web-site.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 




[flexcoders] Re: flex + mysql unicode support

2009-03-12 Thread cvsikh
Can you please provide information on this?

Thanks.
--- In flexcoders@yahoogroups.com, Alan K ultr...@... wrote:

 If your app is set to use a unicode font, then you will have n0 problem.
 
 Alan
 I am displaying data from mySql database. This data some unicode text which I
 want to display in a datagrid in uncide. Is this possble?





[flexcoders] Re: XSLT Processor for AS3?

2009-03-12 Thread Jason
--- In flexcoders@yahoogroups.com, Rick Winscot rick.wins...@... wrote:

 In Flex? I suppose you could include the AIR libraries... and then...
 
 http://blogs.adobe.com/briggs/2008/05/using_air_for_xslt_processing.html
 
 Rick Winscot



Yeah, came across that last night.  That uses Javascript still to do the heavy 
lifting– I'm looking for an Actionscript one actually (and the project is 
actually a Flash CS3 project). 

this functionality is exposed through AIR's Javascript API. Here's a 
Javascript method that takes an XML document, an XSL transformation, and 
returns the result of transforming the document:

Thanks anyway though.

Jason




[flexcoders] Re: flex + mysql unicode support

2009-03-12 Thread Cato Paus
one or another setting in mysql, you must specify the client input to unicode 
(UTF8) what flex have does not matters .. but if you use UTF8 in the SQL DB you 
should use UTF8 in Flex


--- In flexcoders@yahoogroups.com, cvsikh sonofgurugobindsing...@... wrote:

 Hello all,
 
 I am displaying data from mySql database.  This data some unicode text which 
 I want to display in a datagrid in uncide.  Is this possble?
 
 Thanks





RE: [flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread Tracy Spratt
I don't know CF well enough to help you with that, but that must be your
first goal, to get a successful login to return the user info to your Flex
result handler.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, March 12, 2009 4:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: storing login data from a cfquery for use throught
flex app

 

in my cfc the return type is boolean and is set to return true if there is a
match. when i set the return type to query to return the query
result(checkAuthentication), nothing happens.

cffunction name=loginUser access=remote returntype=boolean
cfargument name=username type=string required=true/
cfargument name=password type=string required=true/

cfquery name=checkAuthentication datasource=authentication
SELECT *
FROM profile
where username = cfqueryparam cfsqltype=cf_sql_varchar
value=#arguments.username#
and Password = cfqueryparam cfsqltype=cf_sql_varchar
value=#arguments.password#
/cfquery 

cfif checkAuthentication.recordCount EQ 1
cfreturn true/
!---cfreturn checkAuthentication---
cfelse
cfreturn false/
/cfif
/cffunction





Re: [flexcoders] Re: flex + mysql unicode support

2009-03-12 Thread Alan K
Can you please provide information on this?

Google embedding fonts with Flex.  But keep in mind that the entire Unicode
library is something like 30 megs.

Also Google about localizing flex apps.

Alan






[flexcoders] Re: Question from a C developper

2009-03-12 Thread wubac1
That's correct.  My use of uint is not a perfect replacement for long and is 
based on assumptions made for a specific project.  I should have been more 
clear about that.

ActionScript does not support long for portability purposes.  

--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote:

 I prefer uint over Number for representing a long.
 
 To clarify, uint is just that: an unsigned 32-bit integer. A long is
 (typically) a signed 64-bit integral number. A uint will allow you to
 express numbers that are twice as large as the largest int, but that's
 only a small fraction of the range of long (and it ignores the negative
 range entirely).
 
 A Number, as mentioned before, is an IEEE-754 double (64-bit floating
 point number). The problem with representing longs as double is that at
 some point, you'll find a long x such that
 
 ((Number) x) == ((Number) x + 1)
 
 due to the properties of IEEE-754 floating point (i.e., there simply
 aren't enough bits in the representation to distinguish those two). I'm
 not sure what that long x is exactly.
 
 So basically, there is no long in ActionScript. You can approximate one
 with uint, you can approximate one with Number, or you can write your
 own BigInteger class and do the math internally. That's probably going
 to be quite ugly and complicated, especially since you can't use
 operator overloading for basic arithmetic.
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com





[flexcoders] Re: XSLT Processor for AS3?

2009-03-12 Thread valdhor
I don't know of any AS3 library for XSLT.

Scott Peterson of Adobe converted libxslt (http://xmlsoft.org/XSLT/) to 
ActionScript with Alchemy (http://labs.adobe.com/technologies/alchemy/) and 
demoed it at Adobe Max 2007 Chicago...

http://arcanearcade.blogspot.com/2007/10/c-to-actionscript.html
http://tv.adobe.com/#vi+f1472v1033
http://www.youtube.com/watch?v=0hX-Uh3oTcE

You could either do it yourself or try contacting Scott to see if you can get 
it from him.


HTH



Steve


--- In flexcoders@yahoogroups.com, Jason jason.merr...@... wrote:

 --- In flexcoders@yahoogroups.com, Rick Winscot rick.winscot@ wrote:
 
  In Flex? I suppose you could include the AIR libraries... and then...
  
  http://blogs.adobe.com/briggs/2008/05/using_air_for_xslt_processing.html
  
  Rick Winscot
 
 
 
 Yeah, came across that last night.  That uses Javascript still to do the 
 heavy lifting– I'm looking for an Actionscript one actually (and the project 
 is actually a Flash CS3 project). 
 
 this functionality is exposed through AIR's Javascript API. Here's a 
 Javascript method that takes an XML document, an XSL transformation, and 
 returns the result of transforming the document:
 
 Thanks anyway though.
 
 Jason





[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-12 Thread valdhor
Don't you already know the username and password? You had to send them to CF 
for authentication. If the response is yes, populate your userinfo object; 
Otherwise, don't ;-}


--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:

 in my cfc the return type is boolean and is set to return true if there is a 
 match. when i set the return type to query to return the query 
 result(checkAuthentication), nothing happens.
 
 cffunction name=loginUser access=remote returntype=boolean
   cfargument name=username type=string required=true/
   cfargument name=password type=string required=true/
 
   cfquery name=checkAuthentication 
 datasource=authentication
 SELECT *
 FROM profile
 where username = cfqueryparam 
 cfsqltype=cf_sql_varchar value=#arguments.username#
   and Password = cfqueryparam 
 cfsqltype=cf_sql_varchar value=#arguments.password#
   /cfquery  
 
   cfif checkAuthentication.recordCount EQ 1
  cfreturn true/
  !---cfreturn checkAuthentication---
   cfelse
  cfreturn false/
   /cfif
  /cffunction





[flexcoders] Checkbox Itemrenderer centering mystery...

2009-03-12 Thread aceoohay
I have an itemrenderer that is a checkbox. I define textAlign=center in the 
datagriColumn. It doesn't center.

I decided to ask folks here so I created a simple test case to post, and 
unfortunately it works fine.

I tried adding some of the things that I do in the real module, and I can't get 
the test case to fail. The module that has the problem requires a lot of other 
code so I can't post it as a test case.

I have been told that I shouldn't use HBoxes and the like, as it adds weight 
to the module.

Anybody have any ideas as to what will cause an item renderer to NOT honor the 
textAlign of the dataGridColumn?

Paul



[flexcoders] Re: XSLT Processor for AS3?

2009-03-12 Thread Jason
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I don't know of any AS3 library for XSLT.
 
 Scott Peterson of Adobe converted libxslt (http://xmlsoft.org/XSLT/) to 
 ActionScript with Alchemy (http://labs.adobe.com/technologies/alchemy/) and 
 demoed it at Adobe Max 2007 Chicago...
 
 http://arcanearcade.blogspot.com/2007/10/c-to-actionscript.html
 http://tv.adobe.com/#vi+f1472v1033
 http://www.youtube.com/watch?v=0hX-Uh3oTcE
 
 You could either do it yourself or try contacting Scott to see if you can get 
 it from him.
 
 
 HTH
 
 
 
 Steve
 



Thanks, I was at that Max - but all I remember about that presentation was DOOM 
running in Flash :) 

Jason



[flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread Tim Hoff

All of your answers can be found here:

http://blogs.adobe.com/aharui/item_renderers/
http://blogs.adobe.com/aharui/item_renderers/

-TH

--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 I have an itemrenderer that is a checkbox. I define textAlign=center
in the datagriColumn. It doesn't center.

 I decided to ask folks here so I created a simple test case to post,
and unfortunately it works fine.

 I tried adding some of the things that I do in the real module, and I
can't get the test case to fail. The module that has the problem
requires a lot of other code so I can't post it as a test case.

 I have been told that I shouldn't use HBoxes and the like, as it adds
weight to the module.

 Anybody have any ideas as to what will cause an item renderer to NOT
honor the textAlign of the dataGridColumn?

 Paul





Re: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-12 Thread John Robinson
Yeah, I've been directly updating the properties. Here's the weird  
part... if I use the ArrayCollection as a dataProvider for a List  
control, it updates. If I use it for a custom control that I've  
created, it does not.


Example:

This works as expected:
mx:List dataProvider={model.users}/

This does not:
jr:customComponent dataProvider={model.users}/

//pseudo component source
customComponent
mx:Script
private var _dp:ArrayCollection;

public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
	trace(this fires when the AC is created, but not when it's contents  
change);	

}

/mx:Script
/customComponent

Thanks again!
John

On Mar 10, 2009, at 4:44 PM, valdhor wrote:

How do you update a given UserVO's userData? Do you directly access  
the public properties?


I have never done it this way - I use getters and setters...

package com.jrobinson.model.VO
{
[Bindable]
public class UserVO
{
private var _id:int = -1;
private var _username:String = null;
private var _enabled:Boolean = false;
private var _userData:XMLList = null;

public function UserVO(id:int, username:String,  
enabled:Boolean, userData:XMLList)

{
_id = id;
_username = username;
_enabled = enabled;
_userData = userData;
}

//accessor methods
public function get id():int {return _id;}
public function get username():String {return _username;}
public function get enabled():Boolean {return _enabled;}
public function get userData():XMLList {return _userData;}

//mutator methods
public function set id(id:int):void {_id = id;}
public function set username(username:String):void  
{_username = username;}
public function set enabled(enabled:Boolean):void {_enabled  
= enabled;}
public function set userData(userData:XMLList):void  
{_userData = userData;}

}
}


  I have a strange issue with data binding not updating when an  
item in

  an ArrayCollection is changed. I'm using Cairngorm and have the
  following setup. In my ModelLocator I have a 'users'  
ArrayCollection
  that contains 'UserVO' objects. I have a two views that binds  
their
  dataProvider to the 'users' AC in the ModelLocator. My UserVO  
looks

  like so:
 
  package com.jrobinson.model.VO
  {
  [Bindable]
  public class UserVO
  {
  public var id:int = -1;
  public var username:String = null;
  public var enabled:Boolean = false;
  public var userData:XMLList = null;
 
 
  public function UserVO(user_id:int, uName:String,  
enabled:Boolean,

  d:XMLList)
  {
  id = user_id;
  username = uName;
  enabled = enabled;
  userData = d;
  }
 
  }
  }
 
  I first have a command that loads all of the users and  
populates the

  AC. This updates the bindings as expected. I then have a second
  command that loads the userData portion for a given user. Once
  retrieved, I update the given UserVO's userData, but this time,  
the

  bindings fail to update.
 
  I feel like I've seen this before but can't find where or what  
the
  workaround might be. I guess I'm just looking for confirmation  
that

  this should or shouldn't work.
 
  Thanks!
  John
 


[flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread aceoohay
That's a good resource but it doesn't answer my question.

Anybody have any ideas as to what will cause an item renderer to NOT honor the 
textAlign of the dataGridColumn?

Somtimes textAlign works sometimes it doesn't What causes that?

Paul

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 All of your answers can be found here:
 
 http://blogs.adobe.com/aharui/item_renderers/
 http://blogs.adobe.com/aharui/item_renderers/
 
 -TH
 
 --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
 
  I have an itemrenderer that is a checkbox. I define textAlign=center
 in the datagriColumn. It doesn't center.
 
  I decided to ask folks here so I created a simple test case to post,
 and unfortunately it works fine.
 
  I tried adding some of the things that I do in the real module, and I
 can't get the test case to fail. The module that has the problem
 requires a lot of other code so I can't post it as a test case.
 
  I have been told that I shouldn't use HBoxes and the like, as it adds
 weight to the module.
 
  Anybody have any ideas as to what will cause an item renderer to NOT
 honor the textAlign of the dataGridColumn?
 
  Paul
 





RE: [flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread Tracy Spratt
A drop-in check box renderer will not center in a datagrid column.  That
site explains how to fix it, without using a container.  I have never seen
one align center, regardless of column setting, unless you wrap it in a
container.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of aceoohay
Sent: Thursday, March 12, 2009 4:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...

 

That's a good resource but it doesn't answer my question.

Anybody have any ideas as to what will cause an item renderer to NOT honor
the textAlign of the dataGridColumn?

Somtimes textAlign works sometimes it doesn't What causes that?

Paul

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tim Hoff timh...@... wrote:

 
 All of your answers can be found here:
 
 http://blogs. http://blogs.adobe.com/aharui/item_renderers/
adobe.com/aharui/item_renderers/
 http://blogs. http://blogs.adobe.com/aharui/item_renderers/
adobe.com/aharui/item_renderers/
 
 -TH
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
aceoohay pauls@ wrote:
 
  I have an itemrenderer that is a checkbox. I define textAlign=center
 in the datagriColumn. It doesn't center.
 
  I decided to ask folks here so I created a simple test case to post,
 and unfortunately it works fine.
 
  I tried adding some of the things that I do in the real module, and I
 can't get the test case to fail. The module that has the problem
 requires a lot of other code so I can't post it as a test case.
 
  I have been told that I shouldn't use HBoxes and the like, as it adds
 weight to the module.
 
  Anybody have any ideas as to what will cause an item renderer to NOT
 honor the textAlign of the dataGridColumn?
 
  Paul
 






Re: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-12 Thread Josh McDonald
In your custom control, change this:


public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
trace(this fires when the AC is created, but not when it's contents
change);
}

to something like this:


public function set dataProvider(value : ArrayCollection) : void
{
if (_dp == value)
return;

if (dataProvider)
dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE,
handleUpdatedProvider);

_dp = value;

if (dataProvider)
dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,
handleUpdatedProvider, ???, ???, true); // Weak listener!

handleUpdatedProvider(null);
}

private function handleUpdatedProvider(event : CollectionEvent) : void
{
//... do stuff
}


Note that this is just typed out of the top of my head, probably full of
typos, and you need to put the default options in place of ??? when
attaching the listener :)

-Josh


2009/3/13 John Robinson jrobi...@nycap.rr.com

   Yeah, I've been directly updating the properties. Here's the weird
 part... if I use the ArrayCollection as a dataProvider for a List control,
 it updates. If I use it for a custom control that I've created, it does
 not.

 Example:
 This works as expected:
 mx:List dataProvider={model.users}/

 This does not:
 jr:customComponent dataProvider={model.users}/

 //pseudo component source
 customComponent
 mx:Script
 private var _dp:ArrayCollection;

 public function set dataProvider(dp:ArrayCollection):void {
 _dp = dp;
 trace(this fires when the AC is created, but not when it's contents
 change);
 }

 /mx:Script
 /customComponent

 Thanks again!
 John

 On Mar 10, 2009, at 4:44 PM, valdhor wrote:

 How do you update a given UserVO's userData? Do you directly access the
 public properties?

 I have never done it this way - I use getters and setters...

 package com.jrobinson.model.VO
 {
 [Bindable]
 public class UserVO
 {
 private var _id:int = -1;
 private var _username:String = null;
 private var _enabled:Boolean = false;
 private var _userData:XMLList = null;

 public function UserVO(id:int, username:String, enabled:Boolean,
 userData:XMLList)
 {
 _id = id;
 _username = username;
 _enabled = enabled;
 _userData = userData;
 }

 //accessor methods
 public function get id():int {return _id;}
 public function get username():String {return _username;}
 public function get enabled():Boolean {return _enabled;}
 public function get userData():XMLList {return _userData;}

 //mutator methods
 public function set id(id:int):void {_id = id;}
 public function set username(username:String):void {_username =
 username;}
 public function set enabled(enabled:Boolean):void {_enabled =
 enabled;}
 public function set userData(userData:XMLList):void {_userData =
 userData;}
 }
 }


   I have a strange issue with data binding not updating when an item in
   an ArrayCollection is changed. I'm using Cairngorm and have the
   following setup. In my ModelLocator I have a 'users' ArrayCollection
   that contains 'UserVO' objects. I have a two views that binds their
   dataProvider to the 'users' AC in the ModelLocator. My UserVO looks
   like so:
  
   package com.jrobinson.model.VO
   {
   [Bindable]
   public class UserVO
   {
   public var id:int = -1;
   public var username:String = null;
   public var enabled:Boolean = false;
   public var userData:XMLList = null;
  
  
   public function UserVO(user_id:int, uName:String, enabled:Boolean,
   d:XMLList)
   {
   id = user_id;
   username = uName;
   enabled = enabled;
   userData = d;
   }
  
   }
   }
  
   I first have a command that loads all of the users and populates the
   AC. This updates the bindings as expected. I then have a second
   command that loads the userData portion for a given user. Once
   retrieved, I update the given UserVO's userData, but this time, the
   bindings fail to update.
  
   I feel like I've seen this before but can't find where or what the
   workaround might be. I guess I'm just looking for confirmation that
   this should or shouldn't work.
  
   Thanks!
   John
  

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


RE: [flexcoders] Re: flex + mysql unicode support

2009-03-12 Thread Gordon Smith
Don't some device fonts (e.g., Arial on Windows?) include glyphs for large 
portions of Unicode?

BTW, I just wanted to point out that the String type in AS is Unicode, so all 
text in Flex apps is Unicode.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alan K
Sent: Thursday, March 12, 2009 11:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: flex + mysql unicode support


Can you please provide information on this?

Google embedding fonts with Flex. But keep in mind that the entire Unicode
library is something like 30 megs.

Also Google about localizing flex apps.

Alan



Re: [flexcoders] Re: flex + mysql unicode support

2009-03-12 Thread Guy Morton
We have an app with multilingual support and we just use the default  
system font. I haven't yet come across a character that Flash couldn't  
display. We get our text from mysql. You do have to fiddle with mysql  
a bit to make it talk unicode (set names=utf8 from memory)



On 13/03/2009, at 12:33 PM, Gordon Smith wrote:



Don't some device fonts (e.g., Arial on Windows?) include glyphs for  
large portions of Unicode?




BTW, I just wanted to point out that the String type in AS is  
Unicode, so all text in Flex apps is Unicode.




Gordon Smith

Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
On Behalf Of Alan K

Sent: Thursday, March 12, 2009 11:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: flex + mysql unicode support



Can you please provide information on this?

Google embedding fonts with Flex. But keep in mind that the entire  
Unicode

library is something like 30 megs.

Also Google about localizing flex apps.

Alan








[flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread aceoohay
I am not sure of your usage of the term drop-in, but the following is code that 
works in a test environment, but substantially similar code fails in a more 
complex environment.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
xmlns:inp=Classes.Input.*
mx:Component id=itmTest
mx:CheckBox selected={(da...@istrue == 'true')?true:false} 
click={da...@istrue = (da...@istrue != 'true') ? 'true' : 'false';}/
/mx:Component

mx:Panel id=myPanel x=54 y=49 width=796 height=460 
layout=absolute
mx:DataGrid id=dataGrid x=5 y=5
mx:dataProvider
mx:XMLList xmlns=
node isTrue=true name= 
location=yyy/
node isTrue=false name= 
location=yyy/
node isTrue=true name= 
location=yyy/
node isTrue=false name= 
location=yyy/
node isTrue=true name= 
location=yyy/
/mx:XMLList
/mx:dataProvider
mx:columns
mx:DataGridColumn headerText=Acp 
dataField=@isTrue width=27 editable=false textAlign=center
mx:itemRenderer
mx:Component
mx:CheckBox 
selected={(da...@istrue == 'true')?true:false} click={da...@istrue = 
(da...@istrue != 'true') ? 'true' : 'false';}/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
mx:DataGridColumn dataField=@isTrue 
width=150 headerText=  editable=false textAlign=center 
itemRenderer={itmTest}/
mx:DataGridColumn dataField=@name 
headerText=Name/
mx:DataGridColumn dataField=@location 
headerText=Location/
/mx:columns
/mx:DataGrid
mx:DataGrid  x=105 y=205 
dataProvider={dataGrid.dataProvider}/
/mx:Panel
/mx:Application

Paul
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 A drop-in check box renderer will not center in a datagrid column.  That
 site explains how to fix it, without using a container.  I have never seen
 one align center, regardless of column setting, unless you wrap it in a
 container.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of aceoohay
 Sent: Thursday, March 12, 2009 4:39 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...
 
  
 
 That's a good resource but it doesn't answer my question.
 
 Anybody have any ideas as to what will cause an item renderer to NOT honor
 the textAlign of the dataGridColumn?
 
 Somtimes textAlign works sometimes it doesn't What causes that?
 
 Paul
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tim Hoff TimHoff@ wrote:
 
  
  All of your answers can be found here:
  
  http://blogs. http://blogs.adobe.com/aharui/item_renderers/
 adobe.com/aharui/item_renderers/
  http://blogs. http://blogs.adobe.com/aharui/item_renderers/
 adobe.com/aharui/item_renderers/
  
  -TH
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 aceoohay pauls@ wrote:
  
   I have an itemrenderer that is a checkbox. I define textAlign=center
  in the datagriColumn. It doesn't center.
  
   I decided to ask folks here so I created a simple test case to post,
  and unfortunately it works fine.
  
   I tried adding some of the things that I do in the real module, and I
  can't get the test case to fail. The module that has the problem
  requires a lot of other code so I can't post it as a test case.
  
   I have been told that I shouldn't use HBoxes and the like, as it adds
  weight to the module.
  
   Anybody have any ideas as to what will cause an item renderer to NOT
  honor the textAlign of the dataGridColumn?
  
   Paul
  
 





RE: [flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread Tracy Spratt
I didn't actually run that but I will believe you  I have not used that
syntax at all, halfway between a drop-in and a full render implementation.

 

With a working example and a non-working one you can usually bracket an
issue and find it by making the two code bases more and more similar.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of aceoohay
Sent: Thursday, March 12, 2009 10:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...

 

I am not sure of your usage of the term drop-in, but the following is code
that works in a test environment, but substantially similar code fails in a
more complex environment.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml layout=absolute xmlns:inp=Classes.Input.*
mx:Component id=itmTest
mx:CheckBox selected={(da...@istrue == 'true')?true:false}
click={da...@istrue = (da...@istrue != 'true') ? 'true' : 'false';}/
/mx:Component

mx:Panel id=myPanel x=54 y=49 width=796 height=460
layout=absolute
mx:DataGrid id=dataGrid x=5 y=5
mx:dataProvider
mx:XMLList xmlns=
node isTrue=true name= location=yyy/
node isTrue=false name= location=yyy/
node isTrue=true name= location=yyy/
node isTrue=false name= location=yyy/
node isTrue=true name= location=yyy/
/mx:XMLList
/mx:dataProvider
mx:columns
mx:DataGridColumn headerText=Acp dataField=@isTrue width=27
editable=false textAlign=center
mx:itemRenderer
mx:Component
mx:CheckBox selected={(da...@istrue == 'true')?true:false}
click={da...@istrue = (da...@istrue != 'true') ? 'true' : 'false';}/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
mx:DataGridColumn dataField=@isTrue width=150 headerText= 
editable=false textAlign=center itemRenderer={itmTest}/
mx:DataGridColumn dataField=@name headerText=Name/
mx:DataGridColumn dataField=@location headerText=Location/
/mx:columns
/mx:DataGrid
mx:DataGrid x=105 y=205 dataProvider={dataGrid.dataProvider}/
/mx:Panel
/mx:Application

Paul
--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 A drop-in check box renderer will not center in a datagrid column. That
 site explains how to fix it, without using a container. I have never seen
 one align center, regardless of column setting, unless you wrap it in a
 container.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of aceoohay
 Sent: Thursday, March 12, 2009 4:39 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...
 
 
 
 That's a good resource but it doesn't answer my question.
 
 Anybody have any ideas as to what will cause an item renderer to NOT honor
 the textAlign of the dataGridColumn?
 
 Somtimes textAlign works sometimes it doesn't What causes that?
 
 Paul
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tim Hoff TimHoff@ wrote:
 
  
  All of your answers can be found here:
  
  http://blogs. http://blogs.
http://blogs.adobe.com/aharui/item_renderers/
adobe.com/aharui/item_renderers/
 adobe.com/aharui/item_renderers/
  http://blogs. http://blogs.
http://blogs.adobe.com/aharui/item_renderers/
adobe.com/aharui/item_renderers/
 adobe.com/aharui/item_renderers/
  
  -TH
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 aceoohay pauls@ wrote:
  
   I have an itemrenderer that is a checkbox. I define textAlign=center
  in the datagriColumn. It doesn't center.
  
   I decided to ask folks here so I created a simple test case to post,
  and unfortunately it works fine.
  
   I tried adding some of the things that I do in the real module, and I
  can't get the test case to fail. The module that has the problem
  requires a lot of other code so I can't post it as a test case.
  
   I have been told that I shouldn't use HBoxes and the like, as it adds
  weight to the module.
  
   Anybody have any ideas as to what will cause an item renderer to NOT
  honor the textAlign of the dataGridColumn?
  
   Paul
  
 






[flexcoders] Flash Lite or Flash 10

2009-03-12 Thread itdanny2002
I am developing an application
which suppose to run on mobile.
Should I do it in FLEX and run
it in Flash Player 10 or I should
develop it in Flash Lite ? I 
write some programs by using FLEX
but never try Flash Lite.

Which way I should go ?

Thanks



RE: [flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread Alex Harui
I didn't run this example.  I will later if I get time.  I'm surprised the 
checkbox centers.  textAlign is for text and the checkbox icon isn't text and I 
don't think there's code in there that uses textAlign to position the checkbox. 
 In theory, the centering trick on my blog should be what you need.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of aceoohay
Sent: Thursday, March 12, 2009 7:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...


I am not sure of your usage of the term drop-in, but the following is code that 
works in a test environment, but substantially similar code fails in a more 
complex environment.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
xmlns:inp=Classes.Input.*
mx:Component id=itmTest
mx:CheckBox selected={(da...@istrue == 'true')?true:false} 
click={da...@istrue = (da...@istrue != 'true') ? 'true' : 'false';}/
/mx:Component

mx:Panel id=myPanel x=54 y=49 width=796 height=460 layout=absolute
mx:DataGrid id=dataGrid x=5 y=5
mx:dataProvider
mx:XMLList xmlns=
node isTrue=true name= location=yyy/
node isTrue=false name= location=yyy/
node isTrue=true name= location=yyy/
node isTrue=false name= location=yyy/
node isTrue=true name= location=yyy/
/mx:XMLList
/mx:dataProvider
mx:columns
mx:DataGridColumn headerText=Acp dataField=@isTrue width=27 
editable=false textAlign=center
mx:itemRenderer
mx:Component
mx:CheckBox selected={(da...@istrue == 'true')?true:false} 
click={da...@istrue = (da...@istrue != 'true') ? 'true' : 'false';}/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
mx:DataGridColumn dataField=@isTrue width=150 headerText=  
editable=false textAlign=center itemRenderer={itmTest}/
mx:DataGridColumn dataField=@name headerText=Name/
mx:DataGridColumn dataField=@location headerText=Location/
/mx:columns
/mx:DataGrid
mx:DataGrid x=105 y=205 dataProvider={dataGrid.dataProvider}/
/mx:Panel
/mx:Application

Paul
--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tracy 
Spratt tspr...@... wrote:

 A drop-in check box renderer will not center in a datagrid column. That
 site explains how to fix it, without using a container. I have never seen
 one align center, regardless of column setting, unless you wrap it in a
 container.



 Tracy Spratt,

 Lariat Services, development services available

 _

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On
 Behalf Of aceoohay
 Sent: Thursday, March 12, 2009 4:39 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...



 That's a good resource but it doesn't answer my question.

 Anybody have any ideas as to what will cause an item renderer to NOT honor
 the textAlign of the dataGridColumn?

 Somtimes textAlign works sometimes it doesn't What causes that?

 Paul

 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tim Hoff TimHoff@ wrote:
 
 
  All of your answers can be found here:
 
  http://blogs. http://blogs.adobe.com/aharui/item_renderers/
 adobe.com/aharui/item_renderers/
  http://blogs. http://blogs.adobe.com/aharui/item_renderers/
 adobe.com/aharui/item_renderers/
 
  -TH
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 aceoohay pauls@ wrote:
  
   I have an itemrenderer that is a checkbox. I define textAlign=center
  in the datagriColumn. It doesn't center.
  
   I decided to ask folks here so I created a simple test case to post,
  and unfortunately it works fine.
  
   I tried adding some of the things that I do in the real module, and I
  can't get the test case to fail. The module that has the problem
  requires a lot of other code so I can't post it as a test case.
  
   I have been told that I shouldn't use HBoxes and the like, as it adds
  weight to the module.
  
   Anybody have any ideas as to what will cause an item renderer to NOT
  honor the textAlign of the dataGridColumn?
  
   Paul
  
 




RE: [flexcoders] Datagrid Display update problem

2009-03-12 Thread Alex Harui
The DataGrid does not update the dataProvider until you switch to a new row.  
Editing different columns in the same row doesn't cause an update in order to 
minimize update event traffic.

There are past topics on this issue in the archive.  Usually, I recommend 
cheating by getting the ITEM_EDIT_END event and change the reason to NEW_ROW if 
it was NEW_COLUMN

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of elnomdeguerre1
Sent: Wednesday, March 11, 2009 4:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Display update problem


HI,

I know that there have been lots of discussion about the datagrid topic but I 
simply couldn't figure this bug out.

I have a datagrid with a custom editor and renderer that displays an amount. 
Based on this amount I make a calculation which is then displayed in an 
adjacent uneditable cell.

When the focus leaves the first cell the second cell is not updated 
immediately, I have to change focus to either outside the datagrid or to 
another row in the datagrid for the calculated amount to show up.

I do call the the Datagrid(owner).invalidateList() function and I've tried the 
IList(dataprovider).itemupdated(data) function as well. None of them seem to 
work... I've even called invalidateDisplayList in desperation.

The cell that is supposed to display the data has a custom itemrender(label), 
which does nothing but change the color of the text based on some other 
variable and assign text= data.CalculatedAmount on DataChange. I've debugged 
through this method and I do see that the data is is there, and it is assigned 
but it simply isn't shown on the screen.

I'm really at my wit's end with this problem. Any help would be greatly 
appreciated.



RE: [flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-12 Thread Alex Harui
Vote for this bug: https://bugs.adobe.com/jira/browse/SDK-16050.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jedierikb
Sent: Wednesday, March 11, 2009 8:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Framework Caching Affecting Security Settings?


[Hello. New to the list. Found you from a google search for a bug I've 
encountered. Looks like I've found the right people!]

I have encountered this same bug and wonder if there was ever a resolution?

As a work around, I have removed every bit of security enabled code (no 
javascript to actionscript calls) from my home-rolled rsl libraries.

Is there a way to build the SWC/SWFs or link to them or some crossdomain.xml 
trickery which can properly solve this problem?

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jamie 
S jsjph...@... wrote:

 Does Framework Caching affect the security settings?

 I was banging my head against a wall because my app was throwing
 security violations all over the place when an outside swf ( or
 JavaScript ) tried to access the main app. I was using
 Security.allowDomain(*) but it was being ignored completely. I
 turned framework caching off and everything worked again.

 What is the connection? How can I use framework caching and still keep
 my security settings intact?

 Jamie




[flexcoders] Ribbon in FLEX

2009-03-12 Thread Claudio M. E. Bastos Iorio
Hi,

Is there any component (free or paid) similar to the office 2007 ribbon
control?

 

TIA

 

__

Claudio M. E. Bastos Iorio

 



RE: [flexcoders] ListBase error

2009-03-12 Thread Alex Harui
That error indicates a recycling problem.  Does it happen if you use the 
default renderer instead of your custom renderer?  Could your custom renderer 
be changing the name property of the renderer?  Can you reproduce it in a 
simple test case?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Simon Bailey
Sent: Thursday, March 12, 2009 4:46 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ListBase error


Here is the debug trace:

ypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls.listClasses::ListBase/shiftRow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:6975]
at 
mx.controls.dataGridClasses::DataGridBase/shiftRow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2170]
at 
mx.controls.listClasses::ListBase/scrollVertically()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:6677]
at 
mx.controls::DataGrid/scrollVertically()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:5098]
at mx.controls.listClasses::ListBase/set 
verticalScrollPosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1314]
at mx.controls::DataGrid/set 
verticalScrollPosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:906]
at 
mx.controls::DataGrid/scrollHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\!
 DataGrid.as:1942]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollBar.as:1261]
at mx.controls.scrollCla! 
sses::ScrollThumb/mouseMoveHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollThumb.as:206]

On 12 Mar 2009, at 11:35, Simon Bailey wrote:



Hi all,

Any ideas why on scroll of a datagrid the #1010 error is firing from the 
ListBase class on this line of code: rowMap[r.name].rowIndex = newIndex! ;

I have seen this problem in the past with Flex 2 and funnily enough have not 
seen it since, now its rearing its head again.  Using the below code (love the 
comments by the Adobe team)  and digging in the debugger I see that r.name 
(CustomGridRenderer3134) is not showing in list of items on the rowMap hence 
the error being thrown?

protected function shiftRow(oldIndex:int, newIndex:int, numCols:int, 
shiftItems:Boolean):void
{
var r:IListItemRenderer;
for (var j:int = 0; j  numCols; j++)
{
r = listItems[oldIndex][j];
if (shiftItems)
{
listItems[newIndex][j] = r;
rowMap[r.name].rowIndex = newIndex;
}
// this is sort of a hack to a! ccomodate the fact that
// scrolling down does a splice which throws off these values.
// probably better to call shiftRow with different parameters?
else
rowMap[r.name].rowIndex = oldIndex;
}
if (shiftItems)
rowInfo[newIndex] = rowInfo[oldIndex];
}

Cheers, Simon





RE: [flexcoders] Flash Lite or Flash 10

2009-03-12 Thread Alex Harui
Flash 10 doesn't run on mobile phones yet.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of itdanny2002
Sent: Thursday, March 12, 2009 9:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash Lite or Flash 10


I am developing an application
which suppose to run on mobile.
Should I do it in FLEX and run
it in Flash Player 10 or I should
develop it in Flash Lite ? I
write some programs by using FLEX
but never try Flash Lite.

Which way I should go ?

Thanks