Re: [flexcoders] Anybody has worked with flex-plugin and MAVEN ..???

2010-07-23 Thread Mika Kiljunen
I give one vote for FlexMojos too here. Currently I got it working with
version 3.8-SNAPSHOT, 3.7.1 and below have some problems that prevent me to
use it.

-Mika


Re: [flexcoders] Reload an application

2010-07-23 Thread claudiu ursica
Make a javascript call through external innterface telling the browser to 
reload 
the whole html page.
That will include reloading the flex app also.

C






From: Christophe christophe_jacque...@yahoo.fr
To: flexcoders@yahoogroups.com
Sent: Fri, July 23, 2010 10:27:45 AM
Subject: [flexcoders] Reload an application

  
Hello,

How to reload a flex application from a click on a button on the application 
interface ? 


Thank you,
Christophe, 


 


  

Re: [flexcoders] Reload an application

2010-07-23 Thread Akshar Kaul
why do you want to reload the whole application. you can just write a method
at the application level to reset the application to the initial state.

Akshar Kaul


On Fri, Jul 23, 2010 at 14:11, claudiu ursica the_bran...@yahoo.com wrote:



 Make a javascript call through external innterface telling the browser to
 reload the whole html page.
 That will include reloading the flex app also.

 C


 --
 *From:* Christophe christophe_jacque...@yahoo.fr
 *To:* flexcoders@yahoogroups.com
 *Sent:* Fri, July 23, 2010 10:27:45 AM
 *Subject:* [flexcoders] Reload an application



 Hello,

 How to reload a flex application from a click on a button on the
 application interface ?

 Thank you,
 Christophe,


  



RE: [flexcoders] Issue with item renderer in Flex 3

2010-07-23 Thread Gregor Kiddie
Add the isEdited variable to your data item and inside set data(...) do

 

If (data.isEdited) {

...

}

 

Instead.



Re: [flexcoders] Re: Web Services and ObjectProxy question for the Flex Gurus

2010-07-23 Thread Sajid Hussain
Good , 




From: flexcodemonkey michael_reg...@dell.com
To: flexcoders@yahoogroups.com
Sent: Thu, July 22, 2010 7:38:19 AM
Subject: [flexcoders] Re: Web Services and ObjectProxy question for the Flex 
Gurus

  
Thanks!  I will look into all of this.  Greatly appreciated for the pointers!

- Michael

--- In flexcoders@yahoogroups.com, Mike msl...@... wrote:

 
 
 Michael,
 
 The Flex SDK can do what you want, but the default behavior is for it to 
 unwrap 
collections and enclosing types which only contain one item.  This default was 
not a good idea, IMO.
 
 Have you tried setting Operation.forcePartArrays true?
http://livedocs.adobe.com/flex/3/langref/mx/rpc/soap/Operation.html#forcePartArrays
s
 You will need to obtain the mx.rpc.soap.Operation from the WebService first.
 
 You can alter the default behavior by writing a custom deserializer (which is 
 a 
non-trivial task, made more difficult by the ASDoc being turned off.)
 
 For more information about Flex WebService, see my slide show and YouTube 
 video 
at http://www.slideshare.net/mslinn/using-flex-with-enterprise-web-services
 
 Mike
 
 
  I'm using Flex 4 and I set the returntype for the webservice to return an 
array 

  of Cars - Cars[].  If the web service returns more than 1, it successfully 
  deserialized the data and returns an array of Car objects.  BUT, if only 
  one 
is 

  returned, it returns an ObjectProxy, obviously because it cannot convert it 
to 

  an array.



 


  

Re: [flexcoders] Re: Remote Objects not working with Modules

2010-07-23 Thread Sajid Hussain
debug your service objects ? does your app could access main application 
objects 
? 

play with charles it may help u




From: kannan Mugundan kannanmugun...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Thu, July 22, 2010 9:51:01 AM
Subject: Re: [flexcoders] Re: Remote Objects not working with Modules

  
Hi

I am using modules in my application   and each modules has its own Remote 
object and I am using Spring Blazeds as Server side.

post the errors, so you can get some help.

Make sure you follow things related to Application  current domain settings.

kannan



On Thu, Jul 22, 2010 at 8:29 PM, Alex Harui aha...@adobe. com wrote:

  
I believe there are some known issues with having a shared RO in the main app 
and the VO class definitions in a module.  Some of those issues hopefully got 
resolved in FP10.1.  The recommended config is to have all the VO classes in 
the 
main app with the RO.


On 7/22/10 5:05 AM, valdhor valdhorlists@ embarqmail. com wrote:



 
 
   

I don't know what to tell you. My application has over 25 modules and every 
one 
of them uses remote objects successfully. Could you post a small example of 
what 
you are trying?


--- In flexcod...@yahoogro ups.com mailto:flexcoders% 40yahoogroups. com , 
ZIONIST stinas...@.. . wrote:

 Hi guys, i am experiencing something weired. i have an application and i 
 have 
broken it up into modules so as to reduce the size of the application so 
archive 
faster download speed for the app. anyhow, i use ColdFusion to retrieve, 
insert, 
edit and delete data from a database and when i use Remote Objects in 
modules 
there is no data retrieve or added, but when is use custom components method 
instead of modules with the very same code, the data can be inserted or 
retrieved. can someone please help me and clarify on how to successful use 
remote objects with modules to manipulate a database with ColdFusion as the 
back 
end. thanks


 
   




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

 


  

[flexcoders] RichTextEditor + CSS Style + Embeded Font - nothing works as should...

2010-07-23 Thread fotis.chatzinikos
Hi everybody,

I have a RichTextEditor which I am trying to set its default Font Face size and 
color using the following CSS:

RichTextEditor
{
textAreaStyleName: 'rteStyle';
}

.rteStyle
{
font-size:26;
font-family:Arial;
color:#00;
}   

While this works, the htmlText output of the editor when used inside a 
mx:text/ field displays ... NOTHING (The text is there you can copy and paste 
it but it seems that its renderer in ...micropixels)

removing the CSS font-face :


.rteStyle
{
font-size:26;
color:#00;
}   


fixed the rendering but .. breaks the initialization of the RichTextEditor...

It now displays as the selected font Myriad Pro (an embeded font i am using), 
the font size to default 13 and the color to default white. Typing the first 
character inide it it fixes the defaults to 26, black... Changing from Myriad 
to Arial makes the htmlText of the Text field to disappear again... Plus Myriad 
disappears from the font selector ...

Has anybody managed to use The richTextEditor ever? Am i doing something wrong? 
IS IT REALLY SO BADLY IMPLEMENTED?





[flexcoders] Re: Changing color of the PopUpButton

2010-07-23 Thread Alexander Farber
Oh sorry - I was missing: pub.setStyle('color', 0xFF);


[flexcoders] Populating ID from an Oracle sequence

2010-07-23 Thread Adnan
Hello,

I am using Flex 4 with LCDS 3.1, using the Data Model perspective, I can 
quickly access my tables and map them.

When I insert a new row, an ID is automatically populated. What are the 
possibilities to use my own sequences from Oracle to populate an ID in
my tables?

In know that I can use;
generator class=sequence
param name=sequenceperson_id_sequence/param
/generator
in hibernate to access a sequence, but how/where to add it in LCDS.

All help is appriciated,
Adnan



[flexcoders] Re: Issue with item renderer in Flex 3

2010-07-23 Thread shameer.forflex
I tried even this. The problem is that I am using the same checkbox renderer in 
multiple columns. So if I use isEdited with the data(data.isEdited), when you 
check one checkbox in one column, color of the checkbox in other columns also 
changes to yellow. Also I didn't want to associate isEdited to the data, since 
I thought there would be a better approach.

Thanks
Shameer

--- In flexcoders@yahoogroups.com, Gregor Kiddie gregor.kid...@... wrote:

 Add the isEdited variable to your data item and inside set data(...) do
 
  
 
 If (data.isEdited) {
 
 ...
 
 }
 
  
 
 Instead.





[flexcoders] Re: Populating ID from an Oracle sequence

2010-07-23 Thread Bill


I think you should be able to achieve this through the use of a special 
annotated 

id name=myid type=long 
annotation name=DMS 
item name=strategySEQUENCE/item 
item name=generatormy_generator/item 
/annotation 
/id

Check out the doc on the model xml element ID 

http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Modeling/WS1B079AAC-29F9-4394-8180-468BD205AAEF.html

--- In flexcoders@yahoogroups.com, Adnan ad...@... wrote:

 Hello,
 
 I am using Flex 4 with LCDS 3.1, using the Data Model perspective, I can 
 quickly access my tables and map them.
 
 When I insert a new row, an ID is automatically populated. What are the 
 possibilities to use my own sequences from Oracle to populate an ID in
 my tables?
 
 In know that I can use;
 generator class=sequence
 param name=sequenceperson_id_sequence/param
 /generator
 in hibernate to access a sequence, but how/where to add it in LCDS.
 
 All help is appriciated,
 Adnan





Re: [flexcoders] Reload an application

2010-07-23 Thread Sajid Hussain
ssomtimes this help 

public function reloadpage(e:MousEvent):void{ 
var ref:URLRequest = javascript:location.reload(true); 
navigateToURL(ref, _self); 

}




From: Akshar Kaul akshar.k...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Fri, July 23, 2010 1:44:58 AM
Subject: Re: [flexcoders] Reload an application

  
why do you want to reload the whole application. you can just write a method at 
the application level to reset the application to the initial state.

Akshar Kaul



On Fri, Jul 23, 2010 at 14:11, claudiu ursica the_braniak@ yahoo.com wrote:

  
Make a javascript call through external innterface telling the browser to 
reload 
the whole html page.
That will include reloading the flex app also.

C







From: Christophe christophe_jacqueli n...@yahoo.fr
To: flexcod...@yahoogro ups.com
Sent: Fri, July 23, 2010 10:27:45 AM
Subject: [flexcoders] Reload an  application


  
Hello,

How to reload a flex application from a click on a button on the application 
interface ? 


Thank you,
Christophe, 




 


  

Re: [flexcoders] Re: ItemEditor | Multiple Components | Focus Issue

2010-07-23 Thread Alex Harui
Looks like there’s a bug in the DG editing code.  Please open a bug with a test 
case.

Try not calling event.preventDefault (but still call destroyItemEditor).


On 7/22/10 8:18 AM, Rajan ilikef...@yahoo.com wrote:






I looked at your sample but it does not contain nested properties.So 
event.preventDefault(); is not required and everything works fine.

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

 You might want to compare the popup editor example from my blog with your 
 example


 On 7/22/10 6:59 AM, Rajan ilikef...@... wrote:






 No, i have not borrowed the code for popup editorut yes i am using the popup 
 editor.

 Please see the code for Pop up at
 http://ilikeflex.blogspot.com/

 Under 'Code for PopUp'

 But my itemEditEnd event handler code is below.

 private function onitemEditEnd(event:DataGridEvent):void
 {
  //trace(event.reason);
  var datGrid:CheckBoxDataGrid=(event.currentTarget as 
 CheckBoxDataGrid);
 event.preventDefault();
  datGrid.destroyItemEditor();
 }


 I cannot remove event.preventDefault(); because my datagrid column has nested 
 datafield.

 renderer:CustomDataGridColumn dataField=periodPackage.id
 headerText=Period Package Code
  width=150
  refDataType={RDSConstants.RSS_PERIOD_PACKAGE}
  labelFunction=ServiceLabelFunctions.labelPPCode
  isPopupEditor=true
  rendererIsEditor=true
  editorDataField=editValue
  itemRenderer=com.SpyGlassFieldEditor/

 I am almost there..

 Any clue...
 Secondly what should i look in event.target and event.relatedObject

 Thanks
 ilikeflex




 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  I noticed your editor looks like it is a popup. Have you borrowed the code 
  from the popup editor example as well?
 
 
  On 7/21/10 11:43 AM, Rajan ilikeflex@ wrote:
 
 
 
 
 
 
  Actually itemEditEnd in the real sceanrio looks like below.
 
  Since i am uisng the nested datafield i am calling the
 
  event.preventDefault();
  datGrid.destroyItemEditor();
  datGrid.dataProvider.itemUpdated(event.itemRenderer.data);
 
  So my dataprovider gets updated with the new value when i use the mouse but 
  with the key board focus does not move from column1 to column2
 
  Any pointers
 
  private function onitemEditEnd(event:DataGridEvent):void
  {
  var datGrid:CheckBoxDataGrid=(eve! nt.currentTarget as CheckBoxDataGrid);
  if (event.reason == DataGridEventReason.CANCELLED)
  return;
 
  var selectedObject:Object=datGrid.dataProvider[event.rowIndex];
  var 
  customDataGridColumn:CustomDataGridColumn=datGrid.columns[event.columnIndex]
   as CustomDataGridColumn;
  var field:String=datGrid.columns[event.columnIndex].dataField;
  var array:Array=field.split(.);
 
  if (customDataGridColumn.isPopupEditor)
  {
  event.preventDefault();
  datGrid.destroyItemEditor();
  return;
  }
 
  if (array != null  array.length = 2)
  {
  event.preventDefault();
  var object:Object=selectedObject[array[0]];
  var textEnteredByUser:String;
  if (datGrid.itemEditorInstance is IEditorValue)
  {
 !  textEnteredByUser=IEditorValue(datGrid.itemEdit! orI nstance).editValue;
  object[array[1]]=textEnteredByUser;
  }
  else
  {
  textEnteredByUser=TextInput(datGrid.itemEditorInstance).text;
  object[array[1]]=textEnteredByUser;
  }
  datGrid.destroyItemEditor();
  datGrid.dataProvider.itemUpdated(event.itemRenderer.data);
  }
  }
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
  mailto:flexcoders%40yahoogroups.com , Rajan ilikeflex@ wrote:
  
   Hi
  
   I have created simple test case to identify the issue.
  
   If i remove itemEditEnd then i have no issues with the focus. It works 
   cleanly and focus moves from one column to another.
  
   But if add itemEditEnd then focus does not move from 1st column to 2 nd 
   column.
  
   So event.preventDefault(); statement is the c! ulprit.
   but i cannot remove this because in the real scenario i am using nested 
   datafield.
  
   So how to make the focus move from colimn1 to column2.
  
   any pointers are higly appreciated.
  
   ?xml version=1.0?
   !-- itemRenderers\inline\CBInlineCellEditor.mxml --
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  
   mx:Script
   ![CDATA[
   import mx.events.DataGridEvent;
   import mx.collections.ArrayCollection;
  
   [Bindable]
   public var ac:ArrayCollection = new ArrayCollection(
   [{dateString:11/12/2006, contact:ABD DEF, dt: new Date(2003,10,23)},
   {dateString:11/12/2007, contact:GHI, dt:new Date(2004,11,2)},
   {dateStr! ing:10/10/2007, contact:JKL MNOP, dt:new Date(20! 07,4,14)},
   {dateString:09/12/2007, contact:QRSTUV W XY Z, dt:new 
   Date(2006,1,1)}]);
  
   private function onitemEditEnd(event:DataGridEvent):void
   {
   event.preventDefault();
   }
   ]]
   /mx:Script
  
   mx:DataGrid id=myDG
   dataProvider={ac}
   

RE: [flexcoders] Re: Issue with item renderer in Flex 3

2010-07-23 Thread Gregor Kiddie
If you are doing a lot of this, there is a decent approach but it's very
long winded...

 

Override your DG so that when you add to the dataprovider (or when items
are added to the DP) the objects in the DP get wrapped in a DGAware
object. This object provides access to the wrapped object and exposes
the relevant fields for checkboxes (isEditedYellow, isEditedBlue, etc).

 

This keeps your underlying data object ignorant of any renderer related
fields, and still allows you to set up the state of the renderer in set
data.

 

This is a fair bit of work mind...



[flexcoders] Upload image

2010-07-23 Thread Christophe
Hello, 

I have an upload image function found on internet based on a URLRequest, but 
it's not working each time on all browsers, and on Mac and PC.

Does someone know a good Upload image function with sources ?

Thank you,
Christophe, 




Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Richard Rodseth
Interesting. I haven't used that one either.

The docs emphasize the addEventListener capability, which I guess
distinguishes this from plain old Object, which can also hold arbitrary
properties.

http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html

As an aside, I would love to have language support for designating VOs as
immutable.

On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com wrote:



 ObjectProxy is a generic VO.  It is dynamic and can hold any properties and
 values.  And it is slow.  Best to create custom Vos that are strongly typed.



 On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com wrote:






 I'm trying to wrap my feeble brain around these concepts.

 Are they the same? -similar? -completely different?

 Your feedback will be appreciated by this greenhorn.

 Mark






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



Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Alex Harui
ObjectProxy dispatched change events when properties change.  Object does not.

If you write your VO’s to have only get functions, they are effectively 
immutable.


On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com wrote:






Interesting. I haven't used that one either.

The docs emphasize the addEventListener capability, which I guess distinguishes 
this from plain old Object, which can also hold arbitrary properties.

http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html

As an aside, I would love to have language support for designating VOs as 
immutable.

On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com wrote:





ObjectProxy is a generic VO.  It is dynamic and can hold any properties and 
values.  And it is slow.  Best to create custom Vos that are strongly typed.



On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com 
http://mark.c.emb...@gmail.com  wrote:






I'm trying to wrap my feeble brain around these concepts.

Are they the same? -similar? -completely different?

Your feedback will be appreciated by this greenhorn.

Mark






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


Re: [flexcoders] Re: Issue with item renderer in Flex 3

2010-07-23 Thread Alex Harui
The color of the checkbox must be associated with the data either by adding a 
property to the data or by comparing the data to see if it is in the 
selectedItems (if you used the checkbox dg example from my blog) or by using a 
Dictionary or some other map.

If you are having problems after doing that, then you are not properly 
resetting the color if the data association does not require the color to be 
yellow


On 7/23/10 6:04 AM, shameer.forflex shameer.forf...@yahoo.com wrote:






I tried even this. The problem is that I am using the same checkbox renderer in 
multiple columns. So if I use isEdited with the data(data.isEdited), when you 
check one checkbox in one column, color of the checkbox in other columns also 
changes to yellow. Also I didn't want to associate isEdited to the data, since 
I thought there would be a better approach.

Thanks
Shameer

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
Gregor Kiddie gregor.kid...@... wrote:

 Add the isEdited variable to your data item and inside set data(...) do



 If (data.isEdited) {

 ...

 }



 Instead.







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


Re: [flexcoders] RichTextEditor + CSS Style + Embeded Font - nothing works as should...

2010-07-23 Thread Alex Harui
The answer is probably yes to all three questions.  However I did not 
understand the scenario.  I don’t get how you use a RichTextEditor inside  
mx:text or what it means to “break the initialization”


On 7/23/10 4:05 AM, fotis.chatzinikos fotis.chatzini...@gmail.com wrote:






Hi everybody,

I have a RichTextEditor which I am trying to set its default Font Face size and 
color using the following CSS:

RichTextEditor
{
textAreaStyleName: 'rteStyle';
}

.rteStyle
{
font-size:26;
font-family:Arial;
color:#00;
}

While this works, the htmlText output of the editor when used inside a 
mx:text/ field displays ... NOTHING (The text is there you can copy and paste 
it but it seems that its renderer in ...micropixels)

removing the CSS font-face :

.rteStyle
{
font-size:26;
color:#00;
}

fixed the rendering but .. breaks the initialization of the RichTextEditor...

It now displays as the selected font Myriad Pro (an embeded font i am using), 
the font size to default 13 and the color to default white. Typing the first 
character inide it it fixes the defaults to 26, black... Changing from Myriad 
to Arial makes the htmlText of the Text field to disappear again... Plus Myriad 
disappears from the font selector ...

Has anybody managed to use The richTextEditor ever? Am i doing something wrong? 
IS IT REALLY SO BADLY IMPLEMENTED?






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


Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Richard Rodseth
Yes, obviously. But not the same thing.


 If you write your VO’s to have only get functions, they are effectively
 immutable.







 On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com wrote:






 Interesting. I haven't used that one either.

 The docs emphasize the addEventListener capability, which I guess
 distinguishes this from plain old Object, which can also hold arbitrary
 properties.

 http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html

 As an aside, I would love to have language support for designating VOs as
 immutable.

 On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com wrote:






 ObjectProxy is a generic VO.  It is dynamic and can hold any properties and
 values.  And it is slow.  Best to create custom Vos that are strongly typed.



 On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com 
 http://mark.c.emb...@gmail.com  wrote:






 I'm trying to wrap my feeble brain around these concepts.

 Are they the same? -similar? -completely different?

 Your feedback will be appreciated by this greenhorn.

 Mark






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



Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Richard Rodseth
Getting a little off-topic, but in case anyone's interested:

http://www.developer.com/lang/other/article.php/3874551/Clojure-Immutability-at-the-Language-Level.htm

One Flex-specific wrinkle is that if you define a class with a 1 argument
constructor and getters only, you can't instantiate it in MXML. And in AS3,
you can't have mutliple constructors. I'm not sure, but I imagine some of
the serialization libraries for JSON etc might have issues too if you don't
have the zero-argument constructor.

On Fri, Jul 23, 2010 at 11:25 AM, Richard Rodseth rrods...@gmail.comwrote:

 Yes, obviously. But not the same thing.


 If you write your VO’s to have only get functions, they are effectively
 immutable.







 On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com wrote:






 Interesting. I haven't used that one either.

 The docs emphasize the addEventListener capability, which I guess
 distinguishes this from plain old Object, which can also hold arbitrary
 properties.

 http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html

 As an aside, I would love to have language support for designating VOs as
 immutable.

 On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com wrote:






 ObjectProxy is a generic VO.  It is dynamic and can hold any properties
 and values.  And it is slow.  Best to create custom Vos that are strongly
 typed.



 On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com 
 http://mark.c.emb...@gmail.com  wrote:






 I'm trying to wrap my feeble brain around these concepts.

 Are they the same? -similar? -completely different?

 Your feedback will be appreciated by this greenhorn.

 Mark






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





Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-23 Thread Alex Harui
You could write your set functions to be write-once.


On 7/23/10 11:35 AM, Richard Rodseth rrods...@gmail.com wrote:






Getting a little off-topic, but in case anyone's interested:

http://www.developer.com/lang/other/article.php/3874551/Clojure-Immutability-at-the-Language-Level.htm

One Flex-specific wrinkle is that if you define a class with a 1 argument 
constructor and getters only, you can't instantiate it in MXML. And in AS3, you 
can't have mutliple constructors. I'm not sure, but I imagine some of the 
serialization libraries for JSON etc might have issues too if you don't have 
the zero-argument constructor.

On Fri, Jul 23, 2010 at 11:25 AM, Richard Rodseth rrods...@gmail.com wrote:
Yes, obviously. But not the same thing.


If you write your VO’s to have only get functions, they are effectively 
immutable.






On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com 
http://rrods...@gmail.com  wrote:






Interesting. I haven't used that one either.

The docs emphasize the addEventListener capability, which I guess distinguishes 
this from plain old Object, which can also hold arbitrary properties.

http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html

As an aside, I would love to have language support for designating VOs as 
immutable.

On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com 
http://aha...@adobe.com  wrote:





ObjectProxy is a generic VO.  It is dynamic and can hold any properties and 
values.  And it is slow.  Best to create custom Vos that are strongly typed.



On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com 
http://mark.c.emb...@gmail.com  http://mark.c.emb...@gmail.com  wrote:






I'm trying to wrap my feeble brain around these concepts.

Are they the same? -similar? -completely different?

Your feedback will be appreciated by this greenhorn.

Mark






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


RE: [flexcoders] Embedded Fonts and Flash Builder 4.01

2010-07-23 Thread Battershall, Jeff
Alex,

I'm hoping you can look at this - I read your article about fonts and swf 
loading - could be related to what I'm describing.  However, what I am doing is 
pretty vanilla.  I've got a CSS file where some font embedding is being done 
and I'm setting, ebmedAsCff= true or false depending on whether the component 
is question is spark or halo, but it seems with the warnings I'm getting that 
the ebmedAsCff portion of my style definition is being ignored.  

It would seem that there is:

1) a change in how font embedding is being done or
2) some additional thing I have to do to ensure that style definitions as 
defined in the parent application are available to modules or
3) that the 4.01 changes have some unforeseen consequences

Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jeff
Sent: Friday, July 23, 2010 7:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01

With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime 
warnings about the need to set embedAsCff=true in my modular application, even 
though this is already set in the CSS file that embeds the font, which is 
loaded in the parent application. What could I be doing wrong?





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





Re: [flexcoders] Embedded Fonts and Flash Builder 4.01

2010-07-23 Thread Alex Harui
4.x has new requirements around getting the embedAsCFF flag correctly, but 
there shouldn’t be anything else.  BTW, note that it is embedAsCFF.  I don’t 
think embedAsCff will work.

Styles defined in the module now supercede styles defined in the parent.  Maybe 
some global selector in the module is blocking lookup into the parent?

Or maybe it is just a bug.  See if you can make a simple test case.


On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote:






Alex,

I'm hoping you can look at this - I read your article about fonts and swf 
loading - could be related to what I'm describing.  However, what I am doing is 
pretty vanilla.  I've got a CSS file where some font embedding is being done 
and I'm setting, ebmedAsCff= true or false depending on whether the component 
is question is spark or halo, but it seems with the warnings I'm getting that 
the ebmedAsCff portion of my style definition is being ignored.

It would seem that there is:

1) a change in how font embedding is being done or
2) some additional thing I have to do to ensure that style definitions as 
defined in the parent application are available to modules or
3) that the 4.01 changes have some unforeseen consequences

Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On 
Behalf Of Jeff
Sent: Friday, July 23, 2010 7:29 AM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01

With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime 
warnings about the need to set embedAsCff=true in my modular application, even 
though this is already set in the CSS file that embeds the font, which is 
loaded in the parent application. What could I be doing wrong?



--
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






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