[flexcoders] add/remove element for spark list

2010-07-26 Thread breizo
HI All,
I am trying to add an effect when an element of a spark List is added or 
deleted. It was quite a breeze with Flex 3, but I am pulling my hair with Flex 
4...

See example below of what I am trying to do:
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fa8.html

Jason Graham has an example that approaches it, but it looks like it is not 
working for a List component and it looks like Jason has to go through some 
hoops to get the intended effect.

http://www.flexsamples.com/blog/2010/01/

Are there any hooks to get this done with the new Spark architecture?
E.g. can elementAdded(i:int):void or elementDeleted(i:int):void be used?
Looked at it for a deleted element, but it seems that the itemRenderer is taken 
off the display list even before any effect can be applied...

Thanks



[flexcoders] Create custome column issue

2010-07-26 Thread j2me_soul
I want to dynamically create a mutil layer headers column by resolve the 
property dataprivoder of the DataGrid.

The issue is I create a class extended dataGridColumn that can't access the 
dataprivoder of the datagrid.

Anybody has any better idea ?

 

The dataprivoder like this:

 

  public static var xmlData:XML = 
   




 ...

 ...

 ...
   ;

 

 

I want to create a column like this:  

  Contray

  Region1 Region2 Region3 
...

 Territory1 Territory2 Territory3 
Territory4 Territory5 ...

   NameActual City1 City2 City3 City4 City5 City6 City7 City8 City9 
City10  ...

Jone  5300   NY.   SF.   

...

...

[flexcoders] Grouping Data for AdvancedDataGrid Tree View

2010-07-26 Thread Cub235
I have an ArrayCollection filled with flat data from a database containing the 
fields App, Function, Form, Field, and Description and want to display this 
data in a tree structure.  I have done this many times before using the 
grouping feature of AdvancedDataGrid, however this set of data is a bit 
different and I am not getting the results I want.

App is the root of the tree and there is the possibility of having Descriptions 
that are 4 folder nodes deep, as in the Description is specific to a Field.  A 
description can also be a general description of the app itself.  When the 
description is for the app level the data looks like 
"AppName", "", "", "", "Description of Core Application", leaving blank spaces 
in the Function, Form, and Field.  Since the Grouping is set for all 4 fields 
this results in 3 blank folder nodes under the App node before the Description 
for the App is displayed.  What I would like is for the Description to be a 
leaf directly under the App level node.  Basically anywhere there is a blank 
folder eliminating that part of the structure.

So far I have not been able to figure out how to do this, any help or 
recommendations of things to try to accomplish this would be greatly 
appreciated.

Thanks,
Jacob



[flexcoders] Re: PopUpButton with TileList and custom renderer works, but 2 annoyances

2010-07-26 Thread Alexander Farber
Hello again,

On Sat, Jul 24, 2010 at 5:39 PM, Alexander Farber
 wrote:
> 1) For some reason I get numerous warnings:
> warning: unable to bind to property 'label' on class 'Object' (class
> is not an IEventDispatcher)
>
> 2) The TileList tl2 has a scrolling issue. I've searched around
> (for example: http://forums.adobe.com/message/2939121 )
> and it is probably because the itemRenderer is being reused
> and I'm making some wrong assumptions... But where?

With the following renderer code I could get rid of the warning
(I guess it's not ok to use {data.label} in the renderer),
but unfortunately the "tl2" scrolling problem is still there -

MyRenderer.mxml:


http://www.adobe.com/2006/mxml";
   verticalScrollPolicy="off" horizontalScrollPolicy="off"
   width="100%" height="100%">








MyTest.mxml:


http://www.adobe.com/2006/mxml";
creationPolicy="all" 
applicationComplete="init(event);">

@font-face {
src:url("C:\\WINDOWS\\Fonts\\arial.ttf");
fontFamily: myFont;
unicodeRange:
U+0020-U+0040, /* Punctuation, Numbers */
U+0041-U+005A, /* Upper-Case A-Z */
U+005B-U+0060, /* Punctuation and Symbols */
U+0061-U+007A, /* Lower-Case a-z */
U+007B-U+007E, /* Punctuation and Symbols */
U+0410-U+0451, /* cyrillic */
U+2660-U+266B; /* card suits */
}
List, CheckBox, Label, Button, PopUpButton, TileList {
fontFamily: myFont;
fontSize: 24;
}























[flexcoders] Re: PopUpButton with TileList and custom renderer works, but 2 annoyances

2010-07-26 Thread valdhor
The binding errors are due to your item renderer binding to the data
property which is an object. As the error says you cannot bind to a
plain object.

Modify your class as follows:

 [Bindable]private var myLabel:String;

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

 

As to the scrolling problem, I couldn't see why that was happening. Play
around with the renderer a bit and you might figure it out.

--- In flexcoders@yahoogroups.com, Alexander Farber
 wrote:
>
> Hello,
>
> I'm trying to use a PopUpButton with a red/black colored TileList
> and it does work, but has 2 minor issues, that I can't figure out.
>
> I've prepared a simple test case listed at the bottom, please review
it.
>
> 1) For some reason I get numerous warnings:
> warning: unable to bind to property 'label' on class 'Object' (class
> is not an IEventDispatcher)
> warning: unable to bind to property 'label' on class 'Object' (class
> is not an IEventDispatcher)
> but I don't even know where to look, which "label" is it?
>
> 2) The TileList tl2 has a scrolling issue. I've searched around
> (for example: http://forums.adobe.com/message/2939121 )
> and it is probably because the itemRenderer is being reused
> and I'm making some wrong assumptions... But where?
>
> Thank you for any hints, please try my code below
>
> Regards
> Alex
>
> MyRenderer.mxml:
>
> 
> http://www.adobe.com/2006/mxml";
> verticalScrollPolicy="off" horizontalScrollPolicy="off"
> width="100%" height="100%">
>  
>   
>  
>
> text="{data.label}" color="{findColor(data.label)}"/>
> 
>
>
> MyTest.mxml:
>
> 
> http://www.adobe.com/2006/mxml";
>  creationPolicy="all" applicationComplete="init(event);">
>  
>   @font-face {
>src:url("C:\\WINDOWS\\Fonts\\arial.ttf");
>fontFamily: myFont;
>unicodeRange:
> U+0020-U+0040, /* Punctuation, Numbers */
> U+0041-U+005A, /* Upper-Case A-Z */
> U+005B-U+0060, /* Punctuation and Symbols */
> U+0061-U+007A, /* Lower-Case a-z */
> U+007B-U+007E, /* Punctuation and Symbols */
> U+0410-U+0451, /* cyrillic */
> U+2660-U+266B; /* card suits */
>   }
>   List, CheckBox, Label, Button, PopUpButton, TileList {
>fontFamily: myFont;
>fontSize: 24;
>   }
>  
>
>  
>   
>  
>
>paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10">
>
>   
>
>   maxColumns="5" rowHeight="30" columnWidth="60"
>dataProvider="{bids}" itemRenderer="MyRenderer"/>
>  
>
>  
>   
>   
>   
>   
>   
>  
> 
>



[flexcoders] [offtopic] - Adobe Flex Developers Brazil

2010-07-26 Thread Marcio Rosa
Hello!

This is a group for User Experience Design professionals to expand our
network of people and ideas.
http://www.linkedin.com/groups?about=&gid=144628&trk=anet_ug_grppro

Marcio Rosa
www.marciorosa.com - RIA Portal


Re: [flexcoders] Can i view the output panel in a stand alone swf? (like throw new error)

2010-07-26 Thread Willy Ci
We have this problem before, what I did was setup debug mode,
then user add debug=true at end of URL, there will be a new tab add to the
UI,
in there I add two textAreas, one is log of all the input data,
other one is all the output data.

other developers love it, they can see all the data/request in/out,
very easy to point out who is the bad guy. :P

*


Thanks!

Willy Ci*
*
*
*e: will...@gmail.com *
*c: 617-606-3437 
*


-- 
   6 X 9 = 42
meaning of life 
--



On Mon, Jul 26, 2010 at 1:03 PM, Alex Harui  wrote:

>
>
> Just add your own popup window with a text area and add output to it.
>
>
>
> On 7/26/10 4:05 AM, "Clark Stevenson"  wrote:
>
>
>
>
>
>
>
>
> Hi all,
>
> I work remotely and sometimes the connecting part between myself and my
> colleague is awkward since he must asked me to trace output and forward it
> to him.
>
> When you throw a new error and run it online, you see the error in a panel.
>
> Is it possible to display output in this panel and not just catch errors?
> So that my colleague can run the swf, and see the debug information. Just
> like a "trace" statement outputs in dev environment?
>
> Cheers,
>
> Clark.
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


[flexcoders] Re: Install Ant on Flex Builder 3 Question.

2010-07-26 Thread fonzibruno
Have you tried FDT yet?

ANT comes pre-installed and FDT has some specific ANT tasks integrated to help 
your workflow.

Here some tutorials
http://www.fdt.powerflasher.com/developer-tools/fdt/getting-started/tutorials/#c3014

Cheers,
Bruno


--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> Hi,
> 
> I try to install Ant on FB3. I follow the guide in the url 
> http://blog.jodybrewster.net/2008/04/09/installing-ant-in-flex-builder-3/.it 
> seems many people do the same way.
> 
> But I get the following error and I do not have idea how to do next.
> 
> Unable to access site: "http://update.eclipse.org/updates/3.3"; 
> [Server returned HTTP response code: "403 Forbidden" for URL: 
> http://update.eclipse.org/updates/3.3.]
> Server returned HTTP response code: "403 Forbidden" for URL: 
> http://update.eclipse.org/updates/3.3.
> Unable to access site: "http://update.eclipse.org/updates/3.3"; 
> 
> Please help me for this.Do you think if it is possible to install Ant on 
> standalone Flex Builder 3.
> 
> Thanks for your help.
> 
> Mark
>




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

2010-07-26 Thread Alex Harui
My guess is that the mx:Text has a fontFamily of Myriad Pro so it is set up to 
display embedded fonts.  All fonts used in htmlText must be embedded if the 
fontFamily on the component is embedded, and vice-versa.


On 7/26/10 5:16 AM, "Fotis Chatzinikos"  wrote:






Hi Alex,

I do not use the RichTextEditor inside a  i use its output as input to 
mx:text (htmlText)

When i set a style like this:

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


 does not display anything (text is there - you can select and paste 
it somewhere else but it looks ... tiny (ie < 1 pixel height per line of text))

I think what breaks it is the combination of font-familt : Arial and the use 
(elsewhere) in the Application of an Embeded font (which is the default across 
the application)

2) When using embeded fonts, the embeded font appears in the RichTextArea font 
dropdown but if i seitch to a different one (lets say Arial) and click a second 
time on the drop down the embeded font is missing

3) settings default values via an embeded style (see previous example) 
sometimes initializaes the RichTextEditor to the correct values (in this 
example font size 26 black) other times you need to type at least 1 character 
inside the RichTextEditor for it to display the correct values (default are 
shown before you type in the first char)


Thanks,
Fotis
On Fri, Jul 23, 2010 at 8:42 PM, Alex Harui  wrote:





The answer is probably yes to all three questions.  However I did not 
understand the scenario.  I don’t get how you use a RichTextEditor inside  
 or what it means to “break the initialization”


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






Hi everybody,

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

RichTextEditor
{
textAreaStyleName: 'rteStyle';
}

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

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

removing the CSS font-face :

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

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

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

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






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


Re: [flexcoders] Can i view the output panel in a stand alone swf? (like throw new error)

2010-07-26 Thread Alex Harui
Just add your own popup window with a text area and add output to it.


On 7/26/10 4:05 AM, "Clark Stevenson"  wrote:








Hi all,

I work remotely and sometimes the connecting part between myself and my 
colleague is awkward since he must asked me to trace output and forward it to 
him.

When you throw a new error and run it online, you see the error in a panel.

Is it possible to display output in this panel and not just catch errors? So 
that my colleague can run the swf, and see the debug information. Just like a 
"trace" statement outputs in dev environment?

Cheers,

Clark.





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


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

2010-07-26 Thread Fotis Chatzinikos
Hi Alex,

I do not use the RichTextEditor inside a  i use its output as input
to mx:text (htmlText)

When i set a style like this:

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


 does not display anything (text is there - you can select and
paste it somewhere else but it looks ... tiny (ie < 1 pixel height per line
of text))

I think what breaks it is the combination of font-familt : Arial and the use
(elsewhere) in the Application of an Embeded font (which is the default
across the application)

2) When using embeded fonts, the embeded font appears in the RichTextArea
font dropdown but if i seitch to a different one (lets say Arial) and click
a second time on the drop down the embeded font is missing

3) settings default values via an embeded style (see previous example)
sometimes initializaes the RichTextEditor to the correct values (in this
example font size 26 black) other times you need to type at least 1
character inside the RichTextEditor for it to display the correct values
(default are shown before you type in the first char)


Thanks,
Fotis
On Fri, Jul 23, 2010 at 8:42 PM, Alex Harui  wrote:

>
>
> The answer is probably yes to all three questions.  However I did not
> understand the scenario.  I don’t get how you use a RichTextEditor inside
>   or what it means to “break the initialization”
>
>
> On 7/23/10 4:05 AM, "fotis.chatzinikos" 
> wrote:
>
>
>
>
>
>
> Hi everybody,
>
> I have a RichTextEditor which I am trying to set its default Font Face size
> and color using the following CSS:
>
> RichTextEditor
> {
> textAreaStyleName: 'rteStyle';
> }
>
> .rteStyle
> {
> font-size:26;
> font-family:Arial;
> color:#00;
> }
>
> While this works, the htmlText output of the editor when used inside a
>  field displays ... NOTHING (The text is there you can copy and
> paste it but it seems that its renderer in ...micropixels)
>
> removing the CSS font-face :
>
> .rteStyle
> {
> font-size:26;
> color:#00;
> }
>
> fixed the rendering but .. breaks the initialization of the
> RichTextEditor...
>
> It now displays as the selected font "Myriad Pro" (an embeded font i am
> using), the font size to default 13 and the color to default white. Typing
> the first character inide it it fixes the defaults to 26, black... Changing
> from Myriad to Arial makes the htmlText of the Text field to disappear
> again... Plus Myriad disappears from the font selector ...
>
> Has anybody managed to use The richTextEditor ever? Am i doing something
> wrong? IS IT REALLY SO BADLY IMPLEMENTED?
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


[flexcoders] Can i view the output panel in a stand alone swf? (like throw new error)

2010-07-26 Thread Clark Stevenson
Hi all,

I work remotely and sometimes the connecting part between myself and my
colleague is awkward since he must asked me to trace output and forward it
to him.

When you throw a new error and run it online, you see the error in a panel.

Is it possible to display output in this panel and not just catch errors? So
that my colleague can run the swf, and see the debug information. Just like
a "trace" statement outputs in dev environment?

Cheers,

Clark.


Re: [flexcoders] Upload image

2010-07-26 Thread Marcio Rosa
Hello;

Keeping reading to see how Flex can do this for you.
Building a Flex Multiple File Uploader with Image Preview

http://www.devshed.com/c/a/PHP/Building-a-Flex-Multiple-File-Uploader-with-Image-Preview/
http://www.marciorosa.com/

Marcio Rosa

2010/7/23 Christophe 

>
>
> Hello,
>
> I have an upload image function found on internet based on a URLRequest,
> but it's not working each time on all browsers, and on Mac and PC.
>
> Does someone know a good Upload image function with sources ?
>
> Thank you,
> Christophe,
>
>  
>


Re: [flexcoders] Flex Builder 3 Installation?

2010-07-26 Thread Sajid Hussain
I think it would work , because it shared different eclipse ide . 


Sajid 


From: markflex2007 
To: flexcoders@yahoogroups.com
Sent: Sun, July 25, 2010 8:55:32 AM
Subject: [flexcoders] Flex Builder 3 Installation?

  
Do you think if we can install standalone version and plug in version Flex 
Builder 3 in same computer?

Thanks

Mark