Re: [flexcoders] Combobox editor problem

2010-04-07 Thread Bala_V

Thank you so much Jayant, it worked fine.

Jayant-4 wrote:
> 
> Looks like you just need to make the combobox opaque. Set fillAlphas="[1,
> 1]" for Combo in checkBoxEditor.mxml.
> 
> -Jayant
> 
> On Sun, Apr 4, 2010 at 3:30 AM, Bala_V  wrote:
> 
>>
>>
>>
>> Hi.
>>
>> Iam using a combo box as item editor and am rendering it dynamically
>> using
>> action script. My requirement is simple.
>> a.) I have 3 values, Y, N and TBD. The default is TBD.
>> b.) When I click on the drop down, the TBD is visible at the background
>> of
>> the drop down.
>>
>> Not sure why this is happening and because of this, the look and feel is
>> not
>> all that good.
>>
>> Request your help to get rid of this problem.
>>
>> main app
>> -
>> 
>> http://www.adobe.com/2006/mxml";
>> layout="absolute" xmlns:stax="Stacks.*" height="100%" width="100%"
>> xmlns:local="*">
>> 
>> 
>> 
>> > styleName="Panel">
>> > id="dProvider1"
>> dataProvider="{dp}"
>> editable="true" borderThickness="2"
>> headerHeight="40"
>> headerWordWrap="true" wordWrap="true" >
>> 
>> > dataField="Category"
>> headerText="Deliverable
>> Category" width="50" editable="false"/>
>> > headerText="Risk(RYG)"
>> width="50" editorDataField="selectVal"
>> itemEditor="checkBoxEditor"/>
>> 
>> 
>> 
>> 
>> checkBoxEditor.mxml (Item editor)
>> 
>> 
>> http://www.adobe.com/2006/mxml";
>> creationComplete="initMe()" >
>> 
>> 
>> 
>> > change="selectionChange()"/>
>> 
>>
>> Thanks
>> Bala http://old.nabble.com/file/p28116393/issue.jpeg
>> --
>> View this message in context:
>> http://old.nabble.com/Combobox-editor-problem-tp28116393p28116393.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>  
>>
> 
> 
> 
> -- 
> main(){int
> j,i=0;for(;i<54;++i%18==0?putchar(10):i)putchar((j="b`bxb]]0xxb]xb]b`b:QAabR^`wabRQ1Q;Q/bw>w2^<_...@w3^^=^?_"[i])<66?32:j+98);}
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Combobox-editor-problem-tp28116393p28172541.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Flex File component?

2010-04-07 Thread markflex2007
I am looking for a Flex File component that is similar with html file that used 
for upload file.

Thanks


Mark



Re: [flexcoders] custom component as item in DataGrid?

2010-04-07 Thread Douglas Knudsen
A "item" in a datagrid represents a data point and is independent of how it is 
displayed.  How a "item" is displayed is based on a ItemRenderer.  So, what you 
want to go a googling on is:datagrid  custom itemrenderer   Unlike 2005 and 
Flex 1.5 days, you will find a plethora of results.  The Flex docs at 
livedocs.adobe.com have a great write up on this topic.

HTH!

Douglas Knudsen
douglasknud...@gmail.com



On Apr 7, 2010, at 9:13 PM, tex_learning_flex wrote:

> Is it possible to include a custom component as an item in a DataGrid? Does 
> anyone have a reference to how this might be done? I haven't found any yet.
> 
> thanks,
> 
> Tex
> 
> 



[flexcoders] custom component as item in DataGrid?

2010-04-07 Thread tex_learning_flex
Is it possible to include a custom component as an item in a DataGrid? Does 
anyone have a reference to how this might be done? I haven't found any yet.

thanks,

Tex



[flexcoders] Re: Horizontal list item renderers duplicated

2010-04-07 Thread method_air
The image control source is now updating, however when I scroll the item the 
horizontal list back and forth, in/out of view, the image control disappears. 
This happens when the image 'source' is set to a a Bitmap...the control remains 
visible if a url string source is used...

Thoughts?

--- In flexcoders@yahoogroups.com, "method_air"  wrote:
>
> Hi there,
> 
> I have a horizontal list renderer populated with Image controls whose source 
> is bound to a url property of the data object passed to it. When the 
> corresponding data object in it's data provider is updated, multiple item 
> renderers are updated (one item updated is expected).
> 
> How can this be fixed?
> 
> Thanks,
> 
> Philip
>




[flexcoders] Horizontal list item renderers duplicated

2010-04-07 Thread method_air
Hi there,

I have a horizontal list renderer populated with Image controls whose source is 
bound to a url property of the data object passed to it. When the corresponding 
data object in it's data provider is updated, multiple item renderers are 
updated (one item updated is expected).

How can this be fixed?

Thanks,

Philip



[flexcoders] Preventing drop on a specific node in tree

2010-04-07 Thread Greg Hess
Hi All,

I have a tree component that supports drag and drop. However, I need to
prevent the EU from dropping into a specific node. I would like to display
the "red x" indicator over this specific node and have the drop rejected.

I first tried to get this to work in my DragEnter event handler and not
accepting the dragDrop if the target item was one of these specific nodes
but would only work if I entered over the specific item and I need it to
update as the EU drags over the items in the tree. My next attempt after
reading some posts was to toggle the tree.dropEnabled property in my
DragOver event handler, I have been able to get it to work... but I cant
figure out why, this is my code:

*Drag Over logic

var dropTarget:Tree = Tree(dragEvent.currentTarget);
var targetItemIndex:int = dropTarget.calculateDropIndex( dragEvent );
var item:Object = dropTarget.getItemAtIndex( targetItemIndex );

//This logic is wrong as it should be dropTarget.dropEnabled = (item is
CustomClass && !CustomClass(item).isDropDisabled).
//But with the right logic every node that drop is enabled for shows the
'red x' and drops are rejected and the one that is disabled accepts drops
dropTarget.dropEnabled = (item is CustomClass &&
CustomClass(item).isDropDisabled);

DragManager.showFeedback( DragManager.NONE );

End Drag Over logic.*

While debugging I can confirm that my item.isDropDisabled is returning the
correct value. So why is it working... One other thing I can confirm is that
it does depend on me updating the DragManager.showFeedback as if I omit that
call the indicator does not show the 'red x' and reject the drop.

Does anyone know why this is working or how I should do it properly?

Any help much appreciated.

Greg


[flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread cuttenv
I can vouch for the ILog stuff, I've used it and it's really good. 

However the GroupingCollection is part of the Flex SDK. The grouping collection 
can take a flat Array and group it into the data structure you have described 
below.

http://livedocs.adobe.com/flex/3/langref/mx/collections/GroupingCollection.html

ILog has some good examples on how to do this. I'm sure a simple google search 
will return a lot of results.

Hope this helps.

--- In flexcoders@yahoogroups.com, "Jeff"  wrote:
>
> 
> 
> 
> I cant vouch for the ILog Elixir stuff.  There might be an easy way to do it. 
>  Assuming that doesnt suit your needs, I think you may need to massage your 
> data a bit because I dont think the data descriptor alone will give you what 
> you're looking for.
> 
> I'm assuming this is basically your desired tree structure:
> -group1
> --item
> --item
> -group2
> --item
> --item
> -group3
> --item
> --item
> 
> Your probably going to need to put your data into a collection that looks 
> like this:
> 
> var myCollection:ArrayCollection = new ArrayCollection([
> {group:"group1", items:[item,item,item]},
> {group:"group2", items:[item,item,item]},
> {group:"group3", items:[item,item,item]}
> ]);
> 
> Then, you can use a dataDescriptor to tell the tree what properties of the 
> item object you want to display.  The tree is packaged with a default 
> dataDescriptor, so your data either has to conform to its conventions to 
> display properly or you have to override it.
> 
> Implementing a very basic ITreeDataDescriptor and putting your debugger on it 
> will give you valuable insight as to how the Tree component traverses a given 
> data provider.  You can then tell the tree how to display the objects in your 
> collection.  Hope that helps.
> 
> To anyone out there, iff there's an easier way to do it with the ILog stuff, 
> I'd appreciate a link to it.  Thanks.
> 
> 
> --- In flexcoders@yahoogroups.com, "cuttenv"  wrote:
> >
> > You could use a grouping Collection to group the data. If you check out the 
> > ILog Exlir stuff they have a bunch of demos on how to do this.
> > 
> > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > >
> > > The dataDescriptor's purpose is to allow you to create a hierarchy out of 
> > > flat data.
> > > 
> > > 
> > > On 4/6/10 8:42 AM, "Phil Boissiere"  wrote:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Thanks, Oleg, Jeff.
> > > 
> > > In reality the thing that comes back after querying my database is an 
> > > ArrayCollection of strongly typed objects (value objects?). These objects 
> > > have a linear (non-hierarchical) structure but I want to use one of the 
> > > properties (the "group" property) for the parent nodes in a Tree 
> > > component.
> > > 
> > > Should I be looking at creating a custom data descriptor or a custom 
> > > object that implements the ICollectionView interface (does that mean 
> > > create a custom Tree component?).
> > > 
> > > I just want to make sure I'm doing the right thing, since either approach 
> > > seems to involve quite a bit of ActionScript.
> > > 
> > > Thanks again.
> > > 
> > > 
> > > --- On Tue, 4/6/10, Jeff  wrote:
> > > 
> > > From: Jeff 
> > > Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree 
> > > component
> > > To: flexcoders@yahoogroups.com
> > > Date: Tuesday, April 6, 2010, 7:18 AM
> > > 
> > >  You can also create a custom data descriptor and set the 
> > > dataDescriptor property of the tree component.  See http://livedocs. 
> > > adobe.com/ flex/3/html/ help.html? content=about_ dataproviders_ 6.html 
> > > 
> > > 
> > > --- In flexcod...@yahoogro ups.com 
> > >  , Oleg Sivokon 
> > >  wrote:
> > > >
> > > > The best way would be to implement your own ICollectionView, however, 
> > > > this
> > > > would be a complex task.
> > > > For your example, I'd do it like so:
> > > >
> > > > private var ac:ArrayCollection = new ArrayCollection( [
> > > > { "Animals": ["dog", "cat"],
> > > > { "Fruits": ["orange", "apple"] }
> > > > ]);
> > > >
> > > >
> > > > Best.
> > > >
> > > > Oleg
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe System, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
>




Re: [flexcoders] Grid Problems

2010-04-07 Thread Alex Harui
What is the stacktrace from the error?


On 4/7/10 12:27 PM, "Jeff"  wrote:






I have a component that creates a Grid container and adds many rows based on 
the data.  There are instances where the whole grid/grid rows need to be 
redrawn.  Removing all the rows and then adding rows seems to cause a TypeError 
deep in the flex core.  I was bypass this error by deleting the rows and 
wrapping the function that adds the rows with callLater. However, this causes a 
noticeable flicker on the screen between removal and addition of rows.  If 
anyone knows of a better way, I'd appreciate your advice.  Thanks in advance.






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


Re: [flexcoders] Flex 4: List with itemRendererFunction

2010-04-07 Thread Claus Wahlers
It appears to be a Flex SDK bug:
http://stackoverflow.com/questions/2231036/spark-list-reusing-the-wrong-item-renderers

(Solution: reassign itemRendererFunction after changing the dp)


Cheers,
Claus.

On Wed, Apr 7, 2010 at 4:18 PM, Oleg Sivokon  wrote:

> Try dispatching "update" collection event from the collection assigned? I
> don't think it is a good workaround, because dispatching events from outside
> the dispatcher is a bad practice, but just for the experiment, I'd try.
>
> Best.
>
> Oleg
>


[flexcoders] How to deprecate property which has getter/setter?

2010-04-07 Thread jimmartin10
If I use the [Deprecated] tag on a getter only, e.g.

[Deprecated]
public function get myOldProperty():int
{
return 0;
}

public function set myOldProperty(value:int):void
{
}

Then I get a warning at the line of the setter. "myOldProperty has been 
deprecated"

If I use the [Deprecated] tag on both getter and setter, e.g.

[Deprecated]
public function get myOldProperty():int
{
return 0;
}

[Deprecated]
public function set myOldProperty(value:int):void
{
}

Then I get a duplicate deprecated tag warning. 

These warnings then clog up the warnings panel, and make the use of the 
Deprecated tag pointless, as I will be unable to see any genuine warnings about 
actual use of the deprecated property.

Is it possible to Deprecate a property which has mutators and only see warnings 
for line where the property is referenced?

Environment:
XP
SDK 3.2
Eclipse Plugin





Re: [flexcoders] Looking for Simple Flash Detection script

2010-04-07 Thread Carlos Rovira
see swfobject

http://code.google.com/p/swfobject



2010/4/7 Angelo Anolin 

>
>
> Dear FlexCoders,
>
> Is there an easy way to run a detection script to detect if Flash Player is
> installed on a browser?
>
> I have tried numerous javascripts / vbscripts / etc but most of them does
> not seem to work in my case.
>
> I also tried this site:
> http://www.adobe.com/devnet/flashplayer/articles/future_detection.html to
> no avail.
>
> The problem is that I have different set of users who have their own
> preferences on which browser to use.  Some uses IE, others FF and the
> others, Chrome.
>
> There are times that my compiled and embedded SWF object won't show in some
> of these browsers (although I have seemed to notice that they are more
> likely to fail in IE).
>
> Is there a much simpler method where on the loading of page, a script will
> be executed and if the Flash version is not the latest one, provide the user
> with the facility to download latest version and install?
>
> Appreciate your inputs. Thanks.
>
> Angelo
>
>  
>



518cd98217
518cd98217


[flexcoders] Re: open source flex sdk | flex lib.swc | Missing Datavisualization.swc

2010-04-07 Thread Jeffry Houser
To get the charting classes [in Flex 3] you needed to purchase Flex Builder 
Pro.  

 They have been open sourced as of the release of Flex 4 / Flash Builder 4.  I 
have no idea how that relates to 'legacy' licenses; but in theory you can 
download the code and compile it with the Flex 3.4 SDK and use that in your 
project. 

--- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
>
> Hi
> 
> I am using the open source flex sdk build Version 3.4.0 build 9271 . At the 
> same time i am using flexlib.swc from google code base. the flexlib.swc 
> requires access to charting compoenents classes. The charting classes are 
> normally in datavisualization.swc. This file is missing from open source. how 
> can i create this file or from where can i get it.
> 
> Thanks
> ilikeflex
>




Re: [flexcoders] RemoteClass Metadata

2010-04-07 Thread Oleg Sivokon
AFAIK alias is just a string, maybe there are some restrictions on syntax
(like only alphanums + .:$_), but that's about it.
If you look at how ArrayCollection is aliased, you'll see it's alias is
different from that class' full name.
I'd rather go for registerClassAlias then [RemoteClass] meta - this is a
very tiny optimization, but at least you'd won 3 lines of code per class ;)

Best.

Oleg


[flexcoders] How to store composed images in database ?

2010-04-07 Thread Adnan Doric
Hello all,

My Flex application will be some kind of image editor, with different 
layers containing graphic objects and images on them. I want to be able 
to save and retrieve those images without flattening them down.
Obviously I will need some kind of mecanism for storing resulting 
composed images in the database, and also retrieving them back in the 
Flex application (runtime import/export).

I searched the web but can't find any mature libraries allowing the 
import/export of SVG files at runtime so I suppose SVG is not the way to go.

Can someone please suggest some way of storing this kind of composed 
images in database. :)

Thank you in advance,
Adnan


[flexcoders] RemoteClass Metadata

2010-04-07 Thread Jake Churchill
I am working on a Flex/.NET project using webOrb and we are going to use
webOrb to auto-generate the value objects but the packaging is quite
different between the server and the client.  I want to use the RemoteClass
aliasing in Flex but I'm not sure about the packaging differences.  My
question is if the server's bean is packaged like this:
com.domain.app.beans.MyObject, can I put the VO in
com.domain.differentAppName.vo.MyObject?  Or do I HAVE to put it at
com.domain.app.beans.MyObject in the Flex project as well?

Thanks!

-Jake


[flexcoders] open source flex sdk | flex lib.swc | Missing Datavisualization.swc

2010-04-07 Thread ilikeflex
Hi

I am using the open source flex sdk build Version 3.4.0 build 9271 . At the 
same time i am using flexlib.swc from google code base. the flexlib.swc 
requires access to charting compoenents classes. The charting classes are 
normally in datavisualization.swc. This file is missing from open source. how 
can i create this file or from where can i get it.

Thanks
ilikeflex



Re: [flexcoders] Inserting Into MYSQL Table Via Air/PHP = Not Allowed?

2010-04-07 Thread Lee Jenkins
James wrote:
>  
> 
> I'm having trouble inserting data into my mysql database tables through 
> my air app. All the code is pretty much exactly the same as in some 
> examples I've seen but it simply won't do it. Is this because of some 
> sort of security restriction because the air app is on my machine and 
> the server with my mysql database on is elsehwhere? Or is it possible to 
> insert data via an air app?
> 
> Here is the example I've been following:-
> 

I'm just starting out with Flex myself so I don't have an answer for you. 
However, I've been programming for quite some time and I think you'll get 
better 
responses by showing YOUR code as well or more detailed information at least to 
give you a better chance of getting some help :-).


--
Warm Regards,

Lee


Re: [flexcoders] FileReferenceList

2010-04-07 Thread Rick Winscot
You¹ll need to pull a swip-swap-frip-frop (code is a cut and paste below).

Cheers,

Rick Winscot
www.quilix.com



http://www.adobe.com/2006/mxml";
creationComplete="ccomp();" layout="absolute" minWidth="955"
minHeight="600">











On 4/7/10 10:33 AM, "sderamon"  wrote:

>
> 
> Hi,
> 
> I want to upload files with FileReferenceList with Flex. I know that is not
> possible to get the path. Because we have this limitation, I want to add files
> to the fileReferenceList several times, but every time that I add files, it
> deletes the previous files. Is possible to add files to the FileReferenceList
> and keep the previous ones.
> 
> Thanks
> 
>  
>
> 
> 



[flexcoders] Looking for Simple Flash Detection script

2010-04-07 Thread Angelo Anolin
Dear FlexCoders,

Is there an easy way to run a detection script to detect if Flash Player is 
installed on a browser?

I have tried numerous javascripts / vbscripts / etc but most of them does not 
seem to work in my case.

I also tried this site: 
http://www.adobe.com/devnet/flashplayer/articles/future_detection.html to no 
avail.

The problem is that I have different set of users who have their own 
preferences on which browser to use.  Some uses IE, others FF and the others, 
Chrome.

There are times that my compiled and embedded SWF object won't show in some of 
these browsers (although I have seemed to notice that they are more likely to 
fail in IE).

Is there a much simpler method where on the loading of page, a script will be 
executed and if the Flash version is not the latest one, provide the user with 
the facility to download latest version and install?

Appreciate your inputs. Thanks.

Angelo


  

Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Oleg Sivokon
Ah, sorry, I see now. Well, bugs are expected in beta software... but why
would you think it has anything to do with AIR <-> FP interaction? If you
have different runtime versions there may be conflicts, especially, if one
of the runtimes is still in beta...:S

Best.

Oleg


[flexcoders] Grid Problems

2010-04-07 Thread Jeff
I have a component that creates a Grid container and adds many rows based on 
the data.  There are instances where the whole grid/grid rows need to be 
redrawn.  Removing all the rows and then adding rows seems to cause a TypeError 
deep in the flex core.  I was bypass this error by deleting the rows and 
wrapping the function that adds the rows with callLater. However, this causes a 
noticeable flicker on the screen between removal and addition of rows.  If 
anyone knows of a better way, I'd appreciate your advice.  Thanks in advance.



Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Rick Winscot
I wouldn¹t either but... I have a VM save point before and after the
mentioned SDK change ­ the code being compiled in each is exactly the same.
One produces runtime errors (before) and one doesn¹t (after). [ shrugs ]

I¹ve had more than a few Œhead scratchers¹ as I¹ve tested 10.1... a good
example would be FileReference issues (FP-3238,FP-2118,FP-2785,FP-2674);
code that works in FP 10.0 exploded in 10.1. Trying to Œtest¹ the viability
of 10.1 hasn¹t been easy.

Cheers,

Rick Winscot
www.quilix.com


On 4/7/10 2:32 PM, "Alex Harui"  wrote:

>
> 
> I would not expect any interaction between the two.
> 
> 
> On 4/6/10 9:01 PM, "Rick Winscot"  wrote:
>>  
>>
>> 
>> I just installed the pre-release of Flash Player 10.1 and a few minutes later
>> ran an AIR app... and to my surprise I started getting runtime errors. Is
>> this a fluke or is there a possibility that when 10.1 goes live we might see
>> some AIR apps breaking? Anyone from Adobe got the low-down?
>> 
>> Cheers,
>> 
>> Rick Winscot
>> www.quilix.com 
>>  
>>
>> 
>> 



[flexcoders] Re: DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread taude1
I got it working using another question that I found here (well, it was from 
this Yahoo! Group, but at the mail-archive.com website)  
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg128578.html



--- In flexcoders@yahoogroups.com, "taude1"  wrote:
>
> I definitely dont' see it when the framework and datavisualization is merged. 
>  However, not too keen on adding another 500 KB to the SWF size of an already 
> way-too-large application.
> 
> I'm going to keep tinkering with fonts.
> 
> --- In flexcoders@yahoogroups.com, "Battershall, Jeff"  
> wrote:
> >
> > Well, rotated or not, I've definitely seen some unexpected behavior related 
> > to fonts and RSLs. In one application I ended up merging into code to 
> > address the issue. 
> > 
> > Maybe what I encountered isn't the same as what you're seeing but it sure 
> > sounds similar. Is the font being used for the axis labels embedded?
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of taude1
> > Sent: Wednesday, April 07, 2010 10:37 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up
> > 
> > The labels definitely aren't rotated.  And the fonts being used show up 
> > everywhere else in the application, including the same screens that contain 
> > the charts.  (The posted chart graphics are a small subset of the entire 
> > screen.)
> > 
> > --- In flexcoders@yahoogroups.com, "Battershall, Jeff"  
> > wrote:
> > >
> > > Are the labels rotated?  If so, are you sure that the font used is 
> > > getting loaded as well?  I've seen some funny font behavior when related 
> > > to loading Data Vis RSLs in the past.
> > > 
> > > Jeff
> > > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > Behalf Of taude1
> > > Sent: Wednesday, April 07, 2010 9:46 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up
> > > 
> > > Hi All,
> > > 
> > > I've posted a question over at Stack Overflow on a problem that I'm 
> > > having with my Axis labels not showing up on a chart.
> > > 
> > > I think it has to do with my use of the framework RSL when it loads, but 
> > > nonetheless, it's a big issue and I can't seem to figure it out.
> > > 
> > > Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and 
> > > the labels still don't show up.
> > > 
> > > http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build
> > > 
> > > BTW, I think stackover.com is a superior method of developer interaction 
> > > in a Q/A format and love to see more of the Adobe gurus that hang out 
> > > here, over there.  For example, it's really easy to post screen shots and 
> > > such in the question.
> > > 
> > > Thanks.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > 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 Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
>




Re: [flexcoders] Flex 4: List with itemRendererFunction

2010-04-07 Thread Oleg Sivokon
Try dispatching "update" collection event from the collection assigned? I
don't think it is a good workaround, because dispatching events from outside
the dispatcher is a bad practice, but just for the experiment, I'd try.

Best.

Oleg


[flexcoders] Flex 4: List with itemRendererFunction

2010-04-07 Thread Claus Wahlers
Hi list,

i"m using a Spark List with an itemRendererFunction to have it display
different item renderers for different types of items, more or less like
this:

private function selectRenderer(item:Object):ClassFactory {
   var classFactory:ClassFactory = new ClassFactory(DefaultItemRenderer);
   if (item is OneVO) {
  classFactory = new ClassFactory(OneRenderer);
   } else if (item is TwoVO) {
  classFactory = new ClassFactory(TwoRenderer);
   } else if (item is ThreeVO) {
  classFactory = new ClassFactory(ThreeRenderer);
   }
   return classFactory;
}



This works fine the first time i assign an ArrayCollection to the
dataprovider.

However if i then assign a different ArrayCollection (containing a different
set of One/Two/ThreeVO's) to the dataprovider, the itemRendererFunction is
not called again.

How do i get the List to call itemRendererFunction again after the
dataprovider changes?

Thanks,
Claus.


Re: [flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Alex Harui
I”m not sure what you mean by a node visitor, but it does not process the 
initial collection and reorganize it.  It only allows you to describe the 
children of each node.


On 4/7/10 7:12 AM, "Jeff"  wrote:






Correct me if I'm wrong, but the data descriptor is essentially a node visitor. 
 It will tell the tree how to render a given node.  However, it has no way of 
adding nodes to previous nodes (ie groups).  Take this scenario:

[
{group:"animal", item:"cat"},
{group:"fruit", item:"apple"},
{group:"animal", item:"dog"},
{group:"fruit", item:"orange}
]

Using the ITreeDataDescriptor, you'd end up with a tree structure like this:
-animal
--cat
-fruit
--apple
-animal
--dog
-fruit
--orange

when what you want is this:
-animal
--cat
--dog
-fruit
--apple
--orange

I just discovered ITreeDataDescriptor2.  It looks like that might handle that 
scenario?

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> The goal of IDataDescriptor was to turn just about anything into a heirarchy. 
>  You could have the following data structure:
>
> Class AddressBookEntry
> {
> var name:String
> var MobilePhone:String
> var HomePhone:String
> var WorkPhone:String
> }
>
> And turn it into a tree by having the getChildren call return an 
> ArrayCollection made up of the 3 phone number slots.
>
>
>
> On 4/6/10 5:26 PM, "Jeff"  wrote:
>
>
>
>
>
>
>
>
> I cant vouch for the ILog Elixir stuff.  There might be an easy way to do it. 
>  Assuming that doesnt suit your needs, I think you may need to massage your 
> data a bit because I dont think the data descriptor alone will give you what 
> you're looking for.
>
> I'm assuming this is basically your desired tree structure:
> -group1
> --item
> --item
> -group2
> --item
> --item
> -group3
> --item
> --item
>
> Your probably going to need to put your data into a collection that looks 
> like this:
>
> var myCollection:ArrayCollection = new ArrayCollection([
> {group:"group1", items:[item,item,item]},
> {group:"group2", items:[item,item,item]},
> {group:"group3", items:[item,item,item]}
> ]);
>
> Then, you can use a dataDescriptor to tell the tree what properties of the 
> item object you want to display.  The tree is packaged with a default 
> dataDescriptor, so your data either has to conform to its conventions to 
> display properly or you have to override it.
>
> Implementing a very basic ITreeDataDescriptor and putting your debugger on it 
> will give you valuable insight as to how the Tree component traverses a given 
> data provider.  You can then tell the tree how to display the objects in your 
> collection.  Hope that helps.
>
> To anyone out there, iff there's an easier way to do it with the ILog stuff, 
> I'd appreciate a link to it.  Thanks.
>
> --- In flexcoders@yahoogroups.com   
>  , "cuttenv"  wrote:
> >
> > You could use a grouping Collection to group the data. If you check out the 
> > ILog Exlir stuff they have a bunch of demos on how to do this.
> >
> > --- In flexcoders@yahoogroups.com   
> >  , Alex Harui  wrote:
> > >
> > > The dataDescriptor's purpose is to allow you to create a hierarchy out of 
> > > flat data.
> > >
> > >
> > > On 4/6/10 8:42 AM, "Phil Boissiere"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thanks, Oleg, Jeff.
> > >
> > > In reality the thing that comes back after querying my database is an 
> > > ArrayCollection of strongly typed objects (value objects?). These objects 
> > > have a linear (non-hierarchical) structure but I want to use one of the 
> > > properties (the "group" property) for the parent nodes in a Tree 
> > > component.
> > >
> > > Should I be looking at creating a custom data descriptor or a custom 
> > > object that implements the ICollectionView interface (does that mean 
> > > create a custom Tree component?).
> > >
> > > I just want to make sure I'm doing the right thing, since either approach 
> > > seems to involve quite a bit of ActionScript.
> > >
> > > Thanks again.
> > >
> > >
> > > --- On Tue, 4/6/10, Jeff  wrote:
> > >
> > > From: Jeff 
> > > Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree 
> > > component
> > > To: flexcoders@yahoogroups.com   
> > > 
> > > Date: Tuesday, April 6, 2010, 7:18 AM
> > >
> > >  You can also create a custom data descriptor and set the 
> > > dataDescriptor property of the tree component.  See http://livedocs. 
> > > adobe.com/ flex/3/html/ help.html? content=about_ dataproviders_ 6.html 
> > > 
> > >
> > > --- In flexcod...@yahoogro ups.com 
> > >  , Oleg Sivokon 
> > >  wrote:
> > > >
> > > > The best way would be to implement your own ICollectionView, however, 
> > > > this
> > > > woul

Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Alex Harui
I would not expect any interaction between the two.


On 4/6/10 9:01 PM, "Rick Winscot"  wrote:






I just installed the pre-release of Flash Player 10.1 and a few minutes later 
ran an AIR app... and to my surprise I started getting runtime errors. Is this 
a fluke or is there a possibility that when 10.1 goes live we might see some 
AIR apps breaking? Anyone from Adobe got the low-down?

Cheers,

Rick Winscot
www.quilix.com





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


RE: [flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Battershall, Jeff
One of the problems with the code sample below is that its going to fire off a 
whole lot of events in creating the nested ArrayCollections and adding items to 
them. Better yet make an array and create your nested ArrayCollection in one 
shot, passing the source array in the constructor. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of md_ars
Sent: Wednesday, April 07, 2010 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree component




I ran in to the similar requirement for my Menu application. I am also getting 
data from database with child-parent relationship. I am parsing that data in 
ArrayCollection and created a new nested ArrayCollection which I used as the 
data provider for my Menu. I don't know whether it is the recommended solution 
from Flex but it is working so far. Check following function if it can help 
your cause. In case you write custom Data Descriptor, please share it.

Thanks
Arshad

private function buildNestedArray(flatArray:ArrayCollection,
parentId:int):ArrayCollection {
/* This recursive function takes a flat Array Collection and creates a nested
Array to implement Parent/Child hierarchy*/
 var i:int = 0;
 var nestedArray:ArrayCollection = new ArrayCollection();
 var parents:ArrayCollection = new ArrayCollection();

  for (i = 0; i < flatArray.length; i++) {
 if (flatArray[i]["parentId"] == parentId)
 parents.addItem(flatArray[i]);
 }

 if (parents.length < 1)
 return null;

  for (i = 0; i < parents.length; i++) {
   var node:Object = parents[i];
   var children:ArrayCollection = buildNestedArray(flatArray,
node["itemId"]);
   if (children ) {
   if (children.length > 0) {
   node["children"] = children;
   }
   }
 nestedArray.addItem(parents[i]);
   }
 return nestedArray;
}


--- In flexcoders@yahoogroups.com, "Jeff"  wrote:
>
> Correct me if I'm wrong, but the data descriptor is essentially a node 
> visitor.  It will tell the tree how to render a given node.  However, it has 
> no way of adding nodes to previous nodes (ie groups).  Take this scenario:
> 
> [
> {group:"animal", item:"cat"},
> {group:"fruit", item:"apple"},
> {group:"animal", item:"dog"},
> {group:"fruit", item:"orange}
> ]
> 
> Using the ITreeDataDescriptor, you'd end up with a tree structure like this:
> -animal
> --cat
> -fruit
> --apple
> -animal
> --dog
> -fruit
> --orange
> 
> when what you want is this:
> -animal
> --cat
> --dog
> -fruit
> --apple
> --orange
> 
> I just discovered ITreeDataDescriptor2.  It looks like that might handle that 
> scenario?
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > The goal of IDataDescriptor was to turn just about anything into a 
> > heirarchy.  You could have the following data structure:
> > 
> > Class AddressBookEntry
> > {
> > var name:String
> > var MobilePhone:String
> > var HomePhone:String
> > var WorkPhone:String
> > }
> > 
> > And turn it into a tree by having the getChildren call return an 
> > ArrayCollection made up of the 3 phone number slots.
> > 
> > 
> > 
> > On 4/6/10 5:26 PM, "Jeff"  wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > I cant vouch for the ILog Elixir stuff.  There might be an easy way to do 
> > it.  Assuming that doesnt suit your needs, I think you may need to massage 
> > your data a bit because I dont think the data descriptor alone will give 
> > you what you're looking for.
> > 
> > I'm assuming this is basically your desired tree structure:
> > -group1
> > --item
> > --item
> > -group2
> > --item
> > --item
> > -group3
> > --item
> > --item
> > 
> > Your probably going to need to put your data into a collection that looks 
> > like this:
> > 
> > var myCollection:ArrayCollection = new ArrayCollection([
> > {group:"group1", items:[item,item,item]},
> > {group:"group2", items:[item,item,item]},
> > {group:"group3", items:[item,item,item]}
> > ]);
> > 
> > Then, you can use a dataDescriptor to tell the tree what properties of the 
> > item object you want to display.  The tree is packaged with a default 
> > dataDescriptor, so your data either has to conform to its conventions to 
> > display properly or you have to override it.
> > 
> > Implementing a very basic ITreeDataDescriptor and putting your debugger on 
> > it will give you valuable insight as to how the Tree component traverses a 
> > given data provider.  You can then tell the tree how to display the objects 
> > in your collection.  Hope that helps.
> > 
> > To anyone out there, iff there's an easier way to do it with the ILog 
> > stuff, I'd appreciate a link to it.  Thanks.
> > 
> > --- In flexcoders@yahoogroups.com 

[flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread md_ars



I ran in to the similar requirement for my Menu application. I am also getting 
data from database with child-parent relationship. I am parsing that data in 
ArrayCollection and created a new nested ArrayCollection which I used as the 
data provider for my Menu. I don't know whether it is the recommended solution 
from Flex but it is working so far. Check following function if it can help 
your cause. In case you write custom Data Descriptor, please share it.

Thanks
Arshad

private function buildNestedArray(flatArray:ArrayCollection,
parentId:int):ArrayCollection {
/* This recursive function takes a flat Array Collection and creates a nested
Array to implement Parent/Child hierarchy*/
 var i:int = 0;
 var nestedArray:ArrayCollection = new ArrayCollection();
 var parents:ArrayCollection = new ArrayCollection();

  for (i = 0; i < flatArray.length; i++) {
 if (flatArray[i]["parentId"] == parentId)
 parents.addItem(flatArray[i]);
 }

 if (parents.length < 1)
 return null;

  for (i = 0; i < parents.length; i++) {
   var node:Object = parents[i];
   var children:ArrayCollection = buildNestedArray(flatArray,
node["itemId"]);
   if (children ) {
   if (children.length > 0) {
   node["children"] = children;
   }
   }
 nestedArray.addItem(parents[i]);
   }
 return nestedArray;
}


--- In flexcoders@yahoogroups.com, "Jeff"  wrote:
>
> Correct me if I'm wrong, but the data descriptor is essentially a node 
> visitor.  It will tell the tree how to render a given node.  However, it has 
> no way of adding nodes to previous nodes (ie groups).  Take this scenario:
> 
> [
> {group:"animal", item:"cat"},
> {group:"fruit", item:"apple"},
> {group:"animal", item:"dog"},
> {group:"fruit", item:"orange}
> ]
> 
> Using the ITreeDataDescriptor, you'd end up with a tree structure like this:
> -animal
> --cat
> -fruit
> --apple
> -animal
> --dog
> -fruit
> --orange
> 
> when what you want is this:
> -animal
> --cat
> --dog
> -fruit
> --apple
> --orange
> 
> I just discovered ITreeDataDescriptor2.  It looks like that might handle that 
> scenario?
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > The goal of IDataDescriptor was to turn just about anything into a 
> > heirarchy.  You could have the following data structure:
> > 
> > Class AddressBookEntry
> > {
> > var name:String
> > var MobilePhone:String
> > var HomePhone:String
> > var WorkPhone:String
> > }
> > 
> > And turn it into a tree by having the getChildren call return an 
> > ArrayCollection made up of the 3 phone number slots.
> > 
> > 
> > 
> > On 4/6/10 5:26 PM, "Jeff"  wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > I cant vouch for the ILog Elixir stuff.  There might be an easy way to do 
> > it.  Assuming that doesnt suit your needs, I think you may need to massage 
> > your data a bit because I dont think the data descriptor alone will give 
> > you what you're looking for.
> > 
> > I'm assuming this is basically your desired tree structure:
> > -group1
> > --item
> > --item
> > -group2
> > --item
> > --item
> > -group3
> > --item
> > --item
> > 
> > Your probably going to need to put your data into a collection that looks 
> > like this:
> > 
> > var myCollection:ArrayCollection = new ArrayCollection([
> > {group:"group1", items:[item,item,item]},
> > {group:"group2", items:[item,item,item]},
> > {group:"group3", items:[item,item,item]}
> > ]);
> > 
> > Then, you can use a dataDescriptor to tell the tree what properties of the 
> > item object you want to display.  The tree is packaged with a default 
> > dataDescriptor, so your data either has to conform to its conventions to 
> > display properly or you have to override it.
> > 
> > Implementing a very basic ITreeDataDescriptor and putting your debugger on 
> > it will give you valuable insight as to how the Tree component traverses a 
> > given data provider.  You can then tell the tree how to display the objects 
> > in your collection.  Hope that helps.
> > 
> > To anyone out there, iff there's an easier way to do it with the ILog 
> > stuff, I'd appreciate a link to it.  Thanks.
> > 
> > --- In flexcoders@yahoogroups.com  , 
> > "cuttenv"  wrote:
> > >
> > > You could use a grouping Collection to group the data. If you check out 
> > > the ILog Exlir stuff they have a bunch of demos on how to do this.
> > >
> > > --- In flexcoders@yahoogroups.com  , 
> > > Alex Harui  wrote:
> > > >
> > > > The dataDescriptor's purpose is to allow you to create a hierarchy out 
> > > > of flat data.
> > > >
> > > >
> > > > On 4/6/10 8:42 AM, "Phil Boissiere"  wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Th

[flexcoders] Inserting Into MYSQL Table Via Air/PHP = Not Allowed?

2010-04-07 Thread James
I'm having trouble inserting data into my mysql database tables through my air 
app. All the code is pretty much exactly the same as in some examples I've seen 
but it simply won't do it. Is this because of some sort of security restriction 
because the air app is on my machine and the server with my mysql database on 
is elsehwhere? Or is it possible to insert data via an air app?

Here is the example I've been following:-
 
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html




[flexcoders] Re: DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread taude1
I definitely dont' see it when the framework and datavisualization is merged.  
However, not too keen on adding another 500 KB to the SWF size of an already 
way-too-large application.

I'm going to keep tinkering with fonts.

--- In flexcoders@yahoogroups.com, "Battershall, Jeff"  
wrote:
>
> Well, rotated or not, I've definitely seen some unexpected behavior related 
> to fonts and RSLs. In one application I ended up merging into code to address 
> the issue. 
> 
> Maybe what I encountered isn't the same as what you're seeing but it sure 
> sounds similar. Is the font being used for the axis labels embedded?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of taude1
> Sent: Wednesday, April 07, 2010 10:37 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up
> 
> The labels definitely aren't rotated.  And the fonts being used show up 
> everywhere else in the application, including the same screens that contain 
> the charts.  (The posted chart graphics are a small subset of the entire 
> screen.)
> 
> --- In flexcoders@yahoogroups.com, "Battershall, Jeff"  
> wrote:
> >
> > Are the labels rotated?  If so, are you sure that the font used is getting 
> > loaded as well?  I've seen some funny font behavior when related to loading 
> > Data Vis RSLs in the past.
> > 
> > Jeff
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of taude1
> > Sent: Wednesday, April 07, 2010 9:46 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up
> > 
> > Hi All,
> > 
> > I've posted a question over at Stack Overflow on a problem that I'm having 
> > with my Axis labels not showing up on a chart.
> > 
> > I think it has to do with my use of the framework RSL when it loads, but 
> > nonetheless, it's a big issue and I can't seem to figure it out.
> > 
> > Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and 
> > the labels still don't show up.
> > 
> > http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build
> > 
> > BTW, I think stackover.com is a superior method of developer interaction in 
> > a Q/A format and love to see more of the Adobe gurus that hang out here, 
> > over there.  For example, it's really easy to post screen shots and such in 
> > the question.
> > 
> > Thanks.
> > 
> > 
> > 
> > 
> > 
> > --
> > 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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>




RE: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread Battershall, Jeff
Well, rotated or not, I've definitely seen some unexpected behavior related to 
fonts and RSLs. In one application I ended up merging into code to address the 
issue. 

Maybe what I encountered isn't the same as what you're seeing but it sure 
sounds similar. Is the font being used for the axis labels embedded?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of taude1
Sent: Wednesday, April 07, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up

The labels definitely aren't rotated.  And the fonts being used show up 
everywhere else in the application, including the same screens that contain the 
charts.  (The posted chart graphics are a small subset of the entire screen.)

--- In flexcoders@yahoogroups.com, "Battershall, Jeff"  
wrote:
>
> Are the labels rotated?  If so, are you sure that the font used is getting 
> loaded as well?  I've seen some funny font behavior when related to loading 
> Data Vis RSLs in the past.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of taude1
> Sent: Wednesday, April 07, 2010 9:46 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up
> 
> Hi All,
> 
> I've posted a question over at Stack Overflow on a problem that I'm having 
> with my Axis labels not showing up on a chart.
> 
> I think it has to do with my use of the framework RSL when it loads, but 
> nonetheless, it's a big issue and I can't seem to figure it out.
> 
> Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the 
> labels still don't show up.
> 
> http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build
> 
> BTW, I think stackover.com is a superior method of developer interaction in a 
> Q/A format and love to see more of the Adobe gurus that hang out here, over 
> there.  For example, it's really easy to post screen shots and such in the 
> question.
> 
> Thanks.
> 
> 
> 
> 
> 
> --
> 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





Re: [flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Rick Winscot
Oleg,

Thanks for the help ­ I do appreciate it!

I followed the instructions outlined (
http://labs.adobe.com/technologies/flashplayer10/ ) on labs... and my
expectation is that updating to a more recent version of the Flash Player
should be, more or less, transparent. In working through this, there seems
to be some interdependency between Flash Player 10.1 and AIR 2 (this is an
AIR app). I can¹t confirm this... but for posterity, I was able to eliminate
the runtime errors I was experiencing by compiling against a patched (I
merged AIR 2 bits with the latest) 3.5 Flex SDK.

This resolves my first question mark... now just to confirm that Œeach
version of AIR is an island unto itself.¹ For that, I¹m satisfied with
J.Housers explanation. Thanks again to all for taking the time to calm my
nerves.

Cheers,

Rick Winscot
www.quilix.com


On 4/7/10 9:58 AM, "Oleg Sivokon"  wrote:
 
>  
>
> 
> Hi.
> You must be seeing RSL conflicts (the classes built into FlashPlayer won't
> behave in that way, since they aren't actually loaded from SWF), and if that's
> the RSL conflict, like you've loaded a newer version of RSLs into oldish
> application, then, well, that's the developer's problem, he should've specify
> the correct RSL url, or, if we are talking about AIR, shouldn't have used RSLs
> at all.
> 
> Best.
> 
> Oleg
>  
>
> 
> 



[flexcoders] FileReferenceList

2010-04-07 Thread sderamon
Hi,

I want to upload files with FileReferenceList with Flex. I know that is not 
possible to get the path. Because we have this limitation, I want to add files 
to the fileReferenceList several times, but every time that I add files, it 
deletes the previous files. Is possible to add files to the FileReferenceList 
and keep the previous ones.

Thanks



[flexcoders] Re: DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread taude1
The labels definitely aren't rotated.  And the fonts being used show up 
everywhere else in the application, including the same screens that contain the 
charts.  (The posted chart graphics are a small subset of the entire screen.)

--- In flexcoders@yahoogroups.com, "Battershall, Jeff"  
wrote:
>
> Are the labels rotated?  If so, are you sure that the font used is getting 
> loaded as well?  I've seen some funny font behavior when related to loading 
> Data Vis RSLs in the past.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of taude1
> Sent: Wednesday, April 07, 2010 9:46 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up
> 
> Hi All,
> 
> I've posted a question over at Stack Overflow on a problem that I'm having 
> with my Axis labels not showing up on a chart.
> 
> I think it has to do with my use of the framework RSL when it loads, but 
> nonetheless, it's a big issue and I can't seem to figure it out.
> 
> Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the 
> labels still don't show up.
> 
> http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build
> 
> BTW, I think stackover.com is a superior method of developer interaction in a 
> Q/A format and love to see more of the Adobe gurus that hang out here, over 
> there.  For example, it's really easy to post screen shots and such in the 
> question.
> 
> Thanks.
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>




RE: [flexcoders] DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread Battershall, Jeff
Are the labels rotated?  If so, are you sure that the font used is getting 
loaded as well?  I've seen some funny font behavior when related to loading 
Data Vis RSLs in the past.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of taude1
Sent: Wednesday, April 07, 2010 9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up

Hi All,

I've posted a question over at Stack Overflow on a problem that I'm having with 
my Axis labels not showing up on a chart.

I think it has to do with my use of the framework RSL when it loads, but 
nonetheless, it's a big issue and I can't seem to figure it out.

Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the 
labels still don't show up.

http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build

BTW, I think stackover.com is a superior method of developer interaction in a 
Q/A format and love to see more of the Adobe gurus that hang out here, over 
there.  For example, it's really easy to post screen shots and such in the 
question.

Thanks.





--
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: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Jeff
Correct me if I'm wrong, but the data descriptor is essentially a node visitor. 
 It will tell the tree how to render a given node.  However, it has no way of 
adding nodes to previous nodes (ie groups).  Take this scenario:

[
{group:"animal", item:"cat"},
{group:"fruit", item:"apple"},
{group:"animal", item:"dog"},
{group:"fruit", item:"orange}
]

Using the ITreeDataDescriptor, you'd end up with a tree structure like this:
-animal
--cat
-fruit
--apple
-animal
--dog
-fruit
--orange

when what you want is this:
-animal
--cat
--dog
-fruit
--apple
--orange

I just discovered ITreeDataDescriptor2.  It looks like that might handle that 
scenario?


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> The goal of IDataDescriptor was to turn just about anything into a heirarchy. 
>  You could have the following data structure:
> 
> Class AddressBookEntry
> {
> var name:String
> var MobilePhone:String
> var HomePhone:String
> var WorkPhone:String
> }
> 
> And turn it into a tree by having the getChildren call return an 
> ArrayCollection made up of the 3 phone number slots.
> 
> 
> 
> On 4/6/10 5:26 PM, "Jeff"  wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> I cant vouch for the ILog Elixir stuff.  There might be an easy way to do it. 
>  Assuming that doesnt suit your needs, I think you may need to massage your 
> data a bit because I dont think the data descriptor alone will give you what 
> you're looking for.
> 
> I'm assuming this is basically your desired tree structure:
> -group1
> --item
> --item
> -group2
> --item
> --item
> -group3
> --item
> --item
> 
> Your probably going to need to put your data into a collection that looks 
> like this:
> 
> var myCollection:ArrayCollection = new ArrayCollection([
> {group:"group1", items:[item,item,item]},
> {group:"group2", items:[item,item,item]},
> {group:"group3", items:[item,item,item]}
> ]);
> 
> Then, you can use a dataDescriptor to tell the tree what properties of the 
> item object you want to display.  The tree is packaged with a default 
> dataDescriptor, so your data either has to conform to its conventions to 
> display properly or you have to override it.
> 
> Implementing a very basic ITreeDataDescriptor and putting your debugger on it 
> will give you valuable insight as to how the Tree component traverses a given 
> data provider.  You can then tell the tree how to display the objects in your 
> collection.  Hope that helps.
> 
> To anyone out there, iff there's an easier way to do it with the ILog stuff, 
> I'd appreciate a link to it.  Thanks.
> 
> --- In flexcoders@yahoogroups.com  , 
> "cuttenv"  wrote:
> >
> > You could use a grouping Collection to group the data. If you check out the 
> > ILog Exlir stuff they have a bunch of demos on how to do this.
> >
> > --- In flexcoders@yahoogroups.com  , 
> > Alex Harui  wrote:
> > >
> > > The dataDescriptor's purpose is to allow you to create a hierarchy out of 
> > > flat data.
> > >
> > >
> > > On 4/6/10 8:42 AM, "Phil Boissiere"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thanks, Oleg, Jeff.
> > >
> > > In reality the thing that comes back after querying my database is an 
> > > ArrayCollection of strongly typed objects (value objects?). These objects 
> > > have a linear (non-hierarchical) structure but I want to use one of the 
> > > properties (the "group" property) for the parent nodes in a Tree 
> > > component.
> > >
> > > Should I be looking at creating a custom data descriptor or a custom 
> > > object that implements the ICollectionView interface (does that mean 
> > > create a custom Tree component?).
> > >
> > > I just want to make sure I'm doing the right thing, since either approach 
> > > seems to involve quite a bit of ActionScript.
> > >
> > > Thanks again.
> > >
> > >
> > > --- On Tue, 4/6/10, Jeff  wrote:
> > >
> > > From: Jeff 
> > > Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree 
> > > component
> > > To: flexcoders@yahoogroups.com 
> > > Date: Tuesday, April 6, 2010, 7:18 AM
> > >
> > >  You can also create a custom data descriptor and set the 
> > > dataDescriptor property of the tree component.  See http://livedocs. 
> > > adobe.com/ flex/3/html/ help.html? content=about_ dataproviders_ 6.html 
> > > 
> > >
> > > --- In flexcod...@yahoogro ups.com 
> > >  , Oleg Sivokon 
> > >  wrote:
> > > >
> > > > The best way would be to implement your own ICollectionView, however, 
> > > > this
> > > > would be a complex task.
> > > > For your example, I'd do it like so:
> > > >
> > > > private var ac:ArrayCollection = new ArrayCollection( [
> > > > { "Animals": ["dog", "cat"],
> > > > { "Fruits": ["orange", "apple"] }
> > > > ]);
> > > >
> > > >
> > > > Best.
> > > >
> > > > Oleg
> > > >
> > >
> > >
> > >
> > >
> > >
> > 

Re: [flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Oleg Sivokon
Hi.
You must be seeing RSL conflicts (the classes built into FlashPlayer won't
behave in that way, since they aren't actually loaded from SWF), and if
that's the RSL conflict, like you've loaded a newer version of RSLs into
oldish application, then, well, that's the developer's problem, he should've
specify the correct RSL url, or, if we are talking about AIR, shouldn't have
used RSLs at all.

Best.

Oleg


Re: [flexcoders] Re: Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread Oleg Sivokon
Yeah, here you go:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/filesystem/File.html#browseForDirectory()

Best.

Oleg


Re: [flexcoders] Re: Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread Oleg Sivokon
Ah. You welcome, James. Then look into this discussion:
http://forums.adobe.com/thread/287536
It explains it on JavaScript AIR example, but the AS3 API shouldn't be
different.

Best.

Oleg


[flexcoders] DataVisualization Chart Axis Labels not showing up

2010-04-07 Thread taude1
Hi All,

I've posted a question over at Stack Overflow on a problem that I'm having with 
my Axis labels not showing up on a chart.

I think it has to do with my use of the framework RSL when it loads, but 
nonetheless, it's a big issue and I can't seem to figure it out.

Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the 
labels still don't show up.

http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build

BTW, I think stackover.com is a superior method of developer interaction in a 
Q/A format and love to see more of the Adobe gurus that hang out here, over 
there.  For example, it's really easy to post screen shots and such in the 
question.

Thanks.



Re: [flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Rick Winscot
Jeffry,

This is exactly what caused the concern. I got excited with the Flash Player
10.1 pre-release and installed it... not three minutes later I was staring
at runtime errors (no code was changed / prior to this the app was working
fine). I understand that the Flash Player is designed in such a way that
code compiled against version 9.0.124 will continue to execute as 9.0.124
even if a newer version is present (correct me if I¹m wrong). There might be
some issues with modules (related to version skew) but that is another
topic...

I guess I¹m a little hyper-sensitive when I see something break. I would
expect some conflict / errors when swapping out a Flex SDK... but am a
little less forgiving when I see Flash Player 10.1 hang (explode?) on a cast
that was working without issue in version 10.

So... what I¹m looking for is a little assurance (hey Rob Christensen!) that
when AIR 3 and Flash Player 14 are released ­ old applications written for
AIR 1.5.3 and Flash Player 10 will continue to run without issue.

Cheers,

Rick Winscot
www.quilix.com



On 4/7/10 7:19 AM, "Jeffry Houser"  wrote:
   
> 
> With Flextras components, I've eeen tons of runtime errors in Flex due to
> version mismatch with betas and official releases.
> 
> Basically, SWCs compiled with Flex 4 Beta 2 have issues running against the
> Flex 4 release version.  The solution was to recompile the app against the
> release version of Flex 4 SDK.
> 
> I have no idea how that would relate to Flash Player 10.1 problems, though.
> 
> It would be my expectation that the Flash Player is embedded in the AIR
> runtime and that installing a browser based pluging [even a beta one] would
> have no affect on AIR applications.
> 
> --- In flexcoders@yahoogroups.com  , Oleg
> Sivokon  wrote:
>> >
>> > You probably want to mention the kind of errors you saw. I'm not implying
>> > anything, but, in most cases that I can think, the runtime errors are the
>> > developer's fault and not the runtime fault...
>> > 
>> > Best.
>> > 
>> > Oleg
>> >
> 
>  
>
> 
> 



[flexcoders] Re: Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread James
Hi Oleg. Yes it is Air that I'm ttalking about actually. It's an Adobe Air 
Application that I'm making. Cheers for your help so far. Is there any way to 
change the default browse location using AIR?

--- In flexcoders@yahoogroups.com, "James"  wrote:
>
> When you allow an app to upload a file it seems the user must browse to that 
> file. The default directory of the browse window seems to be the desktop. Is 
> there any way of changing this so that the default directory of the browse 
> window is the application directory itself?
>  
> I want to allow my users to upload images straight from the application 
> directory where they will be stored rather than having to search for this 
> directory which obviously most users may find difficult.
> 
> The line of code I use to allow users to browse for a file is:-
> 
> imageuploadfileReferenceList.browse();
> 
> Is it possible to change the default being the desktop or is it just not 
> doable?
>




Re: [flexcoders] Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread Oleg Sivokon
Hi, If we are not talking about AIR, then this isn't possible, however, I
think, that the default folder is picked from the opening windows history,
that is the browser or OS would remember the last opened folder and then
open it on the next file open dialog. At least this is how it works on
Windows by default. It is possible that this setting is configurable, but I
have some doubt about this regarding Windows, as FileBrowse dialog in .NET
has a setting of "saving" the last opened location.

Best.

Oleg


[flexcoders] Re: how to expand tree control from a button?

2010-04-07 Thread valdhor
In your function test() change the line to...

var node:XMLList = treeData.main.view.(@hidden == 'stations_info');

'root' is not needed.

--- In flexcoders@yahoogroups.com, "advancedonsite"  wrote:
>
> My TEST button I want to expand and select on this XML Node
> 
> 
> I've tried to modify this example to handle passing from a button but got no 
> errors just doesn't work?
> 
> http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-control-using-the-expanditem-method/
> 
> 
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml"; layout="absolute">
>   
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>  paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10" 
> >
>   
> 
>  labelField="@label"
> showRoot="false" dataProvider="{TreeXMLList}" 
> change="treeChanged(event)"/>
> 
>   
>  fontWeight="bold"
> paddingTop="10" paddingLeft="10" />
>   
>  id="announcements_add">
>  fontWeight="bold"
> paddingTop="10" paddingLeft="10" />
>   
>   
>   
>   
> 
> 
> 
> 
> 
> 
> 
>




[flexcoders] No Overlap Container Component

2010-04-07 Thread ebrentnelson
I want to write a component that will allow children to be added, but will 
prevent them from overlapping. I have played around with a few collision 
detection type things, but I haven't been successful. I'm posting this to see 
if I can get some feedback, ideas, brainstorming about this.
 
Ideally I'd like children to be positioned randomly or by a "layout function" 
(that could be customized).
 
Thanks in advance.
 
EBN



[flexcoders] [spark] viewstack and move showeffect problem

2010-04-07 Thread Joe Cabezas
hello!

mi name is Joe, i'm from Chile, Latin America, i developed in flex 3, but
this time i want to practice flash builder 4.


actually, i want to show a popup (a TitleWindow via PopUpManager), wich has
a viewstack, and i want to animate it's contents like and ipod interface, i
have this code, it work's, but only fail in the first time you switch to
another view, next switches have no problem.


(this code is ready to copy paste and test)



http://ns.adobe.com/mxml/2009";
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
backgroundColor="#6E6363">
 




 
 
 
 
 


 
 

 
 

 
 

 

 





with this simple code, you can see my problem, because the first Move effect
slide out of bounds the contents of the viewstack, but nexts moves dont,
what can i do to make it works?

than you in advance! :D


[flexcoders] Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread James
When you allow an app to upload a file it seems the user must browse to that 
file. The default directory of the browse window seems to be the desktop. Is 
there any way of changing this so that the default directory of the browse 
window is the application directory itself?
 
I want to allow my users to upload images straight from the application 
directory where they will be stored rather than having to search for this 
directory which obviously most users may find difficult.

The line of code I use to allow users to browse for a file is:-

imageuploadfileReferenceList.browse();

Is it possible to change the default being the desktop or is it just not doable?



[flexcoders] Re: Help! - Intermittent Network Issues - How do you handle?

2010-04-07 Thread bhaq1972
I don't have a suggestion but wanted to know if you found anything useful to 
help your problem?

We had one customer who had this problem on one of their pc's. But I never got 
to the bottom of what was happening. It became a low grade issue (as it was 
only one pc). I couldn't replicate the problem and the customer did a few 
upgrades/re-installations etc. and the problem went away.

Have you looked at the firewall logs before and after the new firewall? that 
maybe a start.

Also, if the network has intermittent issues, you could try and re-send your 
request ...but this will only work if the intermittent issue goes away.

good luck




--- In flexcoders@yahoogroups.com, "rojoe615"  wrote:
>
> We are in the process of rolling out an app using LCDS and Flex.  I posted an 
> earlier note about intermittent network issues, but things have gotten much 
> worse.  About the only thing users can do is shut down their browser and 
> restart after getting messages about   faultCode = "Channel.Call.Failed" and 
> faultDetail = "NetConnection.Call.Failed: HTTP: Failed".  This all appeared 
> to start when our infrastructure guys started using Blue Coat Systems as 
> firewall provider.
> 
> Maybe I am missing something, but shouldn't LCDS and Flex be smart enough to 
> know if the connection has been dropped?  Surely I am not the only person 
> that has run across this...(or maybe I am)
> 
> I mean if the product is being marketed for eCommerce type work, you would 
> expect there would be issues like intermittent connections and DNS problems 
> in the Internet.  So shouldn't it handle issues like this?
> 
> So I'm appealing to some of you Flex experts out there for some insight.  
> Anyone else run across stuff like this and what did you do for it?
> 
> Thanks,
> Joe
>




[flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Jeffry Houser
With Flextras components, I've eeen tons of runtime errors in Flex due to 
version mismatch with betas and official releases.

Basically, SWCs compiled with Flex 4 Beta 2 have issues running against the 
Flex 4 release version.  The solution was to recompile the app against the 
release version of Flex 4 SDK.

I have no idea how that would relate to Flash Player 10.1 problems, though.  

It would be my expectation that the Flash Player is embedded in the AIR runtime 
and that installing a browser based pluging [even a beta one] would have no 
affect on AIR applications.

--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> You probably want to mention the kind of errors you saw. I'm not implying
> anything, but, in most cases that I can think, the runtime errors are the
> developer's fault and not the runtime fault...
> 
> Best.
> 
> Oleg
>




[flexcoders] how to create a web application with Maven

2010-04-07 Thread Nini7016 Nini7016

Hello :)

I have an existing  application Flex. 
I would like to create and automatise this web application with Maven.

Any body has done that before ?
Do you have some tuto which can help me ?

It is the first time that i use Maven :(

Any information please ??

Regards 


Thank you very much :)


  
_
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/

Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Oleg Sivokon
You probably want to mention the kind of errors you saw. I'm not implying
anything, but, in most cases that I can think, the runtime errors are the
developer's fault and not the runtime fault...

Best.

Oleg


Re: [flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Oleg Sivokon
Why make your own collection and not data descriptor:
Well, this is questionable, and the question is exactly how much time are
you going to spend on that and how critical this place is for you. If you
can spend much time, or, as much time as you want, I'd say - make a tree
control yourself, and don't base it on ListBase.
Now, let's assume that rewriting the tree isn't an option, then data
descriptor sounds like an easy way, but:
- the idea of having data descriptor means that on any operation connected
somehow to the collection view (scrolling / opening / closing / selecting)
the tree control will call descriptor functions. If your collection isn't
hierarchical, then your descriptor will run series of rather long recursions
to return what it has to.
- having data descriptor will not spare you from having to convert all your
data from one structure to another, you will just do it in a very convoluted
way, but, anyway, you will convert your "flat" view into hierarchical view
either yourself, or by using descriptor. However, in the later case you will
most probably create additional collections many times instead of doing it
only once.
- so far the data descriptor will have to create additional collection, this
will also reflect on integrity of your data. Think of an example when the
position in the collection influences some of the properties of the item
inside collection. The very straight-forward example is the file system
(often times displayed in a tree), where, normally, you'd want to find out
what the full name of a file is by going from it's parent to it's grand
parent and so on. Imagine now that data descriptor messes with child-parent
relationship in the collection in order to display that in the control - all
the file names go hirewire, and you're lucky if you didn't bind that to the
actual file system ;)

Another reason for custom collection would be that ListCollectionView, or
HierarchicalCollectionView are incredibly slow. They create and dispatch
tons of events if you actively work with the collection, but the worse thing
about them are IPEs (item pending errors). Try-catch is a very slow
operation due to it's nature, however, the framework code does it a lot.
Well, because it has to ensure some kind of "stability", but that usually
results in a very reduced performance. Besides, if you think of all the bad
stigmas associated with Windows core (like tons of if-else and different
logic for every particular situation, where it must support some legacy
stuff) - in Flex framework you have that too...

However, if you will make your own collection, this, in the end, will put
you in the situation, where you have to make a data descriptor too, and then
lots of other thing as well, so... maybe just write a tree? :D Really, it's
not as difficult as it may seem from the start :)

Best.

Oleg