RE: [flexcoders] Easy (I hope) drag and drop question

2009-12-15 Thread Alex Harui
I can't think of an easy way to limit where something can be dragged, but if 
you check the dragInitiator on the DragEvent and it is not the same as the DG 
it is over, you can call preventDefault() on the DragEvent and deny the drop.  
There should be doc on how to deny drops by calling preventDefault on 
DragEvents.

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 invertedspear
Sent: Monday, December 14, 2009 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Easy (I hope) drag and drop question



I searched but couldn't find my answer, I'm sure it's easy for anyone with a 
little experience. I have multiple datagrids on a page, each one I want 
sortable with drag and drop, but I don't want items drug from one control to 
the other. How can I prevent a user from dragging an item out of a conrol. I 
would prefer to have it just stop moving with the mouse, but I am prepared to 
just completely cancel out of the dragging if need be.
I was trying to do something like this

dragExit=dragEvent.CANCEL

This is obviously wrong, but I can't find the correct way to do it.

Thanks in advance. ~Mike



RE: [flexcoders] removing event listeners for safe module reloading

2009-12-15 Thread Alex Harui
I guess I'm surprised that your clickhandlers fires more than once.  The 
mx:ButtonBar shouldn't be leaking because of the clickHandler.  That looks like 
a reference within the module, not from the outside in.

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 Derrick Anderson
Sent: Monday, December 14, 2009 12:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] removing event listeners for safe module reloading



Hi,

I'm having what seems to be an all too common problem with modules.  I have 
split my app into 3 separate modules, and listeners created in 1 instance of a 
module get duplicated the second time a module loads.  Events defined in mxml 
are a big problem

mx:ButtonBar id=listButtons dataProvider={ListData} 
itemClick=clickHandler(event) /

the second time a module is loaded that contains this buttonbar that 
clickHandler function will fire twice, and 3 times for the 3rd load. so i 
attempted to remove listeners, and only add listeners if they are not already 
there so:

private function init():void
{

if(!listButtons.hasEventListener(ItemClickEvent.ITEM_CLICK))

listButtons.addEventListener(ItemClickEvent.ITEM_CLICK,clickHandler,false,0,true);
}
private function removeListeners():void {

listButtons.removeEventListener(ItemClickEvent.ITEM_CLICK,clickHandler,false);
}

the 'removeListeners' function is called from the removedFromStage event on the 
class, but that listener will still get added each time.  it does not help that 
profiler does not work on this machine, but what is the proper way to remove 
all event listeners from a module so it can safely reload??

thanks,
d.



[flexcoders] var token:AsyncToken = service.[str](); how to get this working?

2009-12-15 Thread MicC
When used conventionally - var token:AsyncToken = 
service.Sel_all_mgrs(); - this is service.function, right?

var str:String = 'Sel_all_mgrs';
var token:AsyncToken =  service.[str]();
  token.addResponder(this.responder);

What is the correct code to get the above working? TIA,

Mic.




Re: [flexcoders] var token:AsyncToken = service.[str](); how to get this working?

2009-12-15 Thread claudiu ursica
It is service.send() at least if your service is a HTTPService instance.
C





From: MicC chigwel...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tue, December 15, 2009 1:08:22 PM
Subject: [flexcoders] var token:AsyncToken =  service.[str](); how to get this 
working?

   
When used conventionally - var token:AsyncToken = 
service.Sel_ all_mgrs( ); - this is service.function, right?

var str:String = 'Sel_all_mgrs' ;
var token:AsyncToken =  service.[str] ();
token.addResponder( this.responder) ;

What is the correct code to get the above working? TIA,

Mic.


 


  

[flexcoders] UITextField: text-align crops the text

2009-12-15 Thread m_koks
Hi
I observed that if you set the textAlign property as right or center
to the UITextField and if the UItextField is multiline, few of the
extreme right characters in the line get cut.

Run following code to get the issue I'm talking about.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=onCreate()
mx:Script
![CDATA[
import mx.core.UITextField;

private var tf1:UITextField;
[Embed(systemFont=Verdana, fontName='Verdana',
mimeType='application/x-font')]
public var verdanaFont:Class;
[Embed(systemFont=Verdana, fontName='Verdana',
fontWeight=bold, mimeType='application/x-font')]
public var verdanabFont:Class;
[Embed(systemFont=Verdana, fontName='Verdana',
fontStyle=italic, mimeType='application/x-font')]
public var verdanaiFont:Class;
[Embed(systemFont=Verdana, fontName='Verdana',
fontWeight=bold, fontStyle=italic, mimeType='application/x-font')]
public var verdanabiFont:Class;
private function onCreate():void
{
tf1 = new UITextField();
addChild(tf1);
tf1.multiline = true;
tf1.wordWrap = true;
tf1.border = true
tf1.mouseWheelEnabled = false;
tf1.ignorePadding = false;
tf1.x = 100
tf1.selectable = true;
tf1.width = 220
tf1.htmlText =  nn n   n
 n  dfw sdf gsd fg dsfg dsf sfa dsf gsd fg sdfg sdfg
sdfg sdfg sdf gsd fg sdfg sgh dffgh dfgh dfgh dfgh sd sdf gsdf gsd fg
sdfg sdfg sdf gsdfg sdf gsdf end 
tf1.embedFonts = true;
   var txtFormat:TextFormat = new TextFormat();
   txtFormat.leftMargin = 20;
   txtFormat.size = 15;
   txtFormat.align = right
   tf1.setTextFormat(txtFormat);
tf1.height = tf1.textHeight;
}
]]
/mx:Script
/mx:Application

You will notice that the character w of the word dfw is getting cut.
Any idea, why this must be happening?

Thanks in advance

-- 
Mahesh Kokadwar 



[flexcoders] How to create Rooms for Videochat Application [1 Attachment]

2009-12-15 Thread venkat eswar
Hi ,

I want to know how to create chat rooms for a video chat application. I have 
attached the server side asc file . I want to know, for adding rooms what are 
the changes i have to do in the ASC file. Please help me...








  

[flexcoders] possible to derive rowIndex from DataGrid's rightClick event?

2009-12-15 Thread Tim Romano
In an AIR app, I'd like to be able to know what row of a DataGrid the 
user has right-clicked on.* The rightClick event of the DataGrid is a 
MouseEvent and does not expose rowIndex (unlike the rowClick event which 
is of type ListEvent).  Is there a way to derive the rowIndex in the 
grid's rightClick eventhandler? 
Thanks

*I'm hoping to make a CheckBoxDataGrid interactive in two ways --  normal 
check-box multi-selection mode, which is working fine, but also a 
right-click-on-single-row  mode, where the row is not selected but is 
temporarily the subject of the user's attention -- possibly for a context-menu.

[flexcoders] mx:Tree control control the way XML is displayed

2009-12-15 Thread pgfigueir...@ymail.com
Hello

 I have this xml document format:

Set
Client
  ClientId1/ClientId
  ClientCodeTT/ClientCode
  NameTeste/Name
  NotesNo notes/Notes
  Project
TaskId5/TaskId
ProjectCodeP1/ProjectCode
ClientId1/ClientId
NameProject1/Name
DescriptionDesc./Description
Budget0/Budget
sStartDate2009-12-01T22:18:06.787+00:00/sStartDate
sDuration1000/sDuration
  /Project
/Client
/Set

So basically its composed by clients and projects... 
Is it possible to have the tree display only elements of the type Client or 
Project? I need to use this format... is there any simple way (or not so simple 
one) of doing this... (i'am from a c# backgroud so i'am very new to 
actionscript and flex)

Thanks

Pedro



[flexcoders] RDS configuration

2009-12-15 Thread hassami
Hi,

I was trying to follow the steps of Christophe Coenraets in his blog
entry :Model Driven Development with Flex 4 and LCDS 3 Screencast
http://coenraets.org/blog/2009/09/flex4mdd/  , but I could not pas
the RDS configuration. I am using Flash builder 4 and LCDS 3 deployed as
a J2EE application. I have been able to install the data model, the lcds
and lcds-samples are deployed and could run them from localhost. I
looked at the lcds documentation and followed the steps there to bypass
the security issue through setting param-valuefalse/param-value and
uncommenting the RDSDispatchServlet in web.xml. Yet I get the following
errors each time I try to configure the RDS server :
Unable to contact the RDS server lcds. This can be caused by
incorrect configuration on either the client or the server.
Please verify your connection details below or check your server
documentation on how to enable RDS for your server.
The HTTP request to talk to your server returned with the following
message: Error executing RDS command. Status code:404, Reason : not
found.
This is how I configured RDS :
server information:
Description : lcds
Host Name : 127.0.0.1
Port Number : 8080
Timeout : 30
Context Root : lcds

Thank you for the help !

Regards
hassan elousami




[flexcoders] Copy image location from an AIR HTML container

2009-12-15 Thread Farid Shahlavi
Hey all,

Does anyone have any idea how to copy image location to the clipboard
same as the Firefox context menu? It seems you can copy the image
itself but can't access the location URL.

Any help would be greatly appreciated.

Thanks,

Farid


[flexcoders] Can't select null item in ComboBox

2009-12-15 Thread Dave Glasser
I have some code that was originally written under Flex 2, where a ComboBox's 
data provider is an array of objects, with the first element set to null. When 
this code is built under Flex 2, I can select the first item in the combo's 
dropdown list, and selectedItem returns null, which is what I expect and want. 
When the code is built under Flex 3, I can't select the null item. It's shown 
in the list, but mousing over it doesn't highlight it, and clicking it doesn't 
close the dropdown.

Is this a bug, or a new feature in Flex 3?


RE: [SPAM] Re: [flexcoders] var token:AsyncToken = service.[str](); how to get this working?

2009-12-15 Thread Tracy Spratt
The bracket notation replaces the dot notation:

var token:AsyncToken = service[str] (); //remove the dot



 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of claudiu ursica
Sent: Tuesday, December 15, 2009 6:31 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [flexcoders] var token:AsyncToken = service.[str](); how
to get this working?

 

  

It is service.send() at least if your service is a HTTPService instance.
C

 

  _  

From: MicC chigwel...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tue, December 15, 2009 1:08:22 PM
Subject: [flexcoders] var token:AsyncToken = service.[str](); how to get
this working?

  

When used conventionally - var token:AsyncToken = 
service.Sel_ all_mgrs( ); - this is service.function, right?

var str:String = 'Sel_all_mgrs' ;
var token:AsyncToken = service.[str] ();
token.addResponder( this.responder) ;

What is the correct code to get the above working? TIA,

Mic.

 





RE: [SPAM] [flexcoders] mx:Tree control control the way XML is displayed

2009-12-15 Thread Tracy Spratt
If you need to change the structure, you have two options.  One is to
pre-process the xml (using e4x) into the structure you can use directly.
The other is to use a custom data descriptor.  I cannot be any help with the
dataDescriptor since I have not yet created one, but you should be able to
find some docs and examples.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of pgfigueir...@ymail.com
Sent: Monday, December 14, 2009 6:42 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] mx:Tree control control the way XML is
displayed

 

  

Hello

I have this xml document format:

Set
Client
ClientId1/ClientId
ClientCodeTT/ClientCode
NameTeste/Name
NotesNo notes/Notes
Project
TaskId5/TaskId
ProjectCodeP1/ProjectCode
ClientId1/ClientId
NameProject1/Name
DescriptionDesc./Description
Budget0/Budget
sStartDate2009-12-01T22:18:06.787+00:00/sStartDate
sDuration1000/sDuration
/Project
/Client
/Set

So basically its composed by clients and projects... 
Is it possible to have the tree display only elements of the type Client
or Project? I need to use this format... is there any simple way (or not so
simple one) of doing this... (i'am from a c# backgroud so i'am very new to
actionscript and flex)

Thanks

Pedro





[flexcoders] Odd grouping issue in ADG

2009-12-15 Thread Tom McNeer
Hi,

I posted this issue earlier, but got no replies. I'm really hoping someone
familiar with ADG oddities can help me out.

I have an Advanced DataGrid which receives an array collection of sales
information as a data provider. The data is in a flat grouping, and the only
GroupingField is Office, which contains either Atlanta or Dallas as a
value. The rest of the data in each row of the data provider contains a
variety of sales statistics for a given month.

With no compareFunction at all, the ADG correctly groups the records into
two groups, with Atlanta first. But as expected, the ordering of the records
within the group doesn't reflect the contents of the original data, i.e.,
it's not ordered by month.

However, when I add a compareFunction which compares a SortDate value within
each object in the array (which is not displayed - it's simply a date
signifying the first of each month, to provide a sorting mechanism), a
strange thing happens.

Instead of two groupings, I have 6. And the ordering of the offices has been
reversed. So I get DallasAtlantaDallasAtlanta
DallasAtlanta.

Within each grouping, the records are correctly sorted by descending date
values. And the groups themselves, when expanded, show that all the records
in Dallas and Atlanta groups are sorted correctly - but they're broken into
all those extra groups.

I have verified that the records coming into the application all have the
correct values for the Office and SortDate fields, so the problem isn't
there.

Here's the ADG:

mx:AdvancedDataGrid width=1125 height=265 id=monthlyTotalGrid
defaultLeafIcon={null} wordWrap=true
 variableRowHeight=true initialize=rc.refresh();
selectionColor=#fcffcd sortableColumns=false sortExpertMode=true
mx:dataProvider
mx:GroupingCollection id=rc source={monthlyTotals}
mx:grouping
mx:Grouping
mx:GroupingField name=Office
groupingFunction=createGroupLabel compareFunction=compareDate /
/mx:Grouping
/mx:grouping
/mx:GroupingCollection
/mx:dataProvider
mx:columns
mx:AdvancedDataGridColumn dataField=Month
headerWordWrap=true width=150 /
mx:AdvancedDataGridColumn dataField=Total Cases
headerWordWrap=true textAlign=center /
... several other columns go here

/mx:columns
/mx:AdvancedDataGrid

... and here's my compareFunction:

private function compareDate(a:Object,b:Object):int{
var aTime:Number = a.SortDate.getTime();
var bTime:Number = b.SortDate.getTime();
if(aTime  bTime){
return 1;
}
if(aTimebTime){
return -1;
}
else return 0;

}

I'm very inexperienced with the ADG, so it's probably something simple I'm
missing. Any help would be appreciated.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


RE: [SPAM] [flexcoders] Can't select null item in ComboBox

2009-12-15 Thread Tracy Spratt
I do not know why the change, but for a fix, you could use a labelFunction
to return an empty string if the item is null.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dave Glasser
Sent: Tuesday, December 15, 2009 9:47 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Can't select null item in ComboBox

 

  

I have some code that was originally written under Flex 2, where a
ComboBox's data provider is an array of objects, with the first element set
to null. When this code is built under Flex 2, I can select the first item
in the combo's dropdown list, and selectedItem returns null, which is what I
expect and want. When the code is built under Flex 3, I can't select the
null item. It's shown in the list, but mousing over it doesn't highlight it,
and clicking it doesn't close the dropdown.

Is this a bug, or a new feature in Flex 3?





RE: [flexcoders] Can't select null item in ComboBox

2009-12-15 Thread Dave Glasser
The label's not the problem, it's selecting the item when it's null. I found 
that it works if I replace null with an empty string in the dataProvider, and 
guard against type errors in the code that reads selectedItem.

--- On Tue, 12/15/09, Tracy Spratt tr...@nts3rd.com wrote:

From: Tracy Spratt tr...@nts3rd.com
Subject: RE: [SPAM] [flexcoders] Can't select null item in ComboBox
To: flexcoders@yahoogroups.com
Date: Tuesday, December 15, 2009, 10:24 AM













 
 
















I do not know why the change, but for a
fix, you could use a labelFunction to return an empty string if the item is
null. 

   



Tracy Spratt, 

Lariat Services, development services
available 











From:
flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of 
Dave Glasser

Sent: Tuesday, December 15, 2009
9:47 AM

To: flexcoders@yahoogroups.com

Subject: [SPAM] [flexcoders] Can't
select null item in ComboBox 



   

   







I have
some code that was originally written under Flex 2, where a ComboBox's data
provider is an array of objects, with the first element set to null. When this
code is built under Flex 2, I can select the first item in the combo's dropdown
list, and selectedItem returns null, which is what I expect and want. When the
code is built under Flex 3, I can't select the null item. It's shown in the
list, but mousing over it doesn't highlight it, and clicking it doesn't close
the dropdown.



Is this a bug, or a new feature in Flex 3? 





 
























 




[flexcoders] Re: possible to derive rowIndex from DataGrid's rightClick event?

2009-12-15 Thread Amy


--- In flexcoders@yahoogroups.com, Tim Romano tim_rom...@... wrote:

 In an AIR app, I'd like to be able to know what row of a DataGrid the 
 user has right-clicked on.* The rightClick event of the DataGrid is a 
 MouseEvent and does not expose rowIndex (unlike the rowClick event which 
 is of type ListEvent).  Is there a way to derive the rowIndex in the 
 grid's rightClick eventhandler? 
 Thanks
 
 *I'm hoping to make a CheckBoxDataGrid interactive in two ways --  normal 
 check-box multi-selection mode, which is working fine, but also a 
 right-click-on-single-row  mode, where the row is not selected but is 
 temporarily the subject of the user's attention -- possibly for a 
 context-menu.


If the thing that was right-clicked is an itemRenderer, then you can get its 
data property, and also I think there's an itemRendererToItem function etc. etc.



[flexcoders] Dealing with images larger than Flash Player 10 limit

2009-12-15 Thread Aaron Hardy
Hey flexers,

We're working on a project currently where we would like to allow users to
add photos from their local drive to the stage.  We also want to support
gigantic photos.  I understand the max bitmap size is 4095x4095 (or
dimensions that equal the same number of pixels) in flash player 10.  If the
user has a photo bigger than this, we'd be happy to size the image down to
this limit and allow the user to work with their image at the restricted
size.  However, I'm stuck trying to figure out how to size down the image
before creating a bitmap object.  I have a bytearray of the image data but
now I need the image resized down to the bitmap limit before creating a
bitmap from the bytearray.  Somewhat a chicken-or-the-egg problem.  Does
anyone have a nice tool or method to accomplish this?  Anyone know how
Buzzword does this?

Thanks.

Aaron


[flexcoders] Re: AIR 1.5.3 application build problem on Linux

2009-12-15 Thread jason_williams_mm
Can you please log a bug for this issue using www.adobe.com/wish.  Please 
include the information here and include the specifics of the OS, window 
manager, version, etc.

Thanks
jw

--- In flexcoders@yahoogroups.com, aejaz_98 aejaz...@... wrote:

 
 
 
 
 Looks like it is not possible to build a windows air installer
 on Linux with SDK 3.4(with either SDK 1.5.2 or 1.5.3) although
 this worked fine with Flex SDK 3.4(with included AIR SDK 1.5)
 earlier.
 
 Strangely when I now try to switch back to Flex SDK 3.3, I am 
 getting these errors,
 
 App_mx_managers_SystemManager.as(75): col: 38 Error: Method marked override 
 must override another method.
 [mxmlc] 
 [mxmlc] override public function get preloadedRSLs():Dictionary
 [mxmlc]  ^
 [mxmlc] 
 [mxmlc] _App_mx_managers_SystemManager.as(87): col: 34 Error: Method 
 marked override must override another method.
 [mxmlc] 
 [mxmlc] override public function allowDomain(... domains):void
 [mxmlc]  ^
 [mxmlc] 
 [mxmlc] _App_mx_managers_SystemManager.as(105): col: 34 Error: Method 
 marked override must override another method.
 [mxmlc] 
 [mxmlc] override public function allowInsecureDomain(... 
 domains):void
 [mxmlc]  ^
 [mxmlc] 
 
 Any help would be appreciated.
 
 Thanks,
 Aejaz
 
 --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote:
 
  Hi,
  
  I have a build environment set on RHEL Linux which uses
  ant to produce a .air installer for my application. With
  Flex SDK 3.3  ant the .air installer used to install
  the application successfully on Windows XP/Vista  application
  worked as expected.
  
  Recently I upgraded to Flex 3.4 SDK on the Linux build machine,
  but now the AIR application installed (on Windows XP) with 
  the ant generated .air installer(on the Linux build machine) doesn't show 
  the startup screen, although in the task manager I see that the process is 
  alive.
  
  In order to figure out what was wrong I did quite a bit of
  searching but couldn't find anything worthwhile. Then I 
  tried the same build script on Windows XP using Flex 3.4
  SDK  the generated application(after installation) worked 
  successfully. The only difference between Linux  windows
  was that Windows XP had AIR runtime whereas Linux did not.
  Since things worked with SDK 3.3 with no AIR runtime on Linux,
  I doubt that this is an issue. 
  
  So far both Linux  Windows had AIR SDK 1.5.2, I then upgraded
  both to AIR SDK 1.5.3 but there was no change in behaviour
  i.e. installer produced in Windows worked but installer 
  created on Linux didn't.
  
  Finally, I tried using adl as follows. The installed application
  (using the .air installer created on Windows) had following 
  directory structure,
  
  C:\App
  C:\App\App.swf
  C:\App\META-INF\AIR\application.xml
  C:\App\META-INF\AIR\publisherid
  C:\App\META-INF\AIR\hash
  
  I copied all the files under META-INF to C:\App  then tried
  to run the following, command,
  
  C:\App adl application.xml
  
  That showed the startup screen.
  
  Then I uninstalled the application  installed the application
  using the .air installer created on Linux  then copied the 
  contents under META-INF to c:\App  tried the same command again,
  this time the startup screen didn't show up but on the command 
  prompt, following error was shown,
  
  VerifyError: Error #1014: Class mx.core::WindowedApplication could not be 
  found.
  at flash.display::MovieClip/nextFrame()
  at mx.managers::SystemManager/deferredNextFrame()
  at mx.managers::SystemManager/preloader_initProgressHandler()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.preloaders::Preloader/timerHandler()
  at flash.utils::Timer/_timerDispatch()
  at flash.utils::Timer/tick()
  
  I don't have any idea about why the WindowedApplication won't
  be found in this particular case. If anyone has any clue, 
  please help.
  
  Thanks,
  Aejaz
 





[flexcoders] Re: Odd grouping issue in ADG

2009-12-15 Thread valdhor
Tom

If you post a small runnable example with sample data, I would be willing to 
take a look.


Best Regards




Steve

--- In flexcoders@yahoogroups.com, Tom McNeer tmcn...@... wrote:

 Hi,
 
 I posted this issue earlier, but got no replies. I'm really hoping someone
 familiar with ADG oddities can help me out.
 
 I have an Advanced DataGrid which receives an array collection of sales
 information as a data provider. The data is in a flat grouping, and the only
 GroupingField is Office, which contains either Atlanta or Dallas as a
 value. The rest of the data in each row of the data provider contains a
 variety of sales statistics for a given month.
 
 With no compareFunction at all, the ADG correctly groups the records into
 two groups, with Atlanta first. But as expected, the ordering of the records
 within the group doesn't reflect the contents of the original data, i.e.,
 it's not ordered by month.
 
 However, when I add a compareFunction which compares a SortDate value within
 each object in the array (which is not displayed - it's simply a date
 signifying the first of each month, to provide a sorting mechanism), a
 strange thing happens.
 
 Instead of two groupings, I have 6. And the ordering of the offices has been
 reversed. So I get DallasAtlantaDallasAtlanta
 DallasAtlanta.
 
 Within each grouping, the records are correctly sorted by descending date
 values. And the groups themselves, when expanded, show that all the records
 in Dallas and Atlanta groups are sorted correctly - but they're broken into
 all those extra groups.
 
 I have verified that the records coming into the application all have the
 correct values for the Office and SortDate fields, so the problem isn't
 there.
 
 Here's the ADG:
 
 mx:AdvancedDataGrid width=1125 height=265 id=monthlyTotalGrid
 defaultLeafIcon={null} wordWrap=true
  variableRowHeight=true initialize=rc.refresh();
 selectionColor=#fcffcd sortableColumns=false sortExpertMode=true
 mx:dataProvider
 mx:GroupingCollection id=rc source={monthlyTotals}
 mx:grouping
 mx:Grouping
 mx:GroupingField name=Office
 groupingFunction=createGroupLabel compareFunction=compareDate /
 /mx:Grouping
 /mx:grouping
 /mx:GroupingCollection
 /mx:dataProvider
 mx:columns
 mx:AdvancedDataGridColumn dataField=Month
 headerWordWrap=true width=150 /
 mx:AdvancedDataGridColumn dataField=Total Cases
 headerWordWrap=true textAlign=center /
 ... several other columns go here
 
 /mx:columns
 /mx:AdvancedDataGrid
 
 ... and here's my compareFunction:
 
 private function compareDate(a:Object,b:Object):int{
 var aTime:Number = a.SortDate.getTime();
 var bTime:Number = b.SortDate.getTime();
 if(aTime  bTime){
 return 1;
 }
 if(aTimebTime){
 return -1;
 }
 else return 0;
 
 }
 
 I'm very inexperienced with the ADG, so it's probably something simple I'm
 missing. Any help would be appreciated.
 
 
 -- 
 Thanks,
 
 Tom
 
 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560





Re: [flexcoders] Re: Odd grouping issue in ADG

2009-12-15 Thread Tom McNeer
Steve,

Thanks for the offer. I'll narrow it down to a fairly simple test component
later today and get back to you.

On Tue, Dec 15, 2009 at 11:59 AM, valdhor valdhorli...@embarqmail.comwrote:



 Tom

 If you post a small runnable example with sample data, I would be willing
 to take a look.

 Best Regards

 Steve


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
 McNeer tmcn...@... wrote:
 
  Hi,
 
  I posted this issue earlier, but got no replies. I'm really hoping
 someone
  familiar with ADG oddities can help me out.
 
  I have an Advanced DataGrid which receives an array collection of sales
  information as a data provider. The data is in a flat grouping, and the
 only
  GroupingField is Office, which contains either Atlanta or Dallas as
 a
  value. The rest of the data in each row of the data provider contains a
  variety of sales statistics for a given month.
 
  With no compareFunction at all, the ADG correctly groups the records into
  two groups, with Atlanta first. But as expected, the ordering of the
 records
  within the group doesn't reflect the contents of the original data, i.e.,
  it's not ordered by month.
 
  However, when I add a compareFunction which compares a SortDate value
 within
  each object in the array (which is not displayed - it's simply a date
  signifying the first of each month, to provide a sorting mechanism), a
  strange thing happens.
 
  Instead of two groupings, I have 6. And the ordering of the offices has
 been
  reversed. So I get DallasAtlantaDallasAtlanta
  DallasAtlanta.
 
  Within each grouping, the records are correctly sorted by descending date
  values. And the groups themselves, when expanded, show that all the
 records
  in Dallas and Atlanta groups are sorted correctly - but they're broken
 into
  all those extra groups.
 
  I have verified that the records coming into the application all have the
  correct values for the Office and SortDate fields, so the problem isn't
  there.
 
  Here's the ADG:
 
  mx:AdvancedDataGrid width=1125 height=265 id=monthlyTotalGrid
  defaultLeafIcon={null} wordWrap=true
  variableRowHeight=true initialize=rc.refresh();
  selectionColor=#fcffcd sortableColumns=false sortExpertMode=true
  mx:dataProvider
  mx:GroupingCollection id=rc source={monthlyTotals}
  mx:grouping
  mx:Grouping
  mx:GroupingField name=Office
  groupingFunction=createGroupLabel compareFunction=compareDate /
  /mx:Grouping
  /mx:grouping
  /mx:GroupingCollection
  /mx:dataProvider
  mx:columns
  mx:AdvancedDataGridColumn dataField=Month
  headerWordWrap=true width=150 /
  mx:AdvancedDataGridColumn dataField=Total Cases
  headerWordWrap=true textAlign=center /
  ... several other columns go here
 
  /mx:columns
  /mx:AdvancedDataGrid
 
  ... and here's my compareFunction:
 
  private function compareDate(a:Object,b:Object):int{
  var aTime:Number = a.SortDate.getTime();
  var bTime:Number = b.SortDate.getTime();
  if(aTime  bTime){
  return 1;
  }
  if(aTimebTime){
  return -1;
  }
  else return 0;
 
  }
 
  I'm very inexperienced with the ADG, so it's probably something simple
 I'm
  missing. Any help would be appreciated.
 
 
  --
  Thanks,
 
  Tom
 
  Tom McNeer
  MediumCool
  http://www.mediumcool.com
  1735 Johnson Road NE
  Atlanta, GA 30306
  404.589.0560
 

  




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Flex 4 Upgrade Price?

2009-12-15 Thread Rick Winscot
Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 - Flex
3 upgrade and four weeks later they dropped the price to $250. I¹d like to
avoid that if possible ­ does anyone have any info on what the Flex 4
upgrade is going to cost and when it might be available?

Also... when are we going to see (Eclipse) support for Carbon dropped or
Cocoa added for the Mac folks? It would really be nice to be cruising at 64
bit.

Cheers,

Rick Winscot
www.quilix.com


Re: [flexcoders] Flex 4 Upgrade Price?

2009-12-15 Thread Matt Chotin
We haven't announced pricing but we expect it to be in line with the Flex 3 
upgrade pricing.  As far as I recall we didn't change the upgrade prices in the 
middle though.  Dates are also not announced yet, early 2010.

Matt

On Dec 15, 2009, at 10:55 AM, Rick Winscot wrote:

 Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 - Flex 
 3 upgrade and four weeks later they dropped the price to $250. I’d like to 
 avoid that if possible – does anyone have any info on what the Flex 4 upgrade 
 is going to cost and when it might be available?
 
 Also... when are we going to see (Eclipse) support for Carbon dropped or 
 Cocoa added for the Mac folks? It would really be nice to be cruising at 64 
 bit.
 
 Cheers,
 
 Rick Winscot
 www.quilix.com
 





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

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
flexcoders-dig...@yahoogroups.com 
flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



Re: [flexcoders] Re: Dealing with images larger than Flash Player 10 limit

2009-12-15 Thread Aaron Hardy
Thank you very much for the response.  Your code looked eerily similar to
the code I was already using, but I plugged your code into a fresh project
and it worked.  It baffled my mind.  I went back to my project and I got the
same issue I was seeing before--the bitmap data would return 0 for both
width and height.  The flex debugger showed Error #2015: Invalid
BitmapData. for both getters.  I assumed it was due to the 16.7 million
limit (which doesn't seem to apply to bitmaps created by loaders) because I
consistently saw the issue with images over that size.  On a whim I tried
our project without the debugger (just a normal run) and it worked!  If that
isn't crazy enough, I started noticing that the longer I used Flex builder
the more common the issue became--that is, images at 13,000,000 pixels even
started reporting 0 width and height (and the invalid bitmap error in the
variables debugger view).

Thanks for taking the time to send your code and prompting me to look
deeper.

Aaron

On Tue, Dec 15, 2009 at 11:43 AM, jamesfin james.alan.finni...@gmail.comwrote:





 This example refines the image down to 80x80. SmoothImage is derived from
 Image. I tested it against a 7000x6000 8.5mb jpg with no problems. It also
 scales to the smaller side if they aren't equal.

 main code...

 private var uploadReference:FileReference = new FileReference();

 uploadReference.addEventListener(Event.SELECT, loadImage);
 uploadReference.addEventListener(Event.CANCEL, cancelImage);
 uploadReference.addEventListener(Event.COMPLETE, uploadCompleted);

 private function loadPicture(evt:MouseEvent):void{

 var imageArray:Array = new Array();
 imageArray.push(new FileFilter(My Image, .png;*.jpg;*.jpeg;*.gif));
 uploadReference.browse(imageArray);
 }

 private function loadImage(evt:Event):void{

 uploadReference.load();
 }

 private function uploadCompleted(e:Event):void{

 if(FileReference(e.target).data.length == 0){
 return;
 }

 var loader:Loader = new Loader();
 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoad);
 loader.loadBytes(FileReference(e.target).data);
 }


 private function onImageLoad(e:Event):void {

 var imageBitmapData:BitmapData = Bitmap(e.target.content).bitmapData;

 var loader:Loader = Loader(e.target.loader);

 var smoother:SmoothImage = new SmoothImage();
 smoother.load(new Bitmap(imageBitmapData, auto, true));
 smoother.content.width = 80;
 smoother.content.height = 80;
 smoother.width = 80;
 smoother.height = 80;

 if(imageBitmapData.width  80 || imageBitmapData.height  80){

 var imageSmoothed:SmoothImage = new SmoothImage();
 imageSmoothed.maintainAspectRatio = true;
 imageSmoothed.load(new Bitmap(imageBitmapData, auto, true));

 var maxSize:Number = Math.max(imageBitmapData.width,
 imageBitmapData.height);

 if(maxSize == imageBitmapData.width){

 var widthScale:Number = 80 / imageBitmapData.width;
 var newWidth:Number = imageBitmapData.width * widthScale;
 var newHeight:Number = imageBitmapData.height * widthScale;

 imageSmoothed.content.width = newWidth;
 imageSmoothed.content.height = newHeight;
 imageSmoothed.width = newWidth;
 imageSmoothed.height = newHeight;

 var finalBitmap:BitmapData = new BitmapData(newWidth, newHeight);
 finalBitmap.draw(imageSmoothed);
 imageBitmapData = null;
 imageBitmapData = finalBitmap;

 }else{

 var heightScale:Number = 80 / imageBitmapData.height;
 var newWidth2:Number = imageBitmapData.width * heightScale;
 var newHeight2:Number = imageBitmapData.height * heightScale;

 imageSmoothed.content.width = newWidth2;
 imageSmoothed.content.height = newHeight2;
 imageSmoothed.width = newWidth2;
 imageSmoothed.height = newHeight2;

 var finalBitmap2:BitmapData = new BitmapData(newWidth2, newHeight2);
 finalBitmap2.draw(imageSmoothed);
 imageBitmapData = null;
 imageBitmapData = finalBitmap2;
 }

 }

 // some image...
 imageToDisplay.source = new Bitmap(imageBitmapData);

 }

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aaron
 Hardy aaronius...@... wrote:
 
  Hey flexers,
 
  We're working on a project currently where we would like to allow users
 to
  add photos from their local drive to the stage. We also want to support
  gigantic photos. I understand the max bitmap size is 4095x4095 (or
  dimensions that equal the same number of pixels) in flash player 10. If
 the
  user has a photo bigger than this, we'd be happy to size the image down
 to
  this limit and allow the user to work with their image at the restricted
  size. However, I'm stuck trying to figure out how to size down the image
  before creating a bitmap object. I have a bytearray of the image data but
  now I need the image resized down to the bitmap limit before creating a
  bitmap from the bytearray. Somewhat a chicken-or-the-egg problem. Does
  anyone have a nice tool or method to accomplish this? Anyone know how
  Buzzword does this?
 
  Thanks.
 
  Aaron
 

  



Re: [flexcoders] Flex 4 Upgrade Price?

2009-12-15 Thread Nick Collins
Us Windows folks don't have 64 bit love yet, either.

On Tue, Dec 15, 2009 at 12:55 PM, Rick Winscot rick.wins...@zyche.comwrote:



 Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 -
 Flex 3 upgrade and four weeks later they dropped the price to $250. I’d like
 to avoid that if possible – does anyone have any info on what the Flex 4
 upgrade is going to cost and when it might be available?

 Also... when are we going to see (Eclipse) support for Carbon dropped or
 Cocoa added for the Mac folks? It would really be nice to be cruising at 64
 bit.

 Cheers,

 Rick Winscot
 www.quilix.com
  



[flexcoders] Re: Clarification in including libraries

2009-12-15 Thread Ariel J
When you add libaries via Library Path, they are only compiled into the swf if 
they are used/referenced in your code. This keeps swf's smaller by only adding 
Flex code that is needed. For example, why compile into your swf the code for 
Advanced Data Grid if you never use it.

However, since you don't necessarily reference any of the automation api 
directly in your app, using the Library Path won't work, because it will be 
excluded from your swf. To get those automation libraries in there for an 
external swf to use, you use the include-libraries compiler option which 
ignores if a library is actually used in the code and includes the full library 
into the swf anyway.

--- In flexcoders@yahoogroups.com, shameer.forflex shameer.forf...@... 
wrote:

 Hi All,
 
 I want to make a flex application testable using QTP. I am using the same 
 code for production and testing. In the project properties-Flex Build 
 Path-Library Path, the auto libs such as automation.swc, 
 automation_agent.swc etc are added(merged into code), the moment I create the 
 Project. But to associate the auto libs with the flex application, I have to 
 add them again as Compiler options or at run time. So can anyone please 
 explain me the difference between adding these libs in Flex Build 
 Path-Library Path and adding libraries as Flex Compiler options.
 
 Thanks,
 Shameer





[flexcoders] Swfloader stopping when 1mb

2009-12-15 Thread David Pariente
Hi all,

Unexpectectly one of my swfloaders stops loading when i put the website in the 
internet.

After fighting with it i found out that it allways stops loading at 980kb, 
allways just before reach 1mb.

I have no idea why this is happening...the other swf files that i load that are 
under 1mb loads perfectly.

Does someone have any hint about what could be happening?

Thanks a lot.

--
David Pariente
RIA consultor
--


  


Re: [flexcoders] Re: Odd grouping issue in ADG [1 Attachment]

2009-12-15 Thread Tom McNeer
Steve (and anyone else interested),

I have attached a simple P-O-C that demonstrates the problem.

If you remove the compareFunction attribute from the grid, the entries are
grouped correctly; but of course, they're sorted randomly.

However, with the compareFunction in place, the sort is correct. But there
are multiple entries for each group.

Any insight will be very much appreciated.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Flex Component Kit and RSL

2009-12-15 Thread Eduardo Dias
Hello Everyone,


Does anyone already tried before to use the SWC component generated by the
Flex Component Kit as a RSL?

I'm trying that but it seems it doesn't cause any effect over the swf size.
Probably all SWC components generated by the FCK have linkage type *merged
into the code.*

Any help is welcome.


Thanks.


RE: [flexcoders] UITextField: text-align crops the text

2009-12-15 Thread Alex Harui
There might be some edge cases out there.  Does it work if you don't embed the 
font?  Maybe file a bug with your 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 m_koks
Sent: Tuesday, December 15, 2009 4:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] UITextField: text-align crops the text



Hi
I observed that if you set the textAlign property as right or center
to the UITextField and if the UItextField is multiline, few of the
extreme right characters in the line get cut.

Run following code to get the issue I'm talking about.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=onCreate()
mx:Script
![CDATA[
import mx.core.UITextField;

private var tf1:UITextField;
[Embed(systemFont=Verdana, fontName='Verdana',
mimeType='application/x-font')]
public var verdanaFont:Class;
[Embed(systemFont=Verdana, fontName='Verdana',
fontWeight=bold, mimeType='application/x-font')]
public var verdanabFont:Class;
[Embed(systemFont=Verdana, fontName='Verdana',
fontStyle=italic, mimeType='application/x-font')]
public var verdanaiFont:Class;
[Embed(systemFont=Verdana, fontName='Verdana',
fontWeight=bold, fontStyle=italic, mimeType='application/x-font')]
public var verdanabiFont:Class;
private function onCreate():void
{
tf1 = new UITextField();
addChild(tf1);
tf1.multiline = true;
tf1.wordWrap = true;
tf1.border = true
tf1.mouseWheelEnabled = false;
tf1.ignorePadding = false;
tf1.x = 100
tf1.selectable = true;
tf1.width = 220
tf1.htmlText =  nn n  n
 n  dfw sdf gsd fg dsfg dsf sfa dsf gsd fg sdfg sdfg
sdfg sdfg sdf gsd fg sdfg sgh dffgh dfgh dfgh dfgh sd sdf gsdf gsd fg
sdfg sdfg sdf gsdfg sdf gsdf end
tf1.embedFonts = true;
var txtFormat:TextFormat = new TextFormat();
txtFormat.leftMargin = 20;
txtFormat.size = 15;
txtFormat.align = right
tf1.setTextFormat(txtFormat);
tf1.height = tf1.textHeight;
}
]]
/mx:Script
/mx:Application

You will notice that the character w of the word dfw is getting cut.
Any idea, why this must be happening?

Thanks in advance

--
Mahesh Kokadwar



[flexcoders] nightly sdk - automation libs

2009-12-15 Thread Ariel J
should the nightly sdk 4.0 builds include the automation libs?



[flexcoders] Need help refreshing datagrid - doesn't update in time if I use keyboard listner

2009-12-15 Thread luvfotography
Hi, I've got an eventListener listening for keyboard events and a  checkbox in 
a datagrid column, and after I select a checkbox and immediately hit a key, 
then the item selected is not picked up.
If I select a checkbox in the datagrid, then click outside the datagrid, then 
hit a key, then the item selected is recorded properly.
How Can I fix this?  

here is the code, to run the example, click on the two checkboxes, then 
immediatly press a key, only the first name is reported.

example here: http://elizabethcoda.com/datagridCheckbox.swf

code:
?xml version=1.0?
!-- itemRenderers\inline\CBInlineCellEditor.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
applicationComplete=init()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;

[Bindable]
private var myDP:ArrayCollection = new ArrayCollection([
{label1:Order #2314, contact:Marge, 
quant:3, solddate:new Date(2005, 0, 1), Sent:false},
{label1:Order #2315, contact:Bart, 
quant:3, solddate:new Date(2005, 0, 5), Sent:false}
]);
private function init():void {
addEventListener(KeyboardEvent.KEY_UP,showSelected);
}
private function sent(e:Event):void {
sent_ta.text = '';
for(var i:int = 0; i  myDP.length;i ++ ) {
if(myDP[i].Sent) {
sent_ta.text +=  sent to  + myDP[i].contact + 
'\n';
}
}
}
private function showSelected(event:KeyboardEvent):void {  
 sent_ta.text = '';
 for (var i:int=0; i  myDP.length; i++) {
if (myDP[i].Sent) { 
sent_ta.text +=  sent to  + 
myDP[i].contact + '\n';
}
}
   } 
]]
/mx:Script

mx:DataGrid id=myDG 
dataProvider={myDP} 
variableRowHeight=true 
width=500 height=250 
editable=true
mx:columns
mx:DataGridColumn dataField=label1 
headerText=Order # 
editable=false/
mx:DataGridColumn dataField=quant 
headerText=Quantity 
itemEditor=mx.controls.NumericStepper  
editorDataField=value/
mx:DataGridColumn dataField=solddate 
headerText=Date  
itemRenderer=mx.controls.DateField 
rendererIsEditor=true 
editorDataField=selectedDate/
mx:DataGridColumn dataField=contact /
mx:DataGridColumn dataField=Sent 
itemRenderer=mx.controls.CheckBox 
rendererIsEditor=true 
editorDataField=selected/
/mx:columns 
/mx:DataGrid  
mx:Button label=What's sent? click=sent(event)/
mx:TextArea id=sent_ta height=70/
/mx:Application



[flexcoders] Re: replicating Flex build with ant script

2009-12-15 Thread Ariel J
needed to add this to the build script:

static-link-runtime-shared-libraries=true



--- In flexcoders@yahoogroups.com, Ariel J arielj...@... wrote:

 I am trying to reproduce the standard build with an ant script to prepare for 
 future customizations, but when I compile I am getting a SWF with a 
 drastically different size that won't run. Can anyone spot an error in my 
 script? Here is my current ant target:
 
 mxmlc file=${src}/Main.mxml 
   output=${bin-test}/Main.swf 
   debug=true 
   optimize=true 
   incremental=true 
   locale=en_US 
   configname=flex 
   show-unused-type-selector-warnings=false 
   show-actionscript-warnings=false 
   show-binding-warnings=false 
   show-deprecation-warnings=false
   
   compiler.context-root/Main/compiler.context-root 
   source-path path-element=${src} / 
   source-path path-element=${assets} /
   library-path dir=${FLEX_HOME}/frameworks/libs 
 append=true
   include name=*.swc / 
   /library-path
   library-path dir=${FLEX_HOME}/frameworks/locale 
 append=true
   include name={locale} / 
   /library-path
   library-path dir=${lib} append=true
   include name=*.swc / 
   /library-path
   library-path dir=${extras}/MVCS/bin append=true
   include name=MVCS.swc / 
   /library-path
   library-path dir=${extras}/ThirdPartyLibs/bin 
 append=true
   include name=ThirdPartyLibs.swc / 
   /library-path
   
   arg line=-load-config 
 ${FLEX_HOME}/frameworks/flex-config.xml / 
   /mxmlc





Re: [flexcoders] Flex 4 Upgrade Price?

2009-12-15 Thread Gustavo Duenas
does anyone knows if this flex 4 upgrade will be also for PPC macs  
not the intel kind


Gus
On Dec 15, 2009, at 2:55 PM, Nick Collins wrote:


Us Windows folks don't have 64 bit love yet, either.


On Tue, Dec 15, 2009 at 12:55 PM, Rick Winscot  
rick.wins...@zyche.com wrote:


Not to sound harsh on Adobe... but I shelled out $500 for the Flex  
2 - Flex 3 upgrade and four weeks later they dropped the price to  
$250. I’d like to avoid that if possible – does anyone have any  
info on what the Flex 4 upgrade is going to cost and when it might  
be available?


Also... when are we going to see (Eclipse) support for Carbon  
dropped or Cocoa added for the Mac folks? It would really be nice  
to be cruising at 64 bit.


Cheers,

Rick Winscot
www.quilix.com








Re: [flexcoders] Flex 4 Upgrade Price?

2009-12-15 Thread Rick Winscot
Amen brother. It¹s crazy expensive to run 32bit Flexbuilder on a 64bit
machine for anyone.

Matt ­ to refresh your memory on the pricing changes. The upgrade price at
the time of Ted¹s post went from $499 to $249 for pro ­ ppl that bought Flex
2 within the free-upgrade window paid $250 less than the rest of us and got
a free ride to Flex 3. I remember explaining the expense to my wife ­ who
wasn¹t happy... and when she isn¹t happy ­ ain¹t nobody happy.

http://onflash.org/ted/2007/10/flex-3-beta-2-lower-price-flex-builder.php

Cheers,

Rick Winscot
www.quilix.com


On 12/15/09 2:55 PM, Nick Collins ndcoll...@gmail.com wrote:

  
  
  

 
 Us Windows folks don't have 64 bit love yet, either.
 
 On Tue, Dec 15, 2009 at 12:55 PM, Rick Winscot rick.wins...@zyche.com wrote:
   
  
  

 
 Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 - Flex
 3 upgrade and four weeks later they dropped the price to $250. I¹d like to
 avoid that if possible ­ does anyone have any info on what the Flex 4 upgrade
 is going to cost and when it might be available?
 
 Also... when are we going to see (Eclipse) support for Carbon dropped or
 Cocoa added for the Mac folks? It would really be nice to be cruising at 64
 bit.
 
 Cheers,
 
 Rick Winscot
 www.quilix.com http://www.quilix.com
  

  
 
  

 
 



Re: [flexcoders] Flex 4 Upgrade Price?

2009-12-15 Thread Matt Chotin
No, we will not support PPC with Flex 4.

Matt

On Dec 15, 2009, at 1:38 PM, Gustavo Duenas wrote:

 does anyone knows if this flex 4 upgrade will be also for PPC macs not the 
 intel kind
 
 
 Gus
 On Dec 15, 2009, at 2:55 PM, Nick Collins wrote:
 
  
 Us Windows folks don't have 64 bit love yet, either.
 
 
 On Tue, Dec 15, 2009 at 12:55 PM, Rick Winscot rick.wins...@zyche.com 
 wrote:
  
 Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 - Flex 
 3 upgrade and four weeks later they dropped the price to $250. I’d like to 
 avoid that if possible – does anyone have any info on what the Flex 4 
 upgrade is going to cost and when it might be available?
 
 Also... when are we going to see (Eclipse) support for Carbon dropped or 
 Cocoa added for the Mac folks? It would really be nice to be cruising at 64 
 bit.
 
 Cheers,
 
 Rick Winscot
 www.quilix.com
 
 
 
 
 
 





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

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
flexcoders-dig...@yahoogroups.com 
flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



[flexcoders] flex 4 skins + presentation model

2009-12-15 Thread Ariel J
Can anyone suggest how to merge these? The issue is that the presenation model 
is not necessarily available when the skin parts are added in partAdded() which 
is where skin parts tend to be integrated. Does it involve a lot of 
BindingUtils? How are people doing this? 



[flexcoders] Re: MAC : TextInput focus

2009-12-15 Thread emc_rcsiki
Alex, the following simple application gives the TextInput the focus in
the latest versions of IE and Firefox (IE8, Firefox 3.5) - that is, I
can start typing right away:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute applicationComplete=onAppComplete()
mx:Script
![CDATA[

private function onAppComplete():void
{
callLater(_setFocus);
}

private function _setFocus():void
{
ExternalInterface.call(s = function()
{document.getElementById('+this.id+').focus(); });
myTextField.stage.focus = myTextField;
}
]]
/mx:Script
mx:TextInput id=myTextField  horizontalCenter=0
verticalCenter=0/
/mx:Application

Are you saying this should do the same in Safari (Windows or Mac, it's
the most recent version of Safari), but b/c of a browser (or Flash)
issue it does not?

Thanks
Robert


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

 It is a flash/browser issue.  I'm surprised you got it working in FF. 
Maybe the latest versions have finally made it possible.  Slowly, one
browser at a time, we hope to work with the browser manufacturers to
make it so your users can just start typing, but it isn't possible on
all browsers right now.

 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 suman gayakwad
 Sent: Thursday, November 26, 2009 6:36 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] MAC : TextInput focus



 Alex,

  As soon as the application loads up, im getting the login
screen(TitlwWindow component) which has got three fields username,
password and domain. I'm trying to set the focus to the username field
so that user can start typing. The focus is set to username field in IE,
Firefox and also in Chrome but not in Safari browser. The weird thing
here(in Safari browser) as soon as i click on the application,(ie.
somewhere within the browser window)  the focus will be set to username
field.

 Is this browser plug-in issue or bug on Flex side ?

 Thanks,
 Suman




[flexcoders] drawing horizontal line in ADG based on data

2009-12-15 Thread venkateswarlu naidu
Hi Guys,

Hope everybody is doing good.
I have a problem in drawing horizontal line in Advanced datagrid based on some 
data of the row (ex: data.label='XXX').
I tried overriding drawHorizontalLine , it did work but when you start 
scrolling everything gets messed up.

Can anybody help me how to solve this?

Appreciate your help.

 Thanks  Regards,
Venkat.



  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/


[flexcoders] Flex Video and Firefox Issue

2009-12-15 Thread Gates Matthew

I have a videoplayer component that has been working just fine across browsers 
(chrome, IE, Safari, Firefox). We just changed server platforms from IIS to 
apache tomcat. The video player continues to work fine in all browsers EXCEPT 
firefox.

In the flex debugger, it reports no errors. But it seems unable to load the 
video source and the problem is only in firefox.

Has anyone had any experience with an issue like this? I have been googling and 
searching the archives and didn't come across anything.

Matt





[flexcoders] Combobox in Datagrid appears empty

2009-12-15 Thread emarionjacobs
I have a simple Combobox defined as the itemEditor for a DataGrid as shown 
below.  The ArrayCollection that is its DataProvider is populated from 
creationComplete of the parent Canvas - and I can see the data going in via the 
debugger.  However, when I insert a row into the datagrid under the 
circumstances that make the column editable and actually click on that column, 
I only see an empty row popping up under the combobox, never any data.  Can 
anyone shed any light on what's missing here?

mx:DataGridColumn 
  dataField=Genre
  editable={chartTrackListGrid.selectedItem.TrackCode == null}
  mx:itemEditor
mx:Component
  mx:ComboBox 
dataProvider={parentDocument.model.genreList}
labelField=Name /
/mx:Component
  /mx:itemEditor
/mx:DataGridColumn




Re: [flexcoders] drawing horizontal line in ADG based on data

2009-12-15 Thread venkateswarlu naidu
Tried below but still getting the horizontal grid lines drawn for all rows when 
i start scrolling down :(

1.

override protected function drawHorizontalLine(s:Sprite, rowIndex:int, 
color:uint, y:Number):void { 
 if(indexToItemRenderer(rowIndex) != null) { 
 var myObj:Object = indexToItemRenderer(rowIndex).data; 
 var g:Graphics = s.graphics; 
 if (myObj.name == John) { 
 g.lineStyle(1, 0xff); 
 g.moveTo(0, y); 
 g.lineTo(width, y); 
 } else { 
 g.lineStyle(1, 0x00); 
 g.moveTo(0, y); 
 g.lineTo(width, y); 
 } 
 } 
} 

2.
==

 override protected function drawRowBackgrounds():void { 
  super.drawRowBackgrounds(); 

 var rowBGs:Sprite = 
Sprite(listContent.getChildByName(rowBGs)); 
 var lineCol:uint = getStyle(horizontalGridLineColor); 

 if (!rowBGs) 
 { 
 rowBGs = new FlexSprite(); 
 rowBGs.mouseEnabled = false; 
 rowBGs.name = rowBGs; 
 listContent.addChildAt(rowBGs, 0); 
 } 
 var g:Graphics=rowBGs.graphics; 
 var curRow:int = 0; 
 var n:int = listItems.length; 

 while (curRow  n) 
 { 
 try { 
 var myObj:Object = listItems[curRow][0].data; 
 if (myObj.phone == 555-219-2270) { 
 g.lineStyle(1, 0x00ff00); 
 } else { 
 g.lineStyle(1, lineCol); 
 } 
 g.moveTo(0,rowInfo[curRow].y+1); 
 g.lineTo(width,rowInfo[curRow].y+1); 
 } catch (e:Error) { 
 trace(e.getStackTrace()); 
 } 
 curRow++; 
 } 
 while (rowBGs.numChildren  0) 
 { 
 rowBGs.removeChildAt(rowBGs.numChildren - 1); 
 } 
 }
==

Please let me know if anybody knows about this asap.. Thanks in advance


Thanks  Regards,Venkat.





From: venkateswarlu naidu contactve...@yahoo.co.in
To: aha...@adobe.com; flexcoders@yahoogroups.com
Sent: Tue, 15 December, 2009 9:40:03 PM
Subject: [flexcoders] drawing horizontal line in ADG based on data

  
Hi Guys,

Hope everybody is doing good.
I have a problem in drawing horizontal line in Advanced datagrid based on some 
data of the row (ex: data.label=' XXX').
I tried overriding drawHorizontalLine , it did work but when you start 
scrolling everything gets messed up.

Can anybody help me how to solve this?

Appreciate your help.

Thanks  Regards,
Venkat.

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo. com/

 


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Re: [flexcoders] IE Div Tags somehow blocked on html page

2009-12-15 Thread Dan Pride
No That does not work either
View source at 
http://www.archaeolibrary.com/Gezer/Center2/Center.html

Works on windows firefox fine but IE is still over the the left.
Its a Flex issue not a Css issue.
Somehow Flex is overriding the Css
I have tried every combination.
very puzzling
?
Dan

--- On Sat, 12/12/09, claudiu ursica the_bran...@yahoo.com wrote:

From: claudiu ursica the_bran...@yahoo.com
Subject: Re: [flexcoders] IE Div Tags somehow blocked on html page
To: flexcoders@yahoogroups.com
Date: Saturday, December 12, 2009, 9:56 AM







 



  



  
  
  I believe you are looking at margin: 0px auto; instead of 
margin:auto;
margin-left: auto ; 
margin-right: auto ;

C.

From: Dan Pride danielpride@ yahoo.com
To: Flex Coders flexcod...@yahoogro ups.com
Sent: Sat, December 12, 2009 4:49:13 PM
Subject: [flexcoders] IE Div Tags somehow blocked on html page









 




  
  
  The margin div tags (and others) outside the flex objects are somehow not 
working. All attempts to center the page do not work on IE but do work on all 
other browsers.



A CENTER tag (last resort) somehow blocs presentation of Flex



This Works

/head

bodyCENTER

div class=Page  

p /p

/div

/body

/html



But if you add the Flex Object rather than the text (X) the page comes up 
blank ???



This Css centering should work but does not.

http://www.archaeol ibrary.com/ Gezer/Center/ Center.html



Whats going on here?



Dan Pride






 









  


 





 



  






  

RE: [flexcoders] Combobox in Datagrid appears empty

2009-12-15 Thread Alex Harui
Are you sure genreList is an array or ArrayCollection?  Is the model bindable?

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 emarionjacobs
Sent: Tuesday, December 15, 2009 4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox in Datagrid appears empty



I have a simple Combobox defined as the itemEditor for a DataGrid as shown 
below. The ArrayCollection that is its DataProvider is populated from 
creationComplete of the parent Canvas - and I can see the data going in via the 
debugger. However, when I insert a row into the datagrid under the 
circumstances that make the column editable and actually click on that column, 
I only see an empty row popping up under the combobox, never any data. Can 
anyone shed any light on what's missing here?

mx:DataGridColumn
dataField=Genre
editable={chartTrackListGrid.selectedItem.TrackCode == null}
mx:itemEditor
mx:Component
mx:ComboBox
dataProvider={parentDocument.model.genreList}
labelField=Name /
/mx:Component
/mx:itemEditor
/mx:DataGridColumn



RE: [flexcoders] Need help refreshing datagrid - doesn't update in time if I use keyboard listner

2009-12-15 Thread Alex Harui
DG editing is session-based, Tab or focus out commits the data.  I'd probably 
commit the data on a change event from the CheckBox

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 luvfotography
Sent: Tuesday, December 15, 2009 1:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help refreshing datagrid - doesn't update in time if 
I use keyboard listner



Hi, I've got an eventListener listening for keyboard events and a checkbox in a 
datagrid column, and after I select a checkbox and immediately hit a key, then 
the item selected is not picked up.
If I select a checkbox in the datagrid, then click outside the datagrid, then 
hit a key, then the item selected is recorded properly.
How Can I fix this?

here is the code, to run the example, click on the two checkboxes, then 
immediatly press a key, only the first name is reported.

example here: http://elizabethcoda.com/datagridCheckbox.swf

code:
?xml version=1.0?
!-- itemRenderers\inline\CBInlineCellEditor.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
applicationComplete=init()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;

[Bindable]
private var myDP:ArrayCollection = new ArrayCollection([
{label1:Order #2314, contact:Marge,
quant:3, solddate:new Date(2005, 0, 1), Sent:false},
{label1:Order #2315, contact:Bart,
quant:3, solddate:new Date(2005, 0, 5), Sent:false}
]);
private function init():void {
addEventListener(KeyboardEvent.KEY_UP,showSelected);
}
private function sent(e:Event):void {
sent_ta.text = '';
for(var i:int = 0; i  myDP.length;i ++ ) {
if(myDP[i].Sent) {
sent_ta.text +=  sent to  + myDP[i].contact + '\n';
}
}
}
private function showSelected(event:KeyboardEvent):void {
sent_ta.text = '';
for (var i:int=0; i  myDP.length; i++) {
if (myDP[i].Sent) {
sent_ta.text +=  sent to  + myDP[i].contact + '\n';
}
}
}
]]
/mx:Script

mx:DataGrid id=myDG
dataProvider={myDP}
variableRowHeight=true
width=500 height=250
editable=true
mx:columns
mx:DataGridColumn dataField=label1
headerText=Order #
editable=false/
mx:DataGridColumn dataField=quant
headerText=Quantity
itemEditor=mx.controls.NumericStepper
editorDataField=value/
mx:DataGridColumn dataField=solddate
headerText=Date
itemRenderer=mx.controls.DateField
rendererIsEditor=true
editorDataField=selectedDate/
mx:DataGridColumn dataField=contact /
mx:DataGridColumn dataField=Sent
itemRenderer=mx.controls.CheckBox
rendererIsEditor=true
editorDataField=selected/
/mx:columns 
/mx:DataGrid
mx:Button label=What's sent? click=sent(event)/
mx:TextArea id=sent_ta height=70/
/mx:Application



[flexcoders] Dapatkan 1.15 Million Malaysia Email Address!!! Hari ini adalah Promosi

2009-12-15 Thread biz4us


Perniagaan Internet anda gagal???

Disini saya berikan anda 1.15 million Malaysia Email Address untuk anda 
mempromosikan perniagaan anda.
Banyak peniaga Internet membeli Email List ini dan banyak daripada merek
a menjana pendapatan lumayan dalam seminggu sahaja.

http://senaraiemail.webs.com/ourproduct.htm

Anda tidak pernah menjalankan perniagaan Internet???
Disini saya memberikan anda satu peluang.
Mari kita menjual email address kepada peniaga2 Internet.20
Setakat ini, ramai peniaga yang melakukan pembelian sehingga saya sendir
i
menjana 5k sebulan.

Anda bila lagi??? Ini bukan hyper market tapi ini kenyataan.
Anda tak percaya tapi belum mencuba macam mana nak tahu? Sila check pack
age SP dalam website dibawah. Dengan package SP, komisyen adalah 100% mi
lik anda.
Layari laman web saya dibawah untuk maklumat lanjut.

http://senaraiemail.webs.com/ourproduct.htm
http://senaraiemail.webs.com/ourproduct.htm






RE: [flexcoders] Re: MAC : TextInput focus

2009-12-15 Thread Alex Harui
Yeah.  And I'm surprised you got it working on FireFox.

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 emc_rcsiki
Sent: Tuesday, December 15, 2009 5:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: MAC : TextInput focus



Alex, the following simple application gives the TextInput the focus in the 
latest versions of IE and Firefox (IE8, Firefox 3.5) - that is, I can start 
typing right away:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
applicationComplete=onAppComplete()
   mx:Script
   ![CDATA[

   private function onAppComplete():void
   {
   callLater(_setFocus);
   }

   private function _setFocus! ():void
   {
   ExternalInterface.call(s = function() 
{document.getElementById('+this.id+').focus(); });
   myTextField.stage.focus = myTextField;
   }
   ]]
   /mx:Script
   mx:TextInput id=myTextField  horizontalCenter=0 verticalCenter=0/
/mx:Application

Are you saying this should do the same in Safari (Windows or Mac, it's the most 
recent version of Safari), but b/c of a browser (or Flash) issue it does not?

Thanks
Robert


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

 It is a flash/browser issue. I'm su! rprised you got it working in FF. Maybe 
 the latest versions h! ave fina lly made it possible. Slowly, one browser at 
 a time, we hope to work with the browser manufacturers to make it so your 
 users can just start typing, but it isn't possible on all browsers right now.

 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 suman gayakwad
 Sent: Thursday, November 26, 2009 6:36 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] MAC : TextInput focus



 Alex,

 As soon as the application loads up, im getting the login screen(TitlwWindow 
 component) which has got three fields username, password and domain. I'm 
 trying to set the focus to the username field so that user can start typing. 
 The focus is set to username field in IE, Firefox and al! so in Chrome but 
 not in Safari browser. The weird thing here(in Safari browser) as soon as i 
 click on the application,(ie. somewhere within the browser window) the focus 
 will be set to username field.

 Is this browser plug-in issue or bug on Flex side ?

 Thanks,
 Suman