[flexcoders] Re: convert the file selected to upload to byteArray

2008-07-01 Thread Cato Paus
read about it here, flash Player 10 supports local file load and 
save. 

http://labs.adobe.com/technologies/flashplayer10/ 

--- In flexcoders@yahoogroups.com, Dan Blackman [EMAIL PROTECTED] 
wrote:

 LlggG
 Sent from my Verizon Wireless BlackBerry
 
 -Original Message-
 From: sudesh_666 [EMAIL PROTECTED]
 
 Date: Tue, 01 Jul 2008 05:01:05 
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] convert the file selected to upload to 
byteArray
 
 
 Hi I have a problem with file upload.
 The problem is that I have no permission in the server to store the
 files which has to be uploaded. so I have to store the file directly
 in the data base in binary format. Is there any way to convert the
 selected file to a byteArray ? and later to display the same.
 
 note: File can be of any type.





[flexcoders] Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread linko27
Hallo!

How can i hide a list item. I am trying to make a lists and hide the 
'mandatory=true' items without changing (filtering) the dataprovider.
 As far as i know i can even make a deep copy of the dataprovider and
set a filter on it, but i'd like to prevent this. The code below hides
the items, but they still fill the height in the list.

Thanks in advance!


mx:List id=criteriaList dataProvider={qualifications}
borderStyle=none rowCount={qualifications.length}
selectable=false x=135 width=100%
   mx:itemRenderer
  mx:Component
   mx:Canvas horizontalScrollPolicy=off width=100%
 mx:Script
![CDATA[
override public function set
data(value:Object):void
{
super.data = value;

if (value != null)
{
myCheckBox.selected = data.isSelected;
myCheckBox.visible = data.mandatory;
super.invalidateDisplayList();   
  
}
}
]]
 /mx:Script

 mx:CheckBox id=myCheckBox
selectedField=isSelected change=onChange(event);
label={data.leadCriteria.name} 
mx:Script
![CDATA[
import
com.salesbuilder.model.LeadQualification;
private function onChange(evt:Event):void {
var item:LeadQualification = data as
LeadQualification; 
item.isSelected = !item.isSelected;  
 
 
}
]]
/mx:Script
/mx:CheckBox
/mx:Canvas
 /mx:Component 
/mx:itemRenderer
/mx:List



Re: [flexcoders] Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread Paul Andrews
- Original Message - 
From: linko27 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 01, 2008 10:08 AM
Subject: [flexcoders] Hide a list item without changing (filtering) the 
dataprovider?


 Hallo!

 How can i hide a list item. I am trying to make a lists and hide the
 'mandatory=true' items without changing (filtering) the dataprovider.

A filter function on the dataprovider is the way to go. It doesn't alter the 
data in the dataprovider permamently and is the only way to have your list 
populate correctly.

Why don't you want to filter the dataprovider?

Paul

snip



[flexcoders] Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-01 Thread Sergey Kovalyov
Hi All!

When I add a new item to the tree node and then open this item by user input
null pointer exceptions is thrown and after that Tree behavior becomes
strange.

Steps to reproduce:

1. Run application.
2. Select My Branch node.
3. Click Add button. As a result My Leaf subnode is created as a child of My
Branch.
4. Click My Leaf disclosure icon to expland this item.
5. Exception mentioned above is thrown.

 I compile this example in Flex 2.01 and run in Flash Player 9.0.47.0.

We have found workaround. The bug can be fixed by setting Tree
openDuration style to 0. But I dislike workarounds. Are there any real
solutions to fix this bug?

Sergey.


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

layout=vertical

mx:Script

![CDATA[

*import* mx.collections.XMLListCollection;

*private* *static* *const* itemsXML : XML =

root

item label=*My Branch* isBranch=*true* /

/root;

*private* *static* *const* itemsXMLListCollection : XMLListCollection =

*new* XMLListCollection(itemsXML.children());

*private* *function* onAddButtonClick() : *void* {

*var* parentXML : XML = XML(tree.selectedItem);

*var* newItemXML : XML = item label=*My Leaf* isBranch=*true* /;

tree.dataDescriptor.addChildAt(parentXML, newItemXML, parentXML.length());

}

]]

/mx:Script

mx:Tree id=tree

labelField=@label

showRoot=false

dataProvider={itemsXMLListCollection} /

mx:Button label=Add click=onAddButtonClick() /

/mx:Application


[flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread linko27
I need to show two lists with different filter function on the same
dataprovider. Therefore I have to make a deep copy of the array for
the second list, otherwise the second filter will not include the 
items filtered by the first filter - is'nt it?


--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 - Original Message - 
 From: linko27 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 01, 2008 10:08 AM
 Subject: [flexcoders] Hide a list item without changing (filtering) the 
 dataprovider?
 
 
  Hallo!
 
  How can i hide a list item. I am trying to make a lists and hide the
  'mandatory=true' items without changing (filtering) the dataprovider.
 
 A filter function on the dataprovider is the way to go. It doesn't
alter the 
 data in the dataprovider permamently and is the only way to have
your list 
 populate correctly.
 
 Why don't you want to filter the dataprovider?
 
 Paul
 
 snip





Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread Ralf Bokelberg
You don't have to do a deep copy.
Use ListCollectionView instead, which allows you to apply different
filters to the same underlying Collection.
Cheers
Ralf.

On Tue, Jul 1, 2008 at 11:58 AM, linko27 [EMAIL PROTECTED] wrote:
 I need to show two lists with different filter function on the same
 dataprovider. Therefore I have to make a deep copy of the array for
 the second list, otherwise the second filter will not include the
 items filtered by the first filter - is'nt it?

 --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 - Original Message -
 From: linko27 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 01, 2008 10:08 AM
 Subject: [flexcoders] Hide a list item without changing (filtering) the
 dataprovider?


  Hallo!
 
  How can i hide a list item. I am trying to make a lists and hide the
  'mandatory=true' items without changing (filtering) the dataprovider.

 A filter function on the dataprovider is the way to go. It doesn't
 alter the
 data in the dataprovider permamently and is the only way to have
 your list
 populate correctly.

 Why don't you want to filter the dataprovider?

 Paul

 snip


 


Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread Paul Andrews
- Original Message - 
From: linko27 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 01, 2008 10:58 AM
Subject: [flexcoders] Re: Hide a list item without changing (filtering) the 
dataprovider?


I need to show two lists with different filter function on the same
 dataprovider. Therefore I have to make a deep copy of the array for
 the second list, otherwise the second filter will not include the
 items filtered by the first filter - is'nt it?

It's always worth looking through the archives.

From a previous post of mine:

Check out ListCollectionView. I've been down that same road. (Feb Thread: 
any ArrayCollection tricks?)

From the thread: I found a great example here, which is perfect: 
http://viconflex.blogspot.com/2006/11/listcollectionview-different.html 

Paul

snip 



Re: [flexcoders] Flex access web service.

2008-07-01 Thread Tom Chiverton
On Saturday 28 Jun 2008, markflex2007 wrote:
 But I feel the Flex application is a little slow than flash
 application to access same web service.

Can you prove that with hard numbers over many runs ?

-- 
Tom Chiverton



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

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

CONFIDENTIALITY

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Sorting behaviour of AdvanceDataGridControl

2008-07-01 Thread kallebertell
I don't have any suggestions, but we have this problem too.

In fact if you have a list of items sorted according to a specific
column, and change a property of an item in the collection unrelated
to the sorting; it often reorders items in the collection if their
sorting properties are equal.

To the user this behaviour seems very erratic.

Afaik. this behaviour is somewhere in ArrayCollection (or its
supertypes) and not in the AdvancedDataGrid.


--- In flexcoders@yahoogroups.com, mishrabagish [EMAIL PROTECTED]
wrote:

 I have a ADC in my application . I click on column header to sort some
 column and the edit some cell in the same column. The moment i leave
 the row the ADC is sorts the data again to fit the new value at some
 sorted position.
 
 I want to stop this behavior as it happens in excel. I.e in excel if
 you sort a column and edit some cell in same column , excel don't
 re-sort the data.
 
 Any suggestions?





[flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread linko27
Thanks Ralph!
Thanks Paul!

The tipp with the ListCollectionView was perfect!

--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 - Original Message - 
 From: linko27 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 01, 2008 10:58 AM
 Subject: [flexcoders] Re: Hide a list item without changing
(filtering) the 
 dataprovider?
 
 
 I need to show two lists with different filter function on the same
  dataprovider. Therefore I have to make a deep copy of the array for
  the second list, otherwise the second filter will not include the
  items filtered by the first filter - is'nt it?
 
 It's always worth looking through the archives.
 
 From a previous post of mine:
 
 Check out ListCollectionView. I've been down that same road. (Feb
Thread: 
 any ArrayCollection tricks?)
 
 From the thread: I found a great example here, which is perfect: 

http://viconflex.blogspot.com/2006/11/listcollectionview-different.html 
 
 Paul
 
 snip





RE: [flexcoders] Creating an AIR install file from scratch..

2008-07-01 Thread Jim Hayes
That is what ADT is there for, I believe. If you check the documentation
it will give you enough help to use it on the command line, or in ant.
Without too much bother, I've made ant build files that compile my swf
then package it with the required additional files into an air
package/installer.
Though I do run it in flexbuilder, theres no reason it could not be run
standalone.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of essuark
Sent: 01 July 2008 01:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating an AIR install file from scratch..
 
lets just 'say' I wanted to do this, any ideas, pointers, links? I am
interested in automating an internal process that requires an AIR
file. I want a program to create the AIR file, NOT Flex Builder...

thanks
Ralph
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Re: Draw colored shape

2008-07-01 Thread markgoldin_2000
Yes, it will show row background, but, .. no column background 
anymore. So, it's the same as not to have column background in the 
first place. But what I want is to have columns with backgrounds and 
then color some rows keeping columns unchanged. Is that possible in 
Flex?

--- In flexcoders@yahoogroups.com, Enjoy Jake [EMAIL PROTECTED] wrote:

 You're right. Your column backgroundColors are being displayed on 
top of your row background Colors. The fact is, you have to choose 
one or the other to be on top. Adobe decided that column colors 
should always be displayed over row colors. If you want to display 
rowColors over column colors, the easiest way to do it is by 
overriding updateDisplayList on your datagrid thus:
 
 
 override protected function updateDisplayList
(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 var rowBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(rowBGs));
 var colBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(colBGs));
 
 if (colBGIndex  rowBGIndex) {
 listContent.swapChildrenAt(rowBGIndex, colBGIndex);
 }
 }
 
 This is starting to get into the realm of ugly hack, so beware. 
Much further into that realm is the modified example below. What I've 
done is given each item in the dataprovider a default color of 
0x. When drawing a row, if the calculated color is 0x 
then I do not draw the row, and let the column color shine through.
 
 As I said before, this is getting dangerously ugly, and for the 
benefit of the community, further examples of this should probably be 
hidden from public view.
 
 Also, beware of retinal damage that could be caused by my awful 
choice of colors in the examples.
 
 
 #Application
 ##
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical xmlns:local=*
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable] public var rowColor:uint = 0xff;
 
 [Bindable] public var vowels:ArrayCollection = new 
ArrayCollection([
 {label: a, rowColor: 0x},
 {label: e, rowColor: 0x},
 {label: i, rowColor: 0x},
 {label: o, rowColor: 0x},
 {label: u, rowColor: 0xff},
 {label: sometimes y, rowColor: 0x}
 ]);
 
 private function determineColor(item:Object, 
rowIndex:int, dataIndex:int, oldColor:uint):uint {
 return item.rowColor;
 }
 
 
 private function makeSelectedItemRed():void {
 if (myDG.selectedItem != null) {
 myDG.selectedItem.rowColor = 0xff;
 myDG.invalidateDisplayList();
 myDG.selectedItem = null;
 }
 }
 ]]
 /mx:Script
 local:ColoredDataGrid id=myDG dataProvider={vowels} 
rowColorFunction=determineColor
 local:columns
 mx:DataGridColumn dataField=label 
backgroundColor=#00ff00/
 mx:DataGridColumn backgroundColor=#00cc00/
 mx:DataGridColumn backgroundColor=#009900/
 /local:columns
 /local:ColoredDataGrid
 
 mx:Button label=Make selected item Red!!!
 click=makeSelectedItemRed()/
 /mx:Application
 ##
 
 # ColoredDataGrid.as
 ##
 package {
 import flash.display.Sprite;
 
 import mx.collections.ArrayCollection;
 import mx.controls.DataGrid;
 
 public class ColoredDataGrid extends DataGrid {
 public var rowColorFunction:Function;
 
 public function ColoredDataGrid() {
 super();
 }
 
 override protected function drawRowBackground(s:Sprite, 
rowIndex:int, y:Number, height:Number, color:uint, 
dataIndex:int):void {
 if(rowColorFunction != null) {
 var item:Object;
 
 if (dataProvider is ArrayCollection) {
 item = (dataProvider as 
ArrayCollection).getItemAt(dataIndex);
 }
 
 color = rowColorFunction( item, rowIndex, 
dataIndex, color );
 }
 if (color != 0x) {
 super.drawRowBackground
(s,rowIndex,y,height,color,dataIndex);
 }
 }
 
 override protected function updateDisplayList
(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 var rowBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(rowBGs));
 var colBGIndex:int = listContent.getChildIndex

[flexcoders] RTE on DragManager when using Window component

2008-07-01 Thread Yossi Gordin
Hi,
Please help!!!

I am running an Air project (mx:Application) under Windows XP. 
I have the following piece of code on one of my components:

DragManager.doDrag(this, dragSource,
event,_dragableImage,-event.localX,-event.localY);  

It works perfectly, but when i initiate in another component a Window
class, i get a runtime exception.
ArgumentError: Error #2004: One of the parameters is invalid.
at flash.utils::ByteArray/writeObject()
at flash.desktop::Clipboard/putSerialization()
at flash.desktop::Clipboard/convertFlashFormat()
at flash.desktop::Clipboard/setData()
at
mx.managers::NativeDragManagerImpl/doDrag()[E:\dev\3.0.x\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:249]
at
mx.managers::DragManager$/doDrag()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:241]
at
com.mailvision.components::DragableCanvas/doMouseMove()[E:\dev\projects\Maestro\src\com\mailvision\components\DragableCanvas.as:72]

I followed the debugger trail and found out that when i use the Window
class, when the application starts, it initiates the _impl class on
DragManager with the NativeDragManagerImpl and not the DragManagerImpl
as was without the Window class.

Does anyone know what am i doing wrong here or is it a bug? I have
searched for Jira issues but didn't find any.

Thanks,
Josef



[flexcoders] Any Certification in Flex?

2008-07-01 Thread moonrchand
Hi All,
  please let me know, is there any certification form Adobe 
exclusively for Flex/AIR. i visited adobe site and there is no 
information about which are the technologies come under ACE(Adobe 
Certification Expert). please share ur thoughts.

Thanks,
Chandra



[flexcoders] blazeds spring security let assembler fetch data based on current user

2008-07-01 Thread cartewn
Hi,

I'm currently learning flex by trying to build an application with
flex, blazeds and Spring. My application lets users log on using
spring security (which I will probably combine with
AcegiLogonCommand). I would like my assemblers to return different
data based on which user is currently logged on (for instance to show
that specific user's to-do list). To do this, I added a userId
property to my spring security principals (by subclassing
org.springframework.security.userdetails.User)
 and added user_id columns to user-specific data in the database. Now
I would like to know how I can get the currently logged on user in my
assembler so I can use its userId to fetch the user's data.

Is the assembler the right place to decide which data to send to my
flex application? If so, can anyone tell me how to determine which
user is currently logged on in my assembler? If not, what would be the
recommended way of dealing with user-specific data in my database in
combination with blazeds?

The only examples I have been able to find on the Internet so far only
use different roles to determine what a user is or is not allowed to
do, I have yet to find any examples where users store and retrieve
user-specific data.

Kind regards,

Jeroen



Re: [flexcoders] Combo and 'change' event

2008-07-01 Thread oopdog
Thank you

On Mon, Jun 30, 2008 at 3:50 PM, Alex Harui [EMAIL PROTECTED] wrote:

Programmatic changes rarely fire CHANGE events.  The valueCommit
 event should fire no matter how you change it.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *oopdog
 *Sent:* Monday, June 30, 2008 1:14 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Combo and 'change' event



 Hello

 at certain points I am changing the selectedIndex of a combo
 programmatically ( e.g. mycombo.selectedIndex = 5)

 In my MXML I declared something to happen on the 'change' event:
 mx:ComboBox id=mycombo change=vo.combovalue=mycombo

 .selectedItem.data/

 When I change the selectedIndex programmatically this doesn't run. Do I
 have to manually dispatch the 'change' event myself or is there a better way
 to programmatically change the combo as if a user had actually changed it?
 (for example, like ArrayCollection's  'itemUpdated()' method?)

 Thanks

  



Re: [flexcoders] File uploading and passing string information

2008-07-01 Thread Flex Frenzy
You should be able to verify right in actionscript, but you will have  
to modify the php code to request the additional details from the  
server. It all depends what kind of authentication script you use  
though, you may not need to modify any php.

On Jun 30, 2008, at 2:44 PM, Sean Clark Hess wrote:

I usually just check the session to see if they are authenticated or  
not.



On Mon, Jun 30, 2008 at 1:48 PM, timgerr [EMAIL PROTECTED]  
wrote:

Hello all,
I am working on a file upload application and I have a few questions.
I want to upload a file and also send some string information to
varify user information. Can this be done? I am using the example
from
http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file-uploading-with-return-data

Here is my code (that I took)
?xml version=1.0 encoding=utf-8?
!--
Derrick Grigg
[EMAIL PROTECTED]
http://www.dgrigg.com
created on August 2, 2007

A simple file upload process with data returned from the server
using the UPLOAD_COMPLETE_DATA event.
--
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Script
![CDATA[
public var file:FileReference;

public function selectFile():void
{
file = new FileReference();
file.addEventListener(Event.SELECT, fileSelected);
file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,
uploadDataComplete);
file.addEventListener(Event.COMPLETE, uploadComplete);
file.addEventListener(IOErrorEvent.IO_ERROR, handleError);
file.browse();
}

public function handleError(event:IOErrorEvent):void
{
status_txt.text = 'ERROR: ' + event.text + '\n';
}
public function fileSelected(event:Event):void
{
file = FileReference(event.target);
file_txt.text = file.name;
status_txt.text = 'upload file: '+ file.name + '\n';

var request:URLRequest = new URLRequest();
request.url = uploader.cfm;
file.upload(request);   
}

public function uploadDataComplete(event:DataEvent):void
{
var result:XML = new XML(event.data);
status_txt.text += 'Upload Data Complete\n'
status_txt.text += 'RESULT: ' + result.toString() + '\n'
status_txt.text += 'STATUS: ' + result.status + '\n';
status_txt.text += 'MESSAGE: '+ result.message;
}

public function uploadComplete(event:Event):void
{
status_txt.text += 'Upload complete\n';

}
]]
/mx:Script
mx:VBox
mx:TextInput id=file_txt/
mx:Button id=select_btn label=select click=selectFile();/
mx:TextArea id=status_txt width=400 height=200/
/mx:VBox
/mx:Application

Thanks,
timgerr









Re: [flexcoders] Any Certification in Flex?

2008-07-01 Thread Paul Andrews
- Original Message - 
From: moonrchand [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 01, 2008 1:31 PM
Subject: [flexcoders] Any Certification in Flex?


 Hi All,
  please let me know, is there any certification form Adobe 
 exclusively for Flex/AIR. i visited adobe site and there is no 
 information about which are the technologies come under ACE(Adobe 
 Certification Expert). please share ur thoughts.

Chandra, you didn't look hard enough..

http://www.adobe.com/devnet/flex/articles/flex_certification.html

Paul (Certified Flex 2 Developer)

 
 Thanks,
 Chandra



[flexcoders] How to load an image using mx:Loader

2008-07-01 Thread pankajtandon2003
Hello folks,
I'm a newbie in flex-world!
I need to load a Bitmap (.jpg) file using Flex3.
Now I've read a bunch of code that describes how to do this using
ActionScript 3. But I'm not very sure how Flex 3 and AS3 interact.
I've got the Flex 3 Builder Eclipse Plugin and I was hoping I could
find an example of loading an image using the  mx:Loader tag. But
strangely I do not see many posts on this forum for this. Could it be
that this is the wrong way to load an image using Flex?

So, specifically, can someone:
1. Provide me with an example of using mx:Loader to load a .jpg file.
2. Show me a simple example of how Flex3 tags and AS3 interact. For
example, if I wanted to build all UI components using Flex, but do all
Image manipulation using AS3.

Thanks in advance!

Pankaj




[flexcoders] Remove Button´s Border

2008-07-01 Thread Fernando Ghisi
Anybody knows how can I do a simple thing like remove a button's
border? I just can't do this - there are no styles for it (like
borderStyle, or borderAlpha).


Thanks

-- 
Fernando Ghisi


[flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread mauricen
Thanks very much for your time in writing this; it's very helpful. But
my question still stands: if there are parts of your answer that I
don't understand fully, or that raise more questions in my mind (and
both of these are in fact the case), how do I resolve these
difficulties?  How did you learn about this (aside from the LiveDocs,
I mean)?  The implementation must be defined *somewhere*, surely, even
if only in code?

--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:

 The authoritive story is pretty much as Daniel said:
 
 [Bindable]
 public var myField:String;
 
 The above will generate something the equivalent of:
 
 mx_internal var _myField:String; //Might be private, can't be arsed
to check
 
 [Bindable event=propertyChangeEvent]
 public function get myField():String {
   return _myField;
 }
 
 public function set myField(value:String):void {
   if (value != _myField) {
 var oldVal:* = _myfield;
 _myField = value;
dispatchEvent(new PropertyChangeEvent(this, myField, oldVal,
newVal));
   }
 }
 
 And if you put the generic [Bindable] on a getter _or_ a setter, you'll
 re-generate the above code, but _myField will be the original get/set
 functions renamed, not a private or mx_internal var.
 
 As a rule, I don't use the generic [Bindable] on getter/setter
functions.
 It's just not that hard to dispatch an event.
 
 However if you're going to put generic [Bindable] on a getter/setter
pair,
 put it on the *setter*. Otherwise the debugger will hilight the getter
 method when you're single-stepping through foo.myField = someValue
- it's
 not a law or anything, but it's confusing even when you know why it
does it.
 
 When you're using a custom event, put the
[Bindable(event=myEventName)] on
 the *getter*. That way you always know it's bindable, as not every
getter
 needs a setter. You can dispatch the event from anywhere you please,
either
 a setter method or something else. Don't know about performance, but
when
 you're not using a PropertyChangeEvent, bindings will fire for anything
 matching that name, since it can't use the fieldName and object
properties
 of PropertyChangeEvent to know exactly which field should re-fire
bindings.
 
 One last thing, you can specify
[Bindable(event=PropertyChangeEvent)] on a
 getter, and you'll still need to dispatch your own
PropertyChangeEvents from
 the setter or from anywhere else. It lets you be a specific as to what's
 changed in the object without having a bunch of custom named events.
 
 Disclaimer: I'm 99% sure that's all correct. YMMV ;-)
 
 -Josh
 
 On Tue, Jul 1, 2008 at 8:19 AM, mauricen [EMAIL PROTECTED] wrote:
 
  Where *is* the authoritative story on binding?  As a newcomer to Flex
  I'm finding it hard to form a coherent picture of how the various
  binding features fit together.  What's the mechanism, for example,
  that allows me to call addEventListener on a Bindable property?  If
  there's no formal documentation, I'd be happy to look at code -
but where/
 
  Maurice
 
  --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote:
  
   I found this page to be helpful but not authoritative (This is
where I
   found the use of binding the setter);
  
 
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.ht\http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.ht%5C
   ml
  
 
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h\http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h%5C
   tml
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-01 Thread valdhor
I don't use Flex 2.0.1 (I use Flex 3).

I ran your app in Flex 3 and it works fine  - ie. no exception is thrown.

Could this be a bug in Flex 2.0.1?


--- In flexcoders@yahoogroups.com, Sergey Kovalyov
[EMAIL PROTECTED] wrote:

 Hi All!
 
 When I add a new item to the tree node and then open this item by
user input
 null pointer exceptions is thrown and after that Tree behavior becomes
 strange.
 
 Steps to reproduce:
 
 1. Run application.
 2. Select My Branch node.
 3. Click Add button. As a result My Leaf subnode is created as a
child of My
 Branch.
 4. Click My Leaf disclosure icon to expland this item.
 5. Exception mentioned above is thrown.
 
  I compile this example in Flex 2.01 and run in Flash Player 9.0.47.0.
 
 We have found workaround. The bug can be fixed by setting Tree
 openDuration style to 0. But I dislike workarounds. Are there any real
 solutions to fix this bug?
 
 Sergey.
 
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 
 layout=vertical
 
 mx:Script
 
 ![CDATA[
 
 *import* mx.collections.XMLListCollection;
 
 *private* *static* *const* itemsXML : XML =
 
 root
 
 item label=*My Branch* isBranch=*true* /
 
 /root;
 
 *private* *static* *const* itemsXMLListCollection : XMLListCollection =
 
 *new* XMLListCollection(itemsXML.children());
 
 *private* *function* onAddButtonClick() : *void* {
 
 *var* parentXML : XML = XML(tree.selectedItem);
 
 *var* newItemXML : XML = item label=*My Leaf* isBranch=*true* /;
 
 tree.dataDescriptor.addChildAt(parentXML, newItemXML,
parentXML.length());
 
 }
 
 ]]
 
 /mx:Script
 
 mx:Tree id=tree
 
 labelField=@label
 
 showRoot=false
 
 dataProvider={itemsXMLListCollection} /
 
 mx:Button label=Add click=onAddButtonClick() /
 
 /mx:Application





RE: [flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread Rick Winscot
When working in mxml you can use the -keep-generated-actionscript compiler
option. and in the 'generated' directory you will find a wealth of
information!

 

In short - the answer you seek is before you! Finding the 'solution' is
another story. 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mauricen
Sent: Tuesday, July 01, 2008 8:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best Practice Data Binding

 

Thanks very much for your time in writing this; it's very helpful. But
my question still stands: if there are parts of your answer that I
don't understand fully, or that raise more questions in my mind (and
both of these are in fact the case), how do I resolve these
difficulties? How did you learn about this (aside from the LiveDocs,
I mean)? The implementation must be defined *somewhere*, surely, even
if only in code?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Josh McDonald [EMAIL PROTECTED] wrote:

 The authoritive story is pretty much as Daniel said:
 
 [Bindable]
 public var myField:String;
 
 The above will generate something the equivalent of:
 
 mx_internal var _myField:String; //Might be private, can't be arsed
to check
 
 [Bindable event=propertyChangeEvent]
 public function get myField():String {
 return _myField;
 }
 
 public function set myField(value:String):void {
 if (value != _myField) {
 var oldVal:* = _myfield;
 _myField = value;
 dispatchEvent(new PropertyChangeEvent(this, myField, oldVal,
newVal));
 }
 }
 
 And if you put the generic [Bindable] on a getter _or_ a setter, you'll
 re-generate the above code, but _myField will be the original get/set
 functions renamed, not a private or mx_internal var.
 
 As a rule, I don't use the generic [Bindable] on getter/setter
functions.
 It's just not that hard to dispatch an event.
 
 However if you're going to put generic [Bindable] on a getter/setter
pair,
 put it on the *setter*. Otherwise the debugger will hilight the getter
 method when you're single-stepping through foo.myField = someValue
- it's
 not a law or anything, but it's confusing even when you know why it
does it.
 
 When you're using a custom event, put the
[Bindable(event=myEventName)] on
 the *getter*. That way you always know it's bindable, as not every
getter
 needs a setter. You can dispatch the event from anywhere you please,
either
 a setter method or something else. Don't know about performance, but
when
 you're not using a PropertyChangeEvent, bindings will fire for anything
 matching that name, since it can't use the fieldName and object
properties
 of PropertyChangeEvent to know exactly which field should re-fire
bindings.
 
 One last thing, you can specify
[Bindable(event=PropertyChangeEvent)] on a
 getter, and you'll still need to dispatch your own
PropertyChangeEvents from
 the setter or from anywhere else. It lets you be a specific as to what's
 changed in the object without having a bunch of custom named events.
 
 Disclaimer: I'm 99% sure that's all correct. YMMV ;-)
 
 -Josh
 
 On Tue, Jul 1, 2008 at 8:19 AM, mauricen [EMAIL PROTECTED] wrote:
 
  Where *is* the authoritative story on binding? As a newcomer to Flex
  I'm finding it hard to form a coherent picture of how the various
  binding features fit together. What's the mechanism, for example,
  that allows me to call addEventListener on a Bindable property? If
  there's no formal documentation, I'd be happy to look at code -
but where/
 
  Maurice
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, securenetfreedom nv1000@ wrote:
  
   I found this page to be helpful but not authoritative (This is
where I
   found the use of binding the setter);
  
 
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.ht\ht
tp://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.ht%5C
   ml
  
 
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h\ht
tp://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h%5C
   tml
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]


 



Re: [flexcoders] Creating an AIR install file from scratch..

2008-07-01 Thread Jeffry Houser

 Isn't there a command line compiler for AIR? 

 Google will come up with some hits on it; but I'd start here:

 
http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7fd9.html
 


essuark wrote:
 lets just 'say' I wanted to do this, any ideas, pointers, links? I am
 interested in automating an internal process that requires an AIR
 file. I want a program to create the AIR file, NOT Flex Builder...

 thanks
 Ralph


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links




   

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com 
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com 




Re: [flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread Josh McDonald
Honestly, fucked if I know how I picked all this stuff up - it's just what I
do. But if my explanation left something out, that's my fault for giving a
shitty explanation. Tell me in detail what you're still confused about, and
I'll try and explain it :)

-Josh

On Tue, Jul 1, 2008 at 11:14 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

  When working in mxml you can use the –keep-generated-actionscript
 compiler option… and in the 'generated' directory you will find a wealth of
 information!



 In short – the answer you seek is before you! Finding the 'solution' is
 another story.



 Rick Winscot







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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] RadioButtons appear as normal buttons -- WTF?

2008-07-01 Thread Dave Glasser
This is driving me nuts. I'm using two RadioButtons in a RadioButtonGroup, and 
they appear as two normal buttons. There is no CSS styling in effect. I'm not 
setting any properties other than label, group and labelPlacement and selected. 
Does anyone know what is going on here?


Re: [flexcoders] CurrencyFormat vs locale

2008-07-01 Thread Richard Rodseth
Thanks, I'll look at that.
Gordon, it's just a case that the app as a whole is not being
localized for everywhere just yet. For example, my understanding is
that the Euro is used in many different locales which may have
different decimal and thousands separators.

On Mon, Jun 30, 2008 at 7:37 PM, Paul Hastings [EMAIL PROTECTED] wrote:
 Gordon Smith wrote:
 What is the problem with bundling resources for each locale?

 well for starters, having to know what to bundle ;-)

 http://as3localedata.riaforge.org/

 is based on the CLDR project data, which is as good as gets when it comes to
 locale resources.

 


RE: [flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread Stephen Gilson
Hi Maurice,
 
You can see the doc on binding here:
http://livedocs.adobe.com/flex/3/html/databinding_1.html
http://livedocs.adobe.com/flex/3/html/databinding_1.html 
 
For infomration about creating bindable properties in custom MXML
components, see this page:
http://livedocs.adobe.com/flex/3/html/mxmlcomponents_advanced_3.html
http://livedocs.adobe.com/flex/3/html/mxmlcomponents_advanced_3.html 
 
For information on creating bindable properties in custom AS components:
http://livedocs.adobe.com/flex/3/html/ascomponents_3.html
http://livedocs.adobe.com/flex/3/html/ascomponents_3.html 
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mauricen
Sent: Monday, June 30, 2008 6:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best Practice Data Binding



Where *is* the authoritative story on binding? As a newcomer to Flex
I'm finding it hard to form a coherent picture of how the various
binding features fit together. What's the mechanism, for example,
that allows me to call addEventListener on a Bindable property? If
there's no formal documentation, I'd be happy to look at code - but
where/

Maurice

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, securenetfreedom [EMAIL PROTECTED] wrote:

 I found this page to be helpful but not authoritative (This is where I
 found the use of binding the setter);

http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.ht
\
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h
t  ml

http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h
\
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h
  tml



 


RE: [flexcoders] Creating an AIR install file from scratch..

2008-07-01 Thread Mike Krotscheck
I have an ant script that does all my AIR compiling, signing  packaging
for me. You can svn checkout a full working sample of the source build
here http://practicalflash.googlecode.com/svn/trunk/  (Note you'll
have to update your build.parameters.xml from the default). I've copied
the macrodef I use below.

 

macrodef name=amxmlc
attribute name=source /
attribute name=destination /
attribute name=parameters default= /

sequential
   exec executable=${flex.path.mxmlc}
arg value=-debug=false/
arg
value=-compiler.allow-source-path-overlap/
arg
value=+flexlib=${flex.path.sdk}/frameworks/
arg value=+configname=air/
arg value=[EMAIL PROTECTED]/
arg value=-source-path=${flex.path.source} /
   arg
value=-source-path+=${flex.path.source}/locale/{locale} /
   arg
value=-source-path+=${flex.path.practicalflash} /
   arg
value=-compiler.library-path+=${flex.path.libs} /
   arg line=@{parameters}/
   arg value=@{source}/
/exec
/sequential
/macrodef

 

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

_

We support privacy and confidentiality. Please delete this email if it
was received in error.


weThink. Our new blog. http://blog.resource.com





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffry Houser
Sent: Tuesday, July 01, 2008 9:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Creating an AIR install file from scratch..

 


Isn't there a command line compiler for AIR? 

Google will come up with some hits on it; but I'd start here:

http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3
d118666ade46-7fd9.html
http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e
3d118666ade46-7fd9.html  

essuark wrote:
 lets just 'say' I wanted to do this, any ideas, pointers, links? I am
 interested in automating an internal process that requires an AIR
 file. I want a program to create the AIR file, NOT Flex Builder...

 thanks
 Ralph


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups
Links




 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert
http://www.adobe.com/communities/experts/members/JeffryHouser.html
http://www.adobe.com/communities/experts/members/JeffryHouser.html 
My Company: http://www.dot-com-it.com http://www.dot-com-it.com  
My Podcast: http://www.theflexshow.com http://www.theflexshow.com 
My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com  

 



[flexcoders] Cancelling a checkbox.selected

2008-07-01 Thread quantum_ohm
Hi Everybody,

I have an options button which leads to a new sate options_state
when it is clicked.
In this new state, I have a checkbox and two buttons cancel and valid.
I handle fine the valid button which gets the checkbox state and
save it,
to display it again when the application is relaunched.

Now my problem is if I change my checkbox state, then change my mind,
I can do cancel, but
I don't see how anymore after tried several ways of doin' it...
Sorry for sounding kind of basic... :-(

With a little help from my friends...

Thx for the Light !

here is the snippet of code:

private function onOptions():void
{
this.currentState = options_state;
setOptions();
}

// to handle the prefs when app is launched
private function setOptions():void
{
if ( Flags.flag_startAtLogin == 0 )
{
checkbox_options.selected = true;
}
checkbox_options.addEventListener( Event.CHANGE, checkOptions );
}

private function checkOptions( evt:Event ):void
{
if ( checkbox_options.selected == false )
{
flag.setFlag( 1 );
checkbox_options.selected = false;
//NativeApplication.nativeApplication.startAtLogin = false;
} else
{
flag.setFlag( 0 );
//NativeApplication.nativeApplication.startAtLogin = true;
}
}

private function onValider():void
{
savePreferences.createXMLData();
savePreferences.writeXMLData();
this.currentState = ;
}

private function onAnnuler():void
{
this.currentState = ;
}



[flexcoders] Still having issues with quitting AIR app from ApplicationMenu and DockMenu

2008-07-01 Thread Daniel Gold
I gave up on this temporarily and decided to revisit this morning. Around
the time the AIR 1.1 update came out, I started having issues quitting the
AIR app I'm developing using Apple-Q, the ApplicaitonMenu, and the DockMenu.
It seems to be related to the fact that I have other windows opened by my
application, the only way I can currently quit the entire application is by
closing my Main window, which my windowedApplication listens to and then
closes. I've even tried adding a listener to the Quit item in the
ApplicationMenu, but my handler is never catching the event when I choose
that item. Other AIR apps I have installed are still working correctly, so
I'm looking for the culprit here.

My application extends WindowedApplication, it is chromeless, transparent,
and invisible. It spawns a MainWindow on startup, but other windows for
notifications, etc, are also spawned from the application. I listen for the
CLOSING event on the MainWindow and then close the application, which works
fine. Mac users are just used to Apple-Q to quit and this is doing nothing
currently.


[flexcoders] Full Screen and Scaling in FLEX. Please help

2008-07-01 Thread anuj181
Hi Flexcoders
I have a question. I made an application and I like to give user the
option of clicking on full screen. I implemented the following code
and full screen is working fine. When user clicks on Full screen the
whole application takes place of the monitor but my problem is that
the application does not scale, so it looks weird. Please help me out,
I need full screen scaling of my whole application. However I
implemented same thing in AS 3.0 uisng Flash IDE just by using
addEventListener(Event.ENTER_FRAME,setStage);
function setStage(event:Event):void
{
stage.displayState = StageDisplayState.FULL_SCREEN;
fscommand(fullscreen, true);
fscommand(allowscale, true);
}.
But this techniques is not working in Flex. I am trying to run
independent SWF file for full screen, With Browser definitely this
thing is not going to work but i need full screen in SWF file.
Please help
Thanks
Anuj
//Code For Flex
mx:Application width=1640 
xmlns:mx=http://www.adobe.com/2006/mxml;
 verticalAlign=top 
 viewSourceURL=srcview/index.html layout=absolute
backgroundColor=#b7babc verticalScrollPolicy=off
 horizontalScrollPolicy=off height=100%
applicationComplete=FS(event)  xmlns:assets=assets.*
enterFrame=GridCheck(event) creationComplete=init() xmlns:ns1=*
xmlns:ns2=Renderers.* xmlns:myComps=*
xmlns:objecthandles=com.roguedevelopment.objecthandles.*
 mx:Style source=resources/css/style.css/ 
mx:Button id=FullScreenButton x=809 y=959 label=Fullscreen
click=toggleFullScreen()/  
//Functions
public function FS(evt:Event):void {
stage.addEventListener(FullScreenEvent.FULL_SCREEN,
fullScreenHandler);
dispState =stage.displayState; 
}

public function fullScreenHandler(evt:FullScreenEvent):void 
{

   dispState = stage.displayState +  (fullScreen= +
evt.fullScreen.toString() + );
if (evt.fullScreen) 
{
   FullScreenButton.label=Normal; 
} 
else
{
   FullScreenButton.label=Full Screen; 
  
} 
}   
public function toggleFullScreen():void
{
try
{

switch(Application.application.stage.displayState) 
{
case StageDisplayState.FULL_SCREEN:
//If already in full screen mode, switch
to normal mode. 
stage.displayState = StageDisplayState.NORMAL;
stage.scaleMode=StageScaleMode.NO_SCALE; 
  
break;
default:
// If not in full screen mode, switch to
full screen mode. 

stage.displayState =
StageDisplayState.FULL_SCREEN; 
//Setting Scale 
stage.scaleMode=StageScaleMode.NO_SCALE;
break;
}
} catch (err:SecurityError) 
{
// ignore
}
}
mx:Button id=FullScreenButton x=809 y=959
label=Fullscreen click=toggleFullScreen()/
/mx:Application





Re: [flexcoders] Re: Draw colored shape

2008-07-01 Thread Enjoy Jake
Yes. And the example I provided most recently should do that for you.


- Original Message 
From: markgoldin_2000 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 1, 2008 4:47:44 AM
Subject: [flexcoders] Re: Draw colored shape


Yes, it will show row background, but, .. no column background 
anymore. So, it's the same as not to have column background in the 
first place. But what I want is to have columns with backgrounds and 
then color some rows keeping columns unchanged. Is that possible in 
Flex?

--- In [EMAIL PROTECTED] ups.com, Enjoy Jake enjoy_jake@ ... wrote:

 You're right. Your column backgroundColors are being displayed on 
top of your row background Colors. The fact is, you have to choose 
one or the other to be on top. Adobe decided that column colors 
should always be displayed over row colors. If you want to display 
rowColors over column colors, the easiest way to do it is by 
overriding updateDisplayList on your datagrid thus:
 
 
 override protected function updateDisplayList
(unscaledWidth: Number, unscaledHeight: Number):void {
 super.updateDisplay List(unscaledWid th, unscaledHeight) ;
 var rowBGIndex:int = listContent. getChildIndex
(listContent. getChildByName( rowBGs) );
 var colBGIndex:int = listContent. getChildIndex
(listContent. getChildByName( colBGs) );
 
 if (colBGIndex  rowBGIndex) {
 listContent. swapChildrenAt( rowBGIndex, colBGIndex);
 }
 }
 
 This is starting to get into the realm of ugly hack, so beware. 
Much further into that realm is the modified example below. What I've 
done is given each item in the dataprovider a default color of 
0x. When drawing a row, if the calculated color is 0x 
then I do not draw the row, and let the column color shine through.
 
 As I said before, this is getting dangerously ugly, and for the 
benefit of the community, further examples of this should probably be 
hidden from public view.
 
 Also, beware of retinal damage that could be caused by my awful 
choice of colors in the examples.
 
 
 #Application
  ##
 ?xml version=1.0 encoding=utf- 8?
 mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml 
layout=vertical xmlns:local= *
 mx:Script
 ![CDATA[
 import mx.collections. ArrayCollection;
 [Bindable] public var rowColor:uint = 0xff;
 
 [Bindable] public var vowels:ArrayCollect ion = new 
ArrayCollection( [
 {label: a, rowColor: 0x},
 {label: e, rowColor: 0x},
 {label: i, rowColor: 0x},
 {label: o, rowColor: 0x},
 {label: u, rowColor: 0xff},
 {label: sometimes y, rowColor: 0x}
 ]);
 
 private function determineColor( item:Object, 
rowIndex:int, dataIndex:int, oldColor:uint) :uint {
 return item.rowColor;
 }
 
 
 private function makeSelectedItemRed ():void {
 if (myDG.selectedItem != null) {
 myDG.selectedItem. rowColor = 0xff;
 myDG.invalidateDisp layList() ;
 myDG.selectedItem = null;
 }
 }
 ]]
 /mx:Script
 local:ColoredDataG rid id=myDG dataProvider= {vowels}  
rowColorFunction= determineColor 
 local:columns
 mx:DataGridColumn dataField=label 
backgroundColor= #00ff00 /
 mx:DataGridColumn backgroundColor= #00cc00 /
 mx:DataGridColumn backgroundColor= #009900 /
 /local:columns
 /local:ColoredData Grid
 
 mx:Button label=Make selected item Red!!!
 click=makeSelected ItemRed() /
 /mx:Application
  # #
 
 # ColoredDataGrid. as
  # #
 package {
 import flash.display. Sprite;
 
 import mx.collections. ArrayCollection;
 import mx.controls. DataGrid;
 
 public class ColoredDataGrid extends DataGrid {
 public var rowColorFunction: Function;
 
 public function ColoredDataGrid( ) {
 super();
 }
 
 override protected function drawRowBackground( s:Sprite, 
rowIndex:int, y:Number, height:Number, color:uint, 
dataIndex:int) :void {
 if(rowColorFunction != null) {
 var item:Object;
 
 if (dataProvider is ArrayCollection) {
 item = (dataProvider as 
ArrayCollection) .getItemAt( dataIndex) ;
 }
 
 color = rowColorFunction( item, rowIndex, 
dataIndex, color );
 }
 if (color != 0x) {
 super.drawRowBackgr ound
(s,rowIndex, y,height, color,dataIndex) ;
 }
 }
 
 override protected function updateDisplayList
(unscaledWidth: Number, unscaledHeight: Number):void {
 super.updateDisplay 

[flexcoders] override updateDisplayList

2008-07-01 Thread markgoldin_2000
I am geting different results if I override updateDisplayList:
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
var rowBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(rowBGs));
var colBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(colBGs));
}
When I run it from production I am getting this:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/getChildIndex()
at yardmodel.modulecode::RowColorGrid/updateDisplayList()
at mx.controls.listClasses::ListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

But when I run from Flex Builder it works fine. I am not running 
againt same data, but is that a problem?

Please help.



[flexcoders] Re: Draw colored shape

2008-07-01 Thread markgoldin_2000
Yes, you are right, it works. But I am already having another problem 
I have posted a message about.

--- In flexcoders@yahoogroups.com, Enjoy Jake [EMAIL PROTECTED] wrote:

 Yes. And the example I provided most recently should do that for 
you.
 
 
 - Original Message 
 From: markgoldin_2000 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 1, 2008 4:47:44 AM
 Subject: [flexcoders] Re: Draw colored shape
 
 
 Yes, it will show row background, but, .. no column background 
 anymore. So, it's the same as not to have column background in the 
 first place. But what I want is to have columns with backgrounds 
and 
 then color some rows keeping columns unchanged. Is that possible in 
 Flex?
 
 --- In [EMAIL PROTECTED] ups.com, Enjoy Jake enjoy_jake@ ... 
wrote:
 
  You're right. Your column backgroundColors are being displayed on 
 top of your row background Colors. The fact is, you have to choose 
 one or the other to be on top. Adobe decided that column colors 
 should always be displayed over row colors. If you want to display 
 rowColors over column colors, the easiest way to do it is by 
 overriding updateDisplayList on your datagrid thus:
  
  
  override protected function updateDisplayList
 (unscaledWidth: Number, unscaledHeight: Number):void {
  super.updateDisplay List(unscaledWid th, 
unscaledHeight) ;
  var rowBGIndex:int = listContent. getChildIndex
 (listContent. getChildByName( rowBGs) );
  var colBGIndex:int = listContent. getChildIndex
 (listContent. getChildByName( colBGs) );
  
  if (colBGIndex  rowBGIndex) {
  listContent. swapChildrenAt( rowBGIndex, 
colBGIndex);
  }
  }
  
  This is starting to get into the realm of ugly hack, so beware. 
 Much further into that realm is the modified example below. What 
I've 
 done is given each item in the dataprovider a default color of 
 0x. When drawing a row, if the calculated color is 
0x 
 then I do not draw the row, and let the column color shine through.
  
  As I said before, this is getting dangerously ugly, and for the 
 benefit of the community, further examples of this should probably 
be 
 hidden from public view.
  
  Also, beware of retinal damage that could be caused by my awful 
 choice of colors in the examples.
  
  
  #Application
   ##
  ?xml version=1.0 encoding=utf- 8?
  mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml 
 layout=vertical xmlns:local= *
  mx:Script
  ![CDATA[
  import mx.collections. ArrayCollection;
  [Bindable] public var rowColor:uint = 0xff;
  
  [Bindable] public var vowels:ArrayCollect ion = new 
 ArrayCollection( [
  {label: a, rowColor: 0x},
  {label: e, rowColor: 0x},
  {label: i, rowColor: 0x},
  {label: o, rowColor: 0x},
  {label: u, rowColor: 0xff},
  {label: sometimes y, rowColor: 0x}
  ]);
  
  private function determineColor( item:Object, 
 rowIndex:int, dataIndex:int, oldColor:uint) :uint {
  return item.rowColor;
  }
  
  
  private function makeSelectedItemRed ():void {
  if (myDG.selectedItem != null) {
  myDG.selectedItem. rowColor = 0xff;
  myDG.invalidateDisp layList() ;
  myDG.selectedItem = null;
  }
  }
  ]]
  /mx:Script
  local:ColoredDataG rid id=myDG dataProvider= {vowels}  
 rowColorFunction= determineColor 
  local:columns
  mx:DataGridColumn dataField=label 
 backgroundColor= #00ff00 /
  mx:DataGridColumn backgroundColor= #00cc00 /
  mx:DataGridColumn backgroundColor= #009900 /
  /local:columns
  /local:ColoredData Grid
  
  mx:Button label=Make selected item Red!!!
  click=makeSelected ItemRed() /
  /mx:Application
   # #
  
  # ColoredDataGrid. as
   # #
  package {
  import flash.display. Sprite;
  
  import mx.collections. ArrayCollection;
  import mx.controls. DataGrid;
  
  public class ColoredDataGrid extends DataGrid {
  public var rowColorFunction: Function;
  
  public function ColoredDataGrid( ) {
  super();
  }
  
  override protected function drawRowBackground( s:Sprite, 
 rowIndex:int, y:Number, height:Number, color:uint, 
 dataIndex:int) :void {
  if(rowColorFunction != null) {
  var item:Object;
  
  if (dataProvider is ArrayCollection) {
  item = (dataProvider as 
 ArrayCollection) .getItemAt( dataIndex) ;
  }
  
  color = rowColorFunction( item, rowIndex, 
 dataIndex, color 

[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread Tim Hoff

Hi,

to display it again when the application is relaunched

This implies that you are saving and loading the pref settings data.  If
the user clicks the cancel button, you could reload the settings data
that is already saved.  For CRUD, it sometimes makes sense to edit a
copy of the persisted data.  That way, if the user cancels, just blow
away the copy.  If they save, send the edited copy to the server and
update the model with the returned object; or directly from the copy, if
you're not worried about sync issues and want faster user feedback.

-TH

--- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED]
wrote:

 Hi Everybody,

 I have an options button which leads to a new sate options_state
 when it is clicked.
 In this new state, I have a checkbox and two buttons cancel and
valid.
 I handle fine the valid button which gets the checkbox state and
 save it,
 to display it again when the application is relaunched.

 Now my problem is if I change my checkbox state, then change my mind,
 I can do cancel, but
 I don't see how anymore after tried several ways of doin' it...
 Sorry for sounding kind of basic... :-(

 With a little help from my friends...

 Thx for the Light !

 here is the snippet of code:

 private function onOptions():void
 {
 this.currentState = options_state;
 setOptions();
 }

 // to handle the prefs when app is launched
 private function setOptions():void
 {
 if ( Flags.flag_startAtLogin == 0 )
 {
 checkbox_options.selected = true;
 }
 checkbox_options.addEventListener( Event.CHANGE, checkOptions );
 }

 private function checkOptions( evt:Event ):void
 {
 if ( checkbox_options.selected == false )
 {
 flag.setFlag( 1 );
 checkbox_options.selected = false;
 //NativeApplication.nativeApplication.startAtLogin = false;
 } else
 {
 flag.setFlag( 0 );
 //NativeApplication.nativeApplication.startAtLogin = true;
 }
 }

 private function onValider():void
 {
 savePreferences.createXMLData();
 savePreferences.writeXMLData();
 this.currentState = ;
 }

 private function onAnnuler():void
 {
 this.currentState = ;
 }





RE: [flexcoders] override updateDisplayList

2008-07-01 Thread Alex Harui
Probably.  If in production the data is coming off a server and isn't
ready right away, you could be going through updateDL when there aren't
any rows to draw so the rowBG and colBG don't exist yet

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, July 01, 2008 9:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] override updateDisplayList

 

I am geting different results if I override updateDisplayList:
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
var rowBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(rowBGs));
var colBGIndex:int = listContent.getChildIndex
(listContent.getChildByName(colBGs));
}
When I run it from production I am getting this:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/getChildIndex()
at yardmodel.modulecode::RowColorGrid/updateDisplayList()
at mx.controls.listClasses::ListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply
http://adobe.com/AS3/2006/builtin::apply ()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

But when I run from Flex Builder it works fine. I am not running 
againt same data, but is that a problem?

Please help.

 



[flexcoders] Fw: Radio Button Binding Binding Question

2008-07-01 Thread parjan
Hi i have two radio button in group g1 like this 

 mx:RadioButtonGroup id=g1/
 mx:RadioButton groupName=g1 selected=true name=X  label=XYZ  
x=135 y=3/
 mx:RadioButton groupName=g1  name=A label=ABC x=135 y=25/


and my objmodel's  property 'ptype' is bound with current radio button like this
BindingUtils.bindProperty( objModel , ptype , g1.selection , name 
);

but its seems binding is not working properly when i change the radio selection 
can anyone tell me what cud be the problem




RE: [flexcoders] Full Screen and Scaling in FLEX. Please help

2008-07-01 Thread Alex Harui
This might help.
http://blogs.adobe.com/aharui/2008/01/flex_and_scalemodes.html

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anuj181
Sent: Tuesday, July 01, 2008 8:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Full Screen and Scaling in FLEX. Please help

 

Hi Flexcoders
I have a question. I made an application and I like to give user the
option of clicking on full screen. I implemented the following code
and full screen is working fine. When user clicks on Full screen the
whole application takes place of the monitor but my problem is that
the application does not scale, so it looks weird. Please help me out,
I need full screen scaling of my whole application. However I
implemented same thing in AS 3.0 uisng Flash IDE just by using
addEventListener(Event.ENTER_FRAME,setStage);
function setStage(event:Event):void
{
stage.displayState = StageDisplayState.FULL_SCREEN;
fscommand(fullscreen, true);
fscommand(allowscale, true);
}.
But this techniques is not working in Flex. I am trying to run
independent SWF file for full screen, With Browser definitely this
thing is not going to work but i need full screen in SWF file.
Please help
Thanks
Anuj
//Code For Flex
mx:Application width=1640 
xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
verticalAlign=top 
viewSourceURL=srcview/index.html layout=absolute
backgroundColor=#b7babc verticalScrollPolicy=off
horizontalScrollPolicy=off height=100%
applicationComplete=FS(event) xmlns:assets=assets.*
enterFrame=GridCheck(event) creationComplete=init() xmlns:ns1=*
xmlns:ns2=Renderers.* xmlns:myComps=*
xmlns:objecthandles=com.roguedevelopment.objecthandles.*
mx:Style source=resources/css/style.css/ 
mx:Button id=FullScreenButton x=809 y=959 label=Fullscreen
click=toggleFullScreen()/ 
//Functions
public function FS(evt:Event):void { 
stage.addEventListener(FullScreenEvent.FULL_SCREEN,
fullScreenHandler);
dispState =stage.displayState; 
}

public function fullScreenHandler(evt:FullScreenEvent):void 
{

dispState = stage.displayState +  (fullScreen= +
evt.fullScreen.toString() + );
if (evt.fullScreen) 
{
FullScreenButton.label=Normal; 
} 
else
{
FullScreenButton.label=Full Screen; 

} 
} 
public function toggleFullScreen():void
{
try
{
switch(Application.application.stage.displayState) 
{
case StageDisplayState.FULL_SCREEN:
//If already in full screen mode, switch
to normal mode. 
stage.displayState = StageDisplayState.NORMAL;
stage.scaleMode=StageScaleMode.NO_SCALE; 

break;
default:
// If not in full screen mode, switch to
full screen mode. 

stage.displayState =
StageDisplayState.FULL_SCREEN; 
//Setting Scale 
stage.scaleMode=StageScaleMode.NO_SCALE;
break;
}
} catch (err:SecurityError) 
{
// ignore
}
} 
mx:Button id=FullScreenButton x=809 y=959
label=Fullscreen click=toggleFullScreen()/ 
/mx:Application

 



RE: [flexcoders] RadioButtons appear as normal buttons -- WTF?

2008-07-01 Thread Alex Harui
If the RadioButton type selector is missing or improperly defined, I
guess you could end up in such a situation.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Glasser
Sent: Tuesday, July 01, 2008 7:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RadioButtons appear as normal buttons -- WTF?

 

This is driving me nuts. I'm using two RadioButtons in a
RadioButtonGroup, and they appear as two normal buttons. There is no CSS
styling in effect. I'm not setting any properties other than label,
group and labelPlacement and selected. Does anyone know what is going on
here?

 



[flexcoders] How do I hide rows in a datagrid display?

2008-07-01 Thread anthony_morsey
I want to hide rows in a datagrid display.  I do not want to change
the underlying dataprovider array, just the display of a row on the
screen.

Any ideas?



RE: [flexcoders] Remove Button´s Border

2008-07-01 Thread Alex Harui
You could make it the same color as the background by changing borderColor, 
unless you have a gradient background.  Otherwise, you'll probably have to skin 
it.  You could try swapping in LinkButton skins

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Fernando Ghisi
Sent: Tuesday, July 01, 2008 5:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remove Button´s Border

 

Anybody knows how can I do a simple thing like remove a button's
border? I just can't do this - there are no styles for it (like
borderStyle, or borderAlpha).

Thanks

-- 
Fernando Ghisi

 



RE: [flexcoders] How to load an image using mx:Loader

2008-07-01 Thread Alex Harui
People generally use mx:Image to load jpgs.  Once loaded, and assuming
you have domain permissions, you can manipulate the bitmap by accessing
the mx:Image's content property from AS3

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pankajtandon2003
Sent: Tuesday, July 01, 2008 5:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to load an image using mx:Loader

 

Hello folks,
I'm a newbie in flex-world!
I need to load a Bitmap (.jpg) file using Flex3.
Now I've read a bunch of code that describes how to do this using
ActionScript 3. But I'm not very sure how Flex 3 and AS3 interact.
I've got the Flex 3 Builder Eclipse Plugin and I was hoping I could
find an example of loading an image using the mx:Loader tag. But
strangely I do not see many posts on this forum for this. Could it be
that this is the wrong way to load an image using Flex?

So, specifically, can someone:
1. Provide me with an example of using mx:Loader to load a .jpg file.
2. Show me a simple example of how Flex3 tags and AS3 interact. For
example, if I wanted to build all UI components using Flex, but do all
Image manipulation using AS3.

Thanks in advance!

Pankaj

 



RE: [flexcoders] CurrencyFormat vs locale

2008-07-01 Thread Gordon Smith
Sorry, I don't understand why you wouldn't simply localize the
alignSymbol, thousandsSeparatorTo, and decimalSeparatorTo
resources in the SharedResources bundle in order to get localized
currency formatting with CurrencyFormatter.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Tuesday, July 01, 2008 7:25 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] CurrencyFormat vs locale

 

Thanks, I'll look at that.
Gordon, it's just a case that the app as a whole is not being
localized for everywhere just yet. For example, my understanding is
that the Euro is used in many different locales which may have
different decimal and thousands separators.

On Mon, Jun 30, 2008 at 7:37 PM, Paul Hastings [EMAIL PROTECTED]
mailto:paul.hastings%40gmail.com  wrote:
 Gordon Smith wrote:
 What is the problem with bundling resources for each locale?

 well for starters, having to know what to bundle ;-)

 http://as3localedata.riaforge.org/
http://as3localedata.riaforge.org/ 

 is based on the CLDR project data, which is as good as gets when it
comes to
 locale resources.

 

 



[flexcoders] Type Coercion errors with SWFLoader

2008-07-01 Thread Tomas Lin
Hiya all,

I have a papervision SWF file that works really well standalone, all
my images are being loaded from a remote location.

So when I call localhost:8080/swf/myfile.swf, everything is fine.

However, when I embed it into my SWFLoader

mx:SWFLoader source=http://localhost:8080/swf/myfile.swf;
width=100% height=469 horizontalAlign=left
verticalAlign=top mask={loaderMask} x=0 y=0
/

I get the following error.

TypeError: Error #1034: Type Coercion failed: cannot convert
Function-1981 to org.papervision3d.core.geom.renderables.Triangle3D.
at org.papervision3d.core.proto::GeometryObject3D/createVertexNormals()
at org.papervision3d.core.proto::GeometryObject3D/set ready()
at org.papervision3d.objects.primitives::Plane/buildPlane()
at org.papervision3d.objects.primitives::Plane()
at com.flashloaded.Wall3D::Wall3DThumbnail()
at com.flashloaded.Wall3D::Wall3DImage()
at com.flashloaded.Wall3D::Wall3D/parseXML()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

Has anyone ever seen something like this? Is there a solution for it?
I find it bizarre that the swfloader will break an embedded flash
file.

Thanks,


[flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Dan Pride
I have an application which will not compile, delivers no error code and simply 
gives me the last good app with no explanation whatsoever???

Who designed this thing and what were they thinking?

Clean app does nothing.

No error code

No way to get an error code.

What does one do???

I can develop fine, but when I go to export a release and send it up the the 
net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I NEVER DID 
ANYTHING.

AGAIN NO WARNING
G




  


Re: [flexcoders] Full Screen and Scaling in FLEX. Please help

2008-07-01 Thread anuj sharma
Thanks for the blog. The problem has been fixed. Appreciate ur help.

On Tue, Jul 1, 2008 at 10:06 AM, Alex Harui [EMAIL PROTECTED] wrote:

This might help.
 http://blogs.adobe.com/aharui/2008/01/flex_and_scalemodes.html


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *anuj181
 *Sent:* Tuesday, July 01, 2008 8:58 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Full Screen and Scaling in FLEX. Please help



 Hi Flexcoders
 I have a question. I made an application and I like to give user the
 option of clicking on full screen. I implemented the following code
 and full screen is working fine. When user clicks on Full screen the
 whole application takes place of the monitor but my problem is that
 the application does not scale, so it looks weird. Please help me out,
 I need full screen scaling of my whole application. However I
 implemented same thing in AS 3.0 uisng Flash IDE just by using
 addEventListener(Event.ENTER_FRAME,setStage);
 function setStage(event:Event):void
 {
 stage.displayState = StageDisplayState.FULL_SCREEN;
 fscommand(fullscreen, true);
 fscommand(allowscale, true);
 }.
 But this techniques is not working in Flex. I am trying to run
 independent SWF file for full screen, With Browser definitely this
 thing is not going to work but i need full screen in SWF file.
 Please help
 Thanks
 Anuj
 //Code For Flex
 mx:Application width=1640
 xmlns:mx=http://www.adobe.com/2006/mxml;
 verticalAlign=top
 viewSourceURL=srcview/index.html layout=absolute
 backgroundColor=#b7babc verticalScrollPolicy=off
 horizontalScrollPolicy=off height=100%
 applicationComplete=FS(event) xmlns:assets=assets.*
 enterFrame=GridCheck(event) creationComplete=init() xmlns:ns1=*
 xmlns:ns2=Renderers.* xmlns:myComps=*
 xmlns:objecthandles=com.roguedevelopment.objecthandles.*
 mx:Style source=resources/css/style.css/
 mx:Button id=FullScreenButton x=809 y=959 label=Fullscreen
 click=toggleFullScreen()/
 //Functions
 public function FS(evt:Event):void {
 stage.addEventListener(FullScreenEvent.FULL_SCREEN,
 fullScreenHandler);
 dispState =stage.displayState;
 }

 public function fullScreenHandler(evt:FullScreenEvent):void
 {

 dispState = stage.displayState +  (fullScreen= +
 evt.fullScreen.toString() + );
 if (evt.fullScreen)
 {
 FullScreenButton.label=Normal;
 }
 else
 {
 FullScreenButton.label=Full Screen;

 }
 }
 public function toggleFullScreen():void
 {
 try
 {
 switch(Application.application.stage.displayState)
 {
 case StageDisplayState.FULL_SCREEN:
 //If already in full screen mode, switch
 to normal mode.
 stage.displayState = StageDisplayState.NORMAL;
 stage.scaleMode=StageScaleMode.NO_SCALE;

 break;
 default:
 // If not in full screen mode, switch to
 full screen mode.

 stage.displayState =
 StageDisplayState.FULL_SCREEN;
 //Setting Scale
 stage.scaleMode=StageScaleMode.NO_SCALE;
 break;
 }
 } catch (err:SecurityError)
 {
 // ignore
 }
 }
 mx:Button id=FullScreenButton x=809 y=959
 label=Fullscreen click=toggleFullScreen()/
 /mx:Application

  



Re: [flexcoders] CurrencyFormat vs locale

2008-07-01 Thread Richard Rodseth
You may be right, but let me give you a little more context.

The English application (or a future non-English version) can display
monetary values in a currency determined by a server setting. The
English application might be used in other countries before a
localized version is available. It would be nice, though perhaps not
essential, for currencies to be displayed with locale-sensitive
separators.

I'm not sure about SharedResources, but I supposed I could have a
currency.properties file and create locale folders for each locale
that only contain the currency properties, defaulting to the en_US
separators for locales that are not yet added to the build. Thus the
application would be localized but only with respect to currency (and
perhaps date formats).

Any reluctance to add multiple locales now, is largely a question of
timing/app size/impact on build system.

Somewhat tangentially, will there be better tooling support for
localization in Flex 4?

On Tue, Jul 1, 2008 at 10:36 AM, Gordon Smith [EMAIL PROTECTED] wrote:
 Sorry, I don't understand why you wouldn't simply localize the
 alignSymbol, thousandsSeparatorTo, and decimalSeparatorTo resources in
 the SharedResources bundle in order to get localized currency formatting
 with CurrencyFormatter.



 Gordon Smith

 Adobe Flex SDK Team



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Richard Rodseth
 Sent: Tuesday, July 01, 2008 7:25 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] CurrencyFormat vs locale



 Thanks, I'll look at that.
 Gordon, it's just a case that the app as a whole is not being
 localized for everywhere just yet. For example, my understanding is
 that the Euro is used in many different locales which may have
 different decimal and thousands separators.

 On Mon, Jun 30, 2008 at 7:37 PM, Paul Hastings [EMAIL PROTECTED]
 wrote:
 Gordon Smith wrote:
 What is the problem with bundling resources for each locale?

 well for starters, having to know what to bundle ;-)

 http://as3localedata.riaforge.org/

 is based on the CLDR project data, which is as good as gets when it comes
 to
 locale resources.



 


RE: [flexcoders] How do I hide rows in a datagrid display?

2008-07-01 Thread Tracy Spratt
Please do a bit of searching before posting.  This was answered in a
thread already today.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anthony_morsey
Sent: Tuesday, July 01, 2008 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I hide rows in a datagrid display?

 

I want to hide rows in a datagrid display. I do not want to change
the underlying dataprovider array, just the display of a row on the
screen.

Any ideas?

 



RE: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Tracy Spratt
When you say, send it up the the net, exactly what do you mean?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Tuesday, July 01, 2008 2:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] THIS IS ABSOLUTELY NUTS

 

I have an application which will not compile, delivers no error code and
simply gives me the last good app with no explanation whatsoever???

Who designed this thing and what were they thinking?

Clean app does nothing.

No error code

No way to get an error code.

What does one do???

I can develop fine, but when I go to export a release and send it up the
the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I
NEVER DID ANYTHING.

AGAIN NO WARNING
G

 



Re: [flexcoders] override updateDisplayList

2008-07-01 Thread Enjoy Jake
Perhaps the fix is obvious, but if not just add a couple null checks. After 
all, if colBGs is null, then it's certainly not going to be displayed in 
front of rowBGs so there's no need to swap them. Something like this should 
do fine:


override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
var rowBGs:DisplayObject = listContent.getChildByName(rowBGs);
var colBGs:DisplayObject = listContent.getChildByName(colBGs);
if (rowBGs != null  colBGs != null) {
var rowBGIndex:int = listContent.getChildIndex(rowBGs);
var colBGIndex:int = listContent.getChildIndex(colBGs);

if (colBGIndex  rowBGIndex) {
listContent.swapChildrenAt(rowBGIndex, colBGIndex);
}
}
}



- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 1, 2008 10:02:59 AM
Subject: RE: [flexcoders] override updateDisplayList


Probably.  If in production the data is
coming off a server and isn’t ready right away, you could be going
through updateDL when there aren’t any rows to draw so the rowBG and
colBG don’t exist yet
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of markgoldin_2000
Sent: Tuesday, July 01, 2008 9:11
AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] override
updateDisplayList
 
I am geting different results if I override
updateDisplayList:
override protected function updateDisplayList( unscaledWidth: Number, 
unscaledHeight: Number):void 
{
super.updateDisplay List(unscaledWid th, unscaledHeight) ;
var rowBGIndex:int = listContent. getChildIndex
(listContent. getChildByName( rowBGs) );
var colBGIndex:int = listContent. getChildIndex
(listContent. getChildByName( colBGs) );
}
When I run it from production I am getting this:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display: :DisplayObjectCo ntainer/getChild Index()
at yardmodel.modulecod e::RowColorGrid/ updateDisplayLis t()
at mx.controls. listClasses: :ListBase/ validateDisplayL ist()
at mx.managers: :LayoutManager/ validateDisplayL ist()
at mx.managers: :LayoutManager/ doPhasedInstanti ation()
at Function/http://adobe. com/AS3/2006/ builtin:: apply()
at mx.core::UIComponen t/callLaterDispa tcher2()
at mx.core::UIComponen t/callLaterDispa tcher()

But when I run from Flex Builder it works fine. I am not running 
againt same data, but is that a problem?

Please help.


  

Re: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Enjoy Jake
Tracy, you rock.

Dan, perhaps these suggestions are obvious, but ... when you send it up the 
the net check the timestamp on the file to make sure you're really sending it 
up the there. Also, try clearing your browser cache.


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 1, 2008 12:11:50 PM
Subject: RE: [flexcoders] THIS IS ABSOLUTELY NUTS


When you say, “send it
up the the net”, exactly what do you mean?
Tracy
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of Dan Pride
Sent: Tuesday, July 01, 2008 2:06
PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] THIS IS
ABSOLUTELY NUTS
 
I have an application which will not compile, delivers
no error code and simply gives me the last good app with no explanation
whatsoever?? ?

Who designed this thing and what were they thinking ?

Clean app does nothing.

No error code

No way to get an error code.

What does one do???

I can develop fine, but when I go to export a release and send it up the the
net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I NEVER DID
ANYTHING.

AGAIN NO WARNING
GRR RR


  

Re: [flexcoders] How to load an image using mx:Loader

2008-07-01 Thread Flex Frenzy
I'm not sure how much you know about Flex or Actionscript, so i  
decided to just give some example code:



!--THIS IS THE IMAGE PORTION--
mx:Image id=myImage source=pic.jpg/

!--AND THIS IS THE ACTIONSCRIPT EMBEDED IN THE MXML--
mx:Script
![CDATA[
private var desiredWidth:int = 300
private function changeWidth():void
{
myImage.width = desiredWidth
}
]]
/mx:Script


In the first portion the image is defined in the mxml, note I defined  
and id property as well as source. I then use the id again in the  
actionscript. I used it in a function so a button could trigger that  
function and change the width of the image to 'desiredWidth' variable  
at runtime.


I hope this helps
On Jul 1, 2008, at 10:13 AM, Alex Harui wrote:



People generally use mx:Image to load jpgs.  Once loaded, and  
assuming you have domain permissions, you can manipulate the bitmap  
by accessing the mx:Image’s content property from AS3




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of pankajtandon2003

Sent: Tuesday, July 01, 2008 5:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to load an image using mx:Loader



Hello folks,
I'm a newbie in flex-world!
I need to load a Bitmap (.jpg) file using Flex3.
Now I've read a bunch of code that describes how to do this using
ActionScript 3. But I'm not very sure how Flex 3 and AS3 interact.
I've got the Flex 3 Builder Eclipse Plugin and I was hoping I could
find an example of loading an image using the mx:Loader tag. But
strangely I do not see many posts on this forum for this. Could it be
that this is the wrong way to load an image using Flex?

So, specifically, can someone:
1. Provide me with an example of using mx:Loader to load a .jpg  
file.

2. Show me a simple example of how Flex3 tags and AS3 interact. For
example, if I wanted to build all UI components using Flex, but do all
Image manipulation using AS3.

Thanks in advance!

Pankaj








Re: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Flex Frenzy

Jake may be right dan, I always have problems with my browser cache.
On Jul 1, 2008, at 12:07 PM, Enjoy Jake wrote:



Tracy, you rock.

Dan, perhaps these suggestions are obvious, but ... when you send  
it up the the net check the timestamp on the file to make sure  
you're really sending it up the there. Also, try clearing your  
browser cache.


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 1, 2008 12:11:50 PM
Subject: RE: [flexcoders] THIS IS ABSOLUTELY NUTS


When you say, “send it up the the net”, exactly what do you mean?

Tracy


From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED]  
ups.com ]On Behalf Of Dan Pride

Sent: Tuesday, July 01, 2008 2:06 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] THIS IS ABSOLUTELY NUTS


I have an application which will not compile, delivers no error code  
and simply gives me the last good app with no explanation  
whatsoever?? ?


Who designed this thing and what were they thinking ?

Clean app does nothing.

No error code

No way to get an error code.

What does one do???

I can develop fine, but when I go to export a release and send it up  
the the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP  
LIKE I NEVER DID ANYTHING.


AGAIN NO WARNING
GRR RR









[flexcoders] Re: override updateDisplayList

2008-07-01 Thread markgoldin_2000
That's exactly what I did. Thanks.

--- In flexcoders@yahoogroups.com, Enjoy Jake [EMAIL PROTECTED] wrote:

 Perhaps the fix is obvious, but if not just add a couple null 
checks. After all, if colBGs is null, then it's certainly not going 
to be displayed in front of rowBGs so there's no need to swap them. 
Something like this should do fine:
 
 
 override protected function updateDisplayList
(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 var rowBGs:DisplayObject = listContent.getChildByName
(rowBGs);
 var colBGs:DisplayObject = listContent.getChildByName
(colBGs);
 if (rowBGs != null  colBGs != null) {
 var rowBGIndex:int = listContent.getChildIndex
(rowBGs);
 var colBGIndex:int = listContent.getChildIndex
(colBGs);
 
 if (colBGIndex  rowBGIndex) {
 listContent.swapChildrenAt(rowBGIndex, 
colBGIndex);
 }
 }
 }
 
 
 
 - Original Message 
 From: Alex Harui [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 1, 2008 10:02:59 AM
 Subject: RE: [flexcoders] override updateDisplayList
 
 
 Probably.  If in production the data is
 coming off a server and isn¢t ready right away, you could be going
 through updateDL when there aren¢t any rows to draw so the rowBG and
 colBG don¢t exist yet
  
 
 
  
 From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] 
ups.com ] On Behalf Of markgoldin_2000
 Sent: Tuesday, July 01, 2008 9:11
 AM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] override
 updateDisplayList
  
 I am geting different results if I override
 updateDisplayList:
 override protected function updateDisplayList( unscaledWidth: 
Number, 
 unscaledHeight: Number):void 
 {
 super.updateDisplay List(unscaledWid th, unscaledHeight) ;
 var rowBGIndex:int = listContent. getChildIndex
 (listContent. getChildByName( rowBGs) );
 var colBGIndex:int = listContent. getChildIndex
 (listContent. getChildByName( colBGs) );
 }
 When I run it from production I am getting this:
 TypeError: Error #2007: Parameter child must be non-null.
 at flash.display: :DisplayObjectCo ntainer/getChild Index()
 at yardmodel.modulecod e::RowColorGrid/ updateDisplayLis t()
 at mx.controls. listClasses: :ListBase/ validateDisplayL ist()
 at mx.managers: :LayoutManager/ validateDisplayL ist()
 at mx.managers: :LayoutManager/ doPhasedInstanti ation()
 at Function/http://adobe. com/AS3/2006/ builtin:: apply()
 at mx.core::UIComponen t/callLaterDispa tcher2()
 at mx.core::UIComponen t/callLaterDispa tcher()
 
 But when I run from Flex Builder it works fine. I am not running 
 againt same data, but is that a problem?
 
 Please help.





RE: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Tracy Spratt
Dan, I can tell you are frustrated, but we really need more information
to be much help.  Besides telling us how you are deploying the app:

 

*   You say, will not compile.  How do you know?
*   Have you tried the command-line compiler?
*   You say I can develop fine, do you mean you can type code?
Nothing else? Tracing? Debugging?
*   Can you run the modified code under flex builder?
*   When you say, no error code, where are you looking?
*   You say, export a release, can you run the modified code in a
debug build?
*   Have you rebooted?
*   Flex 3?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flex Frenzy
Sent: Tuesday, July 01, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] THIS IS ABSOLUTELY NUTS

 

Jake may be right dan, I always have problems with my browser cache.

On Jul 1, 2008, at 12:07 PM, Enjoy Jake wrote:





 

Tracy, you rock.

Dan, perhaps these suggestions are obvious, but ... when you send it up
the the net check the timestamp on the file to make sure you're really
sending it up the there. Also, try clearing your browser cache.

- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 1, 2008 12:11:50 PM
Subject: RE: [flexcoders] THIS IS ABSOLUTELY NUTS

 

When you say, send it up the the net, exactly what do you mean?

Tracy

 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com
]On Behalf Of Dan Pride
Sent: Tuesday, July 01, 2008 2:06 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] THIS IS ABSOLUTELY NUTS

 

I have an application which will not compile, delivers no error code and
simply gives me the last good app with no explanation whatsoever?? ?

Who designed this thing and what were they thinking ?

Clean app does nothing.

No error code

No way to get an error code.

What does one do???

I can develop fine, but when I go to export a release and send it up the
the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I
NEVER DID ANYTHING.

AGAIN NO WARNING
GRR RR

 

 

 

 

 



Re: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Richard Rodseth
Also, another thing that can sometimes help (I think) in addition to
cleaning projects is to close and open the FlexBuilder project (right
click on project).

On Tue, Jul 1, 2008 at 12:42 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Dan, I can tell you are frustrated, but we really need more information to
 be much help.  Besides telling us how you are deploying the app:



 You say, will not compile.  How do you know?
 Have you tried the command-line compiler?
 You say I can develop fine, do you mean you can type code?  Nothing else?
 Tracing? Debugging?
 Can you run the modified code under flex builder?
 When you say, no error code, where are you looking?
 You say, export a release, can you run the modified code in a debug build?
 Have you rebooted?
 Flex 3?



 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Flex Frenzy
 Sent: Tuesday, July 01, 2008 3:11 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] THIS IS ABSOLUTELY NUTS



 Jake may be right dan, I always have problems with my browser cache.

 On Jul 1, 2008, at 12:07 PM, Enjoy Jake wrote:



 Tracy, you rock.

 Dan, perhaps these suggestions are obvious, but ... when you send it up the
 the net check the timestamp on the file to make sure you're really sending
 it up the there. Also, try clearing your browser cache.

 - Original Message 
 From: Tracy Spratt [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 1, 2008 12:11:50 PM
 Subject: RE: [flexcoders] THIS IS ABSOLUTELY NUTS



 When you say, send it up the the net, exactly what do you mean?

 Tracy



 

 From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]On
 Behalf Of Dan Pride
 Sent: Tuesday, July 01, 2008 2:06 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] THIS IS ABSOLUTELY NUTS



 I have an application which will not compile, delivers no error code and
 simply gives me the last good app with no explanation whatsoever?? ?

 Who designed this thing and what were they thinking ?

 Clean app does nothing.

 No error code

 No way to get an error code.

 What does one do???

 I can develop fine, but when I go to export a release and send it up the the
 net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I NEVER DID
 ANYTHING.

 AGAIN NO WARNING
 GRR RR









 


[flexcoders] Right Mouse click

2008-07-01 Thread markgoldin_2000
In my program when user clicks on a DG's cell I am changing cell's 
color to show which cell was clicked. Now, they want to implement a 
ContextMenu on the grids. Can I highlight a cell in the same manner but 
from the right mouse click, just before the ContextMenu popups?

Thanks



[flexcoders] Re: THIS IS ABSOLUTELY NUTS

2008-07-01 Thread jmfillman
Dan,

I've often found that I need to delete the old file(s) before 
uploading the new file to the net. This is either to do with the FTP 
software and/or the hosting company. If you don't delete it first, 
sometimes it doesn't overwrite the old file, and it seems some 
hosting companies have a cache of some type on their servers, and it 
takes a while for your new file to be what is displayed when browsing 
to your site. I've seen it take over 1 hour before the new file gets 
displayed. Deleting the file, however, seems to force it to recognize 
the new file.

JF

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 Dan, I can tell you are frustrated, but we really need more 
information
 to be much help.  Besides telling us how you are deploying the app:
 
  
 
 * You say, will not compile.  How do you know?
 * Have you tried the command-line compiler?
 * You say I can develop fine, do you mean you can type code?
 Nothing else? Tracing? Debugging?
 * Can you run the modified code under flex builder?
 * When you say, no error code, where are you looking?
 * You say, export a release, can you run the modified code in 
a
 debug build?
 * Have you rebooted?
 * Flex 3?
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Flex Frenzy
 Sent: Tuesday, July 01, 2008 3:11 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] THIS IS ABSOLUTELY NUTS
 
  
 
 Jake may be right dan, I always have problems with my browser cache.
 
 On Jul 1, 2008, at 12:07 PM, Enjoy Jake wrote:
 
 
 
 
 
  
 
 Tracy, you rock.
 
 Dan, perhaps these suggestions are obvious, but ... when you send 
it up
 the the net check the timestamp on the file to make sure you're 
really
 sending it up the there. Also, try clearing your browser cache.
 
 - Original Message 
 From: Tracy Spratt [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 1, 2008 12:11:50 PM
 Subject: RE: [flexcoders] THIS IS ABSOLUTELY NUTS
 
  
 
 When you say, send it up the the net, exactly what do you mean?
 
 Tracy
 
  
 
 
 
 From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] 
ups.com
 ]On Behalf Of Dan Pride
 Sent: Tuesday, July 01, 2008 2:06 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] THIS IS ABSOLUTELY NUTS
 
  
 
 I have an application which will not compile, delivers no error 
code and
 simply gives me the last good app with no explanation whatsoever?? ?
 
 Who designed this thing and what were they thinking ?
 
 Clean app does nothing.
 
 No error code
 
 No way to get an error code.
 
 What does one do???
 
 I can develop fine, but when I go to export a release and send it 
up the
 the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE 
I
 NEVER DID ANYTHING.
 
 AGAIN NO WARNING
 GRR RR





RE: [flexcoders] Type Coercion errors with SWFLoader

2008-07-01 Thread Alex Harui
Embedding strips AS2 code and can cause problems.  It gets stripped
because the AS2 code can't be in the AS3 SWF

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tomas Lin
Sent: Tuesday, July 01, 2008 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Type Coercion errors with SWFLoader

 

Hiya all,

I have a papervision SWF file that works really well standalone, all
my images are being loaded from a remote location.

So when I call localhost:8080/swf/myfile.swf, everything is fine.

However, when I embed it into my SWFLoader

mx:SWFLoader source=http://localhost:8080/swf/myfile.swf
http://localhost:8080/swf/myfile.swf 
width=100% height=469 horizontalAlign=left
verticalAlign=top mask={loaderMask} x=0 y=0
/

I get the following error.

TypeError: Error #1034: Type Coercion failed: cannot convert
Function-1981 to org.papervision3d.core.geom.renderables.Triangle3D.
at org.papervision3d.core.proto::GeometryObject3D/createVertexNormals()
at org.papervision3d.core.proto::GeometryObject3D/set ready()
at org.papervision3d.objects.primitives::Plane/buildPlane()
at org.papervision3d.objects.primitives::Plane()
at com.flashloaded.Wall3D::Wall3DThumbnail()
at com.flashloaded.Wall3D::Wall3DImage()
at com.flashloaded.Wall3D::Wall3D/parseXML()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

Has anyone ever seen something like this? Is there a solution for it?
I find it bizarre that the swfloader will break an embedded flash
file.

Thanks,

 



Re: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Paul Andrews
- Original Message - 
From: Dan Pride [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 01, 2008 7:05 PM
Subject: [flexcoders] THIS IS ABSOLUTELY NUTS


I have an application which will not compile, delivers no error code and 
simply gives me the last good app with no explanation whatsoever???

 Who designed this thing and what were they thinking?

 Clean app does nothing.

 No error code

 No way to get an error code.

 What does one do???

 I can develop fine, but when I go to export a release and send it up the 
 the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I 
 NEVER DID ANYTHING.

 AGAIN NO WARNING
 G

I wonder if you are using a network drive and the system clocks are out of 
synch. For example, you can sometimes end up with compiled code that's in 
the future compared to the systems PC clock - in which case nothing will 
compile because the files last change time is in the future.

Paul 



[flexcoders] legend setstyle not working properly

2008-07-01 Thread netdeep

I am trying to change the formatting for a Legend in Actionscript:

genericLegend.setStyle(direction, horizontal);

But this does nothing, instead it lists the items vertically.  What is the 
proper way to do this in 
Actionscipt?





[flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread securenetfreedom
Josh,

That's one of the better explanations I've seen on the subject. It
fills the blanks left by
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.html.

Thanks for the contribution.

And BTW, the keyboard is a bad place to be while consuming adult
beverages, partaking in a controlled substance, or after finishing a
fight... it leaves a pretty ugly permanent mark on the post. ;)

Jeff


--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:

 Honestly, fucked if I know how I picked all this stuff up - it's
just what I
 do. But if my explanation left something out, that's my fault for
giving a
 shitty explanation. Tell me in detail what you're still confused
about, and
 I'll try and explain it :)
 
 -Josh
 
 On Tue, Jul 1, 2008 at 11:14 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:
 
   When working in mxml you can use the –keep-generated-actionscript
  compiler option… and in the 'generated' directory you will find a
wealth of
  information!
 
 
 
  In short – the answer you seek is before you! Finding the
'solution' is
  another story.
 
 
 
  Rick Winscot
 
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] Embedding fonts

2008-07-01 Thread Clint Tredway
I have tried using the documentation to embed a font into my flex app, but
are there any gotcha's in doing this?

Thanks!

-- 
When you choose hope, anything is possible.
-Christopher Reeve


[flexcoders] ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff
Hi all,

I've run into a problem with globally skinning ToolTips.  I am to skin 
the border and background by using a programmatic borderSkin.  However, 
the textField in ToolTip.as is protected and I'm not sure how to change 
it's style globally (tried TextField CSS).  I'm just looking for a way 
to change the text color for all tool tips.  If there's a way to apply 
a textFormat through CSS, that might work.  But, so far, no luck trying 
to change this style.  As usual, any help would be appreciated.

Thanks,
-TH



[flexcoders] Re: legend setstyle not working properly

2008-07-01 Thread Tim Hoff

Looks like direction is a property; not a style.  Try
genericLegend.direction = horizontal;

-TH

--- In flexcoders@yahoogroups.com, netdeep [EMAIL PROTECTED] wrote:


 I am trying to change the formatting for a Legend in Actionscript:

 genericLegend.setStyle(direction, horizontal);

 But this does nothing, instead it lists the items vertically. What is
the proper way to do this in
 Actionscipt?






[flexcoders] Re: Hittest for polygon UI Component

2008-07-01 Thread richmcgillicuddy
Could be the containers I am using but that is not what I am seeing.


Rich

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 The area drawn inside a UIComponent doesn't have to be rectangular, we
 just track everything by its bounding box.
 
  
 
 If you drew a circle in there, it would only get mouse events on the
 pixels in the circle, anything below would get the events in the
 non-drawn area.
 
  
 
 However, there is a hitTestPoint method.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of richmcgillicuddy
 Sent: Monday, June 30, 2008 7:20 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Hittest for polygon UI Component
 
  
 
 I have a series of objects that extend a UI Component and I correctly
 draw a list of polypoints in the UIcomponent. I use the UIComponent
 for the tooltips, mouse events and some other stuff. My probably is
 that ultimately UIComponent is a rectangle. is there a different base
 component I should use or is there a way for me to do a hittest on
 mouse events to say whether the mouse is in/out of the component?
 
 Rich





[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread quantum_ohm
Hi Tim,

what an idea ! so simple...
I just had to think about it :-)
Thx a lot, it works fine with your first suggestion.

For CRUD, is it possible to create a copy of the prefs file with the
Flex/Air API ?

Take care.

--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Hi,
 
 to display it again when the application is relaunched
 
 This implies that you are saving and loading the pref settings data.  If
 the user clicks the cancel button, you could reload the settings data
 that is already saved.  For CRUD, it sometimes makes sense to edit a
 copy of the persisted data.  That way, if the user cancels, just blow
 away the copy.  If they save, send the edited copy to the server and
 update the model with the returned object; or directly from the copy, if
 you're not worried about sync issues and want faster user feedback.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, quantum_ohm charly.antoine@
 wrote:
 
  Hi Everybody,
 
  I have an options button which leads to a new sate options_state
  when it is clicked.
  In this new state, I have a checkbox and two buttons cancel and
 valid.
  I handle fine the valid button which gets the checkbox state and
  save it,
  to display it again when the application is relaunched.
 
  Now my problem is if I change my checkbox state, then change my mind,
  I can do cancel, but
  I don't see how anymore after tried several ways of doin' it...
  Sorry for sounding kind of basic... :-(
 




[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread Tim Hoff

Depends on what you're using in the client.  For ArrayCollections you
can use mx.utils.ObjectUtil to make a deep copy; instead of a reference.

myCopyAC = ObjectUtil.copy(mySourceAC) ;

-TH

--- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED]
wrote:

 Hi Tim,

 what an idea ! so simple...
 I just had to think about it :-)
 Thx a lot, it works fine with your first suggestion.

 For CRUD, is it possible to create a copy of the prefs file with the
 Flex/Air API ?

 Take care.

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  Hi,
 
  to display it again when the application is relaunched
 
  This implies that you are saving and loading the pref settings data.
If
  the user clicks the cancel button, you could reload the settings
data
  that is already saved. For CRUD, it sometimes makes sense to edit a
  copy of the persisted data. That way, if the user cancels, just blow
  away the copy. If they save, send the edited copy to the server and
  update the model with the returned object; or directly from the
copy, if
  you're not worried about sync issues and want faster user feedback.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, quantum_ohm charly.antoine@
  wrote:
  
   Hi Everybody,
  
   I have an options button which leads to a new sate
options_state
   when it is clicked.
   In this new state, I have a checkbox and two buttons cancel and
  valid.
   I handle fine the valid button which gets the checkbox state and
   save it,
   to display it again when the application is relaunched.
  
   Now my problem is if I change my checkbox state, then change my
mind,
   I can do cancel, but
   I don't see how anymore after tried several ways of doin' it...
   Sorry for sounding kind of basic... :-(
  





RE: [flexcoders] Embedding fonts

2008-07-01 Thread Gordon Smith
Show us what you're doing.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Tredway
Sent: Tuesday, July 01, 2008 2:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding fonts

 

I have tried using the documentation to embed a font into my flex app,
but are there any gotcha's in doing this?

Thanks!

-- 
When you choose hope, anything is possible. 
-Christopher Reeve

 



RE: [flexcoders] ToolTip TextField TextColor

2008-07-01 Thread Tracy Spratt
You can globally style tooltips with CSS like this:

ToolTip {

  fontFamily: Helvetica;

  backgroundColor: #c1ccd2;

  color: #00;

  fontSize: 14;  

}

 

Is that what you are looking for?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Tuesday, July 01, 2008 5:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ToolTip TextField TextColor

 

Hi all,

I've run into a problem with globally skinning ToolTips. I am to skin 
the border and background by using a programmatic borderSkin. However, 
the textField in ToolTip.as is protected and I'm not sure how to change 
it's style globally (tried TextField CSS). I'm just looking for a way 
to change the text color for all tool tips. If there's a way to apply 
a textFormat through CSS, that might work. But, so far, no luck trying 
to change this style. As usual, any help would be appreciated.

Thanks,
-TH

 



RE: [flexcoders] ToolTip TextField TextColor

2008-07-01 Thread Gordon Smith
It sounds like all you need is ToolTip styling, not ToolTip skinning.
Did you try

 

mx:Style

ToolTip { borderColor: blue; backgroundColor: yellow; color: red }

/mx:Style

 

?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Tuesday, July 01, 2008 2:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ToolTip TextField TextColor

 

Hi all,

I've run into a problem with globally skinning ToolTips. I am to skin 
the border and background by using a programmatic borderSkin. However, 
the textField in ToolTip.as is protected and I'm not sure how to change 
it's style globally (tried TextField CSS). I'm just looking for a way 
to change the text color for all tool tips. If there's a way to apply 
a textFormat through CSS, that might work. But, so far, no luck trying 
to change this style. As usual, any help would be appreciated.

Thanks,
-TH

 



[flexcoders] Re: How to load an image using mx:Loader

2008-07-01 Thread pankajtandon2003
OK.. that explains why I do not see mx:Loader usage anywhere.

Is there an example of mx:Image that someone can share?

Thanks!

Pankaj
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 People generally use mx:Image to load jpgs.  Once loaded, and assuming
 you have domain permissions, you can manipulate the bitmap by accessing
 the mx:Image's content property from AS3
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of pankajtandon2003
 Sent: Tuesday, July 01, 2008 5:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to load an image using mx:Loader
 
  
 
 Hello folks,
 I'm a newbie in flex-world!
 I need to load a Bitmap (.jpg) file using Flex3.
 Now I've read a bunch of code that describes how to do this using
 ActionScript 3. But I'm not very sure how Flex 3 and AS3 interact.
 I've got the Flex 3 Builder Eclipse Plugin and I was hoping I could
 find an example of loading an image using the mx:Loader tag. But
 strangely I do not see many posts on this forum for this. Could it be
 that this is the wrong way to load an image using Flex?
 
 So, specifically, can someone:
 1. Provide me with an example of using mx:Loader to load a .jpg file.
 2. Show me a simple example of how Flex3 tags and AS3 interact. For
 example, if I wanted to build all UI components using Flex, but do all
 Image manipulation using AS3.
 
 Thanks in advance!
 
 Pankaj





[flexcoders] Strange problem with Flex-Builder

2008-07-01 Thread John Hauf
Hi All,

i found a strange behavior in Flex-Builder (plugin) on OSX 10.4.11 when 
using the Go to Definition or hyperlink navigation feature.

When I open a file  from flex navigator the file opens in the editor. 
When I then put the cursor on a variable that has its definition in the 
same file and I choose Go to Definition from the context menu or press 
F3, the same file opens in a second tab in eclipse and the definition 
of my variable is highlighted.

When I close this second tab, Go to definition won't work anymore 
until I close the file and reopen it. The strange thing is, that when I 
keep the second tab open and close the first, Flex Builder now exactly 
does what I want: Go to the definition of the variable in the same tab.

Does anybody have the same problem or is there a solution for this issue?

Thanks in advance,
John




[flexcoders] Problem with selectedIndex on dynamically populated combobox (Cairngorm)

2008-07-01 Thread stephenbeattie_ymail
Hello all,

I've stumbled across an issue when building an application using
Cairngorm that I hope someone can help with.

The relevant part of the application is a component wrapping a
datagrid with paging/search controls.  I am having an issue
specifically with the 'jump to page' combobox.

I'm using databinding to assign the dataProvider for the combobox from
a public property on my Cairngorm ModelLocator but the problem is that
while the options for the combobox are getting populated correctly,
the selectedIndex (bound to another property of my ModelLocator) isn't
getting set.

My combobox code:

mx:ComboBox id=pageMenu_cb
dataProvider={getPageMenuOptions(this.recordSetVO)}   
change=onPageMenuChange();
selectedIndex={getPageMenuIndex(this.recordSetVO)}
enabled={getPageMenuEnabled(this.recordSetVO)} /

* recordSetVO is a reference to the ModelLocator property.

The functions used in the databinding individually all return what's
expected.  I suspect that in databinding both the dataProvider AND the
selectedIndex Flex is tripping up somehow.  Maybe there's another way
to achieve what I need - the current page to show as selected based on
the data returned (with a list of page numbers populating the combobox).

Has anyone else encountered such a problem and/or can recommend a fix ?

Thanks in advance.

Stephen




[flexcoders] Sizing Components Inside Custom UIComponents

2008-07-01 Thread krakowskyb
I'm pretty new to Flex.  I've created some custom components by
extending UIComponent.  I've implemented createChildren,
commitProperties, measure, and updateDisplayList.  I can resize the
custom UIComponents using any number of methods:
constraints, CSS, etc.  They resize no problem.  But if I try to size
a child of that custom component, no width or height is assigned,
unless I use an explicit setActualSize.

For example:
My custom component (Content) has been added to a canvas.  The
component is sized using width and height properties:

var content:Content = new Content;
content.width = 800;
content.height = 800;
addChild(content);

In content, in createChildren, I create an instance of the Image
component.

var container:Image = new Image;
container.scaleContent = false;
addChild(container);

I try to do this:
container.percentWidth = 100;
container.percentHeight = 100;

But nothing.

I can only seem to resize this inside updateDisplayList like so:
container.setActualSize(unscaledWidth, unscaledHeight);

Thanks,
Brandon




Re: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-01 Thread Patrick Driggett
Have you cleared your cache?  Happens to me all the time if I don't.

On Tue, Jul 1, 2008 at 2:05 PM, Dan Pride [EMAIL PROTECTED] wrote:
 I have an application which will not compile, delivers no error code and
 simply gives me the last good app with no explanation whatsoever???

 Who designed this thing and what were they thinking?

 Clean app does nothing.

 No error code

 No way to get an error code.

 What does one do???

 I can develop fine, but when I go to export a release and send it up the the
 net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I NEVER DID
 ANYTHING.

 AGAIN NO WARNING
 G

 


Re: [flexcoders] Remove Button´s Border

2008-07-01 Thread Fernando Ghisi
Making it the same color as the background doesn´t seem to be the best
choice - it will cause a coupling between the button´s border and the
background. I will try the second thing, but it should be a simple way
for doing this.



2008/7/1 Alex Harui [EMAIL PROTECTED]:
 You could make it the same color as the background by changing borderColor,
 unless you have a gradient background.  Otherwise, you'll probably have to
 skin it.  You could try swapping in LinkButton skins



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Fernando Ghisi
 Sent: Tuesday, July 01, 2008 5:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Remove Button´s Border



 Anybody knows how can I do a simple thing like remove a button's
 border? I just can't do this - there are no styles for it (like
 borderStyle, or borderAlpha).

 Thanks

 --
 Fernando Ghisi

 



-- 
Fernando Benedet Ghisi


RE: [flexcoders] RadioButtons appear as normal buttons -- WTF?

2008-07-01 Thread Eric Fickes
Do they appear as buttons in design view or the published movie?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Glasser
Sent: Tuesday, July 01, 2008 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RadioButtons appear as normal buttons -- WTF?



This is driving me nuts. I'm using two RadioButtons in a
RadioButtonGroup, and they appear as two normal buttons. There is no CSS
styling in effect. I'm not setting any properties other than label,
group and labelPlacement and selected. Does anyone know what is going on
here?


 


[flexcoders] Flex app only works on Windows?

2008-07-01 Thread jason_beloncik
Hi all, I built a Flex app which works fine on Windows machines, but
on Macs and Linux it won't load. It shows the little loading box
with the progress bar, then just goes to a blank screen. I originally
thought there was some issue with the html wrapper or maybe the
javascript but even when going directly to the .swf file, I see the
exact same behaviour.

I have searched all over but can't find anything that makes sense! 

Here is my app: www.wordrampage.com

Thanks!
JB



[flexcoders] Issues panning a swf loaded via SWFLoader

2008-07-01 Thread Ian McLean
I'm loading a swf into a SWFLoader (earth-shattering, I know). The swf 
document size itself is set 2800x960, but there is an additional element 
beneath this in the pasteboard (what was the flash 8 workarea)  that 
is about 500px in length. I need to be able to pan down to this element. 
If make a call to set the y value of the SWFLoader to -500 (to pan 
downward) the area above it hovers above my flex components instead of 
going underneath.

I went  a step further and wrapped the swfLoader in a Canvas object. 
Setting the y value to -500 on the MXML object did just what I wanted 
to. I then began setting this dynamically, which produces the same 
results as before. I also tried to run validateDisplayList() hoping it 
would fix things but to no avail.

Any suggestions would be greatly appreciated :)


[flexcoders] Flex Builder Eclipse Builder Syntax Checking

2008-07-01 Thread steve.baney
Greetings all!

This is my first post up here, as I've been able to solve all of my
previous problems by searching, but I've spent the last 7 hours
banging my head against a wall and can't find any help anywhere.

Here's the issue:

I'm working on a Postgres/Java Servlet/Flex web app using Eclipse
3.3.2 and the Flex Builder 3.0.1... Plugin.  Worked fine until
yesterday, when Eclipse stopped recognizing errors in my Flex and
Actionscript syntax.  Missing semicolons, arbitrary gibberish, and a
myriad of other errors slide right by and don't show up until I run my
ant build and it crashes.  Syntax checking still works fine in all of
my Java code, so it seems to be localized in the Flex Builder.

I found one or two other posts in my searches (not in flexcoders, but
elsewhere) with no response or solution.  I tried downloading a fresh
eclipse 3.3.2 zip and unpacking it to a new directory and installing
Flex builder fresh, to no avail.  All of the filters for the Problems
are clear and it is set to check for Flex errors, as well as Build
Automatically.  The fresh install had no other plugins, so there
shouldn't be any conflict issues.  I also haven't made any changes to
my configuration (as far as I can remember.  there must be something
to cause such a mess).

If anyone has any advice please let me know, I'm willing to try
anything at this point.

Thank You!
Steve Baney



[flexcoders] updating the Flex tree without reassigning the data provider

2008-07-01 Thread Gautam Pulluri
Hi,

I am trying to build a web based JMX monitoring and management 
console using adobe FLEX on the client side. This is similar to the 
flex admin that comes with the LiveCycle installation.I have put 
snapshots of both flex admin and my tool in the link below.

http://picasaweb.google.com/goutham.pulluri/FlexPics

In these pictures you would see that there is a tree control in both 
applications. Now the data provider for the tree control in my 
application is an XML(see below) assigned using the HttpService. Now 
everytime something changes on the MBeanserver I want to update the 
tree. But simply reassigning the data provider would cause the tree 
to collapse. Is there a way I could dynamically update the nodes 
without reassiging the data provider?  Please let me know any 
solution you might think of. I was thinking that I may have to write 
my own control instead of using the tree control .. i dont know how 
to do it though. Any inputs are welcome.

 Also if anyone knows how the flex-admin is actually implemented 
please share that info with me ***

Thanks in advance
Goutham


?xml version=1.0 encoding=UTF-8?
centralmbeanserver
element label = FMC-DropCopies-QA canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA  
element label = Cache Manager canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache Manager  

element label = SACFixFilterRulesCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFixFilterRulesCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
68*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACFixFilterRules*Keys = [ExecTransType, OrdStatus]*RowCount = 
34 
/element
element label = SACFIXExecBrokerMapCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFIXExecBrokerMapCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
1562*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACFIXExecBrokerMap*Keys = [TradeSource, TSExecBroker]*RowCount = 
781 
/element
element label = SACFixIssueMapCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFixIssueMapCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
8506*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACFixIssueMap*Keys = [SourceIssueID]*RowCount = 8506 
/element
element label = SACFIXNEOVAcctFilterCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFIXNEOVAcctFilterCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
1*DBPoolName = FMCDBPoolSACFixFeed*DBStatementName = 
GetSACFIXNEOVAcctFilterCache*Keys = [Account]*RowCount = 1 
/element
element label = SACFixFutureDetailsCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFixFutureDetailsCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
8498*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACFixFutureDetails*Keys = [SourceIssueID]*RowCount = 8498 
/element
element label = SACAccountDetailCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACAccountDetailCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
236184*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACAccountDetail*Keys = [TradeSource, Account]*RowCount = 118092 

/element
element label = SACCommRateDefaultMapCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACCommRateDefaultMapCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
944*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACCommRateDefaultMap*Keys = [Broker, CommType]*RowCount = 472 
/element
element label = SACIssueCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACIssueCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
66568*DBPoolName = FMCDBPoolInterfaces*DBStatementName = 
GetSACIssue*Keys = [IssueID]*RowCount = 66568 
/element
element label = SACFMCConfigCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFMCConfigCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
196*DBPoolName = FMCDBPoolSACFixFeedDev*DBStatementName = 
GetSACFMCConfig*Keys = [SenderCompID, TargetCompID]*RowCount = 98 
/element
element label = SACFixTradeSourceConfigCache canonicalName 
= CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache 
Manager,DB Cache=SACFixTradeSourceConfigCache  operations 
= reloadDBCache:java.lang.String attributes = ValueCount = 
704*DBPoolName = FMCDBPoolSACTrades*DBStatementName = 
GetSACFixTradeSourceConfig*Keys = [TradeSource]*RowCount = 704 
/element
element label = FUTCommRateDefaultMapCache canonicalName 
= 

Re: [flexcoders] Embedding fonts

2008-07-01 Thread Jeri Lamy
A few.  I fought with this for a while so might be able to help...can
you just not get it to show up?  Can you post your code?

Jeri Lamy


On Tue, Jul 1, 2008 at 4:05 PM, Clint Tredway [EMAIL PROTECTED] wrote:
 I have tried using the documentation to embed a font into my flex app, but
 are there any gotcha's in doing this?


[flexcoders] Re: Flex app only works on Windows?

2008-07-01 Thread akhilbhaskar
works fine for me on a Mac.

OS 10.5
Safari 3.1.2



--- In flexcoders@yahoogroups.com, jason_beloncik [EMAIL PROTECTED] wrote:

 Hi all, I built a Flex app which works fine on Windows machines, but
 on Macs and Linux it won't load. It shows the little loading box
 with the progress bar, then just goes to a blank screen. I originally
 thought there was some issue with the html wrapper or maybe the
 javascript but even when going directly to the .swf file, I see the
 exact same behaviour.
 
 I have searched all over but can't find anything that makes sense! 
 
 Here is my app: www.wordrampage.com
 
 Thanks!
 JB






[flexcoders] Re: ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff

Yep,

color changed the text color, when I tried it in a new project.  It's
not working in my other application though.  So, I'm thinking that there
is an inherited color style somewhere.   I'll keep digging.

Thanks Gordon and Tracy,

-TH

--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 It sounds like all you need is ToolTip styling, not ToolTip skinning.
 Did you try



 mx:Style

 ToolTip { borderColor: blue; backgroundColor: yellow; color: red }

 /mx:Style



 ?



 Gordon Smith

 Adobe Flex SDK Team



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Tim Hoff
 Sent: Tuesday, July 01, 2008 2:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ToolTip TextField TextColor



 Hi all,

 I've run into a problem with globally skinning ToolTips. I am to skin
 the border and background by using a programmatic borderSkin. However,
 the textField in ToolTip.as is protected and I'm not sure how to
change
 it's style globally (tried TextField CSS). I'm just looking for a way
 to change the text color for all tool tips. If there's a way to apply
 a textFormat through CSS, that might work. But, so far, no luck trying
 to change this style. As usual, any help would be appreciated.

 Thanks,
 -TH






[flexcoders] Re: How to load an image using mx:Loader

2008-07-01 Thread pankajtandon2003
That was very useful...
Thanks!

--- In flexcoders@yahoogroups.com, Flex Frenzy [EMAIL PROTECTED] wrote:

 I'm not sure how much you know about Flex or Actionscript, so i  
 decided to just give some example code:
 
 
 !--THIS IS THE IMAGE PORTION--
 mx:Image id=myImage source=pic.jpg/
 
 !--AND THIS IS THE ACTIONSCRIPT EMBEDED IN THE MXML--
 mx:Script
   ![CDATA[
   private var desiredWidth:int = 300
   private function changeWidth():void
   {
   myImage.width = desiredWidth
   }
   ]]
 /mx:Script
 
 
 In the first portion the image is defined in the mxml, note I defined  
 and id property as well as source. I then use the id again in the  
 actionscript. I used it in a function so a button could trigger that  
 function and change the width of the image to 'desiredWidth' variable  
 at runtime.
 
 I hope this helps
 On Jul 1, 2008, at 10:13 AM, Alex Harui wrote:
 
 
  People generally use mx:Image to load jpgs.  Once loaded, and  
  assuming you have domain permissions, you can manipulate the bitmap  
  by accessing the mx:Image's content property from AS3
 
 
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
  On Behalf Of pankajtandon2003
  Sent: Tuesday, July 01, 2008 5:47 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How to load an image using mx:Loader
 
 
 
  Hello folks,
  I'm a newbie in flex-world!
  I need to load a Bitmap (.jpg) file using Flex3.
  Now I've read a bunch of code that describes how to do this using
  ActionScript 3. But I'm not very sure how Flex 3 and AS3 interact.
  I've got the Flex 3 Builder Eclipse Plugin and I was hoping I could
  find an example of loading an image using the mx:Loader tag. But
  strangely I do not see many posts on this forum for this. Could it be
  that this is the wrong way to load an image using Flex?
 
  So, specifically, can someone:
  1. Provide me with an example of using mx:Loader to load a .jpg  
  file.
  2. Show me a simple example of how Flex3 tags and AS3 interact. For
  example, if I wanted to build all UI components using Flex, but do all
  Image manipulation using AS3.
 
  Thanks in advance!
 
  Pankaj
 
 
 
 





[flexcoders] New Topic?

2008-07-01 Thread Brandon Krakowsky
I posted a new topic this morning but haven't seen it show up yet.  How does it 
get approved?

Thanks,
Brandon



  

RE: [flexcoders] blazeds spring security let assembler fetch data based on current user

2008-07-01 Thread Seth Hodgson
You can store user-specific data in the server-side FlexSession or FlexClient 
instances that you can access via the FlexContext class.
A FlexSession represents the connection between a client and server, and in the 
case of servlet-based HTTP, wraps the app server's HttpSession. One thing that 
can trip people up is that a cookie-based browser session is scoped to the 
browser process, meaning all tabs/frames/etc. share the same session. The 
FlexClient instance on the server represents a specific Flex application (a 
swf). Both provide APIs for storing and getting attributes and you can access 
them from within your assembler.
 
Login commands return a Principal as a result of successful authentication, and 
this is stored in either the FlexSession or FlexClient depending on how you 
want to scope your authentication. The default is to store it with the 
FlexSession, but this can be controlled using the per-client-authentication/ 
config setting for your login command in services-config.xml.
 
Seth



From: flexcoders@yahoogroups.com on behalf of cartewn
Sent: Tue 7/1/2008 4:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] blazeds  spring security let assembler fetch data based 
on current user



Hi,

I'm currently learning flex by trying to build an application with
flex, blazeds and Spring. My application lets users log on using
spring security (which I will probably combine with
AcegiLogonCommand). I would like my assemblers to return different
data based on which user is currently logged on (for instance to show
that specific user's to-do list). To do this, I added a userId
property to my spring security principals (by subclassing
org.springframework.security.userdetails.User)
and added user_id columns to user-specific data in the database. Now
I would like to know how I can get the currently logged on user in my
assembler so I can use its userId to fetch the user's data.

Is the assembler the right place to decide which data to send to my
flex application? If so, can anyone tell me how to determine which
user is currently logged on in my assembler? If not, what would be the
recommended way of dealing with user-specific data in my database in
combination with blazeds?

The only examples I have been able to find on the Internet so far only
use different roles to determine what a user is or is not allowed to
do, I have yet to find any examples where users store and retrieve
user-specific data.

Kind regards,

Jeroen



 
winmail.dat

Re: [flexcoders] Embedding fonts

2008-07-01 Thread Clint Tredway
I figured it out.. it was a 'duh' moment but its working now.

On Tue, Jul 1, 2008 at 4:19 PM, Jeri Lamy [EMAIL PROTECTED] wrote:

   A few. I fought with this for a while so might be able to help...can
 you just not get it to show up? Can you post your code?

 Jeri Lamy


 On Tue, Jul 1, 2008 at 4:05 PM, Clint Tredway [EMAIL 
 PROTECTED]grumpee%40gmail.com
 wrote:
  I have tried using the documentation to embed a font into my flex app,
 but
  are there any gotcha's in doing this?
  




-- 
When you choose hope, anything is possible.
-Christopher Reeve


RE: [flexcoders] Sizing Components Inside Custom UIComponents

2008-07-01 Thread Alex Harui
Parents size their children in Flex.  You have to call setActualSize on
your children.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of krakowskyb
Sent: Tuesday, July 01, 2008 7:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sizing Components Inside Custom UIComponents

 

I'm pretty new to Flex. I've created some custom components by
extending UIComponent. I've implemented createChildren,
commitProperties, measure, and updateDisplayList. I can resize the
custom UIComponents using any number of methods:
constraints, CSS, etc. They resize no problem. But if I try to size
a child of that custom component, no width or height is assigned,
unless I use an explicit setActualSize.

For example:
My custom component (Content) has been added to a canvas. The
component is sized using width and height properties:

var content:Content = new Content;
content.width = 800;
content.height = 800;
addChild(content);

In content, in createChildren, I create an instance of the Image
component.

var container:Image = new Image;
container.scaleContent = false;
addChild(container);

I try to do this:
container.percentWidth = 100;
container.percentHeight = 100;

But nothing.

I can only seem to resize this inside updateDisplayList like so:
container.setActualSize(unscaledWidth, unscaledHeight);

Thanks,
Brandon



 



RE: [flexcoders] Re: Hittest for polygon UI Component

2008-07-01 Thread Alex Harui
Show some code.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of richmcgillicuddy
Sent: Tuesday, July 01, 2008 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Hittest for polygon UI Component

 

Could be the containers I am using but that is not what I am seeing.

Rich

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 The area drawn inside a UIComponent doesn't have to be rectangular, we
 just track everything by its bounding box.
 
 
 
 If you drew a circle in there, it would only get mouse events on the
 pixels in the circle, anything below would get the events in the
 non-drawn area.
 
 
 
 However, there is a hitTestPoint method.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of richmcgillicuddy
 Sent: Monday, June 30, 2008 7:20 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Hittest for polygon UI Component
 
 
 
 I have a series of objects that extend a UI Component and I correctly
 draw a list of polypoints in the UIcomponent. I use the UIComponent
 for the tooltips, mouse events and some other stuff. My probably is
 that ultimately UIComponent is a rectangle. is there a different base
 component I should use or is there a way for me to do a hittest on
 mouse events to say whether the mouse is in/out of the component?
 
 Rich


 



Re: [flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-01 Thread Josh McDonald
I'm not getting an exception, tried in 2.0.1HF1 and HF3. I'm not getting any
change on screen though.

On Tue, Jul 1, 2008 at 11:08 PM, valdhor [EMAIL PROTECTED] wrote:

 I don't use Flex 2.0.1 (I use Flex 3).

 I ran your app in Flex 3 and it works fine  - ie. no exception is thrown.

 Could this be a bug in Flex 2.0.1?


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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] New Topic?

2008-07-01 Thread Josh McDonald
You probably won't receive your original message back in the list, just
replies. It usually just means there's no replies yet, and you can always
check the list's web interface.

IIRC, only the first N posts of any user go into the moderation queue.

-Josh

On Wed, Jul 2, 2008 at 9:10 AM, Brandon Krakowsky [EMAIL PROTECTED]
wrote:

  I posted a new topic this morning but haven't seen it show up yet.  How
 does it get approved?

 Thanks,
 Brandon

 




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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] New Topic?

2008-07-01 Thread Paul Andrews
If you mean: Sizing Components Inside Custom UIComponents

It's already appeared on the list.

Paul
  - Original Message - 
  From: Brandon Krakowsky 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, July 02, 2008 12:10 AM
  Subject: [flexcoders] New Topic?


  I posted a new topic this morning but haven't seen it show up yet.  How does 
it get approved?

  Thanks,
  Brandon


   

RE: [flexcoders] How to load an image using mx:Loader

2008-07-01 Thread Rick Winscot
Flex is an application framework built on the Flash foundation -
ActionScript is a common dialect.

 

http://www.pierocampanelli.info/technology/2008/01/20/a-sketch-of-adobe-flex
-architecture-capabilities/

 

1 . Loaders are driven programmatically - although you can include
references in MXML.

 

mx:Script

  ![CDATA[



  private function activateLoader():void

  {

myUrlLoader.load( myUrlRequest );

  }

 

  ]]

/mx:Script

 

  net:URLRequest id=myUrlRequest url=image.jpg/

  net:URLLoader id=myUrlLoader/

 

2 . See above.

 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pankajtandon2003
Sent: Tuesday, July 01, 2008 8:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to load an image using mx:Loader

 

Hello folks,
I'm a newbie in flex-world!
I need to load a Bitmap (.jpg) file using Flex3.
Now I've read a bunch of code that describes how to do this using
ActionScript 3. But I'm not very sure how Flex 3 and AS3 interact.
I've got the Flex 3 Builder Eclipse Plugin and I was hoping I could
find an example of loading an image using the mx:Loader tag. But
strangely I do not see many posts on this forum for this. Could it be
that this is the wrong way to load an image using Flex?

So, specifically, can someone:
1. Provide me with an example of using mx:Loader to load a .jpg file.
2. Show me a simple example of how Flex3 tags and AS3 interact. For
example, if I wanted to build all UI components using Flex, but do all
Image manipulation using AS3.

Thanks in advance!

Pankaj

 



Re: [flexcoders] Sizing Components Inside Custom UIComponents

2008-07-01 Thread Josh McDonald
Which you need to do from updateDisplayList() :)

Also, keep in mind that if you set width and height on a child component
directly rather than calling setActualSize(), that child component will no
longer measure() and you'll only be able to get the dimensions you assigned
to it rather than the dimensions it thinks it needs to be.

-Josh

On Wed, Jul 2, 2008 at 9:39 AM, Alex Harui [EMAIL PROTECTED] wrote:

  Parents size their children in Flex.  You have to call setActualSize on
 your children.


 ,___




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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread Rick Winscot
Josh - I second Jeff's comment and have to apologize if my response was
sour. What I was trying to say is that, given your example, I would think
that the path was clear for the poster to 'have at it.' It isn't necessary
to understand (to perfection) how binding works to use it. or to begin
experimenting with behavior/performance to find a best practice. Is there a
definitive/single way to implement binding? No. Can one implementation
perform better than another? Of course! Where should the original poster
begin their search for ultimate truth? Your suggestion is worthy of a
cut-and-paste starting point - and as you say. the deeper understanding will
happen with time and perhaps after you bleed at the keyboard for hours on
end.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of securenetfreedom
Sent: Tuesday, July 01, 2008 4:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best Practice Data Binding

 

Josh,

That's one of the better explanations I've seen on the subject. It
fills the blanks left by
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.html.

Thanks for the contribution.

And BTW, the keyboard is a bad place to be while consuming adult
beverages, partaking in a controlled substance, or after finishing a
fight... it leaves a pretty ugly permanent mark on the post. ;)

Jeff

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Josh McDonald [EMAIL PROTECTED] wrote:

 Honestly, fucked if I know how I picked all this stuff up - it's
just what I
 do. But if my explanation left something out, that's my fault for
giving a
 shitty explanation. Tell me in detail what you're still confused
about, and
 I'll try and explain it :)
 
 -Josh
 
 On Tue, Jul 1, 2008 at 11:14 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:
 
  When working in mxml you can use the -keep-generated-actionscript
  compiler option. and in the 'generated' directory you will find a
wealth of
  information!
 
 
 
  In short - the answer you seek is before you! Finding the
'solution' is
  another story.
 
 
 
  Rick Winscot
 
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]


 



Re: [flexcoders] Sizing Components Inside Custom UIComponents

2008-07-01 Thread Brandon Krakowsky
Thanks.  Looks like I'm doing it correctly.  I'm sure I'll be back!

Brandon


- Original Message 
From: Josh McDonald [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 1, 2008 8:02:16 PM
Subject: Re: [flexcoders] Sizing Components Inside Custom UIComponents


Which you need to do from updateDisplayList( ) :)

Also, keep in mind that if you set width and height on a child component 
directly rather than calling setActualSize( ), that child component will no 
longer measure() and you'll only be able to get the dimensions you assigned to 
it rather than the dimensions it thinks it needs to be. 

-Josh


On Wed, Jul 2, 2008 at 9:39 AM, Alex Harui [EMAIL PROTECTED] com wrote:

Parents size their children in Flex.  You
have to call setActualSize on your children.
 
,___ 


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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] com 


  

Re: [flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread Josh McDonald
Heh :)

I don't think there was anything at all wrong with your response mate,
although the generated directory can be a scary place, there's a *lot* of
actionscript classes that go into making a Flex swf do its thing.

I do apologise if I come off as a jerk, but I can't apologise for the
occasional curse word. I'm one of those types who don't really believe in
freedom from being offended. I didn't punch anybody's mum, or sleep with
their sister or anything ;-)

-Josh

On Wed, Jul 2, 2008 at 10:21 AM, Rick Winscot [EMAIL PROTECTED]
wrote:

  Josh – I second Jeff's comment and have to apologize if my response was
 sour. What I was trying to say is that, given your example, I would think
 that the path was clear for the poster to 'have at it.' It isn't necessary
 to understand (to perfection) how binding works to use it… or to begin
 experimenting with behavior/performance to find a best practice. Is there a
 definitive/single way to implement binding? No. Can one implementation
 perform better than another? Of course! Where should the original poster
 begin their search for ultimate truth? Your suggestion is worthy of a
 cut-and-paste starting point – and as you say… the deeper understanding will
 happen with time and perhaps after you bleed at the keyboard for hours on
 end.



 Rick Winscot





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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


  1   2   >