[flexcoders] Repeater giving bogus Binding warnings?

2008-10-20 Thread Josh McDonald
Hey Guys, I'm getting binding warnings that don't make any sense. Here's my
repeater code:

mx:Repeater id=remittanceRepeater dataProvider={
selectedPayment.remittanceFiles }

mx:HBox verticalAlign=middle
mx:TextInput width=140 text={
remittanceRepeater.currentItem.remittanceFile }/
mx:Button styleName=removeRow label=- width=24 height=24
data={remittanceRepeater.currentItem} click=removeRemittance(event)/
/mx:HBox

/mx:Repeater

I'm getting the following warning for every row in
selectedPayment.remittanceFiles:

warning: unable to bind to property 'remittanceFile' on class
'fundsmanagement.business.model::RemittanceFileListEntry'

But RemittanceFileListEntry.as is bindable:

public class RemittanceFileListEntry extends EventDispatcher
{
[Bindable]
public var remittanceFile : String;
}

If there a way to kill this bogus warning?

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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
You have to embed the font with all typeface styles you need. If for example
you need the plain, bold and bold-italic typefaces, then you have to embed
the font three times with the different typeface properties:
@font-face {  src: local(Arial);
  fontFamily: myFontFamily;
  advancedAntiAliasing: true;
}

@font-face {  src: local(Arial);
  fontFamily: myFontFamily;
  fontWeight: bold;
  advancedAntiAliasing: true;
}

@font-face {  src: local(Arial);
  fontFamily: myFontFamily;
  fontWeight: bold;
  fontStyle: italic;
  advancedAntiAliasing: true;
}



On Mon, Oct 20, 2008 at 7:50 AM, akila_ksri [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 akila_ksri akila_ksri@ wrote:
  
   Hi,
  
   I need to apply horizontal scaling for a text with 'Arial' font.
   lbl.scaleX = 0.70 simply does not work . I can only see that there is
  a
   change in the width of the label.
  
   Is there anything i am missing out to scale the text?? Is scaling not
   applicable for system fonts? ( I tried the same with font 'Verdana',
   but again, no luck!)
  
   Any help would be greatly appreciated.
 
  Try one of the following:
 
  1) Set the blendMode to layer
  2) Set the container's cacheAsBitmap to true
  3) Embed the font
 
  HTH;
 
  Amy
 
 Hi Amy,

 Thanks for your response. I tried what you suggested, embedding the
 font and then applying scaleX to the text.
 This works fine if the font is just 'Arial'. It does not work if i
 make the text bold/italic. It is necessary for the font to be bold and
 in italics. I cant get it to work:(

 akila

  




-- 
Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com


Re: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer

2008-10-20 Thread claudiu ursica
Can you provide a larger code snippet? Try listen to the event on the stage 
maybe taht will help.

Cheers, 
Claudiu.





- Original Message 
From: Sébastien Tromp [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, October 18, 2008 1:18:39 PM
Subject: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer


Hello,

I am stuck with an issue whose solution I cannot find on the Internet.

I have an application with a DataGrid:

mx:DataGrid id=currentConstruc tions
mx:columns
mx:DataGridColumn dataField=building Type/
mx:DataGridColumn dataField=endDate id=remainingTime 
itemRenderer= org.feilun. renderer. CountDownRendere r /
/mx:columns
/mx:DataGrid

where CountDownRenderer is a custom ItemRenderer that can dispatch a 
TimerEvent.TIMER_ COMPLETE event.

I would like to listen in my main application (where the DataGrid is 
defined) to this TIMER_COMPLETE event, but I have not managed to do it.

I have tried things like:
currentConstruction s.addEventListen er(TimerEvent. TIMER_COMPLETE, 
handleTimerComplete );
or
remainingTime. addEventListener (TimerEvent. TIMER_COMPLETE, 
handleTimerComplete );

but in neither case is the event caught.

Do you have any idea on how this could be achieved?

Thanks a lot,
Sébastien



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

[flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread lysfael
Hello,

Sorry for the absence,

These datas are an example of the datas that i get from my HttpService.

lg ID=F0010_T0056-0
c ID=F0010_48-0OUV/c
c ID=F0010_49-0/c
c ID=F0010_50-05/c
/lg
lg ID=F0010_T0056-1
c ID=F0010_48-1ETA/c
c ID=F0010_49-1/c
c ID=F0010_50-15/c
/lg

These datas should match the repeater F0010_T0056 which contains the
following components :
TextInput Id = F0010_48
Label Id = F0010_49
TextInput Id = F0010_50.

In the other post Tom Chiverton told me this 

You could use a setter method (i.e. public function set
myDatas(d:*):void{}). If you need more control over what happens, or a
changeWatcher inside the component observing the public bindable.

Like you said i think i'm making it harder than what it needs to be.
I'll think a bit for a much more simple solution and keep you posted.
I think to do something like Tom said.




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

 Yes, I still think Lysfael may be approaching this incorrectly, probably
 making it harder than it needs to be.  There is rarely a good reason to
 use the document model hierarchy to manipulate data driven components.
 
  
 
 Lysfael, can you explain again what you are trying to do?
 
  
 
 What data is the dataProvider for the repeater?
 
  
 
 Is that data different from the data you are trying to show in the
 repeated controls?
 
  
 
 Tracy 
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Amy
 Sent: Thursday, October 16, 2008 5:51 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Repeater control and custom Component
 
  
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , lysfael schwazel@ wrote:
 
  Hello,
  
  Since it's not the same problem as the old one, i post a new topic on
  this, i hope this way to do enter in the ToS.
  
  I created a component Box-Based, which contains a repeater and some
  other attributes.
  
  Since my english isn't perfect i'll post part of the code i produced
  and tell you what's the problem now.
 
 There is no point using a repeater from AS. This is one component that 
 you should use in MXML if you want to use it.





[flexcoders] file upload with rpc

2008-10-20 Thread Deniz Davutoglu
Hi guys,
does any one tried to upload file using rpc?
I wonder how can I post files using rpc...
thanks.
Deniz



[flexcoders] Still no one knows ? Please help.

2008-10-20 Thread itdanny2002
Does anyone knows how to change the 
color of bullet (radio) or checkmark
in menu box ? Always black.





[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED]
wrote:

 You have to embed the font with all typeface styles you need. If for
example
 you need the plain, bold and bold-italic typefaces, then you have to
embed
 the font three times with the different typeface properties:
 @font-face {  src: local(Arial);
   fontFamily: myFontFamily;
   advancedAntiAliasing: true;
 }
 
 @font-face {  src: local(Arial);
   fontFamily: myFontFamily;
   fontWeight: bold;
   advancedAntiAliasing: true;
 }
 
 @font-face {  src: local(Arial);
   fontFamily: myFontFamily;
   fontWeight: bold;
   fontStyle: italic;
   advancedAntiAliasing: true;
 }
 
 
 
 On Mon, Oct 20, 2008 at 7:50 AM, akila_ksri [EMAIL PROTECTED] wrote:
 
--- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com, Amy
  amyblankenship@ wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  akila_ksri akila_ksri@ wrote:
   
Hi,
   
I need to apply horizontal scaling for a text with 'Arial' font.
lbl.scaleX = 0.70 simply does not work . I can only see that
there is
   a
change in the width of the label.
   
Is there anything i am missing out to scale the text?? Is
scaling not
applicable for system fonts? ( I tried the same with font
'Verdana',
but again, no luck!)
   
Any help would be greatly appreciated.
  
   Try one of the following:
  
   1) Set the blendMode to layer
   2) Set the container's cacheAsBitmap to true
   3) Embed the font
  
   HTH;
  
   Amy
  
  Hi Amy,
 
  Thanks for your response. I tried what you suggested, embedding the
  font and then applying scaleX to the text.
  This works fine if the font is just 'Arial'. It does not work if i
  make the text bold/italic. It is necessary for the font to be bold and
  in italics. I cant get it to work:(
 
  akila
 
   
 
 
 
 
 -- 
 Haykel Ben Jemia
 
 Allmas
 Web  RIA Development
 http://www.allmas-tn.com

Hi Haykel,

I tried this one too, it still doesnt work..
It looks like i just cant scale text which is bold and italisized!




Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
It works for me. Here an example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
mx:Style
@font-face {
src: local(Arial);
fontFamily: myFontFamily;
advancedAntiAliasing: true;
}
@font-face {
src: local(Arial);
fontFamily: myFontFamily;
fontWeight: bold;
advancedAntiAliasing: true;
}

@font-face {
src: local(Arial);
fontFamily: myFontFamily;
fontWeight: bold;
fontStyle: italic;
advancedAntiAliasing: true;
}
/mx:Style

mx:Label text=Sample Text fontSize=32 /
mx:Label text=Sample Text fontSize=32 fontFamily=myFontFamily
scaleX=0.7/
mx:Label text=Sample Text fontSize=32 fontFamily=myFontFamily
fontWeight=bold fontStyle=italic/
mx:Label text=Sample Text fontSize=32 fontFamily=myFontFamily
fontWeight=bold fontStyle=italic scaleX=0.7/
/mx:Application



On Mon, Oct 20, 2008 at 10:39 AM, akila_ksri [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Haykel BEN JEMIA [EMAIL PROTECTED]
 wrote:

 
  You have to embed the font with all typeface styles you need. If for
 example
  you need the plain, bold and bold-italic typefaces, then you have to
 embed
  the font three times with the different typeface properties:
  @font-face { src: local(Arial);
  fontFamily: myFontFamily;
  advancedAntiAliasing: true;
  }
 
  @font-face { src: local(Arial);
  fontFamily: myFontFamily;
  fontWeight: bold;
  advancedAntiAliasing: true;
  }
 
  @font-face { src: local(Arial);
  fontFamily: myFontFamily;
  fontWeight: bold;
  fontStyle: italic;
  advancedAntiAliasing: true;
  }
 
 
 
  On Mon, Oct 20, 2008 at 7:50 AM, akila_ksri [EMAIL PROTECTED] wrote:
 
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.com, Amy
   amyblankenship@ wrote:
   
--- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,

   akila_ksri akila_ksri@ wrote:

 Hi,

 I need to apply horizontal scaling for a text with 'Arial' font.
 lbl.scaleX = 0.70 simply does not work . I can only see that
 there is
a
 change in the width of the label.

 Is there anything i am missing out to scale the text?? Is
 scaling not
 applicable for system fonts? ( I tried the same with font
 'Verdana',
 but again, no luck!)

 Any help would be greatly appreciated.
   
Try one of the following:
   
1) Set the blendMode to layer
2) Set the container's cacheAsBitmap to true
3) Embed the font
   
HTH;
   
Amy
   
   Hi Amy,
  
   Thanks for your response. I tried what you suggested, embedding the
   font and then applying scaleX to the text.
   This works fine if the font is just 'Arial'. It does not work if i
   make the text bold/italic. It is necessary for the font to be bold and
   in italics. I cant get it to work:(
  
   akila
  
  
  
 
 
 
  --
  Haykel Ben Jemia
 
  Allmas
  Web  RIA Development
  http://www.allmas-tn.com
 
 Hi Haykel,

 I tried this one too, it still doesnt work..
 It looks like i just cant scale text which is bold and italisized!

  




-- 
Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com


Re: [flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread Ralf Bokelberg
I'm not sure if you can subclass mx:Repeater. What are you trying to
do with your repeater subclass?

Ralf.

On Mon, Oct 20, 2008 at 12:16 PM, lysfael [EMAIL PROTECTED] wrote:
 Re,

 I made a component based on the repeater, to have the control on the
 datas.

 and i use it like i should use a repeater.

 i have an error on the compil.

 Symbol
 '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
 multiply defined in
 _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
 and
 C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
 IG_ModuleCore

 i use the component like this

 comp:Prep id=F0010_T0056 specialDatas={datas as XML}
 mx:Button id=F0010_B0031 width=100%/
 /comp:Prep

 where the setter specialDatas format the datas and set
 this.dataProvider with the correct datas.

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

 Hello,

 Sorry for the absence,

 These datas are an example of the datas that i get from my HttpService.

 lg ID=F0010_T0056-0
 c ID=F0010_48-0OUV/c
 c ID=F0010_49-0/c
 c ID=F0010_50-05/c
 /lg
 lg ID=F0010_T0056-1
 c ID=F0010_48-1ETA/c
 c ID=F0010_49-1/c
 c ID=F0010_50-15/c
 /lg

 These datas should match the repeater F0010_T0056 which contains the
 following components :
 TextInput Id = F0010_48
 Label Id = F0010_49
 TextInput Id = F0010_50.

 In the other post Tom Chiverton told me this

 You could use a setter method (i.e. public function set
 myDatas(d:*):void{}). If you need more control over what happens, or a
 changeWatcher inside the component observing the public bindable.

 Like you said i think i'm making it harder than what it needs to be.
 I'll think a bit for a much more simple solution and keep you posted.
 I think to do something like Tom said.




 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Yes, I still think Lysfael may be approaching this incorrectly,
 probably
  making it harder than it needs to be. There is rarely a good
 reason to
  use the document model hierarchy to manipulate data driven components.
 
 
 
  Lysfael, can you explain again what you are trying to do?
 
 
 
  What data is the dataProvider for the repeater?
 
 
 
  Is that data different from the data you are trying to show in the
  repeated controls?
 
 
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Amy
  Sent: Thursday, October 16, 2008 5:51 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Repeater control and custom Component
 
 
 
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , lysfael schwazel@ wrote:
  
   Hello,
  
   Since it's not the same problem as the old one, i post a new
 topic on
   this, i hope this way to do enter in the ToS.
  
   I created a component Box-Based, which contains a repeater and some
   other attributes.
  
   Since my english isn't perfect i'll post part of the code i produced
   and tell you what's the problem now.
 
  There is no point using a repeater from AS. This is one component
 that
  you should use in MXML if you want to use it.
 


 


[flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread lysfael
Re,

I made a component based on the repeater, to have the control on the
datas.

and i use it like i should use a repeater.

i have an error on the compil.

Symbol
'_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
multiply defined in
_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
and
C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
IG_ModuleCore

i use the component like this

comp:Prep id=F0010_T0056 specialDatas={datas as XML}
mx:Button id=F0010_B0031 width=100%/
/comp:Prep

where the setter specialDatas format the datas and set
this.dataProvider with the correct datas.




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

 Hello,
 
 Sorry for the absence,
 
 These datas are an example of the datas that i get from my HttpService.
 
 lg ID=F0010_T0056-0
   c ID=F0010_48-0OUV/c
   c ID=F0010_49-0/c
   c ID=F0010_50-05/c
 /lg
 lg ID=F0010_T0056-1
   c ID=F0010_48-1ETA/c
   c ID=F0010_49-1/c
   c ID=F0010_50-15/c
 /lg
 
 These datas should match the repeater F0010_T0056 which contains the
 following components :
 TextInput Id = F0010_48
 Label Id = F0010_49
 TextInput Id = F0010_50.
 
 In the other post Tom Chiverton told me this 
 
 You could use a setter method (i.e. public function set
 myDatas(d:*):void{}). If you need more control over what happens, or a
 changeWatcher inside the component observing the public bindable.
 
 Like you said i think i'm making it harder than what it needs to be.
 I'll think a bit for a much more simple solution and keep you posted.
 I think to do something like Tom said.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Yes, I still think Lysfael may be approaching this incorrectly,
probably
  making it harder than it needs to be.  There is rarely a good
reason to
  use the document model hierarchy to manipulate data driven components.
  
   
  
  Lysfael, can you explain again what you are trying to do?
  
   
  
  What data is the dataProvider for the repeater?
  
   
  
  Is that data different from the data you are trying to show in the
  repeated controls?
  
   
  
  Tracy 
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Amy
  Sent: Thursday, October 16, 2008 5:51 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Repeater control and custom Component
  
   
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , lysfael schwazel@ wrote:
  
   Hello,
   
   Since it's not the same problem as the old one, i post a new
topic on
   this, i hope this way to do enter in the ToS.
   
   I created a component Box-Based, which contains a repeater and some
   other attributes.
   
   Since my english isn't perfect i'll post part of the code i produced
   and tell you what's the problem now.
  
  There is no point using a repeater from AS. This is one component
that 
  you should use in MXML if you want to use it.
 





Re: [flexcoders] Still no one knows ? Please help.

2008-10-20 Thread Michael Schmalle
I answered;
Which style name control the color

No need to post twice, it was the weekend. :)

PS The title of this thread could have be a bit more descriptive since there
are hundreds of posts a day.

Mike

On Mon, Oct 20, 2008 at 4:14 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Does anyone knows how to change the
 color of bullet (radio) or checkmark
 in menu box ? Always black.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Which style name control the color

2008-10-20 Thread Michael Schmalle
Hi,
It's the 'iconColor' style.

These are available for the checkbox;

borderColor, iconColor, fillAlphas, fillColors, highlightAlphas
and themeColor.

Mike



On Sun, Oct 19, 2008 at 7:20 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Which style name control the color
 of bullet / checkmark in menu control ?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Compile error with flex sdk 3.1

2008-10-20 Thread jitendra jain
Your flex build path is not pointing to Flex SDK3.1.0. Replace it if not...

 Thanks,

with Regards,
Jitendra Jain







From: Pankaj Arora [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 18 October, 2008 10:28:05 AM
Subject: [flexcoders] Compile error with flex sdk 3.1


Hi,
I just upgraded to Flex SDK 3.1.0 and it
gives me error :
 
] Error: Unable to resolve resource bundle
datamanagement for locale en_US.
 
 
It is coming when I use mx.controls. AdvancedDataGrid .
 
Any ideas on how this can be resolved. This
was working fine with Flex SDK 3.0
 
Also in the 3.1 SDK release I don’t
see datavisualization. swc file needed for compiling advancedDataGrid. Any ideas
where I can download the swc file.
 
 
Thanks,
Pankaj Arora
 

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

[flexcoders] Dispatching The itemEditEnd event from within an item editor

2008-10-20 Thread Randy Martin
I have a custom item editor for a cell in a DataGrid that consists of 
two ComboBoxes. Everything works perfectly, except I'd like a way to 
exit the item editor as soon as the user selects from the second combo 
box.
 
That is, I'd like the item editor to dispatch the itemEditEnd event as 
if the use had removed the focus from the column being edited.

I tried just having the 2nd combo box dispatch the event in response to 
its change event, but that didn't work.

Anyone have any suggestions?
 
TIA,
~randy 




Re: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer

2008-10-20 Thread jitendra jain
Where is the Timer control ? Which TimerEvent you are listening to ..

 Thanks,

with Regards,
Jitendra Jain







From: Sébastien Tromp [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 18 October, 2008 3:48:39 PM
Subject: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer


Hello,

I am stuck with an issue whose solution I cannot find on the Internet.

I have an application with a DataGrid:

mx:DataGrid id=currentConstruc tions
mx:columns
mx:DataGridColumn dataField=building Type/
mx:DataGridColumn dataField=endDate id=remainingTime 
itemRenderer= org.feilun. renderer. CountDownRendere r /
/mx:columns
/mx:DataGrid

where CountDownRenderer is a custom ItemRenderer that can dispatch a 
TimerEvent.TIMER_ COMPLETE event.

I would like to listen in my main application (where the DataGrid is 
defined) to this TIMER_COMPLETE event, but I have not managed to do it.

I have tried things like:
currentConstruction s.addEventListen er(TimerEvent. TIMER_COMPLETE, 
handleTimerComplete );
or
remainingTime. addEventListener (TimerEvent. TIMER_COMPLETE, 
handleTimerComplete );

but in neither case is the event caught.

Do you have any idea on how this could be achieved?

Thanks a lot,
Sébastien



Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

[flexcoders] Re: FZip loads cached zip before downloading online

2008-10-20 Thread diigiibot
I just found an easy solution to prevent the URLRequest checking the
cache before getting the zip online.
It looks like the URLRequest has a parameter specially for AIR
applications.

var request:URLRequest = new URLRequest(moduleLink);
request.useCache = false;
zip.load(request);

Now the cache is always skipped.

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

 I'm using FZip in an AIR application, the application loads the zip
 from a location on our server, unpacks the zip and move the files to
 their local folder. Everything runs smooth until I cut off my internet
 connection while the zip is downloading.
 When I restart the application it looks like FZip is first checking
 the temp folder for the cached zip and if found, it uses that one to
 unzip, even if the zip was not completed the last time.
 
 Does anyone know of a way to prevent that?
 
 I use the default load method of the FZip library, this is a part of
 the code I use.
 
 var moduleLink:String = [EMAIL PROTECTED];
 
 var zip:FZip = new FZip();
 
 zip.addEventListener(Event.COMPLETE, onComplete);
 
 zip.load(new URLRequest(moduleLink));
 
 private function onComplete(evt:Event):void 
 {
   var moduleDir:File =
 File.applicationStorageDirectory.resolvePath(modules);
   
   var outStream:FileStream;
   
   for(var i:int; ievt.target.getFileCount();i++)
   {
   var zipFile:FZipFile = evt.target.getFileAt(i);
   
   if(zipFile.sizeUncompressed == 0 
 zipFile.filename.toString().substr(-1) == /)
   {
   var rootDir:File =

File.applicationStorageDirectory.resolvePath(modules/+zipFile.filename.toString());
   }
   else
   {
   var tempFile:File = 
 moduleDir.resolvePath(zipFile.filename);
   
   outStream = new FileStream();
   
   outStream.open(tempFile, FileMode.WRITE);
   
   outStream.writeBytes(zipFile.content, 0, 
 zipFile.sizeUncompressed);
   
   outStream.close();
   }
   }
   evt.target.close();
 }
 
 Thanks in advance





[flexcoders] Data Label showing null value

2008-10-20 Thread nehavyas13
When I do following it sometimes shows null in the datalabel on a
barchart eg. 0.null (the value is actually 0.06)
  
private function setCustomLabel(element:ChartItem, series:Series):String {
   // Get a refereence to the current data element.
   var data:BarSeriesItem = BarSeriesItem(element);

   // Get a reference to the current series.
   var currentSeries:BarSeries =  BarSeries(series);

   // Create a return String and format the number.
return data.xNumber.toString()+ %;

   }
  
And in the chart I have  
  
mx:BarSeries  color=black labelFunction=setCustomLabel
labelPosition=inside  yField=Name   xField=Rank /  
  
Why does it show null value? (this happens only sometimes), and any
solution to this?

Thanks



Re: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer

2008-10-20 Thread Scott Melby
In your item renderer, if you have control over the TimerEvent creation, 
set the bubbles parameter to true.  If you do not, you may want to 
catch the event in the renderer and  re-dispatch a new one with bubbles 
set to true.  This will allow your event to bubble out, up the parental 
chain until it reaches your application.  Then all you need to do is 
register for the event at the Application level.


hth
Scott

---
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com


jitendra jain wrote:

Where is the Timer control ? Which TimerEvent you are listening to ..
 
Thanks,


with Regards,
Jitendra Jain



*From:* Sébastien Tromp sebastien.tromp@ gmail..com
*To:* [EMAIL PROTECTED] ups.com
*Sent:* Saturday, 18 October, 2008 3:48:39 PM
*Subject:* [flexcoders] Listem to an event sent by a DataGrid ItemRenderer

Hello,

I am stuck with an issue whose solution I cannot find on the Internet.

I have an application with a DataGrid:

mx:DataGrid id=currentConstruc tions
mx:columns
mx:DataGridColumn dataField=building Type/
mx:DataGridColumn dataField=endDate id=remainingTime
itemRenderer= org.feilun. renderer. CountDownRendere r /
/mx:columns
/mx:DataGrid

where CountDownRenderer is a custom ItemRenderer that can dispatch a
TimerEvent.TIMER_ COMPLETE event.

I would like to listen in my main application (where the DataGrid is
defined) to this TIMER_COMPLETE event, but I have not managed to do it.

I have tried things like:
currentConstruction s.addEventListen er(TimerEvent. TIMER_COMPLETE,
handleTimerComplete );
or
remainingTime. addEventListener (TimerEvent. TIMER_COMPLETE,
handleTimerComplete );

but in neither case is the event caught.

Do you have any idea on how this could be achieved?

Thanks a lot,
Sébastien


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. 
Download Now! http://messenger. yahoo.com/ download. php
 




[flexcoders] Re: VISTA plus SSL plus AIR - error 2032 stream error

2008-10-20 Thread fotis.chatzinikos
As well as the previous post, you can do the following, it seems
nearer to your case (from asdoc - online):

check the protocol line in the following spec:

 mx:HTTPService
   concurrency=multiple|single|last
   contentType=application/x-www-form-urlencoded|application/xml
   fault=No default.
   id=No default.
   method=GET|POST
b   protocol=http|https/b
   result=No default.
   resultFormat=object|xml|flashvars|text
   serviceName=No default.
   showBusyCursor=false|true
   url=No default.
   useProxy=true|false
   xmlEncode=No default.
   xmlDecode=No default.
 / 

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

  
 Hi,
 
 I know,  this error is very generic. I have read huge amount of
posts, comments about this, but still I don't have a solution.
 
 I start our AIR application, enter login and username trying to
login to https://192.168.3.38/flex.cgi. I get two security alerts
about untrusted issuer and not matching to name of website, but flex
lets to continue.
 
 I get error after issue of request:
 Error: [IOErrorEvent type=ioError bubbles=false cancelable=false
eventPhase=2 text=Error #2032: Stream Error. URL:
https://192.168.3.38/flex.cgi; errorID=2032]. URL:
https://192.168.3.38/flex.cgi
 
 On server, in root dir I have crossdomain.xml file:
 
 ?xml version=1.0?
 
 !DOCTYPE cross-domain-policy SYSTEM
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 
 cross-domain-policy
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLoca
 allow-access-from domain=* secure=false/
 site-control permitted-cross-domain-policies=all/
 allow-http-request-headers-from domain=*
headers=* secure=false/
 /cross-domain-policy
 
 
 My https request looks like this:
 {
 var params:Object = new Object();
 params.username = username;
 params.password = password;
 
 var http:HTTPService = new HTTPService();
 http.url = https://192.168.3.38;;
 http.contentType = application/xml;
 http.method = POST;
 http.addEventListener(ResultEvent.RESULT, handleRes);
 http.addEventListener(FaultEvent.FAULT, handleFault);
 http.send(params);
 }
 
 This login request works fine on IE and FF (win vista). But not on
the AIR.
 On XP I dont have such issue, login on AIR works fine.
 
 May somebody has an idea, what is wrong with my code/configuration?
 
 thanks in advice,
 vaidotas
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com





[flexcoders] Integration Of flex into Asp.net

2008-10-20 Thread prem_toc
Intro: am a asp.net programmer  and am a beginner in flex .now my firm
converting into flex .we are developing banking domain application in
asp.net .

our menubar  is in flex .how i integrated flex menu  into asp.net
master pages . so that each page in asp.net uses that flex menu?






[flexcoders] Re: AIR+VISTA+SSL - #2032StreamError

2008-10-20 Thread fotis.chatzinikos
Do not know if it helps, but your crossdomain.xml is not correctly
formed... check this line:

cross-domain-policy
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLoca
allow-access-from domain=* secure=false/

false should be inside the quotes, now i do not have a clue if this is
your problem :-) , but fix this first (which is possibly a problem
with strict/correct parsers ie possibly AIR?)


Fotis


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

 Hi,
 
 I know,  this error is very generic. I have read huge amount of
posts, comments about this, but still I don't have a solution.
 
 I start our AIR application, enter login and username trying to
login to https://192.168.3.38/flex.cgi. I get two security alerts
about untrusted issuer and not matching to name of website, but flex
lets to continue.
 
 I get error after issue of request:
 Error: [IOErrorEvent type=ioError bubbles=false cancelable=false
eventPhase=2 text=Error #2032: Stream Error. URL:
https://192.168.3.38/flex.cgi; errorID=2032]. URL:
https://192.168.3.38/flex.cgi
 
 On server, in root dir I have crossdomain.xml file:
 
 ?xml version=1.0?
 
 !DOCTYPE cross-domain-policy SYSTEM
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 
 cross-domain-policy
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLoca
 allow-access-from domain=* secure=false/
 site-control permitted-cross-domain-policies=all/
 allow-http-request-headers-from domain=*
headers=* secure=false/
 /cross-domain-policy
 
 
 My https request looks like this:
 {
 var params:Object = new Object();
 params.username = username;
 params.password = password;
 
 var http:HTTPService = new HTTPService();
 http.url = https://192.168.3.38;;
 http.contentType = application/xml;
 http.method = POST;
 http.addEventListener(ResultEvent.RESULT, handleRes);
 http.addEventListener(FaultEvent.FAULT, handleFault);
 http.send(params);
 }
 
 This login request works fine on IE and FF (win vista). But not on
the AIR.
 On XP I dont have such issue, login on AIR works fine.
 
 May somebody has an idea, what is wrong with my code/configuration?
 
 thanks in advice,
 vaidotas





re: [flexcoders] Integration Of flex into Asp.net

2008-10-20 Thread wkolcz
Flex apps are just swfs when compiled. Just add it as any element. If you need 
to navigate, use the navigateToURL function to move around the site.


From: prem_toc [EMAIL PROTECTED]
Sent: Monday, October 20, 2008 5:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Integration Of flex into Asp.net 

Intro: am a asp.net programmer  and am a beginner in flex .now my firm

converting into flex .we are developing banking domain application in

asp.net .

our menubar  is in flex .how i integrated flex menu  into asp.net

master pages . so that each page in asp.net uses that flex menu?





Re: [flexcoders] Creating custom components in flex using actionscript 3.0

2008-10-20 Thread Michael Schmalle
Hi,
I see two things that need to be changed in your code;

1. When setting setStyle() you need to use the correct style type. You are
using strings for numbers IE 2, this is not correct and could cause weird
behavior, change this and see if you still have your issue.

2. In your commitProperties() override, you need to create a flag so you are
not calling setStyle() on each property invalidation.

- you don't need this line either; this.creationPolicy = all;

To clarify, it's the outer box that you don't want scrollbars on?

Mike

On Sun, Oct 19, 2008 at 5:30 PM, ashok [EMAIL PROTECTED] wrote:

   Hi,
 I am sorry if this is a repeat question. have read through the
 articles time and again from the adobe docs and some posts in this
 forum, but could not resolve my issue.

 My class extends a VBox and I try to create components in it. To
 simplify and debug the issue, got down to only creating a simple hbox
 inside the class and adding a button to it. So the steps are

 1. create a class which extends vbox.
 2. override createChildren method and set the height, width, and other
 styles of the vbox and then call super.createChildren()

 3. create a new HBox inside the createChildren method and then add a
 button to it.I am setting the verticalScrollPolicy and
 horizontalScrollPolicy to off, inside the createChildren method before
 calling addchild.

 On doing this I always see the horizontal scrollbar enabled. How do we
 debug such an issue. i traced through the code and found that the
 width and the height of the hbox is much lesser than the height and
 width of the vbox. Is there any reason why this should be happening.

 I also implemented the commitProperties method and I tried setting the
 properties for the hbox in there but that did not help either.

 the code is as shown below. i am working on getting the layout right
 for quiet a while without any luck. so please gurus of flex help me
 out here.

 //

 package edu.csula.cairngorm_emulator.view.fileupload
 {

 import mx.collections.ArrayCollection;
 import mx.containers.HBox;
 import mx.containers.VBox;
 import mx.controls.Button;

 public class TestCoreVocabCompAS extends VBox
 {

 private var _coreContainer:HBox = new HBox();

 public function TestCoreVocabCompAS():void
 {
 super();
 }

 public function get coreContainer():HBox
 {
 return this._coreContainer;
 }

 public function set coreContainer(coreContainer:HBox):void
 {
 this._coreContainer = coreContainer;
 }

 override protected function createChildren():void {

 this.width = 228;
 this.height = 130;
 this.setStyle(verticalGap, 0);
 this.setStyle(verticalScrollPolicy, off);
 this.setStyle(horizontalScrollPolicy, off);
 this.setStyle(horizontalAlign, center);
 this.setStyle(verticalAlign, middle);
 this.setStyle(paddingTop, 0);
 this.setStyle(paddingBottom, 0);
 this.creationPolicy = all;

 super.createChildren();
 trace (this height =  + this.height);
 trace (this width =  + this.width);

 // set the poperties of the hbox
 if(this._coreContainer != null)
 {
 //set the styles.
 this._coreContainer.setStyle(paddingLeft, 2.0);
 this._coreContainer.setStyle(paddingRight, 2.0);
 this._coreContainer.setStyle(verticalScrollPolicy, off);
 this._coreContainer.setStyle(horizontalScrollPolicy, off);
 this._coreContainer.explicitHeight = 93;
 this._coreContainer.width = 200;
 //set the properties
 this.addChild(_coreContainer);

 trace (_coreContainer height =  + this._coreContainer.height);
 trace (_coreContainer widtd =  + this._coreContainer.width);

 //add the child components
 if(this.img != null)
 {
 var button:Button = new Button();
 this._coreContainer.addChild(button);
 button.percentHeight = 100;
 button.width = 94;
 trace (button height =  + button.height);
 trace (button widtd =  + button.width);
 this.img.percentHeight = 100;
 this.img.width = 94;
 }




 }

 // Implement the commitProperties() method.
 override protected function commitProperties():void {
 super.commitProperties();
 this._coreContainer.setStyle(paddingLeft, 2.0);
 this._coreContainer.setStyle(paddingRight, 2.0);
 this._coreContainer.setStyle(verticalScrollPolicy, off);
 this._coreContainer.setStyle(horizontalScrollPolicy, off);

 }



  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Papervision 3D an Flex components

2008-10-20 Thread Amy
Is it possible to wrap an entire Flex component (for instance, a 
TileList) in PaperVision 3D in such a way that you give it a more 3D 
appearance, yet still keep it interactive?  I've seen this demo 
http://dev.getoutsmart.com/os3d/demos/videoroom/, but I have no idea if 
it is PaperVision or what.

Thanks;

Amy



[flexcoders] DataGrid: Make text bold when row is highlighted or selected

2008-10-20 Thread cwicky99
I have a DataGrid and I am trying to figure out how to make the font
Bold when the user mouses over a row or selects the row.

Any ideas?



[flexcoders] Resizing a class file

2008-10-20 Thread flexaustin
Is it possible to resize a Class file? Say you embed a swf or png. Can
you then resize it by casting is as something else?

[Bindable]
[Embed(source=ui/nicePngImage.png)]
static public var myIcon:Class;
myIcon.width = 30; // won't work

TIA





[flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread lysfael
I wanna format the datas receive before passing them to dataProvider
of the repeater.

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

 I'm not sure if you can subclass mx:Repeater. What are you trying to
 do with your repeater subclass?
 
 Ralf.
 
 On Mon, Oct 20, 2008 at 12:16 PM, lysfael [EMAIL PROTECTED] wrote:
  Re,
 
  I made a component based on the repeater, to have the control on the
  datas.
 
  and i use it like i should use a repeater.
 
  i have an error on the compil.
 
  Symbol
  '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
  multiply defined in
  _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
  and
 
C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
  IG_ModuleCore
 
  i use the component like this
 
  comp:Prep id=F0010_T0056 specialDatas={datas as XML}
  mx:Button id=F0010_B0031 width=100%/
  /comp:Prep
 
  where the setter specialDatas format the datas and set
  this.dataProvider with the correct datas.
 
  --- In flexcoders@yahoogroups.com, lysfael schwazel@ wrote:
 
  Hello,
 
  Sorry for the absence,
 
  These datas are an example of the datas that i get from my
HttpService.
 
  lg ID=F0010_T0056-0
  c ID=F0010_48-0OUV/c
  c ID=F0010_49-0/c
  c ID=F0010_50-05/c
  /lg
  lg ID=F0010_T0056-1
  c ID=F0010_48-1ETA/c
  c ID=F0010_49-1/c
  c ID=F0010_50-15/c
  /lg
 
  These datas should match the repeater F0010_T0056 which contains the
  following components :
  TextInput Id = F0010_48
  Label Id = F0010_49
  TextInput Id = F0010_50.
 
  In the other post Tom Chiverton told me this
 
  You could use a setter method (i.e. public function set
  myDatas(d:*):void{}). If you need more control over what happens,
or a
  changeWatcher inside the component observing the public bindable.
 
  Like you said i think i'm making it harder than what it needs to be.
  I'll think a bit for a much more simple solution and keep you posted.
  I think to do something like Tom said.
 
 
 
 
  --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
  
   Yes, I still think Lysfael may be approaching this incorrectly,
  probably
   making it harder than it needs to be. There is rarely a good
  reason to
   use the document model hierarchy to manipulate data driven
components.
  
  
  
   Lysfael, can you explain again what you are trying to do?
  
  
  
   What data is the dataProvider for the repeater?
  
  
  
   Is that data different from the data you are trying to show in the
   repeated controls?
  
  
  
   Tracy
  
  
  
   
  
   From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Amy
   Sent: Thursday, October 16, 2008 5:51 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Repeater control and custom Component
  
  
  
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , lysfael schwazel@ wrote:
   
Hello,
   
Since it's not the same problem as the old one, i post a new
  topic on
this, i hope this way to do enter in the ToS.
   
I created a component Box-Based, which contains a repeater
and some
other attributes.
   
Since my english isn't perfect i'll post part of the code i
produced
and tell you what's the problem now.
  
   There is no point using a repeater from AS. This is one component
  that
   you should use in MXML if you want to use it.
  
 
 
 





[flexcoders] Re: Overriding width of DateField

2008-10-20 Thread aceoohay
Since it's a bright and sunny Monday morning, and everyone is 
refreshed from a relaxing weekend, I thought I would see if anyone 
has an answer for this one.

I need to know how to get Flexbuilder to recognize the expanded 
default width of a component. In the case the DateField.

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

 Gordon:
 
 I did the following;
 
   override protected function measure():void 
   {
 super.measure();
 
 measuredWidth=94;
 measuredMinWidth=94;
 }
 
 It still doesn't seem to change the width of the component in 
 flexbuilder's design mode.
 
 Any ideas?
 
 Paul
 
 --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote:
 
  Try subclassing and overriding the measure() method to return a 
 greater measuredWidth.
  
  Gordon Smith
  Adobe Flex SDK Team
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay
  Sent: Friday, October 17, 2008 12:25 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Overriding width of DateField
  
  
  One anomaly I've found in flex is the width of the DateField. 
It's
  width is about 90px. If you use it with no width, and make it
  editable, when the user puts in a date in mm/dd/ format it 
will
  move the left 2 characters out of the box to the left.
  
  To correct this issue, I would like to create a version of the
  DateField and override the width, if not provided by the 
developer 
 to
  be 94px. I can easily do that by putting;
  
  if (!this.width)this.width = 94;
  
  in the initialize method. The problem is this does not display 
the
  correct size object in flexbuilder during design mode.
  
  My question is, how can I subclass the object in such a way as 
to 
 have
  it display properly (the enhanced width attribute) in design 
mode?
  
  Paul
 





[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, akila_ksri [EMAIL PROTECTED] 
wrote:

 --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
 
  --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ 
wrote:
  
   Hi,
   
   I need to apply horizontal scaling for a text with 'Arial' font.
   lbl.scaleX = 0.70 simply does not work . I can only see that 
there is 
  a 
   change in the width of the label.
   
   Is there anything i am missing out to scale the text?? Is 
scaling not 
   applicable for system fonts? ( I tried the same with 
font 'Verdana', 
   but again, no luck!)
   
   Any help would be greatly appreciated.
  
  Try one of the following:
  
  1)  Set the blendMode to layer
  2)  Set the container's cacheAsBitmap to true
  3)  Embed the font
  
  HTH;
  
  Amy
 
 Hi Amy,
 
 Thanks for your response. I tried what you suggested, embedding the
 font and then applying scaleX to the text.
 This works fine if the font is just 'Arial'. It does not work if i
 make the text bold/italic. It is necessary for the font to be bold 
and
  in italics. I cant get it to work:(

Try using the blendMode setting instead.  It's way simpler, and it 
won't bloat your file size.

HTH;

Amy



[flexcoders] Re: Resizing a class file

2008-10-20 Thread florian.salihovic
Why don't u want to create an instance? 

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

 Is it possible to resize a Class file? Say you embed a swf or png. Can
 you then resize it by casting is as something else?
 
 [Bindable]
 [Embed(source=ui/nicePngImage.png)]
 static public var myIcon:Class;
 myIcon.width = 30; // won't work
 
 TIA






[flexcoders] Re: Help with FlexBook: was Help with Flex Component

2008-10-20 Thread valdhor
I'm sorry but my plate is full.

Someone else may have the time to help you out but if it was me, I
would use this as an opportunity to learn Flex. It is much
easier/better if you have an actual project to complete rather than
just canned lessons (This is my experience anyway).

I had not looked at the book component other than what I did for my
last post but from delving a little further (10 minutes or so) it
looks fairly simple.

I would recommend starting with the boundaries.xml file and modifying
it so that just the book was on the page with no other controls. Once
you get that working, you can move on to adding content.

You'll be a competent Flex programmer in no time.

BTW. When I first started with Flex it looked very daunting (Even
though I have been programming for 20+ years). Just keep with it. At
some point the penny will drop/the lightbulb will turn on and you'll
just get it. For me, it took a couple of months.



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

 Hello,
 As I am still painfully aware of the fact that I am still new to Flex,
 I was wondering if you or anyone for that matter, would want to help
 me to do this for my the Poetry Magazine that I publish online. 
 It would be so great to have this kind of thing for the presentation
 of a poetry magazine online.  I would gladly give full credit to
 anyone who would help make this happen.  Our magazine shows up in
 position 4-6 of the generic results on yahoo.com when searching on
 poetry magazine.  Maybe generic is not the word but I mean not on
 the paid listings on the search engine.
 
 It would thus be good exposure and if anyone here enjoyss poetry, that
 would be another incentive (I hope).
 
 I'm referring to the FlexBook component that is available under an
 Open-Source license.  I could just stick the text on the first example
 use of this component, where we use somewhat transparent slides. 
 Transparency is good at times but probably not needed for my poetry
 magazine.
 
 
 Thanks in advance,
 Bruce
 --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote:
 
  This is what I did..
  
  Went to the URI you provided.
  Clicked on Example 1.
  Right Clicked on the page and selected view source.
  Saved the Book.zip file it asked me to save.
  Opened Flex Builder - File-Import-Flex Project...
  Clicked Browse and opened the Book.zip file downloaded previously.
  Clicked Finish (The project was imported)
  
  There are some problems with the imported project. This is what I did
  to fix them...
  
  Right click the Book project and select properties.
  Click Flex Build Path.
  Click on the folder C:\dev\qs\lib (At the top) and click Remove.
  Change Output Folder from C:\dev\qs\web\public\book to bin-debug.
  Remove http://localhost:3000/book from Output folder URL (Leave blank)
  Click Apply.
  Click OK.
  Click OK to the warning about upgrading the project.
  
  I do not have the Pro version of Flex Builder so I do not have the
  charting stuff so I had further work to do:
  
  In CompanyPage.mxml, remove the entire section with the component
  ColumnChart.
  In app.mxml, remove the entire section with the component BarChart.
  
  Now you can run any of the six demos included. There are some runtime
  errors but these seem to be security sandbox problems that I have not
  looked into.
  
  
  
  --- In flexcoders@yahoogroups.com, brucewhealton bruce@ wrote:
  
   Hello all,
  I sure hope someone can help me with this.  I stumbled
upon a 
   great Flex component that will fit a need I have.  Actually, it was 
   only when I found this that I realized I need this.  It's the 
   FlexBook, PageFlip component that is available from Quietly
Scheming 
   here: 
   http://www.quietlyscheming.com/blog/components/flexbook/
   This is free too!
   Now, this takes me to a page with a few different examples.  You
can 
   do this with a List or as a container.  Instead of looking at the 
   code for each of these example or possible ways of doing it, we
just 
   see a demo and there is one link to Download Source, which
basically 
   downloads everything including content that probably has little
to do 
   with the FlexBook.
   I don't know.  I'm missing something here.  I thought I
could 
   start with a particular design and put some text on it and then
later 
   I could make more detailed modifications and customizations.
I tried opening up one of the projects in Flex Builder
3 and 
   got an error.  I thought I'd start with the FlipControls and so I 
   imported that into Flex using File  Import and selecting the 
   directory.  It didn't like that.  So, I tried to import the entire 
   zip file that is available, but that didn't work either.  It only 
   tried to import the first project in there and refused to
continue on 
   to Flex, unless I hit Cancel.
Any tips or help would be very appreciated.
   This is freely available so, it would be so useful to have for 

Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
You can't apply any effects or transformations (alpha, rotation, scaling
etc.) on fonts if they are not embedded!


On Mon, Oct 20, 2008 at 4:21 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 akila_ksri [EMAIL PROTECTED]
 wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 amyblankenship@ wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 akila_ksri akila_ksri@
 wrote:
   
Hi,
   
I need to apply horizontal scaling for a text with 'Arial' font.
lbl.scaleX = 0.70 simply does not work . I can only see that
 there is
   a
change in the width of the label.
   
Is there anything i am missing out to scale the text?? Is
 scaling not
applicable for system fonts? ( I tried the same with
 font 'Verdana',
but again, no luck!)
   
Any help would be greatly appreciated.
  
   Try one of the following:
  
   1) Set the blendMode to layer
   2) Set the container's cacheAsBitmap to true
   3) Embed the font
  
   HTH;
  
   Amy
  
  Hi Amy,
 
  Thanks for your response. I tried what you suggested, embedding the
  font and then applying scaleX to the text.
  This works fine if the font is just 'Arial'. It does not work if i
  make the text bold/italic. It is necessary for the font to be bold
 and
  in italics. I cant get it to work:(

 Try using the blendMode setting instead. It's way simpler, and it
 won't bloat your file size.

 HTH;

 Amy

  




-- 
Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com


Re: [flexcoders] Re: Resizing a class file

2008-10-20 Thread Michael Schmalle
Hi,
It's more like you have to create an instance.

The Class is an actionscript type like Boolean or String. This is like
asking can you write Boolean.value = true;

Try;

override protected function createChildren():void
{
super.createChildren();
instance = new myIcon();
instance.width = 25;
addChild(instance);
}

Mike

On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
[EMAIL PROTECTED] wrote:

   Why don't u want to create an instance?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 flexaustin [EMAIL PROTECTED] wrote:
 
  Is it possible to resize a Class file? Say you embed a swf or png. Can
  you then resize it by casting is as something else?
 
  [Bindable]
  [Embed(source=ui/nicePngImage.png)]
  static public var myIcon:Class;
  myIcon.width = 30; // won't work
 
  TIA
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Embedding 2 fonts in 1 font class

2008-10-20 Thread renzeullo
Hi,

This will seem like a longshot, but, oh well, here goes...

Is there a way to embed 2 or more fontfaces in a single class? For
example, I want to embed characters A-Z ub Courier New and Korean
characters in Arial Unicode in a single class FontMix, both in normal
weight and non italic.

Is there any way this can be done?

Thanks in advance.

Renz



RE: [flexcoders] Repeater giving bogus Binding warnings?

2008-10-20 Thread Tracy Spratt
It is because currentItem is an Object, which is not bindable.  Cast
it to your bindable class:

text={
RemittanceFileListEntry(remittanceRepeater.currentItem).remittanceFile
}

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Monday, October 20, 2008 2:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Repeater giving bogus Binding warnings?

 

Hey Guys, I'm getting binding warnings that don't make any sense. Here's
my repeater code:

mx:Repeater id=remittanceRepeater dataProvider={
selectedPayment.remittanceFiles }

mx:HBox verticalAlign=middle
mx:TextInput width=140 text={
remittanceRepeater.currentItem.remittanceFile }/
mx:Button styleName=removeRow label=- width=24
height=24 data={remittanceRepeater.currentItem}
click=removeRemittance(event)/
/mx:HBox

/mx:Repeater

I'm getting the following warning for every row in
selectedPayment.remittanceFiles:

warning: unable to bind to property 'remittanceFile' on class
'fundsmanagement.business.model::RemittanceFileListEntry'

But RemittanceFileListEntry.as is bindable:

public class RemittanceFileListEntry extends EventDispatcher
{
[Bindable]
public var remittanceFile : String;
}

If there a way to kill this bogus warning?

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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
:: http://flex.joshmcdonald.info/ http://flex.joshmcdonald.info/ 

 



RE: [flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread Tracy Spratt
If that is really what you want to do, it will work.  But still, why not
let the repeated component handle the formatting?

 

Do not subclass repeater, use it normally.  

 

Create a component containing your label and text inputs.

 

Pass the currentItem into your custom component via a setter and in the
setter invoke the formatting.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Monday, October 20, 2008 8:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Repeater control and custom Component

 

I see. Have you tried a binding function to do this?

mx:Repeater dataProvider={ formatData( datas as XML )} ..

You need to write a method formatData( x : XML ) : XML which creates a
new formatted XML from the input xml.

Ralf.

On Mon, Oct 20, 2008 at 1:52 PM, lysfael [EMAIL PROTECTED]
mailto:schwazel%40gmail.com  wrote:
 I wanna format the datas receive before passing them to dataProvider
 of the repeater.

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Ralf Bokelberg

 [EMAIL PROTECTED] wrote:

 I'm not sure if you can subclass mx:Repeater. What are you trying to
 do with your repeater subclass?

 Ralf.

 On Mon, Oct 20, 2008 at 12:16 PM, lysfael [EMAIL PROTECTED] wrote:
  Re,
 
  I made a component based on the repeater, to have the control on
the
  datas.
 
  and i use it like i should use a repeater.
 
  i have an error on the compil.
 
  Symbol
  '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
  multiply defined in
  _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
  and
 

C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\I
G_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents
.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
  IG_ModuleCore
 
  i use the component like this
 
  comp:Prep id=F0010_T0056 specialDatas={datas as XML}
  mx:Button id=F0010_B0031 width=100%/
  /comp:Prep
 
  where the setter specialDatas format the datas and set
  this.dataProvider with the correct datas.
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , lysfael schwazel@ wrote:
 
  Hello,
 
  Sorry for the absence,
 
  These datas are an example of the datas that i get from my
 HttpService.
 
  lg ID=F0010_T0056-0
  c ID=F0010_48-0OUV/c
  c ID=F0010_49-0/c
  c ID=F0010_50-05/c
  /lg
  lg ID=F0010_T0056-1
  c ID=F0010_48-1ETA/c
  c ID=F0010_49-1/c
  c ID=F0010_50-15/c
  /lg
 
  These datas should match the repeater F0010_T0056 which contains
the
  following components :
  TextInput Id = F0010_48
  Label Id = F0010_49
  TextInput Id = F0010_50.
 
  In the other post Tom Chiverton told me this
 
  You could use a setter method (i.e. public function set
  myDatas(d:*):void{}). If you need more control over what happens,
 or a
  changeWatcher inside the component observing the public bindable.
 
  Like you said i think i'm making it harder than what it needs to
be.
  I'll think a bit for a much more simple solution and keep you
posted.
  I think to do something like Tom said.
 
 
 
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote:
  
   Yes, I still think Lysfael may be approaching this incorrectly,
  probably
   making it harder than it needs to be. There is rarely a good
  reason to
   use the document model hierarchy to manipulate data driven
 components.
  
  
  
   Lysfael, can you explain again what you are trying to do?
  
  
  
   What data is the dataProvider for the repeater?
  
  
  
   Is that data different from the data you are trying to show in
the
   repeated controls?
  
  
  
   Tracy
  
  
  
   
  
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
   Behalf Of Amy
   Sent: Thursday, October 16, 2008 5:51 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Repeater control and custom Component
  
  
  
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
   , lysfael schwazel@ wrote:
   
Hello,
   
Since it's not the same problem as the old one, i post a new
  topic on
this, i hope this way to do enter in the ToS.
   
I created a component Box-Based, which contains a repeater
 and some
other attributes.
   
Since my english isn't perfect i'll post part of the code i
 produced
and tell you what's the problem now.
  
   There is no point using a repeater from AS. This is one
component
  that
   you should use in MXML if you want to use it.
  
 
 
 


 

 



[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 You can't apply any effects or transformations (alpha, rotation, 
scaling
 etc.) on fonts if they are not embedded!
 
 
 On Mon, Oct 20, 2008 at 4:21 PM, Amy [EMAIL PROTECTED] wrote:
 
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  akila_ksri akila_ksri@
  wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Amy
  amyblankenship@ wrote:
   
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  akila_ksri akila_ksri@
  wrote:

 Hi,

 I need to apply horizontal scaling for a text with 'Arial' 
font.
 lbl.scaleX = 0.70 simply does not work . I can only see 
that
  there is
a
 change in the width of the label.

 Is there anything i am missing out to scale the text?? Is
  scaling not
 applicable for system fonts? ( I tried the same with
  font 'Verdana',
 but again, no luck!)

 Any help would be greatly appreciated.
   
Try one of the following:
   
1) Set the blendMode to layer
2) Set the container's cacheAsBitmap to true
3) Embed the font
   
HTH;
   
Amy
   
   Hi Amy,
  
   Thanks for your response. I tried what you suggested, 
embedding the
   font and then applying scaleX to the text.
   This works fine if the font is just 'Arial'. It does not work 
if i
   make the text bold/italic. It is necessary for the font to be 
bold
  and
   in italics. I cant get it to work:(
 
  Try using the blendMode setting instead. It's way simpler, and it
  won't bloat your file size.
 
  HTH;
 
  Amy
 
   
 
 
 
 
 -- 
 Haykel Ben Jemia
 
 Allmas
 Web  RIA Development
 http://www.allmas-tn.com

Hi Haykel,

I tried the example you sent, and it works!
Thanks a ton:)

-akila



[flexcoders] Re: WebService operation faults propigating up to WebService fault handler.

2008-10-20 Thread Todd
This is a good idea and exactly what I'm going to try now.  This will
cover about 98% of my commands, and will have the advantage of both
faults coming from the operations and the service level to have the
same handler.

I guess at this point, I really want to understand the AsyncToken
stuff in relation to Cairngorm design, so I think I'll post over to
the cairngorm list.  It's probably really a best practices that I'm
looking for.

Thanks Tracy for the suggestinos.

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

 So can you leave the fault handler on the service and not user the ones
 on the operations?  Or point those to some dummy handler?
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Todd
 Sent: Thursday, October 16, 2008 3:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: WebService operation faults propigating up to
 WebService fault handler.
 
  
 
 Hmmm...interesting.
 
 I got into the Responders/AsyncTokens because that's how all the
 Cairngorm samples were setup. 
 
 But with what you say, it's very consistent with all the samples using
 MXML WebServices...putting a fault on the operation. But with faults
 on the operation, what happens when Flex can't even call the operation
 because of a SOAPEncoder error?
 
 Originally, all was fine with using Responders, but then I noticed
 that errors from the SOAPEncoder were getting swallowed, and when Flex
 tried building a SOAP message, but couldn't because of some improper
 format, nothing would happen. It would sit there. Adding an error
 handler to the actual service solved that. 
 
 Now, however, I'm stuck with Responder's handling faults, and the
 actual WebService handling faults. I'd like to at least not have the
 Web Service fault trigger if the responder handled it.
 
 I'm about 12 Web Services, 140+ calls into this thing. I don't think
 it'll be possible for me to get rid of my Responder cairngorm
 infrastructure...but I'd like to at least get a handle on how/where
 the faults are raised from.
 
 Had I done this again, I'd probably take your approach of having a
 single handler, use that as the master that subs things out depending
 upon the type of response. This would have the benefit of a single
 point in dealing with the Flex services layer...
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Do you need the fault handler on the operation? I typically a single
  fault handler for all operations. I also use a single handler for all
  results as well, actually. I don't like using responders.
  
  
  
  Tracy
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Todd
  Sent: Thursday, October 16, 2008 12:37 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: WebService operation faults propigating up
 to
  WebService fault handler.
  
  
  
  I'll bounce this back up as it's hard to find any source code samples
  using the Actionscript version of WebService, and properly handling
  all the different errors, etc...
  
  Thanks,
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Todd tprekaski@ wrote:
  
   Hello All,
   I have a problem that I can't figure out. With WebService faults,
   and operations that return SOAPFaults...read on for the detais.
   
   1) I've created my WebService through ActionScript (not the MXML
   Component).
   var ws:WebService = new WebService();
   
   2) I've attached a fault listener to it. I had to do this because
   it seems that SOAPEncoder errors were never being caught otherwise.
   ws.addEventListener(FaultEvent.FAULT, onServiceFault)
   
   3) I'm using a Cairngorm Command/ServiceDelegate calling scheme. 
   For example, to call getInvoices, I have a command that calls into
 the
   appropriate method on the ServiceDelegate called getInvoices, which
   looks like:
   public function getInvoices(params:Object):void{ 
   Operation(ws.SearchInvoices).encoder.strictNillability = true;
   var token:AsyncToken = ws.SearchInvoices(params);
   token.addResponder(this.responder);
   }
   
   As you can see, I'm using the AsyncToken, and adding the Commmand as
   the responder. The Command has both fault and result handlers as
   defined by the IResponder interface.
   
   4) The this.responder is set during the contstructor of the
   Service Delegate, like so:
   public function ServiceDelegate(responder:IResponder)
   {
   this.responder = responder;
   }
   
   So, now my problem is, that when a SOAPFault is raised in the call
 to
   the SearchInvoices WebService operation, both the FAULT on my
 Command
   (which is the responder), AND the fault (onServiceFault ) for the

[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ 
 wrote:
 
  --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
  
   --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ 
 wrote:
   
Hi,

I need to apply horizontal scaling for a text with 'Arial' 
font.
lbl.scaleX = 0.70 simply does not work . I can only see that 
 there is 
   a 
change in the width of the label.

Is there anything i am missing out to scale the text?? Is 
 scaling not 
applicable for system fonts? ( I tried the same with 
 font 'Verdana', 
but again, no luck!)

Any help would be greatly appreciated.
   
   Try one of the following:
   
   1)  Set the blendMode to layer
   2)  Set the container's cacheAsBitmap to true
   3)  Embed the font
   
   HTH;
   
   Amy
  
  Hi Amy,
  
  Thanks for your response. I tried what you suggested, embedding 
the
  font and then applying scaleX to the text.
  This works fine if the font is just 'Arial'. It does not work if 
i
  make the text bold/italic. It is necessary for the font to be 
bold 
 and
   in italics. I cant get it to work:(
 
 Try using the blendMode setting instead.  It's way simpler, and it 
 won't bloat your file size.
 
 HTH;
 
 Amy

Hi Amy,

I got it working with what Haykel suggested.
Thanks for your response too.

akila




Re: [flexcoders] Re: Repeater control and custom Component

2008-10-20 Thread Ralf Bokelberg
I see. Have you tried a binding function to do this?

mx:Repeater dataProvider={ formatData( datas as XML )} ..

You need to write a method formatData( x : XML ) : XML which creates a
new formatted XML from the input xml.

Ralf.

On Mon, Oct 20, 2008 at 1:52 PM, lysfael [EMAIL PROTECTED] wrote:
 I wanna format the datas receive before passing them to dataProvider
 of the repeater.

 --- In flexcoders@yahoogroups.com, Ralf Bokelberg

 [EMAIL PROTECTED] wrote:

 I'm not sure if you can subclass mx:Repeater. What are you trying to
 do with your repeater subclass?

 Ralf.

 On Mon, Oct 20, 2008 at 12:16 PM, lysfael [EMAIL PROTECTED] wrote:
  Re,
 
  I made a component based on the repeater, to have the control on the
  datas.
 
  and i use it like i should use a repeater.
 
  i have an error on the compil.
 
  Symbol
  '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is
  multiply defined in
  _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as
  and
 
 C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents.swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil).
  IG_ModuleCore
 
  i use the component like this
 
  comp:Prep id=F0010_T0056 specialDatas={datas as XML}
  mx:Button id=F0010_B0031 width=100%/
  /comp:Prep
 
  where the setter specialDatas format the datas and set
  this.dataProvider with the correct datas.
 
  --- In flexcoders@yahoogroups.com, lysfael schwazel@ wrote:
 
  Hello,
 
  Sorry for the absence,
 
  These datas are an example of the datas that i get from my
 HttpService.
 
  lg ID=F0010_T0056-0
  c ID=F0010_48-0OUV/c
  c ID=F0010_49-0/c
  c ID=F0010_50-05/c
  /lg
  lg ID=F0010_T0056-1
  c ID=F0010_48-1ETA/c
  c ID=F0010_49-1/c
  c ID=F0010_50-15/c
  /lg
 
  These datas should match the repeater F0010_T0056 which contains the
  following components :
  TextInput Id = F0010_48
  Label Id = F0010_49
  TextInput Id = F0010_50.
 
  In the other post Tom Chiverton told me this
 
  You could use a setter method (i.e. public function set
  myDatas(d:*):void{}). If you need more control over what happens,
 or a
  changeWatcher inside the component observing the public bindable.
 
  Like you said i think i'm making it harder than what it needs to be.
  I'll think a bit for a much more simple solution and keep you posted.
  I think to do something like Tom said.
 
 
 
 
  --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
  
   Yes, I still think Lysfael may be approaching this incorrectly,
  probably
   making it harder than it needs to be. There is rarely a good
  reason to
   use the document model hierarchy to manipulate data driven
 components.
  
  
  
   Lysfael, can you explain again what you are trying to do?
  
  
  
   What data is the dataProvider for the repeater?
  
  
  
   Is that data different from the data you are trying to show in the
   repeated controls?
  
  
  
   Tracy
  
  
  
   
  
   From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Amy
   Sent: Thursday, October 16, 2008 5:51 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Repeater control and custom Component
  
  
  
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , lysfael schwazel@ wrote:
   
Hello,
   
Since it's not the same problem as the old one, i post a new
  topic on
this, i hope this way to do enter in the ToS.
   
I created a component Box-Based, which contains a repeater
 and some
other attributes.
   
Since my english isn't perfect i'll post part of the code i
 produced
and tell you what's the problem now.
  
   There is no point using a repeater from AS. This is one component
  that
   you should use in MXML if you want to use it.
  
 
 
 


 


[flexcoders] Total for whole stack

2008-10-20 Thread nehavyas13
Is it possible to show the total for the stacked bar in column chart
and bar chart?

eg. If I have two series with values 3 and 5 and they are stacked, I
just want to show the total 8 for the whole stack on the top as in
data label. But what I able to find is only showlilng datalabel using
labelPosition for each series.

Is it possible to show the total of whole stack on top? If yes, please
let me  know how?

thanks



RE: [flexcoders] Dispatching The itemEditEnd event from within an item editor

2008-10-20 Thread Tracy Spratt
It sounds like you are using renderIsEditor=true, which causes the DG
to use its own interactive event handling and item updating. 

 

For moderately complex interactive renderers, you might be better served
by having the renderer handle that work itself.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Randy Martin
Sent: Monday, October 20, 2008 7:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dispatching The itemEditEnd event from within an
item editor

 

I have a custom item editor for a cell in a DataGrid that consists of 
two ComboBoxes. Everything works perfectly, except I'd like a way to 
exit the item editor as soon as the user selects from the second combo 
box.

That is, I'd like the item editor to dispatch the itemEditEnd event as 
if the use had removed the focus from the column being edited.

I tried just having the 2nd combo box dispatch the event in response to 
its change event, but that didn't work.

Anyone have any suggestions?

TIA,
~randy 

 



RE: [flexcoders] file upload with rpc

2008-10-20 Thread Tracy Spratt
Please clarify your question.  rpc means many things.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Deniz Davutoglu
Sent: Monday, October 20, 2008 3:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] file upload with rpc

 

Hi guys,
does any one tried to upload file using rpc?
I wonder how can I post files using rpc...
thanks.
Deniz

 



[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 You can't apply any effects or transformations (alpha, rotation, 
scaling
 etc.) on fonts if they are not embedded!

So they tell me.  Yet somehow I do, by setting the blendMode.  Go 
figure ;-).



Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
Could you post a working example? This would really interest me!


On Mon, Oct 20, 2008 at 5:08 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Haykel BEN JEMIA [EMAIL PROTECTED]
 wrote:
 
  You can't apply any effects or transformations (alpha, rotation,
 scaling
  etc.) on fonts if they are not embedded!

 So they tell me. Yet somehow I do, by setting the blendMode. Go
 figure ;-).

  




-- 
Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com


RE: [flexcoders] Re: My Flex Form - it works!

2008-10-20 Thread Tracy Spratt
Can't help with the PHP code but your theory is good.  I wrap all of my
returned data in a status node, and my result handlers look for this,
use the error information in an error situation, or just strip off that
node if status is success.

 

By the way, don't overstress on the OOP theory too soon.  There are far
more important things to focus on when learning than loose coupling.
That is a design goal that has costs, particularly in complexity and
readability and maintainability.  It benefits are not realized unless
you re-use your components.  Personally, I found that I needed to create
a component two or three times before I got it to a point that I would
want to re-use it anyway!

 

Encapsulation, on the other hand is a goal that will bring much more
immediate benefits.  Even if you do not plan to re-use your component as
a whole, well organized functionality will help with cut and paste
inheritance.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of brucewhealton
Sent: Sunday, October 19, 2008 5:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: My Flex Form - it works!

 

Hi Paul and others,
Having followed your directions and seeing my own faults, I
finally got this working, using the simple design that I chose from
the beginning. I had covered OOP and AS 3.0 but until you do
different things, it's not the same as learning it in a class. 
Learning to think in an OOP way is what I am developing as a skill. 
I did get it though when you mentioned the idea of not having
the custom component rely on methods or properties in the application. 
The only problem I have is how to handle the Fault Event from the
HTTPService. If the php form mailer had a problem then we would
handle that with the fault_handler method. I was wondering if someone
here knew php enough to be able to tell me how I could return a value
to the component if something goes wrong. I have the function
fault_handler(event:ResultEvent):void and that will get called from
resultHandler if the code returns: event.result == ERROR.
My php form does this:
$OK = mail ($mail_to, $subject, $message, $headers);

if ($OK)
{
echo 'sent=OK';
} 
else 
{
echo 'sent=ERROR';
}


Will this work in the php? If so, do I just check for ERROR as the
value of event.result?
Thanks in advance,
Bruce 

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

 A quick look.
 
 You have in sendMyData::
 
 obj.Name = Name.text;
 obj.Email = Email.text;
 obj.Message = Message.text;
 
 Yet FormComp has:
 
 mx:FormItem label=Name:
 mx:TextInput/
 /mx:FormItem
 mx:FormItem label=Email:
 mx:TextInput/
 /mx:FormItem
 mx:FormItem label=Message:
 mx:TextArea/
 /mx:FormItem
 
 None of the form fields has an id..
 
 Also,
 
 mx:Button label=Contact Us fontSize=16 click=sendMyData()/
 
 shows a click handler function sendMyData(), yet there's no function

 called that in FormComp. sendMydata() is part of the parent
application. You 
 can probably get away with referring to
Application.application.sendMyData, 
 but that's really bad practice.
 
 The coupling of these components is really not as it should be try
and build 
 components that can be used standalone without having to refer
directly to 
 what is happeining outside. The formComp shouldn't be accessing a
handler in 
 the parent application.
 
 The form should dispatch a custom event saying that the form has
been filled 
 in and that event should include a payload of the form content. The 
 application should listen for that event and despatch a message
using the 
 event payload.
 
 I would suggest recapping some of your classes.
 
 Paul
 
 
 
 
 
 - Original Message - 
 From: brucewhealton [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

 Sent: Friday, October 17, 2008 1:34 AM
 Subject: [flexcoders] Re: My Flex Form - please help
 
 
  Hi,
  I have to ask something else... when you said change the
  reference to Name, I wasn't sure that you meant on the left of the =
  or right.
  I have taken a class on AS 3.0 and two on Flex 3 and it was very
  extensive... getting into OOP. I thought I had things figured out.
  Could you or someone please look at my code and specifically edit it
  to work. It is very small and I only need to have one field in the
  form for demonstration purposes. It might be only a line or two that
  needs to be changed or added. There are only two files so far.
  Here's the link:
  http://fwweb.biz/ContactForm.zip http://fwweb.biz/ContactForm.zip 
  Please email me directly or post the fixed code specifically as
  it would need to be for this to work.
  I'll reproduce the code below as well. It's not long. As a
  note, I did find a free Flex/PHP application that does this.
However,
  I want to figure out how to get the very basic application that I
  started, working right, instead of just taking something else. I

[flexcoders] Bitmap Data - setting the quality

2008-10-20 Thread jenonflex
Hi All,
This is more of an AS3 question. I am not sure if this is the correct
forum to ask. I have a SWF which is loaded into the display list and I
need to take a snapshot of it using BitmapData.draw() method. I am
doing it, but as the SWF is of high quality and have got lot of
objects in it, its taking extra time, which is not affordable for me.
Can we take a snapshot of the SWF with very low quality or low
resoltion? I just need a low quality representation of the SWF, so the
quality can be very low.

Regards,
Jen-



[flexcoders] Re: Still no one knows ? Please help.

2008-10-20 Thread Randy Martin
The CheckBox has two styles that control the color of the actual 
checkmark:

iconColor - the color of the checkmark
iconDisabledColor - the color of the checkmark when the control is 
disabled

Just set these to the colors you want.

~randy


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

 Does anyone knows how to change the 
 color of bullet (radio) or checkmark
 in menu box ? Always black.





RE: [flexcoders] Re: Crazy DataGrid display of XMLListCollection

2008-10-20 Thread Tracy Spratt
You are sure you are using the Collection API exclusively?  And not
doing any direct assignments of values to item porperties?  For example:

var oCurrentItem:MyItem = myAC.getItemAt(0);

oCurrentItem.myProperty = myValue;//direct assignment does not
cause UI to update

 

If you are doing any of the above, then you need to call itemUpdated()
after the assignment.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Saturday, October 18, 2008 5:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Crazy DataGrid display of XMLListCollection

 

Hi,

If the dataProvider is [Bindable], the DataGrid should reflect the
changes to the dataProvider; when the dataProvider is changed.  For the
itemRenderer question, here's one way to update the display list:

override public function set data(value:Object):void
{ 
if (value != null) 
{
super.data = value; 

   // do something conditional

super.invalidateDisplayList();
} 
}

However, since there isn't any conditional changes to the itemRenderer,
this would be unnecessary.

-TH

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

 I am trying to update the display of an XMLListCollection in a
 2-column DataGrid but I am getting crazy results.
 
 The XMLListCollection contains following data:
 
 itemorder1/ordercontentAAA/content/item
 itemorder2/ordercontentBBB/content/item
 itemorder3/ordercontentCCC/content/item
 itemorder4/ordercontentDDD/content/item
 
 I am providing the user with two buttons to raise or lower the content
 within the XMLListCollection. For example, if the user selects the
 'CCC' row and clicks the 'RaiseButton' then the XMLListCollection will
 change to:
 
 itemorder1/ordercontentAAA/content/item
 itemorder2/ordercontentCCC/content/item
 itemorder3/ordercontentBBB/content/item
 itemorder4/ordercontentDDD/content/item
 
 Note that the order field is recalculated to always be increasing -
 and the content field is reordered.
 
 I've created a new Class that extends XMLListCollection with two new
 functions: 'raiseItem' and 'lowerItem'. These new functions take
 copies of the XML for the 'BBB' row and the 'CCC' row, and then rely
 upon the XMLListCollection function 'setItemAt' to do the reordering.
 The underlying XMLList is then sent to a server for processing. This
 seems to work perfectly and traces of the XMLListCollection always
 seem correct.
 
 Unfortunately the XMLListCollection display in the DataGrid fails to
 keep up with changes in the underlying data.
 
 I've tried lots of combinations of 'invalidateDisplayList',
 'invalidateList', 'validateNow', 'refresh' and 'sort'. I've tried
 nullifying and resetting the 'dataProvider'. And I've tried copying
 over the entire list XMLListCollection one element at a time into a
 new display version of the XMLListCollection. Often I get duplicate
 display rows, but sometimes I get the entire list displayed in
reverse?!
 
 I suspect the itemRenderers aren't getting the message that they
 should be refreshing (one column uses the 'labelFunction' and the
 other has a not-too-complicated custom itemRenderer).
 
 How would I go about invalidating the display of *each* itemRenderer
 individually? What else should I try??
 
 Thanks!


 



[flexcoders] Re: Dispatching The itemEditEnd event from within an item editor

2008-10-20 Thread Randy Martin
Thanks, Tracy. And you're right. I'm only using an ItemEditor. 
There's no custom renderer. I really don't need a custom renderer 
because I'm able to pass back a combination of the two selected items 
in the itemEditEnd event handler.

Are you saying that if I used a custom renderer, I could trigger the 
itemEditEnd event when the selection from the 2nd combo box is made?

I'll look into that, but if you have a quick example, it would save 
me some time.

TIA,
~randy



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

 It sounds like you are using renderIsEditor=true, which causes 
the DG
 to use its own interactive event handling and item updating. 
 
  
 
 For moderately complex interactive renderers, you might be better 
served
 by having the renderer handle that work itself.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Randy Martin
 Sent: Monday, October 20, 2008 7:39 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dispatching The itemEditEnd event from within 
an
 item editor
 
  
 
 I have a custom item editor for a cell in a DataGrid that consists 
of 
 two ComboBoxes. Everything works perfectly, except I'd like a way 
to 
 exit the item editor as soon as the user selects from the second 
combo 
 box.
 
 That is, I'd like the item editor to dispatch the itemEditEnd event 
as 
 if the use had removed the focus from the column being edited.
 
 I tried just having the 2nd combo box dispatch the event in 
response to 
 its change event, but that didn't work.
 
 Anyone have any suggestions?
 
 TIA,
 ~randy





RE: [flexcoders] Re: Dispatching The itemEditEnd event from within an item editor

2008-10-20 Thread Tracy Spratt
No, I am saying that you would not use an itemEndEdit handler at all,
but would do the item update in the renderer.

 

I do not know how to directly displatch that event.  You might be able
to change the focus off that cell and cause the event to dispatch.  Or
perhaps set editedItemPosition=null;

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Randy Martin
Sent: Monday, October 20, 2008 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dispatching The itemEditEnd event from within
an item editor

 

Thanks, Tracy. And you're right. I'm only using an ItemEditor. 
There's no custom renderer. I really don't need a custom renderer 
because I'm able to pass back a combination of the two selected items 
in the itemEditEnd event handler.

Are you saying that if I used a custom renderer, I could trigger the 
itemEditEnd event when the selection from the 2nd combo box is made?

I'll look into that, but if you have a quick example, it would save 
me some time.

TIA,
~randy

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

 It sounds like you are using renderIsEditor=true, which causes 
the DG
 to use its own interactive event handling and item updating. 
 
 
 
 For moderately complex interactive renderers, you might be better 
served
 by having the renderer handle that work itself.
 
 
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Randy Martin
 Sent: Monday, October 20, 2008 7:39 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Dispatching The itemEditEnd event from within 
an
 item editor
 
 
 
 I have a custom item editor for a cell in a DataGrid that consists 
of 
 two ComboBoxes. Everything works perfectly, except I'd like a way 
to 
 exit the item editor as soon as the user selects from the second 
combo 
 box.
 
 That is, I'd like the item editor to dispatch the itemEditEnd event 
as 
 if the use had removed the focus from the column being edited.
 
 I tried just having the 2nd combo box dispatch the event in 
response to 
 its change event, but that didn't work.
 
 Anyone have any suggestions?
 
 TIA,
 ~randy


 



Re: [flexcoders] [ANN Class] 3D Interactive UI, Papervision w/ Flex for Games and more

2008-10-20 Thread Igor Costa
In his own website. not here.

I guess here it's just to learn new things, not to buy one.

It's my opinion.

Regards
Igor

On Sun, Oct 19, 2008 at 3:14 PM, Paul Andrews [EMAIL PROTECTED] wrote:

   
 Where would be the right place for something like this?

 - Original Message -
 *From:* Igor Costa [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Sunday, October 19, 2008 9:28 PM
 *Subject:* Re: [flexcoders] [ANN Class] 3D Interactive UI, Papervision w/
 Flex for Games and more

  Come on.

 Isn't the right place for spam.

 On Fri, Oct 17, 2008 at 4:38 PM, v.cekvenich [EMAIL PROTECTED]wrote:

   A 10 hour bootcamp in Flex to learn 3D using Papervision. Taught by
 professional trainer Vic Cekvenich. In SF on 11/20 after Max,more info
 at: http://papervision.proj.com $200-400.

 We will cover hands on labs from scratch:

 * Setting up the SDK
 * Warm up: 2D Motion
 * 3D Primitives
 * 3D Math
 * Materials
 * Make a complex objects (Collada)
 * Interactions
 * Shadows/Reflection
 * Flash 10
 * Calling a remote (web java/data ) service
 * and more.

 This is an intensive all day class stressing techniques useful for
 gaming and traditional 3D. You will walk out comfortable creating
 simple 3D games or a Rich UI Web site.

 You must provide your own laptop, over 1 GB ram recommended. Power
 will be provided for each laptop. We will mail you class prep
 materials on a usb stick 10 days before the class. You will also have
 support after the class.

 .V




 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org

  




-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


[flexcoders] modules and services-config.xml

2008-10-20 Thread Maciek Sakrejda
I asked this on Saturday, but it was as a clarification to another
question and got no response, so I thought I'd ask again.

What's the best way to deal with modules that define their own set of
AMF endpoints (or even channels)? I need a single services-config.xml
file for the entire war file (I'm deploying as a Java war), right? Is
there an easy way to set up AMF so that others can add modules to the
war without having to recompile the main application against a new
services-config.xml? Is there any way to do that? Modules seem really
cool, but it would be nice if they were self-contained with respect to
this...
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com




[flexcoders] programmatic vbox serious bug?

2008-10-20 Thread fotis.chatzinikos
Hi, i am making a vbox via actionscript and set its width and height
to 200x300... After adding a single button (or anything else) if i
throw an alert with its width and height they seem correct
but...scroll bars appear which can scroll the vbox as if it was 2000
by 2000 pixels wide/high...

The relevant code is:

var extraTagsSelectionVBox:VBox = new VBox() ;
extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
extraTagsSelectionVBox.setStyle(borderStyle,solid) ;
extraTagsSelectionVBox.setStyle(borderThickness,3) ;
extraTagsSelectionVBox.setStyle(paddingLeft,5) ;
extraTagsSelectionVBox.setStyle(paddingRight,5) ;
extraTagsSelectionVBox.setStyle(paddingTop,5) ;
extraTagsSelectionVBox.setStyle(paddingBottom,5) ;

var b:Button = new Button() ;
b.label = Extra Tags [Close] ;
b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
extraTagsSelectionVBox.addChild(b) ;

//THIS ADDS the VBox in a parent container
//rawchildren...

mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;

please can someone have a look?



[flexcoders] Re: sailorsea21 - RemoveChild question.

2008-10-20 Thread sailorsea21
I'm trying to re-introduce the VBox container to wrap the module and 
the button, this way each tile will display a module and a button 
together instead of seperating the module and button in seperate 
tiles but it always gives me the child error... 

Also, is it possible to have the unload button along with other 
buttons within a Hbox inside the Vbox?
The VBox will contain my ModuleLoader and the Hbox.
The Hbox will contain my unload button along with other buttons???

mx:Script
![CDATA[

import mx.containers.VBox;
import mx.modules.ModuleLoader;
import mx.controls.Button;  

private var main_vbox:VBox;
private var moduleloader:ModuleLoader;
private var unload_button:Button;

private var _aChildren:Array=[];

private function unloadclick(event:Event):void 
{
var iIndexClicked:int = parseInt(event.target.id);  
main_vbox.removeChild(_aChildren[iIndexClicked]);
main_vbox.removeChild(DisplayObject(event.target));
}

public function Add():void 
{
var NewModule:int = _aChildren.length;  
main_vbox = new VBox();
modulestile.addChild(main_vbox);
moduleloader = new ModuleLoader();
moduleloader.url = test.swf;
_aChildren[NewModule] = main_vbox.addChild(moduleloader);
unload_button = new Button();
unload_button.label = unload;
unload_button.id = String(NewModule);
unload_button.addEventListener(MouseEvent.CLICK, unloadclick);
main_vbox.addChild(unload_button);
}

]] 
/mx:Script

mx:Tile id=modulestile styleName=pad8 direction=horizontal/



Thanks again.


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

 Because you introduced the Vbox container.  Neither the button or 
the
 moduleloader are children of modulestile, they are children of the 
Vbox.
 
  
 
 You now need to keep references to the Vbox instead, and remove 
that.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of sailorsea21
 Sent: Friday, October 17, 2008 3:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.
 
  
 
 Thanks Paul, that fixed the error in my file but I still receive 
the 
 error when I run my application, load modules and then try to 
unload 
 a loaded module. 
 
 Error:
 
 ArgumentError: Error #2025: The supplied DisplayObject must be a 
 child of the caller.
 at flash.display::DisplayObjectContainer/removeChild()
 at 
 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remo
 http://www.adobe.com/2006/flex/mx/internal::$remo 
 veChild()[E:\dev\3.1.0
 \frameworks\projects\framework\src\mx\core\UIComponent.as:5074]
 at mx.core::Container/removeChild()[E:\dev\3.1.0
 \frameworks\projects\framework\src\mx\core\Container.as:2267]
 at content_module_template_blank/unloadclick()
 [C:\Inetpub\wwwroot\LWY\UI\UI Score\UI Score 004
 \src\content_module_template_blank.mxml:39]
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Paul Andrews paul@ wrote:
 
  
  - Original Message - 
  From: sailorsea21 sailorsea21@
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
  Sent: Friday, October 17, 2008 8:01 PM
  Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.
  
  
   Here's my updated code:
  
   private var moduleloader:ModuleLoader;
   private var unload_button:Button;
   private var vbox:VBox;
   private var _aChildren:Array=[];
  
   private function unloadclick(event:Event):void
   {
   var iIndexClicked:int = parseInt(event.target.id);
   modulestile.removeChild(_aChildren[iIndexClicked]);
   *error* modulestile.removeChild(event.target); 
 *error*
  
  modulestile.removeChild(DisplayObject(event.target));
  
  
   }
  
   public function AddColumnGraphPanel():void
   {
   var iNewIndex:int = _aChildren.length;
   vbox = new VBox();
   modulestile.addChild(vbox);
   moduleloader = new ModuleLoader();
   moduleloader.url = test.swf;
   _aChildren[iNewIndex] = vbox.addChild(moduleloader);
   unload_button = new Button();
   unload_button.id = String(iNewIndex);
   unload_button.label = unload;
   unload_button.addEventListener(MouseEvent.CLICK, unloadclick);
   vbox.addChild(unload_button);
   }
  
   mx:Tile id=modulestile direction=horizontal
   /mx:Tile
  
   I have the following error in the script:
   1118: Implicit coercion of a value with static type Object to a
   possibly unrelated type flash.display:DisplayObject.
  
  Quite right too..
  
  
   Thanks again :)
  
   -David
  
  
  
  
  
  
  
  
  
  
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ 
 wrote:
  
   That is correct, you are not storing references correctly. 
 First I
   

[flexcoders] Vector graphics sloppy in flex

2008-10-20 Thread hectorharvey2
I use Inkscape for icons in my flex development.  I build the icon,
and then export it as a .PNG file for use by flex.  I would much
rather lose the .PNG and just use the .SVG file directly in flex, but
the flex rendering is not quite right.  Small rendering (16x16)
results in too much black, because lines are not properly thinned. 
With larger renderings, sometimes lines just don't start and stop
where they should.

I have read that flex only supports a subset of the .SVG capabilities.  

Is there 
A) an alternative package which can be used for rendering these vector
images
B) any guidelines for how to construct a .SVG image which will render
nicely within flex



[flexcoders] Re: Resource Bundle Missing in AIR

2008-10-20 Thread Geoffrey
Still have not found a fix for this.  Any one else run into an issue
like this?

Thanks,
Geoff
--- In flexcoders@yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote:

 I'm using localization on a flex project for a slightly different use.
  We have 2 projects that share the same code base, but we want to
 change some UI text that's displayed.  So, we're using localization to
 swap certain text strings to be project specific.
 
 Everything works fine for the web version, but if I try to take that
 same localization setup and use it in our AIR version, it cannot find
 the required resource bundles.
 
 I've looked and they(web/AIR) appear to be set up identically.  My
 locales are: en_US_ProjA and en_US_ProjB.
 
 The AIR compiler argument is -locale=en_US,en_US_ProjA.  I only put
 the one project in to test getting the proper resource.
 
 My directories are:
  projRoot.src.locale.en_US.*
  projRoot.src.locale.en_US_ProjA.*
  projRoot.src.locale.en_US_ProjB.*
 
 When I debug a piece of localization code I see that the localeMap has
 2 entries, en_US and en_US_ProjA.  Both contain the same entries, but
 the properties files are pointing to different Obects.  For example:
 en_US_ProjA$CairngormMessages_properties (@c3547b9).  I should be
 seeing a UI_Text property file in the list of resource bundle objects,
 but it's missing.
 
 I'm stumped as to why it works just fine from a browser, but pukes
in AIR.
 
 Thanks,
 Geoff





[flexcoders] Re: Can AIR call local DLLs?

2008-10-20 Thread thegators_2002
Okay, thanks!  I guess I can understand that, since it would make AIR
platform-dependent in a way (even though that could be optional).

So, is it possible to create a PDF from an AIR app?  Just create one
from scratch and spit it out so that it opens in Acrobat Reader?  Or
if not, can I have a generic template of a PDF file, open it and
modify it in AIR (using JavaScript or not), and then save it as a new
PDF, then Exec the OS to open that file?

Thanks for any help!


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

 The basic answer, anointed by Adobe, no.. 
 
  
 
 There is no COM bridge in Air, and I don't expect there to be one
 either. 
 
  
 
 Of note: 
 
  
 
 http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integra
 tion-proof-of-concept/
 
  
 
 another approach
 
  
 
 http://www.merapiproject.net/ 
 
  
 
 Although that's a java bridge
 
  
 
 K
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of thegators_2002
 Sent: Wednesday, October 15, 2008 8:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Can AIR call local DLLs?
 
  
 
 I have a couple older Flash 8 apps that are wrapped inside Zinc, and
 that call a custom DLL I did that takes some XML output from the Flash
 and blends it with an XML report template to spit out a PDF. I have
 some new applications to do, converting Flex web apps to AIR. But I
 need to print PDF reports for them as well. For AIR, is there any way
 that I can use the same custom print DLLs I have already written?
 
 I don't want to write these reports in Flex, they are really long and
 complex, and it would be a bad idea to have two versions to maintain
 along with the web-based versions.
 
 I just upgraded to Flex 3, but haven't seen this exact issue dealt
 with - printing to a PDF using some sort of external report template,
 rather than writing it out inside Flex.
 
 Thanks!





[flexcoders] Re: How Do I Programatically Make Flash Movie's Stage Expand Over its Container

2008-10-20 Thread jwebbsuccess
Thanks for your help.  I got the effect working to my expectations 
with your suggestion.  I made the Flash movie's height the size that I 
wanted it to expand to, then I used JavaScript to toggle the height of 
the movie's container div back and forth between the 'hidden' state 
and the 'revealed' state height.

Rock on.

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

 It is usually done but setting the wmode to transparent (or 
simething
 similar cannot remember - google for it) instead of opaque (flash
 objects in an html page are rendered on top of everything else this 
way)
 
 --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
 
  
  - Original Message - 
  From: jwebbsuccess jwebb@
  To: flexcoders@yahoogroups.com
  Sent: Sunday, October 19, 2008 11:58 PM
  Subject: [flexcoders] How Do I Programatically Make Flash Movie's 
Stage 
  Expand Over its Container Div?
  
  
   
http://www.futurewebstudios.com/clientspace/OMCC/ohpws_preview/index.p
   hp
  
   In the animation on the page above, notice the toy soldier 
spinning
   the candy cane.  The candy cane gets cut off by the bottom of 
the
   stage as it spins.  I'd like to grow the stage height to reveal 
the
   whole candy cane as it spins, then shink it back to it's 
starting
   height once the cane stops spinning.
  
   Does anyone know how to make the flash movie expand over the 
HTML div
   it is contained inside without changing the div's size?  I've 
seen
   Flash ads on websites like Yahoo.com and Huffingtonpost.com 
where
   mousing over the ad makes the ad expand to an arbitrary size 
without
   moving any of the page elements, as if the flash movie suddenly
   overlaps the rest of the page.  Once you mouseout, the movie 
returns
   to its original size/state inside the div.
  
  I think the movie is always at the full size, but has a 
transparent 
  background. Then you just mask the contents and change the size of 
the 
  mask..
  
  
  
   I've already got the code that fires an event when the toy 
solider
   starts and stops the spin.  Now I need the code to resize the
   animation without without moving any HTML elements.
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location: 
  
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-1e62079f6847
   Search Archives: 
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups 
   Links
  
  
  
  
 






[flexcoders] Re: flex and oracle

2008-10-20 Thread Anthony DeBonis
You would not want to make a direct Oracle connection from Flex – old 
Client/Server technology does not work over the Intranet.

You need to make service call either RemoteObject / WebService/HTTP 
Service calls.

For RemoteObject calls you can look into BlazeDS 
http://biemond.blogspot.com/2008/03/deploy-blazeds-on-oc4j-oracle-
as.html 

The oracle application server could support xml over http (or REST) 

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

 hello people
 its show time
 
 ok i have a question i'm new in programming with flex but im student
 and im looking for a way that i can connect oracle data base with 
flex
 it can help me a lot even a simple connection that can extract 
 something of database
 
 and what do u think bout adobe what they want to do?
 coz silverlight growup too quickly and i'm vory bout this
 
 thanks a lot to all of you and the admin of this group
 god bless you and try to make a world better place , peace  peace





Re: [flexcoders] programmatic vbox serious bug?

2008-10-20 Thread Michael Schmalle
Hi,
extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;

Set your styles with correct as3 Types;

extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
extraTagsSelectionVBox.setStyle(backgroundColor, 0x00FF00) ;

Mike

On Mon, Oct 20, 2008 at 11:59 AM, fotis.chatzinikos 
[EMAIL PROTECTED] wrote:

   Hi, i am making a vbox via actionscript and set its width and height
 to 200x300... After adding a single button (or anything else) if i
 throw an alert with its width and height they seem correct
 but...scroll bars appear which can scroll the vbox as if it was 2000
 by 2000 pixels wide/high...

 The relevant code is:

 var extraTagsSelectionVBox:VBox = new VBox() ;
 extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
 extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
 extraTagsSelectionVBox.setStyle(borderStyle,solid) ;
 extraTagsSelectionVBox.setStyle(borderThickness,3) ;
 extraTagsSelectionVBox.setStyle(paddingLeft,5) ;
 extraTagsSelectionVBox.setStyle(paddingRight,5) ;
 extraTagsSelectionVBox.setStyle(paddingTop,5) ;
 extraTagsSelectionVBox.setStyle(paddingBottom,5) ;

 var b:Button = new Button() ;
 b.label = Extra Tags [Close] ;
 b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
 extraTagsSelectionVBox.addChild(b) ;

 //THIS ADDS the VBox in a parent container
 //rawchildren...

 mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;

 please can someone have a look?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 Could you post a working example? This would really interest me!

I'll try to make time tonight :-).

-Amy



Re: [flexcoders] Re: flex and oracle

2008-10-20 Thread Paul Andrews
- Original Message - 
From: Anthony DeBonis [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, October 20, 2008 5:29 PM
Subject: [flexcoders] Re: flex and oracle


snip

 old Client/Server technology does not work over the Intranet.

That'll be news to a lot of Oracle developers..

snip


[flexcoders] Re: sailorsea21 - RemoveChild question.

2008-10-20 Thread sailorsea21
This is what I am now trying to accomplish...

I would like to have a VBOX container to wrap the module and the 
button. This way both items can be displayed in one tile instead of 
having them split into different tiles... 

Then I would like to have a HBOX container to wrap the unload button 
and other buttons...

The VBOX has the ModuleLoader as a child and the HBOX.
The HBOX has the unload button and other buttons as childs.
Is this possible?

Here's my code:

mx:Script
![CDATA[
import mx.containers.VBox;
import mx.containers.HBox;
import mx.modules.ModuleLoader;
import mx.controls.Button;  

private var main_vbox:VBox;
private var buttons_hbox:HBox;
private var moduleloader:ModuleLoader;
private var unload_button:Button;
private var button002:Button;
private var button003:Button;   

private var _aChildren:Array=[];

private function unloadclick(event:Event):void 
{
var iIndexClicked:int = parseInt(event.target.id);  
modulestile.removeChild(_aChildren[iIndexClicked]);
modulestile.removeChild(DisplayObject(event.target));
}

public function AddModule():void 
{
var NewVbox:int = _aChildren.length;

main_vbox = new VBox(); 
main_vbox.id = String(NewVbox);
_aChildren[NewVbox] = modulestile.addChild(main_vbox);

moduleloader = new ModuleLoader();
moduleloader.url = test.swf;
main_vbox.addChild(moduleloader);   

buttons_hbox = new HBox();  
main_vbox.addChild(buttons_hbox);

button002 = new Button();
button002.label = 002;
buttons_hbox.addChild(button002);

button003 = new Button();
button003.label = 003;
buttons_hbox.addChild(button003);

unload_button = new Button();
unload_button.label = unload;
unload_button.addEventListener(MouseEvent.CLICK, unloadclick);
buttons_hbox.addChild(unload_button);
}   

]] 
/mx:Script

mx:Tile id=modulestile/ 


Thank you.


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

 Because you introduced the Vbox container.  Neither the button or 
the
 moduleloader are children of modulestile, they are children of the 
Vbox.
 
  
 
 You now need to keep references to the Vbox instead, and remove 
that.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of sailorsea21
 Sent: Friday, October 17, 2008 3:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.
 
  
 
 Thanks Paul, that fixed the error in my file but I still receive 
the 
 error when I run my application, load modules and then try to 
unload 
 a loaded module. 
 
 Error:
 
 ArgumentError: Error #2025: The supplied DisplayObject must be a 
 child of the caller.
 at flash.display::DisplayObjectContainer/removeChild()
 at 
 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remo
 http://www.adobe.com/2006/flex/mx/internal::$remo 
 veChild()[E:\dev\3.1.0
 \frameworks\projects\framework\src\mx\core\UIComponent.as:5074]
 at mx.core::Container/removeChild()[E:\dev\3.1.0
 \frameworks\projects\framework\src\mx\core\Container.as:2267]
 at content_module_template_blank/unloadclick()
 [C:\Inetpub\wwwroot\LWY\UI\UI Score\UI Score 004
 \src\content_module_template_blank.mxml:39]
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Paul Andrews paul@ wrote:
 
  
  - Original Message - 
  From: sailorsea21 sailorsea21@
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
  Sent: Friday, October 17, 2008 8:01 PM
  Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.
  
  
   Here's my updated code:
  
   private var moduleloader:ModuleLoader;
   private var unload_button:Button;
   private var vbox:VBox;
   private var _aChildren:Array=[];
  
   private function unloadclick(event:Event):void
   {
   var iIndexClicked:int = parseInt(event.target.id);
   modulestile.removeChild(_aChildren[iIndexClicked]);
   *error* modulestile.removeChild(event.target); 
 *error*
  
  modulestile.removeChild(DisplayObject(event.target));
  
  
   }
  
   public function AddColumnGraphPanel():void
   {
   var iNewIndex:int = _aChildren.length;
   vbox = new VBox();
   modulestile.addChild(vbox);
   moduleloader = new ModuleLoader();
   moduleloader.url = test.swf;
   _aChildren[iNewIndex] = vbox.addChild(moduleloader);
   unload_button = new Button();
 

[flexcoders] How to set up FLEX3/LCDS/JBoss Development Enironment ?

2008-10-20 Thread markflex2007
I need start a project with FLEX3/LCDS on JBoss,

I need set up it and make simple things (like 'hello world') work.

Please help me.

Thanks

Mark



Re: [flexcoders] How to set up FLEX3/LCDS/JBoss Development Enironment ?

2008-10-20 Thread James Ward
http://www.infoq.com/articles/blazeds-intro

Does that help?

-James



From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Mon Oct 20 09:52:34 2008
Subject: [flexcoders] How to set up FLEX3/LCDS/JBoss Development Enironment ?

I need start a project with FLEX3/LCDS on JBoss,

I need set up it and make simple things (like 'hello world') work.

Please help me.

Thanks

Mark





[flexcoders] Re: programmatic vbox serious bug?

2008-10-20 Thread fotis.chatzinikos
Amazing ;-) It works now... Did not know the bit about passing correct
types to setstyles... Thought that i had to pass strings like when
using mxml...

Thanks!

PS: The amazing bit is because all properties that i was setting
seemed to be ok (debug via Alert)...



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

 Hi,
 extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
 extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
 
 Set your styles with correct as3 Types;
 
 extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
 extraTagsSelectionVBox.setStyle(backgroundColor, 0x00FF00) ;
 
 Mike
 
 On Mon, Oct 20, 2008 at 11:59 AM, fotis.chatzinikos 
 [EMAIL PROTECTED] wrote:
 
Hi, i am making a vbox via actionscript and set its width and height
  to 200x300... After adding a single button (or anything else) if i
  throw an alert with its width and height they seem correct
  but...scroll bars appear which can scroll the vbox as if it was 2000
  by 2000 pixels wide/high...
 
  The relevant code is:
 
  var extraTagsSelectionVBox:VBox = new VBox() ;
  extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
  extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
  extraTagsSelectionVBox.setStyle(borderStyle,solid) ;
  extraTagsSelectionVBox.setStyle(borderThickness,3) ;
  extraTagsSelectionVBox.setStyle(paddingLeft,5) ;
  extraTagsSelectionVBox.setStyle(paddingRight,5) ;
  extraTagsSelectionVBox.setStyle(paddingTop,5) ;
  extraTagsSelectionVBox.setStyle(paddingBottom,5) ;
 
  var b:Button = new Button() ;
  b.label = Extra Tags [Close] ;
  b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
  extraTagsSelectionVBox.addChild(b) ;
 
  //THIS ADDS the VBox in a parent container
  //rawchildren...
 
  mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;
 
  please can someone have a look?
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: Resizing a class file

2008-10-20 Thread flexaustin
Sorry I should have been more specific. 

[Bindable]
public var myImage:Class;

myImage = functiontoGetImage(someparam); //obtained via CSS
[Embed(source=ui/nicePngImage.png)]
myImage.width = 10; // no code hinting for height for type Class.
myImage.height = 10; // no code hinting for width for type Class.
or 
myImage.scaleX = .2;
myImage.scaleY = .2;
//if I size them anyway I get no errors but then nothing happens.

the trick is, from my implementation is, you eventually have to do
something like this.

DisplayObject(displayIconObject).height = 10;
DisplayObject(displayIconObject).width = 10;









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

 Hi,
 It's more like you have to create an instance.
 
 The Class is an actionscript type like Boolean or String. This is like
 asking can you write Boolean.value = true;
 
 Try;
 
 override protected function createChildren():void
 {
 super.createChildren();
 instance = new myIcon();
 instance.width = 25;
 addChild(instance);
 }
 
 Mike
 
 On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
 [EMAIL PROTECTED] wrote:
 
Why don't u want to create an instance?
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  flexaustin flexaustin@ wrote:
  
   Is it possible to resize a Class file? Say you embed a swf or
png. Can
   you then resize it by casting is as something else?
  
   [Bindable]
   [Embed(source=ui/nicePngImage.png)]
   static public var myIcon:Class;
   myIcon.width = 30; // won't work
  
   TIA
  
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





Re: [flexcoders] Re: Resizing a class file

2008-10-20 Thread Michael Schmalle
Hi,
Your looking at the problem wrong.

You never assign an instance to a Class variable type. You need to create
another variable at the class level to hold the new instances that are type
Image.

functiontoGetImage() are you returning an instance or a Class to
instantiate?

Mike

On Mon, Oct 20, 2008 at 2:05 PM, flexaustin [EMAIL PROTECTED] wrote:

   Sorry I should have been more specific.

 [Bindable]
 public var myImage:Class;

 myImage = functiontoGetImage(someparam); //obtained via CSS

 [Embed(source=ui/nicePngImage.png)]
 myImage.width = 10; // no code hinting for height for type Class.
 myImage.height = 10; // no code hinting for width for type Class.
 or
 myImage.scaleX = .2;
 myImage.scaleY = .2;
 //if I size them anyway I get no errors but then nothing happens.

 the trick is, from my implementation is, you eventually have to do
 something like this.

 DisplayObject(displayIconObject).height = 10;
 DisplayObject(displayIconObject).width = 10;

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
  It's more like you have to create an instance.
 
  The Class is an actionscript type like Boolean or String. This is like
  asking can you write Boolean.value = true;
 
  Try;
 
  override protected function createChildren():void
  {
  super.createChildren();
  instance = new myIcon();
  instance.width = 25;
  addChild(instance);
  }
 
  Mike
 
  On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
  [EMAIL PROTECTED] wrote:
 
   Why don't u want to create an instance?
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   flexaustin flexaustin@ wrote:
   
Is it possible to resize a Class file? Say you embed a swf or
 png. Can
you then resize it by casting is as something else?
   
[Bindable]
[Embed(source=ui/nicePngImage.png)]
static public var myIcon:Class;
myIcon.width = 30; // won't work
   
TIA
   
  
  
  
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the question'.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Any luck with FlexBuilder Web Service Import Wizard and JAX-WS?

2008-10-20 Thread Anthony DeBonis
Has anyone had the with the FlexBuilder Web Service Import Wizard work 
with JAX –WS?  Just checking - I am hearing reports it does not work.

Looks to be a problem working with JAX-WS based web service – works 
with less complex JAX-RPC based service but can also fail on more 
complex RPC 




Re: [flexcoders] Re: Can AIR call local DLLs?

2008-10-20 Thread Weyert de Boer
You can use AlivePDF to generate PDF files.


[flexcoders] HTML real caret position

2008-10-20 Thread xmrcivicboix
I have this issue about the rich text editor that I hope someone can
help with. Basically, I want to be able to insert the string
'!--pagebreak--' at a certain caret index. This works fine when I
use the textarea.text property but when I use textarea.htmlText, it
inserts the '!--pagebreak-- 7 characters before the caret. This is
because it counted the format 'B/B' as indices. To
illustrate what I meant. Take a look:

TEXT INSERTING:
The BUnited States/B is acting in step with Europe, where
governments often take a more interventionist stance in economies and
the financial systems are in the hands of a comparatively small number
of banks.
[CURSOR GOES HERE]
Britain took the lead last week, declaring its intention to take
equity stakes in banks to steady them. In the last two days, France,
Italy and Spain have announced rescue packages for their banks that
include state shareholdings.

RESULT:
The BUnited States/B is acting in step with Europe, where
governments often take a more interventionist stance in economies and
the financial systems are in the hands of a comparatively small number
of !--pagebreak--banks.

Britain took the lead last week, declaring its intention to take
equity stakes in banks to steady them. In the last two days, France,
Italy and Spain have announced rescue packages for their banks that
include state shareholdings.

CODE:
var carIndex:int = textArea.getTextField().caretIndex;
var beginText:String = this.htmlText.substring(0, carIndex);
var endText:String = this.htmlText.substr(carIndex,this.htmlText.length);
var text:String = beginText + \n lt;!--pagebreak--gt; \n + endText;
this.htmlText = text;

I can use the 'text' property but then I will lose all my formatting. 

Can anyone think of a solution?

Thanks



[flexcoders] Re: Papervision 3D and Flex components

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 Is it possible to wrap an entire Flex component (for instance, a 
 TileList) in PaperVision 3D in such a way that you give it a more 3D 
 appearance, yet still keep it interactive?  I've seen this demo 
 http://dev.getoutsmart.com/os3d/demos/videoroom/, but I have no idea 
if 
 it is PaperVision or what.

Bump...



[flexcoders] Re: Resource Bundle Missing in AIR - Solved

2008-10-20 Thread Geoffrey
RTFM

mx:Metadata
[ResourceBundle(Resource_file_name)]
/mx:Metadata

Forgot this part

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

 Still have not found a fix for this.  Any one else run into an issue
 like this?
 
 Thanks,
 Geoff
 --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
 
  I'm using localization on a flex project for a slightly different use.
   We have 2 projects that share the same code base, but we want to
  change some UI text that's displayed.  So, we're using localization to
  swap certain text strings to be project specific.
  
  Everything works fine for the web version, but if I try to take that
  same localization setup and use it in our AIR version, it cannot find
  the required resource bundles.
  
  I've looked and they(web/AIR) appear to be set up identically.  My
  locales are: en_US_ProjA and en_US_ProjB.
  
  The AIR compiler argument is -locale=en_US,en_US_ProjA.  I only put
  the one project in to test getting the proper resource.
  
  My directories are:
   projRoot.src.locale.en_US.*
   projRoot.src.locale.en_US_ProjA.*
   projRoot.src.locale.en_US_ProjB.*
  
  When I debug a piece of localization code I see that the localeMap has
  2 entries, en_US and en_US_ProjA.  Both contain the same entries, but
  the properties files are pointing to different Obects.  For example:
  en_US_ProjA$CairngormMessages_properties (@c3547b9).  I should be
  seeing a UI_Text property file in the list of resource bundle objects,
  but it's missing.
  
  I'm stumped as to why it works just fine from a browser, but pukes
 in AIR.
  
  Thanks,
  Geoff
 





RE: [flexcoders] Re: sailorsea21 - RemoveChild question.

2008-10-20 Thread Tracy Spratt
Your theory looks ok, and though it probably does not matter, I would
instantiate and populate the Vbox component first and the last step
would be to add it to the displayList with addChild.

 

Are you still having a problem?

 

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sailorsea21
Sent: Monday, October 20, 2008 12:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.

 

This is what I am now trying to accomplish...

I would like to have a VBOX container to wrap the module and the 
button. This way both items can be displayed in one tile instead of 
having them split into different tiles... 

Then I would like to have a HBOX container to wrap the unload button 
and other buttons...

The VBOX has the ModuleLoader as a child and the HBOX.
The HBOX has the unload button and other buttons as childs.
Is this possible?

Here's my code:

mx:Script
![CDATA[
import mx.containers.VBox;
import mx.containers.HBox;
import mx.modules.ModuleLoader;
import mx.controls.Button; 

private var main_vbox:VBox;
private var buttons_hbox:HBox;
private var moduleloader:ModuleLoader;
private var unload_button:Button;
private var button002:Button;
private var button003:Button; 

private var _aChildren:Array=[];

private function unloadclick(event:Event):void 
{
var iIndexClicked:int = parseInt(event.target.id); 
modulestile.removeChild(_aChildren[iIndexClicked]);
modulestile.removeChild(DisplayObject(event.target));
}

public function AddModule():void 
{
var NewVbox:int = _aChildren.length;

main_vbox = new VBox(); 
main_vbox.id = String(NewVbox);
_aChildren[NewVbox] = modulestile.addChild(main_vbox);

moduleloader = new ModuleLoader();
moduleloader.url = test.swf;
main_vbox.addChild(moduleloader); 

buttons_hbox = new HBox(); 
main_vbox.addChild(buttons_hbox);

button002 = new Button();
button002.label = 002;
buttons_hbox.addChild(button002);

button003 = new Button();
button003.label = 003;
buttons_hbox.addChild(button003);

unload_button = new Button();
unload_button.label = unload;
unload_button.addEventListener(MouseEvent.CLICK, unloadclick);
buttons_hbox.addChild(unload_button);
} 

]] 
/mx:Script

mx:Tile id=modulestile/ 

Thank you.

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

 Because you introduced the Vbox container. Neither the button or 
the
 moduleloader are children of modulestile, they are children of the 
Vbox.
 
 
 
 You now need to keep references to the Vbox instead, and remove 
that.
 
 
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of sailorsea21
 Sent: Friday, October 17, 2008 3:21 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.
 
 
 
 Thanks Paul, that fixed the error in my file but I still receive 
the 
 error when I run my application, load modules and then try to 
unload 
 a loaded module. 
 
 Error:
 
 ArgumentError: Error #2025: The supplied DisplayObject must be a 
 child of the caller.
 at flash.display::DisplayObjectContainer/removeChild()
 at 
 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remo
http://www.adobe.com/2006/flex/mx/internal::$remo 
 http://www.adobe.com/2006/flex/mx/internal::$remo
http://www.adobe.com/2006/flex/mx/internal::$remo  
 veChild()[E:\dev\3.1.0
 \frameworks\projects\framework\src\mx\core\UIComponent.as:5074]
 at mx.core::Container/removeChild()[E:\dev\3.1.0
 \frameworks\projects\framework\src\mx\core\Container.as:2267]
 at content_module_template_blank/unloadclick()
 [C:\Inetpub\wwwroot\LWY\UI\UI Score\UI Score 004
 \src\content_module_template_blank.mxml:39]
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 , Paul Andrews paul@ wrote:
 
  
  - Original Message - 
  From: sailorsea21 sailorsea21@
  To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 
  Sent: Friday, October 17, 2008 8:01 PM
  Subject: [flexcoders] Re: sailorsea21 - RemoveChild question.
  
  
   Here's my updated code:
  
   private var moduleloader:ModuleLoader;
   private var unload_button:Button;
   private var vbox:VBox;
   private var _aChildren:Array=[];
  
   private function unloadclick(event:Event):void
   {
   var iIndexClicked:int = parseInt(event.target.id);
   modulestile.removeChild(_aChildren[iIndexClicked]);
   *error* modulestile.removeChild(event.target); 
 *error*
  
  modulestile.removeChild(DisplayObject(event.target));
  
  
   }
  
   public function AddColumnGraphPanel():void
   {
   var iNewIndex:int = _aChildren.length;
   vbox = new VBox();
   modulestile.addChild(vbox);
   moduleloader = new 

Re: [flexcoders] HTML real caret position

2008-10-20 Thread Daniel Freiman
try:

http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#replaceSelectedText()

- Daniel Freiman

On Mon, Oct 20, 2008 at 2:28 PM, xmrcivicboix [EMAIL PROTECTED]wrote:

   I have this issue about the rich text editor that I hope someone can
 help with. Basically, I want to be able to insert the string
 '!--pagebreak--' at a certain caret index. This works fine when I
 use the textarea.text property but when I use textarea.htmlText, it
 inserts the '!--pagebreak-- 7 characters before the caret. This is
 because it counted the format 'B/B' as indices. To
 illustrate what I meant. Take a look:

 TEXT INSERTING:
 The BUnited States/B is acting in step with Europe, where
 governments often take a more interventionist stance in economies and
 the financial systems are in the hands of a comparatively small number
 of banks.
 [CURSOR GOES HERE]
 Britain took the lead last week, declaring its intention to take
 equity stakes in banks to steady them. In the last two days, France,
 Italy and Spain have announced rescue packages for their banks that
 include state shareholdings.

 RESULT:
 The BUnited States/B is acting in step with Europe, where
 governments often take a more interventionist stance in economies and
 the financial systems are in the hands of a comparatively small number
 of !--pagebreak--banks.

 Britain took the lead last week, declaring its intention to take
 equity stakes in banks to steady them. In the last two days, France,
 Italy and Spain have announced rescue packages for their banks that
 include state shareholdings.

 CODE:
 var carIndex:int = textArea.getTextField().caretIndex;
 var beginText:String = this.htmlText.substring(0, carIndex);
 var endText:String = this.htmlText.substr(carIndex,this.htmlText.length);
 var text:String = beginText + \n lt;!--pagebreak--gt; \n + endText;
 this.htmlText = text;

 I can use the 'text' property but then I will lose all my formatting.

 Can anyone think of a solution?

 Thanks

  



[flexcoders] Re: HTML real caret position

2008-10-20 Thread xmrcivicboix
OMG. This is nuts. I guess I should have read the docs a little
better. =) hey thanks again!

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

 try:
 

http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#replaceSelectedText()
 
 - Daniel Freiman
 
 On Mon, Oct 20, 2008 at 2:28 PM, xmrcivicboix [EMAIL PROTECTED]wrote:
 
I have this issue about the rich text editor that I hope someone can
  help with. Basically, I want to be able to insert the string
  '!--pagebreak--' at a certain caret index. This works fine when I
  use the textarea.text property but when I use textarea.htmlText, it
  inserts the '!--pagebreak-- 7 characters before the caret. This is
  because it counted the format 'B/B' as indices. To
  illustrate what I meant. Take a look:
 
  TEXT INSERTING:
  The BUnited States/B is acting in step with Europe, where
  governments often take a more interventionist stance in economies and
  the financial systems are in the hands of a comparatively small number
  of banks.
  [CURSOR GOES HERE]
  Britain took the lead last week, declaring its intention to take
  equity stakes in banks to steady them. In the last two days, France,
  Italy and Spain have announced rescue packages for their banks that
  include state shareholdings.
 
  RESULT:
  The BUnited States/B is acting in step with Europe, where
  governments often take a more interventionist stance in economies and
  the financial systems are in the hands of a comparatively small number
  of !--pagebreak--banks.
 
  Britain took the lead last week, declaring its intention to take
  equity stakes in banks to steady them. In the last two days, France,
  Italy and Spain have announced rescue packages for their banks that
  include state shareholdings.
 
  CODE:
  var carIndex:int = textArea.getTextField().caretIndex;
  var beginText:String = this.htmlText.substring(0, carIndex);
  var endText:String =
this.htmlText.substr(carIndex,this.htmlText.length);
  var text:String = beginText + \n lt;!--pagebreak--gt; \n +
endText;
  this.htmlText = text;
 
  I can use the 'text' property but then I will lose all my formatting.
 
  Can anyone think of a solution?
 
  Thanks
 
   
 





[flexcoders] Alert.show - Detect when closed from another mxml component

2008-10-20 Thread sleblang
I have an Alert.show() being called from a command class. I need to
detect when this Alert is closed in another mxml component (as opposed
to the command class). What's the best way to determine when it's been
closed?  Does the event bubble? So far I have not been able to 'catch'
it.

Thanks for any and all replies.



[flexcoders] Re: Resizing a class file

2008-10-20 Thread flexaustin
I am embedding a swf, which I believe requires a type of Class.

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

 Hi,
 Your looking at the problem wrong.
 
 You never assign an instance to a Class variable type. You need to
create
 another variable at the class level to hold the new instances that
are type
 Image.
 
 functiontoGetImage() are you returning an instance or a Class to
 instantiate?
 
 Mike
 
 On Mon, Oct 20, 2008 at 2:05 PM, flexaustin [EMAIL PROTECTED] wrote:
 
Sorry I should have been more specific.
 
  [Bindable]
  public var myImage:Class;
 
  myImage = functiontoGetImage(someparam); //obtained via CSS
 
  [Embed(source=ui/nicePngImage.png)]
  myImage.width = 10; // no code hinting for height for type Class.
  myImage.height = 10; // no code hinting for width for type Class.
  or
  myImage.scaleX = .2;
  myImage.scaleY = .2;
  //if I size them anyway I get no errors but then nothing happens.
 
  the trick is, from my implementation is, you eventually have to do
  something like this.
 
  DisplayObject(displayIconObject).height = 10;
  DisplayObject(displayIconObject).width = 10;
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Michael
  Schmalle
  teoti.graphix@ wrote:
  
   Hi,
   It's more like you have to create an instance.
  
   The Class is an actionscript type like Boolean or String. This
is like
   asking can you write Boolean.value = true;
  
   Try;
  
   override protected function createChildren():void
   {
   super.createChildren();
   instance = new myIcon();
   instance.width = 25;
   addChild(instance);
   }
  
   Mike
  
   On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
   florian.salihovic@ wrote:
  
Why don't u want to create an instance?
   
--- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.comflexcoders%
  40yahoogroups.com,
flexaustin flexaustin@ wrote:

 Is it possible to resize a Class file? Say you embed a swf or
  png. Can
 you then resize it by casting is as something else?

 [Bindable]
 [Embed(source=ui/nicePngImage.png)]
 static public var myIcon:Class;
 myIcon.width = 30; // won't work

 TIA

   
   
   
  
  
  
   --
   Teoti Graphix, LLC
   http://www.teotigraphix.com
  
   Teoti Graphix Blog
   http://www.blog.teotigraphix.com
  
   You can find more by solving the problem then by 'asking the
question'.
  
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread flexaustin
Is it possible using MXML, not AS3 classes, to keep an item out of the
updateDisplayList and/or the measure() method?

I have an icon that is 30px by 30px and needs to remain centered
within a component. But the catch is that if someone clicks the icon
it will show another state where I add a graph underneath the icon.
This works fine but what happens is that flex on the next
updatedisplaylist and measure call it sees the new graph then centers
on the icon + graph, which I don't want to happen. I don't want Flex
to know it exists. 

Isn't there a property for?
 



Re: [flexcoders] Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread Ralf Bokelberg
includeInLayout=false maybe?

On Mon, Oct 20, 2008 at 9:57 PM, flexaustin [EMAIL PROTECTED] wrote:
 Is it possible using MXML, not AS3 classes, to keep an item out of the
 updateDisplayList and/or the measure() method?

 I have an icon that is 30px by 30px and needs to remain centered
 within a component. But the catch is that if someone clicks the icon
 it will show another state where I add a graph underneath the icon.
 This works fine but what happens is that flex on the next
 updatedisplaylist and measure call it sees the new graph then centers
 on the icon + graph, which I don't want to happen. I don't want Flex
 to know it exists.

 Isn't there a property for?


 


Re: [flexcoders] Re: Resizing a class file

2008-10-20 Thread Paul Andrews

- Original Message - 
From: flexaustin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, October 20, 2008 8:53 PM
Subject: [flexcoders] Re: Resizing a class file


I am embedding a swf, which I believe requires a type of Class.

Yes, but classes aren't objects. Assign your class as the source of an 
image, then you can resize the image instance.

Paul



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

 Hi,
 Your looking at the problem wrong.

 You never assign an instance to a Class variable type. You need to
 create
 another variable at the class level to hold the new instances that
 are type
 Image.

 functiontoGetImage() are you returning an instance or a Class to
 instantiate?

 Mike

 On Mon, Oct 20, 2008 at 2:05 PM, flexaustin [EMAIL PROTECTED] wrote:

Sorry I should have been more specific.
 
  [Bindable]
  public var myImage:Class;
 
  myImage = functiontoGetImage(someparam); //obtained via CSS
 
  [Embed(source=ui/nicePngImage.png)]
  myImage.width = 10; // no code hinting for height for type Class.
  myImage.height = 10; // no code hinting for width for type Class.
  or
  myImage.scaleX = .2;
  myImage.scaleY = .2;
  //if I size them anyway I get no errors but then nothing happens.
 
  the trick is, from my implementation is, you eventually have to do
  something like this.
 
  DisplayObject(displayIconObject).height = 10;
  DisplayObject(displayIconObject).width = 10;
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael
  Schmalle
  teoti.graphix@ wrote:
  
   Hi,
   It's more like you have to create an instance.
  
   The Class is an actionscript type like Boolean or String. This
 is like
   asking can you write Boolean.value = true;
  
   Try;
  
   override protected function createChildren():void
   {
   super.createChildren();
   instance = new myIcon();
   instance.width = 25;
   addChild(instance);
   }
  
   Mike
  
   On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
   florian.salihovic@ wrote:
  
Why don't u want to create an instance?
   
--- In flexcoders@yahoogroups.com
 flexcoders%40yahoogroups.comflexcoders%
  40yahoogroups.com,
flexaustin flexaustin@ wrote:

 Is it possible to resize a Class file? Say you embed a swf or
  png. Can
 you then resize it by casting is as something else?

 [Bindable]
 [Embed(source=ui/nicePngImage.png)]
 static public var myIcon:Class;
 myIcon.width = 30; // won't work

 TIA

   
   
   
  
  
  
   --
   Teoti Graphix, LLC
   http://www.teotigraphix.com
  
   Teoti Graphix Blog
   http://www.blog.teotigraphix.com
  
   You can find more by solving the problem then by 'asking the
 question'.
  
 
 
 



 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




 

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



 



[flexcoders] How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-20 Thread João
Hi, 

I have a Datagrid with several rows and columns. I am using
ItemRenderers on the cells. I need that a specific ItemRenderer
changes the way it looks when the row where he's in is selected. How
can I achieve that?
Is it possible to make the itemrenderer know that and react in real
time? Or is it preferable to extend the DataGrid?

Thanks,

João Saleiro




Re: [flexcoders] Repeater giving bogus Binding warnings?

2008-10-20 Thread Josh McDonald
Well I'll be buggered, it works. Data / DataProvider / DataSource are all
Object too, and you can bind to them. Lousy Repeater :)

Thanks for that Tracy :)

-Josh


On Tue, Oct 21, 2008 at 12:55 AM, Tracy Spratt [EMAIL PROTECTED]wrote:

  It is because currentItem is an Object, which is not bindable.  Cast it
 to your bindable class:

 text={
 RemittanceFileListEntry(remittanceRepeater.currentItem).remittanceFile }



 Tracy
  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Monday, October 20, 2008 2:17 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Repeater giving bogus Binding warnings?



 Hey Guys, I'm getting binding warnings that don't make any sense. Here's my
 repeater code:

 mx:Repeater id=remittanceRepeater dataProvider={
 selectedPayment.remittanceFiles }

 mx:HBox verticalAlign=middle
 mx:TextInput width=140 text={
 remittanceRepeater.currentItem.remittanceFile }/
 mx:Button styleName=removeRow label=- width=24 height=24
 data={remittanceRepeater.currentItem} click=removeRemittance(event)/
 /mx:HBox

 /mx:Repeater

 I'm getting the following warning for every row in
 selectedPayment.remittanceFiles:

 warning: unable to bind to property 'remittanceFile' on class
 'fundsmanagement.business.model::RemittanceFileListEntry'

 But RemittanceFileListEntry.as is bindable:

 public class RemittanceFileListEntry extends EventDispatcher
 {
 [Bindable]
 public var remittanceFile : String;
 }

 If there a way to kill this bogus warning?

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

 Like the cut of my jib? Check out my Flex blog!

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 :: http://flex.joshmcdonald.info/

 




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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/


[flexcoders] Case sensitive XML?

2008-10-20 Thread Steve Mathews
So I just figured out that e4x is case-sensitive, which really doesn't make
any sense to me, but I'll assume there is a good reason. I did some
searching but haven't found any good way to get around this and it is
driving me batty.
Let's say you have this node

param name=movie value=http://www.youtube.com/v/Y9HMn6bd-v8hl=enfs=1;

and you want to find the value attribute, but this node is included with
other param nodes with the same attributes (as seen when embedding Flash).
The problem is that this works for this case

var node:XML = xmlDoc..param.(@name == movie);

works here, but with this node

PARAM NAME=movie VALUE=http://www.youtube.com/v/Y9HMn6bd-v8hl=enfs=1;

it fails because param != PARAM.

Is there a good way of handling this?


Re: [flexcoders] Case sensitive XML?

2008-10-20 Thread Josh McDonald
XML is supposed to be case sensitive, so I imagine there's no way to turn it
off. You can clone the tree and change all node names to lowercase if you
like, but that's probably your only option.

-Josh

On Tue, Oct 21, 2008 at 8:00 AM, Steve Mathews [EMAIL PROTECTED] wrote:

  So I just figured out that e4x is case-sensitive, which really doesn't
 make any sense to me, but I'll assume there is a good reason. I did some
 searching but haven't found any good way to get around this and it is
 driving me batty.
 Let's say you have this node

 param name=movie value=http://www.youtube.com/v/Y9HMn6bd-v8hl=enfs=1
 

 and you want to find the value attribute, but this node is included with
 other param nodes with the same attributes (as seen when embedding Flash).
 The problem is that this works for this case

 var node:XML = xmlDoc..param.(@name == movie);

 works here, but with this node

 PARAM NAME=movie VALUE=http://www.youtube.com/v/Y9HMn6bd-v8hl=enfs=1
 

 it fails because param != PARAM.

 Is there a good way of handling this?
 




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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/


[flexcoders] Re: Alert.show - Detect when closed from another mxml component

2008-10-20 Thread fotis.chatzinikos
Hi, if i understand correctly, the following doesit:

Alert.show(This is the alert text.,,4,null,alertClosed) ;

where alertClosed is an event listener...

Check the asdoc for the alert.show method ;-)


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

 I have an Alert.show() being called from a command class. I need to
 detect when this Alert is closed in another mxml component (as opposed
 to the command class). What's the best way to determine when it's been
 closed?  Does the event bubble? So far I have not been able to 'catch'
 it.
 
 Thanks for any and all replies.





[flexcoders] Re: Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread fotis.chatzinikos
Have you tried includeInLayout=false?

Fotis

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

 includeInLayout=false maybe?
 
 On Mon, Oct 20, 2008 at 9:57 PM, flexaustin [EMAIL PROTECTED] wrote:
  Is it possible using MXML, not AS3 classes, to keep an item out of the
  updateDisplayList and/or the measure() method?
 
  I have an icon that is 30px by 30px and needs to remain centered
  within a component. But the catch is that if someone clicks the icon
  it will show another state where I add a graph underneath the icon.
  This works fine but what happens is that flex on the next
  updatedisplaylist and measure call it sees the new graph then centers
  on the icon + graph, which I don't want to happen. I don't want Flex
  to know it exists.
 
  Isn't there a property for?
 
 
 





[flexcoders] Re: Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread fotis.chatzinikos
Sorry had not seen that Ralf had replied the same think...

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

 Have you tried includeInLayout=false?
 
 Fotis
 
 --- In flexcoders@yahoogroups.com, Ralf Bokelberg
 ralf.bokelberg@ wrote:
 
  includeInLayout=false maybe?
  
  On Mon, Oct 20, 2008 at 9:57 PM, flexaustin flexaustin@ wrote:
   Is it possible using MXML, not AS3 classes, to keep an item out
of the
   updateDisplayList and/or the measure() method?
  
   I have an icon that is 30px by 30px and needs to remain centered
   within a component. But the catch is that if someone clicks the icon
   it will show another state where I add a graph underneath the icon.
   This works fine but what happens is that flex on the next
   updatedisplaylist and measure call it sees the new graph then
centers
   on the icon + graph, which I don't want to happen. I don't want Flex
   to know it exists.
  
   Isn't there a property for?
  
  
  
 





RE: [flexcoders] Re: Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread Tracy Spratt
Hello, Fotis.  We appreciate your contributions, so do not worry about
duplicate answers.  I don't think anyone can read and keep up with all
the posts in this list, so just jump in when you feel like it. 

 

Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fotis.chatzinikos
Sent: Monday, October 20, 2008 6:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Keeping a UIComponent out of the
UpdateDisplayList

 

Sorry had not seen that Ralf had replied the same think...

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

 Have you tried includeInLayout=false?
 
 Fotis
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Ralf Bokelberg
 ralf.bokelberg@ wrote:
 
  includeInLayout=false maybe?
  
  On Mon, Oct 20, 2008 at 9:57 PM, flexaustin flexaustin@ wrote:
   Is it possible using MXML, not AS3 classes, to keep an item out
of the
   updateDisplayList and/or the measure() method?
  
   I have an icon that is 30px by 30px and needs to remain centered
   within a component. But the catch is that if someone clicks the
icon
   it will show another state where I add a graph underneath the
icon.
   This works fine but what happens is that flex on the next
   updatedisplaylist and measure call it sees the new graph then
centers
   on the icon + graph, which I don't want to happen. I don't want
Flex
   to know it exists.
  
   Isn't there a property for?
  
  
  
 


 



[flexcoders] mouse wheel behaviour mxml and actionscript based components

2008-10-20 Thread fotis.chatzinikos
Hello all,

any ideas what is the expected behaviour of the mouse wheel in flex apps?

I have noticed that some mxml based trees scroll with the mouse wheel
while actionscript based ones do not.

A few minutes ago i also did a test with the main (root /
mainApplication) making bigger than 100% of the screen (lets assume
3000 pixels hight) so a scroll bar would appear. Can only scroll via
the bar, not the mouse wheel...

Has any of you any pointers, on this?

TIA,
Fotis



[flexcoders] Increase in swf size when upgraded to FlexSDK3

2008-10-20 Thread Shailesh Mangal
We recently moved from Flex 2.0.1/LCDS 2.5.1 to Flex3.1.0/LCDS2.6 and noticed 
that by 
doing that our swf went from 1.3MB to 1.9MB. This is 50% increase in size.

Is this typical with Flex 3?

-Shailesh



[flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-20 Thread João
I solved it by implementing the IDropInListItemRenderer and listening to 

DataGrid(listData.owner).addEventListener(ListEvent.CHANGE,
listChangeHandler)

It's not a best practice, but for now it's enough.

JS

--- In flexcoders@yahoogroups.com, Jo�o [EMAIL PROTECTED] wrote:

 Hi, 
 
 I have a Datagrid with several rows and columns. I am using
 ItemRenderers on the cells. I need that a specific ItemRenderer
 changes the way it looks when the row where he's in is selected. How
 can I achieve that?
 Is it possible to make the itemrenderer know that and react in real
 time? Or is it preferable to extend the DataGrid?
 
 Thanks,
 
 João Saleiro





Re: [flexcoders] Increase in swf size when upgraded to FlexSDK3

2008-10-20 Thread Ryan Gravener
are you compiling with debug enabled?

Ryan Gravener
http://twitter.com/ryangravener


On Mon, Oct 20, 2008 at 7:40 PM, Shailesh Mangal
[EMAIL PROTECTED]wrote:

   We recently moved from Flex 2.0.1/LCDS 2.5.1 to Flex3.1.0/LCDS2.6 and
 noticed that by
 doing that our swf went from 1.3MB to 1.9MB. This is 50% increase in size.

 Is this typical with Flex 3?

 -Shailesh

  



[flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-20 Thread Tim Hoff

Yeah, you would be hosed if a different type of list was used.  If
you're using CHANGE, which is generic for list base, have the parent
class dispatch a custom event, on change, with the row index.  The
parent class will always know what kind of list is being used.  Then in
the itemRenderer listen for the custom event and compare the rowIndex to
listData.rowIndex.  This is so much easier to handle through the data,
but some don't care for the decorator pattern.

-TH

--- In flexcoders@yahoogroups.com, João [EMAIL PROTECTED] wrote:

 I solved it by implementing the IDropInListItemRenderer and listening
to

 DataGrid(listData.owner).addEventListener(ListEvent.CHANGE,
 listChangeHandler)

 It's not a best practice, but for now it's enough.

 JS

 --- In flexcoders@yahoogroups.com, Jo�o joao.saleiro@ wrote:
 
  Hi,
 
  I have a Datagrid with several rows and columns. I am using
  ItemRenderers on the cells. I need that a specific ItemRenderer
  changes the way it looks when the row where he's in is selected. How
  can I achieve that?
  Is it possible to make the itemrenderer know that and react in real
  time? Or is it preferable to extend the DataGrid?
 
  Thanks,
 
  João Saleiro
 






[flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-20 Thread Tim Hoff

Shoot, don't even worry about the rowIndex, just attach the data object
to the event.

-TH

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


 Yeah, you would be hosed if a different type of list was used. If
 you're using CHANGE, which is generic for list base, have the parent
 class dispatch a custom event, on change, with the row index. The
 parent class will always know what kind of list is being used. Then in
 the itemRenderer listen for the custom event and compare the rowIndex
to
 listData.rowIndex. This is so much easier to handle through the data,
 but some don't care for the decorator pattern.

 -TH

 --- In flexcoders@yahoogroups.com, João joao.saleiro@ wrote:
 
  I solved it by implementing the IDropInListItemRenderer and
listening
 to
 
  DataGrid(listData.owner).addEventListener(ListEvent.CHANGE,
  listChangeHandler)
 
  It's not a best practice, but for now it's enough.
 
  JS
 
  --- In flexcoders@yahoogroups.com, Jo�o joao.saleiro@ wrote:
  
   Hi,
  
   I have a Datagrid with several rows and columns. I am using
   ItemRenderers on the cells. I need that a specific ItemRenderer
   changes the way it looks when the row where he's in is selected.
How
   can I achieve that?
   Is it possible to make the itemrenderer know that and react in
real
   time? Or is it preferable to extend the DataGrid?
  
   Thanks,
  
   João Saleiro
  
 






[flexcoders] Re: Alert.show - Detect when closed from another mxml component

2008-10-20 Thread sleblang
Thanks. That is not exactly what I am asking. I understand how to set
a callback/listener for Alert.show() as you explained. However, is
there another way to detect from another component when the alert has
been closed (i.e. bubbling, etc.)?

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

 Hi, if i understand correctly, the following doesit:
 
 Alert.show(This is the alert text.,,4,null,alertClosed) ;
 
 where alertClosed is an event listener...
 
 Check the asdoc for the alert.show method ;-)
 
 
 --- In flexcoders@yahoogroups.com, sleblang scott@ wrote:
 
  I have an Alert.show() being called from a command class. I need to
  detect when this Alert is closed in another mxml component (as opposed
  to the command class). What's the best way to determine when it's been
  closed?  Does the event bubble? So far I have not been able to 'catch'
  it.
  
  Thanks for any and all replies.
 





[flexcoders] Re: Embedding 2 fonts in 1 font class

2008-10-20 Thread renzeullo
*bump*

Anyone know if this is even possible?


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

 Hi,
 
 This will seem like a longshot, but, oh well, here goes...
 
 Is there a way to embed 2 or more fontfaces in a single class? For
 example, I want to embed characters A-Z ub Courier New and Korean
 characters in Arial Unicode in a single class FontMix, both in normal
 weight and non italic.
 
 Is there any way this can be done?
 
 Thanks in advance.
 
 Renz





[flexcoders] Re: Increase in swf size when upgraded to FlexSDK3

2008-10-20 Thread Shailesh Mangal
No, and we have tried both command line as well FlexBuilder compiles. Same 
result :(

-Shailesh

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

 are you compiling with debug enabled?
 
 Ryan Gravener
 http://twitter.com/ryangravener
 
 
 On Mon, Oct 20, 2008 at 7:40 PM, Shailesh Mangal
 [EMAIL PROTECTED]wrote:
 
We recently moved from Flex 2.0.1/LCDS 2.5.1 to Flex3.1.0/LCDS2.6 and
  noticed that by
  doing that our swf went from 1.3MB to 1.9MB. This is 50% increase in size.
 
  Is this typical with Flex 3?
 
  -Shailesh
 
   
 






[flexcoders] Are my eyes painted on, or is FormItem not available in design mode?

2008-10-20 Thread Josh McDonald
Hey guys,

If I create mx:FormItem components via MXML code, I can interact with them
and manage their properties just fine in design mode, but I can't seem to
add them without dropping back to code view, ie it's not in the Components
list. Is there a reason for this that I can't figure out?

-Josh

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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/


  1   2   >