[flexcoders] Gumbo downloadable API docs

2009-09-11 Thread ivo
Hello Listers,

Is the  Gumbo API docs available for download in HTML format? The latency while 
accessing the online docs is driving me bonkers  :P  . Not sure if its the 
crappy connection here or the adobe server.

Or perhaps the recipe for running ASDoc on the downloaded sources? I must be 
doing something incorrectly since the documentation generated when I try is 
incomplete.

Thanks!

- Ivo



[flexcoders] packing/unpacking binary data using as3

2009-09-09 Thread ivo
Hello listers,

Any ideas on how to unpack binary data in AS3?

I am porting a python app that makes use of these functions 
http://docs.python.org/library/struct.html to read a 32-bit little endian value 
like this:

value = struct.unpack("

Re: [flexcoders] AIR code signing certificate

2009-01-02 Thread ivo
Have you considered other vendors?
(http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff0.html)

Might just be not well thought out options from that particular one, you are 
denied a personal cert in your business name and you are also denied a corp 
cert for your non-incorporated business.





From: arieljake 
To: flexcoders@yahoogroups.com
Sent: Friday, January 2, 2009 7:06:26 PM
Subject: [flexcoders] AIR code signing certificate


I am trying to purchase an AIR code signing certificate from Chosen
Security. They have 2 plans, one is a corporate certificate and the
other is a personal certificate. They are refusing to issue me a
personal certificate in the name of my company which is registered as
a Fictitious Business Name, but since I am not incorporated, won't
sell me a corporate certificate. Anyone know what I should do or how I
can convince them to allow me to put the certificate in my business's
name?

Adobe?



Re: [flexcoders] how to receive params from html .... in flash

2009-01-02 Thread ivo
You can access it thru the loaderInfo 
(http://livedocs.adobe.com/flex/3/langref/flash/display/LoaderInfo.html)

var serverURL:String;
var port:String;

public function mySwf{
serverURL = String(loaderInfo.parameters['serverURL']);
port = String(loaderInfo.parameters['port']);
}


- Ivo



From: v.cekvenich 
To: flexcoders@yahoogroups.com
Sent: Friday, January 2, 2009 4:11:51 PM
Subject: [flexcoders] how to receive params from html  in flash


http://yakovfain. javadevelopersjo urnal.com/ passing_paramete rs_to_flex_ 
that_works. htm

I can do this an flex.

But... what if I am doing .as project, not flex.
How do I receive an argument?

tia,
.V



Re: [flexcoders] how to scale an entire flex application including text and images

2008-12-30 Thread ivo
I had an application that uses set width and height and when placed in an embed 
with different dimensions did not scale correctly. I was able to solve it by 
setting the property:

stage.align = StageAlign.TOP_LEFT;

then on resize or added to stage set the scaling myself:

private function updateScaling():void{
if(stage.stageWidth != width || stage.stageHeight != height){
var scaling:Number = 1;
if(width>height){
scaling = stage.stageWidth / width;
}else{
scaling = stage.stageHeight / height;
}
scaleX = scaleY = scaling;
}
}







From: johndoematrix 
To: flexcoders@yahoogroups.com
Sent: Tuesday, December 30, 2008 5:18:48 AM
Subject: [flexcoders] how to scale an entire flex application including text 
and images


hello guys... i thought by using % width and height would help scale a
flex application depending on different screen sizes but i realized
that the controls such as text are not scaled which leads to scroll
bars being created. this makes the application ugly. is there a way to
scale the entire application so that it the screen is smaller then the
text and other controls are scaled to fit the flex UI. 



Re: [flexcoders] Searching Multi Demensional arrays

2008-12-29 Thread ivo
since the path will be unique for each object it could serve as the key in a 
hash. 

mapPathToObj[obj1.path] = obj


only works for exact matches tho, if you are looking for substrings then you 
will need to iterate over the nodes.





From: Dan Vega 
To: flexcoders@yahoogroups.com
Sent: Monday, December 29, 2008 2:05:19 PM
Subject: [flexcoders] Searching Multi Demensional arrays


I have an infinite number of  objects & child objects that looks something like 
this below. I know this if it was just one level I could probably accomplish 
what i need but I am not sure how to do this. All of the "path" items are 
always going to be unique. Is there a way to search (drilling down as far as 
needed) and say give me the object where path = "xyz";


(Array)#0
  [0] (Object)#1
children = (Array)#2
  [0] (Object)#3
children = (Array)#4
lastModified = 1230587039867
name = ""
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ "
  [1] (Object)#5
lastModified = 1230580833728
name = "another_one"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ another_one"
  [2] (Object)#6
children = (Array)#7
lastModified = 1230587312776
name = "dan"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ dan"
  [3] (Object)#8
lastModified = 1230581177910
name = "ggg"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ ggg"
  [4] (Object)#9
lastModified = 1230581240020
name = "hjkl"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ hjkl"
  [5] (Object)#10
lastModified = 1230580116200
name = "l"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ l"
  [6] (Object)#11
lastModified = 1230575547578
name = "nnn"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ nnn"
  [7] (Object)#12
lastModified = 1230575859098
name = "test"
parent = "C:\Program Files\Apache Software Foundation\Apache2. 
2\htdocs\ FFManager\ src\data"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data\ test"
mx_internal_ uid = "B8E4886E-A00D- 6D89-CBAA- 84C60F791112"
name = "Home"
path = "C:\Program Files\Apache Software Foundation\Apache2. 2\htdocs\ 
FFManager\ src\data"

Thank You
Dan Vega
danv...@gmail. com
http://www.danvega. org


Re: [flexcoders] mxmlc | Java heap space

2008-12-29 Thread ivo
Hi,

This has come up before. You need to increase the memory available to Java and 
Ant. Search the archives for ANT_OPTS

- Ivo





From: ilikeflex 
To: flexcoders@yahoogroups.com
Sent: Monday, December 29, 2008 1:26:26 PM
Subject: [flexcoders] mxmlc  | Java heap space


Hi
I am compiling the module and i get the error below
Error: Java heap space
java.lang.OutOfMemo ryError: Java heap space
Any pointer?
  












 
Thanks
ilikeflex 

Re: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread ivo
My 0.2 is that I love OS X & Apple software but I found I can't rely on Apple 
hardware. Maybe its bad luck but I have always had hardware problems and more 
than once a warrantied, applecared machine still took more than a week to 
resolve. At one point I was heavily invested on Apple hardware but over time 
the hardware issues really impacted productivity. I have tried to protect 
against hardware issues with backups and redundant hardware but for a macs it 
means $$.

So now I am a Windows guy. If this machine breaks, gets stolen or whatever I 
could replace it with $300 & a 20 minute drive.




From: composerguru 
To: flexcoders@yahoogroups.com
Sent: Monday, December 29, 2008 2:24:40 AM
Subject: [flexcoders] Any Developers on a Mac?


I'm thinking of converting now that I've dumped Vista... just
wondering what your experience might be and if you recommend the change?

Thanks in advance,
Kevin



Re: [flexcoders] Deselecting tree nodes based on some condition

2008-12-23 Thread ivo
To examine the node clicked you can listen for ListEvent.ITEM_CLICK in the Tree 
and check the event data.
You can  then use the scan selectedItems array and remove any that dont belong.

- Ivo





From: biosmonkey 
To: flexcoders@yahoogroups.com
Sent: Tuesday, December 23, 2008 11:50:42 AM
Subject: [flexcoders] Deselecting tree nodes based on some condition


I am using the tree view in an advanced data grid.

The nodes in the tree can be any kind of parent/child relationship,
and each node is one of a few different types.

So for example, let's say you have a tree consisting of nodes that are
one of 5 different types A,B,C,D,and E.

If the user first clicks on a node of type B, then I need to limit all
future selections to type B by deselecting or preventing the user from
clicking them. This needs to work whether the user ctrl-clicks
individual nodes, or shift-clicks a whole bunch of nodes. 

So, in essence I don't care about any parent/child relationships. ..if
the user shift-clicks across a large number of parents and children I
still treat them as individual nodes.

So, I just need to a) see what the first type is that they clicked and
b) scan any other selected items and deselect them if they are not the
same type.

I tried messing around with the selectedItems array, but I could not
seem to alter it.  I am also not sure how much code *I* need to do to
make this work, ie can I remove an entry from the selectedItems array
and Flex deselects it for me, or do I have to do everything?



Re: [flexcoders] - Tree Component Styling issue

2008-12-23 Thread ivo
I handled it by extending TreeItemRenderer, overriding updateDisplayList() & 
set theTreListData  icon based on some condition in the  node item.

override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
var tlData:TreeListData = TreeListData(super.listData);
var nodeData:NodeDescriptor= (tlData.item as NodeDescriptor);
if(nodeData.icon != null){
   tlData.icon = node.icon;
}
}

the NodeDescriptor is a simple object that holds data specific to each node 
(icon, label, etc...)

- Ivo






From: Alan Rother 
To: flexcoders@yahoogroups.com
Sent: Tuesday, December 23, 2008 12:11:11 PM
Subject: [flexcoders] - Tree Component Styling issue


Hey all,

I am building a sitemap tool in Flex 3. I want to be able to control all of the 
icons at runtime based on the data provided back to Flex from ColdFusion (XML).

I have managed to get the leaf nodes icons controlled by the data provider, but 
I cannot find a way to affect the folder icons at run time only globally. By 
that I mean, I can set each and every leaf to any icon I choose, but I can only 
get my folders to have one global look. I need to be able to define what icon 
to use for each folder, as in this case each folder represents a parent page 
and will have a status associated with it (active, locked, publishing, etc...) 

Any one found a way to handle it ?

=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


Re: [flexcoders] Tree problems

2008-12-20 Thread ivo
I believe the tree listens for the CollectionEvent.COLLECTION_CHANGE event from 
the dataprovider to update its view. an array does not dispatch this event but 
you can try doing it yourself (myTree.dataProvider as 
ArrayCollection).dispatch(new CollectionEvent( ...





From: Dan Vega 
To: flexcoders@yahoogroups.com
Sent: Saturday, December 20, 2008 11:37:11 AM
Subject: Re: [flexcoders] Tree problems


Well i used that approach before and now I am back to using the same approach. 
A placholder to that array works great but the problem I had before is coming 
up again. when I click the folder no data shows up but the data is in the 
array. If i close it and open it again it shows up. The tree is just not 
updating for whatever reason. Is there something I need to do to refresh 
everything? 

Dan




On Sat, Dec 20, 2008 at 2:17 PM, Dan Vega  wrote:

The current target of the event is that, I don't think that will work? 
mx.rpc.remoting. mxml.Operation (@2a9494c1)




On Sat, Dec 20, 2008 at 11:01 AM, ivo  wrote:

The way I have handled it is by getting a reference to the children array and 
update the array with the retrieved data, somethin akin to:

private function listDirectories( event:ResultEven t):void {
var _node:Object = event.currentTarget ;
_node.children = event.result as Array;
}

- Ivo









From: Dan Vega 
To: flexcod...@yahoogro ups.com
Sent: Friday, December 19, 2008 10:28:29 PM

Subject: Re: [flexcoders] Tree problems


I am not sure what you mean by getChildren( ) though, when a branch is clicked 
this method is called.

private function onItemOpen(event: TreeEvent) :void {
var path:String = event.item.path;
FileManager. getDirectories( path);

}

The getDirectories( ) method of the remote object call has a result handler 
called listDirectories( ). So based on the path of the node that is clicked 
(request for drill down) we make a remote call to get a list of directories for 
that path. Im not sure between these 2 stpes how to add my new array of 
directories to the empty children array of the node that was clicked.

private function listDirectories( event:ResultEven t):void {

var dirs:Array = event.result as Array;

// if the _directories array is null this is our root request
if(_directories == null) {
_directories = dirs;
}else {
   //?
}
}


hope that makes a little more sense.

 



Re: [flexcoders] Tree problems

2008-12-20 Thread ivo
The way I have handled it is by getting a reference to the children array and 
update the array with the retrieved data, somethin akin to:

private function listDirectories( event:ResultEven t):void {
var _node:Object = event.currentTarget;
_node.children = event.result as Array;
}

- Ivo









From: Dan Vega 
To: flexcoders@yahoogroups.com
Sent: Friday, December 19, 2008 10:28:29 PM
Subject: Re: [flexcoders] Tree problems


I am not sure what you mean by getChildren( ) though, when a branch is clicked 
this method is called.

private function onItemOpen(event: TreeEvent) :void {
var path:String = event.item.path;
FileManager. getDirectories( path);

}

The getDirectories( ) method of the remote object call has a result handler 
called listDirectories( ). So based on the path of the node that is clicked 
(request for drill down) we make a remote call to get a list of directories for 
that path. Im not sure between these 2 stpes how to add my new array of 
directories to the empty children array of the node that was clicked.

private function listDirectories( event:ResultEven t):void {
var dirs:Array = event.result as Array;

// if the _directories array is null this is our root request
if(_directories == null) {
_directories = dirs;
}else {
   //?
}
}


hope that makes a little more sense.



Re: [flexcoders] Re: Tree and array data

2008-12-19 Thread ivo
The Tree has styling for disclosure icons & folder icons. If you want 
additional or different visual controls you will most likely need
to extend the TreeItemRenderer class and set it in the tree's
itemrenderer property. You can override the createChildren() function
to add any visual controls that can be toggled on/off based on values
in the node data object, like if your node object has a 'loading' attribute you 
can use it to toggle a loading animation.

- Ivo





From: Cato Paus 
To: flexcoders@yahoogroups.com
Sent: Friday, December 19, 2008 6:10:56 AM
Subject: [flexcoders] Re: Tree and array data


bind the isBranch = {yourobject. haschilderen}
or create your own TreeDataDescriptor by implemnting the 
ITreeDataDescriptor interface

--- In flexcod...@yahoogro ups.com, "Dan Vega"  wrote:
>
> I don't think its just icon though is it? It needs to be a branch 
with an
> arrow next to it so that you can click on it to expand the folder.
> 
> Thank You
> Dan Vega
> danv...@...
> http://www.danvega. org
> 
> 
> On Thu, Dec 18, 2008 at 2:43 PM, Fotis Chatzinikos <
> fotis.chatzinikos@ ...> wrote:
> 
> >   use iconFunction= "yourFunction( )" where yourfunction checks 
your isLeaf
> > variable and assigns a folder or leaf icon
> >
> >
> > On Thu, Dec 18, 2008 at 9:07 PM, Dan Vega  wrote:
> >
> >>   but not every folder will be a branch, only those who have 
children. I
> >> can set the default leaf icon to a standar folder but I am stuck 
on how to
> >> treat branches using my example.
> >>
> >>
> >
> >
> > --
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > Fotis.Chatzinikos@ ...,
> > 
> >
>



Re: [flexcoders] File Explorer

2008-12-17 Thread ivo
I worked on something similar not too long ago and my approach for #1 was to 
load top-level folders only and only drill inward with a server call as the 
user clicks on the expand arrow on individual folders. It made it appear more 
responsive for huge structures.

For #2 you can have each of your nodes be an object with a 'children' member 
that is an ArrayCollection of node objects. When inserting/removing you operate 
on the children ArrayCollection directly and the Tree will reflect the change 
on the next screen update.

var _children:ArrayCollection = new ArrayCollection();//add your child nodes to 
this

var _parent:Object = {label: 'parent', children: _children} //this would be the 
parent object

var _dp:ArrayCollection = new ArrayCollection([_parent]); //data provider for 
tree

- Ivo





From: Dan Vega 
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 17, 2008 6:01:36 AM
Subject: [flexcoders] File Explorer


I am building a full featured file explorer and I am stuck on one part of the 
application. On the left hand side I will have a base root directory (root) and 
a listing of all directories that fall under it (no end). When you click on a 
folder they will show up in the datagrid to the right. My question is actually 
2 parts.

1.) What approach should I take. Do I make one call to my server and build the 
entire folder structure, then return either and arraycollection or 
xmllistcollection or should I just grab the list of directories and show an 
arrow next to directories with sub directories indicating that there are sub 
directories. When you click on that folder make another call to the server to 
grab that sub directory list and so on.

2.) The second part of the question is i heard that If I am going to be 
updating this collection (deleting / adding / renaming directories) that I 
should be using an ArrayCollection. The question is when I have data like there 
is below, how do I break it down into parent/child nodes?  Every example I have 
seen of the tree always uses xml as the data and in those examples its clear 
how to break down child / parent relationships. 

** Any help on this how to move forward with this would be great help **

  [0] (Object)#3
Attributes = ""
DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008
Directory = "H:\JRun4"
hasDirs = 0
Mode = ""
Name = "bin"
Path = "H:\JRun4\bin"
Size = 0
Type = "Dir"
  [1] (Object)#4
Attributes = ""
DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007
Directory = "H:\JRun4"
hasDirs = 1
Mode = ""
Name = "docs"
Path = "H:\JRun4\docs"
Size = 0
Type = "Dir"


Thank You
Dan Vega
danv...@gmail. com
http://www.danvega. org


Re: [flexcoders] Strange #2147 error

2008-12-17 Thread ivo
I have noticed this as well but only on IE6. My solution was to move the 
background into a stylesheet, ex:

.applicationStyle{
background-image: Embed('c:/we/assets/ skins/design- empty1.png');
}
...




- Ivo




From: tom s 
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 17, 2008 5:22:06 AM
Subject: [flexcoders] Strange #2147 error


I am using an embedded PNG as the background for my app:



I have my Flash Global Security Setting set to:
Always trust files from these locations: 'c:\'


When I run the app it tells me 'SecurityError: Error #2147: Forbidden protocol 
in URL @Embed('c:/we/assets/ skins/design- empty1.png')' - See below for full 
details.

Additionally, this error was not present yesterday, and to the best of my 
knowledge I have not made any changes to anything. 
I have other PNGs embedded for button skins, and they are now throwing errors.

How do I fix this?

thanks

tom






SecurityError: Error #2147: Forbidden protocol in URL @Embed('c:/we/assets/ 
skins/design- empty1.png').
at flash.display: :Loader/_ load()
at flash.display: :Loader/load( )
at
mx.preloaders: :DownloadProgres sBar/loadBackgro undImage( )[E:\dev\ 
3.1.0\frameworks \projects\ framework\ src\mx\preloader s\DownloadProgre 
ssBar.as: 1274]
at
mx.preloaders: :DownloadProgres sBar/createChild ren()[E:\ dev\3.1.0\ 
frameworks\ projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 
876]
at
mx.preloaders: :DownloadProgres sBar/calcScale( )[E:\dev\ 3.1.0\frameworks 
\projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 1185]
at
mx.preloaders: :DownloadProgres sBar/show( )[E:\dev\ 3.1.0\frameworks 
\projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 1134]
at
mx.preloaders: :DownloadProgres sBar/initProgres sHandler( )[E:\dev\ 
3.1.0\frameworks \projects\ framework\ src\mx\preloader s\DownloadProgre 
ssBar.as: 1470]
at flash.events: :EventDispatcher /dispatchEventFu nction()
at flash.events: :EventDispatcher /dispatchEvent( )
at mx.preloaders: :Preloader/ appProgressHandl er()[E:\dev\ 3.1.0\frameworks 
\projects\ framework\ src\mx\preloader s\Preloader. as:450]
at flash.events: :EventDispatcher /dispatchEventFu nction()
at flash.events: :EventDispatcher /dispatchEvent( )
at mx.core::UIComponen t/dispatchEvent( )[E:\dev\ 3.1.0\frameworks \projects\ 
framework\ src\mx\core\ UIComponent. as:9156]
at
mx.managers: :LayoutManager/ doPhasedInstanti ation()[E: \dev\3.1. 
0\frameworks\ projects\ framework\ src\mx\managers\ LayoutManager. as:646]
at Function/http://adobe. com/AS3/2006/ builtin:: apply()
at mx.core::UIComponen t/callLaterDispa tcher2()[ E:\dev\3. 1.0\frameworks\ 
projects\ framework\ src\mx\core\ UIComponent. as:8565]
at mx.core::UIComponen t/callLaterDispa tcher()[E: \dev\3.1. 0\frameworks\ 
projects\ framework\ src\mx\core\ UIComponent. as:8508]


Re: [flexcoders] French accents in resource bundles not showing up

2008-12-15 Thread ivo
I had a similar behavior but it cleared up after I verified that the target 
system had a font installed that could display the accented characters.

- Ivo





From: "Wildbore, Brendon" 
To: "flexcoders@yahoogroups.com" 
Sent: Monday, December 15, 2008 3:31:01 PM
Subject: [flexcoders] French accents in resource bundles not showing up


Hi all,
 
I have an application which uses resource bundles to change
the languages dynamically.
 
I’m having issues with special characters in the
French language like ê ç etc showing up
as empty little square boxes.
 
I have seen an example where the characters “ç” are entered in a resource 
bundle to produce the ç character in a flex label.
  
Question is, where do I find out the rest of these funky codes to produce the 
same result for the other characters?
 
 
Regards,
 
 
Brendon
 
 
 

[flexcoders] Re: Maintaining scale when resizing tag

2008-12-12 Thread Ivo
So the solution was to set the scaleX & scaleY after I know the
dimensions of the stage. Add an event listener for added to stage and
resize, then calculate the scaling factor that will make the longest
side of the app fit into the longest side of the stage then apply the
scaling to both scaleX and scaleY .

Thanks,

- Ivo

--- In flexcoders@yahoogroups.com, ivo  wrote:
>
> Hello listers,
> 
> I have a Flex App with scaleMode set to StageScaleMode.SHOW_ALL, the
Application tag dimension set to 300x500 and it scaled perfectly when
modifying the dimensions of the  tag.
> 
> To make things cleaner I removed all the AS3 code from the
Application MXML file and placed it in an AS3 class that extends
Application (BaseApp.as). I then updated the MXML file to have
 as the root tag with dimension still at
300x500. Now I find that the scale mode is not preserved correctly
when modifying the dimensions of the  tag. The UI content in
the MXML scales down way farther that the embed dimensions.
> 
> If I sized the embed tag at 150x250 I see the flash content takes up
those dimensions but the visual content provided by the MXML subclass
is scaled down to 90x120 .
> 
> If I move the dimensions from the MXML subclass to the base class
then the content is scaled even further to like 45x75
> 
> Can anyone help me understand what is going on and how I can make
the content scale correctly?
> 
> Thanks,
> 
> - Ivo
>




[flexcoders] Maintaining scale when resizing tag

2008-12-11 Thread ivo
Hello listers,

I have a Flex App with scaleMode set to StageScaleMode.SHOW_ALL, the 
Application tag dimension set to 300x500 and it scaled perfectly when modifying 
the dimensions of the  tag.

To make things cleaner I removed all the AS3 code from the Application MXML 
file and placed it in an AS3 class that extends Application (BaseApp.as). I 
then updated the MXML file to have  as the root 
tag with dimension still at 300x500. Now I find that the scale mode is not 
preserved correctly when modifying the dimensions of the  tag. The UI 
content in the MXML scales down way farther that the embed dimensions.

If I sized the embed tag at 150x250 I see the flash content takes up those 
dimensions but the visual content provided by the MXML subclass is scaled down 
to 90x120 .

If I move the dimensions from the MXML subclass to the base class then the 
content is scaled even further to like 45x75

Can anyone help me understand what is going on and how I can make the content 
scale correctly?

Thanks,

- Ivo



Re: [flexcoders] Re: Flex training

2008-12-10 Thread ivo
Would people recommend taking the Certification Exam from Adobe?

>From what I hear and looking at the sample questions an experienced dev should 
>ace it without much trouble. I wonder if it is worth the expense and whether 
>its known enough that noting it on a resume carries weight.

Thanks,

- Ivo





From: Anthony DeBonis <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 10, 2008 2:04:16 PM
Subject: [flexcoders] Re: Flex training


If you have a group I would recommend an Adobe Training Class
If 1-2 people a custom class/mentoring works great.

Farata Systems is a good call in NYC
Troy Web Consulting - Albany NY Certified Adobe Instructors + Mentoring

This link can help you find a training partner
http://partners. adobe.com/ public/partnerfi nder/tp/show_ find.do 



[flexcoders] changelog between Flex Builder versions?

2008-12-05 Thread ivo
Hello all,

I have flex builder on a Windows Vista and Windows XP machine both seem to be 
upto date. At least the update manager and upgrade mechanism report it to be 
the case on both machines.

Still when looking at the version info in the Help -> About the XP machine says 
3.0.2.214193 and the Vista machine says 3.0.205647 .

If I compile the exact same code on each on the XP machine I get a SWF that is 
20k smaller. Any ideas what might account for the difference? Both are 
relatively new installations, less than a month old.


Thanks,

- Ivo



Re: [flexcoders] ApplicationDomain, what is the difference between child and current?

2008-12-03 Thread ivo
I was getting the terms from the draft documentation of the Marshall Plan 
(http://blogs.adobe.com/flexdoc/loadingSubApps.pdf)





From: Alex Harui <[EMAIL PROTECTED]>
To: "flexcoders@yahoogroups.com" 
Sent: Wednesday, December 3, 2008 12:33:16 PM
Subject: RE: [flexcoders] ApplicationDomain, what is the difference between 
child and current?


I’m not sure where you see child and current, but yes, a parent
application domain does not have direct access to a child applicationdomain’s
classes
 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of ivo
Sent: Wednesday, December 03, 2008 8:22 AM
To: FlexCoders
Subject: [flexcoders] ApplicationDomain, what is the difference between
child and current?
 
Seems that they are the same, in either case
the loaded module class definitions are ignored in favor of those already
defined by the loader.

Is it that with current the loader can make use of the loaded's class
definition using strong types and with child it can only treat them as a
generic object?

Thanks,

- Ivo 

[flexcoders] ApplicationDomain, what is the difference between child and current?

2008-12-03 Thread ivo
Seems that they are the same, in either case the loaded module class 
definitions are ignored in favor of those already defined by the loader.

Is it that with current the loader can make use of the loaded's class 
definition using strong types and with child it can only treat them as a 
generic object?

Thanks,

- Ivo



[flexcoders] Flash Modules?

2008-11-28 Thread ivo
Is it possible to create Flash Modules that implement an interface? Meaning 
that they extend ModuleBase, can be loaded/unloaded at runtime and expose a 
predefined interface? All my development experience is with Flex & AS3 using 
mxmlc so I have zero Flash experience.

My current project is a modular architecture Flex & AS3 but there are specific 
interactive behaviors that are best written in Flash. I would like to be able 
to incorporate them as I would with AS3 modules.

Thanks,

- Ivo



Re: [flexcoders] The Online Flex Builder!

2008-11-25 Thread ivo
This is probably what you are looking for http://flexible.riaforge.org/ but I 
have not been able to get it to work properly with Flex 3.





From: Johannes Nel <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 25, 2008 2:23:16 AM
Subject: Re: [flexcoders] The Online Flex Builder!


this mailing list has been running for years, no where near the beginning of 
the archives :)


On Mon, Nov 24, 2008 at 10:45 PM, Jim Hayes <[EMAIL PROTECTED] com> wrote:

John Grden had one quite a while back, not seen any news on it for a while 
though. The name of it escapes me for now I'm afraid.
try http://www.rockonfl ash.com, somewhere near the beginning of the archives I 
would think.


-Original Message-
From: [EMAIL PROTECTED] ups.com on behalf of Cato Paus
Sent: Mon 24/11/2008 19:20
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] The Online Flex Builder!

Hi all, I remeber taht someone did create a FlexBuilder in a
flash-application, but I'cant remeber where, someone have the url ?


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

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


-- 
j:pn 
\\no comment


[flexcoders] How do I rotate a transparent png & maintain transparency?

2008-11-21 Thread ivo
Hello all,

I have an image and I want to flip it horizontally. The source image is a png 
with a transparent background and I find that the flipped image losses the 
transparency. How do I preserve it?

I am using the code below:

//flip horizontally
var transform:Matrix = new Matrix();
transform.scale(-1, 1);
transform.translate(sourceImage.width, 0);

//create a new bitmap based on source with transformation
var _newBitmap:BitmapData = new BitmapData(sourceImage.width, 
sourceImage.height, true);
_newBitmap.draw(sourceImage, transform);

var displaySprite:Sprite = new Sprite();
displaySprite.graphics.beginBitmapFill(_newBitmap, null, false);
displaySprite.graphics.drawRect(0, 0, sourceImage.width, sourceImage.height);

Thanks,

- Ivo



Re: [flexcoders] Using NetStream for flv playback, getting sound but no video on Firefox

2008-11-17 Thread ivo
Hello all,

I have a workaround for the issue I described below but I have not found an 
actual solution. If the additional details rings a bell please let me know 
since I still dont undestand why I need a workaround.

Since the video never plays on first view (but always does when cached) I wait 
until the NetStream class dispatches the first 'NetsStream.Buffer.Full' 
NetEvent and I immediately restart playback from the beggining 
'm_netstream.play(url)' . The second play attempt then proceeds normally with 
both video and audio.

Thanks,

- Ivo




________
From: ivo <[EMAIL PROTECTED]>
To: FlexCoders 
Sent: Monday, November 17, 2008 10:48:57 AM
Subject: [flexcoders] Using NetStream for flv playback, getting sound but no 
video on Firefox


Hello all,

This issue is driving me crazy. I have implemented the example for flv playback 
in the docs at

http://livedocs. adobe.com/ flex/3/langref/ flash/net/ NetStream. 
html#includeExam plesSummary

The
example works well under IE but on Firefox I get sound with no video.
If I refresh the page then Firefox will play video and sound but seems
in this case that it is using the cached flv. If I disable caching then
the behavior is identical as on the first view, the sounds is heard but
no video.

Setting the buffer length does not seem to have any
effect other than delay the playback of the sound track (with no video
still)

Has anyone experienced this before? Pointers and solutions are greatly 
appreciated.

Thanks,

- Ivo
 

[flexcoders] Using NetStream for flv playback, getting sound but no video on Firefox

2008-11-17 Thread ivo
Hello all,

This issue is driving me crazy. I have implemented the example for flv playback 
in the docs at

http://livedocs.adobe.com/flex/3/langref/flash/net/NetStream.html#includeExamplesSummary

The
example works well under IE but on Firefox I get sound with no video.
If I refresh the page then Firefox will play video and sound but seems
in this case that it is using the cached flv. If I disable caching then
the behavior is identical as on the first view, the sounds is heard but
no video.

Setting the buffer length does not seem to have any
effect other than delay the playback of the sound track (with no video
still)

Has anyone experienced this before? Pointers and solutions are greatly 
appreciated.

Thanks,

- Ivo


Re: [flexcoders] Flash player 10 required for my swf?

2008-10-31 Thread ivo
Thanks for your reply. 

My point is that I am not using any Flash Player 10 features, my dev & build 
environment dont have Flash player 10 installed, I am building using the 3.1 
SDK and the project is configured to target 9.0.124. The output swf passes QA 
for Flash Player 9. The 'Flash Detection Wrapper' is given the vars that the 
required version is 9.0.124. Only some users see the Flash Player 10 required 
dialog. Until today I had not seen this dialog (I have 9.0.124 installed) and 
it was based on a trivial change.

To test again I reverted back to the index.template.html to the one supplied in 
Flex Builder and no Flash Player 10 required dialog appears anymore so I am not 
sure what is going on.

I think I will look into using swfobject instead.

Thanks,

- Ivo







From: Daniel Freiman <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, October 31, 2008 12:12:21 PM
Subject: Re: [flexcoders] Flash player 10 required for my swf?


I think the detection script checks to see if you have the required version.  
If you don't, then it will tell you that you need the most recently released 
version of Flash regardless of what version the wrapper actually requires.  
This does cause confusion form a troubleshooting standpoint, but I'm guessing 
the reason is that adobe did this is that users would be more confused if it 
told them they needed flash 9 and gave them flash 10.  Better to confuse the 
developers than the end user?

- Daniel


On Fri, Oct 31, 2008 at 2:41 PM, ivo  wrote:

Hello all,

I had been getting reports from users that my widget swf was displaying the 
dialog "This content requires Adobe Flash Player 10" but I could not reproduce 
it. I run and develop with Flash Player 9 installed. Other users that only had 
Flash player 9 installed also could run it without any problems.

This morning I did a few changes to the widget, basically I embedded image 
resources at compile time rather than load them over the web at runtime. On the 
next debug run after the changes I started seeing the same dialog. I rolled 
back the changes but the dialog stays. The only way I was able to get the 
dialog to dissapear was to modify the html-template/ index.template. html, 
remove the 'Flash Player Version Detection' Javascript and have just the embed 
code with the proper template tokens.  The index.template. html tokens for 
${version_major} ${version_minor} ${version_revision} always output 9 0 124 as 
expected. Not sure what criteria the 'Flash Player Version Detection' 
javascript is following.

I am building my app using Flex Builder but its a Pure AS3 project, only 
Sprites and the Graphic object are used and the SDK is 3.1.

I have distributed the html with the ''Flash Player Version Detection' along 
with my widget and I am now wondering how many users are seeing the dialog and 
not bothering to run the update.

Is the lesson here not to use the 'Flash Player Version Detection' that ships 
with Flex Builder ? or am I running into a bug?

Thanks,

- Ivo

 


[flexcoders] Flash player 10 required for my swf?

2008-10-31 Thread ivo
Hello all,

I had been getting reports from users that my widget swf was displaying the 
dialog "This content requires Adobe Flash Player 10" but I could not reproduce 
it. I run and develop with Flash Player 9 installed. Other users that only had 
Flash player 9 installed also could run it without any problems.

This morning I did a few changes to the widget, basically I embedded image 
resources at compile time rather than load them over the web at runtime. On the 
next debug run after the changes I started seeing the same dialog. I rolled 
back the changes but the dialog stays. The only way I was able to get the 
dialog to dissapear was to modify the html-template/index.template.html, remove 
the 'Flash Player Version Detection' Javascript and have just the embed code 
with the proper template tokens.  The index.template.html tokens for 
${version_major} ${version_minor} ${version_revision} always output 9 0 124 as 
expected. Not sure what criteria the 'Flash Player Version Detection' 
javascript is following.

I am building my app using Flex Builder but its a Pure AS3 project, only 
Sprites and the Graphic object are used and the SDK is 3.1.

I have distributed the html with the ''Flash Player Version Detection' along 
with my widget and I am now wondering how many users are seeing the dialog and 
not bothering to run the update.

Is the lesson here not to use the 'Flash Player Version Detection' that ships 
with Flex Builder ? or am I running into a bug?

Thanks,

- Ivo



Re: [flexcoders] What classes are available to Flex applications vs AS3 applications?

2008-10-28 Thread ivo
Ive found that I can import many classes under the packages below, but not all. 
The whole trial and error method of finding which classes are available got old 
rather quick.

mx.core.
mx.events.
mx.managers.
mx.modules.
mx.resources.
mx.utils.

Thanks,

- Ivo






From: Josh McDonald <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 28, 2008 4:30:28 PM
Subject: Re: [flexcoders] What classes are available to Flex applications vs 
AS3 applications?


AFAIK mx.* is only available to Flex applications, unless you jump some serious 
hoops.

-Josh


On Wed, Oct 29, 2008 at 8:21 AM, ivo  wrote:

Hello all,

Is it documented some place what packages/classes are available for Flex 
applications vs pure AS3 applications? I am currently finding out via trial and 
error. The package mx.controls is understandably not available but I also see 
that some classes under mx.utils.* and mx.core.* are also not available.

Thanks,

- Ivo


 - - --

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






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

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

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


[flexcoders] What classes are available to Flex applications vs AS3 applications?

2008-10-28 Thread ivo
Hello all,

Is it documented some place what packages/classes are available for Flex 
applications vs pure AS3 applications? I am currently finding out via trial and 
error. The package mx.controls is understandably not available but I also see 
that some classes under mx.utils.* and mx.core.* are also not available.

Thanks,

- Ivo



Re: [flexcoders] Re: AIR App disappears when resized too large

2008-10-05 Thread ivo
I have not run into this specific problem but I do have found the need to turn 
transparency off in a pretty complex app due to performance issues.



- Original Message 
From: andrewwestberg <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, October 5, 2008 5:00:48 AM
Subject: [flexcoders] Re: AIR App disappears when resized too large


This is using Flex 3.1 on Windows XP. If I set
 false the issue goes away. Has no one else
really never run into this?

Thanks,
Andrew Westberg

 

[flexcoders] Re: Tree Component openItems and refresh dataProvider issue

2008-09-25 Thread Ivo
Are you resetting the data provider or just updating it? I find that
if I just update the data provider by inserting/removing elements the
Tree reflects the change appropriately.

One bug I've hit, which might be what you are experiencing, is that if
I remove the Tree from the stage and add it later then all branches
will appear collapsed even tho the property openItems correctly lists
the open nodes. The workaround is similar to what you describe:

https://bugs.adobe.com/jira/browse/SDK-14892



Re: [flexcoders] unable to use debug mode

2008-09-19 Thread ivo
Is this a new workspace? I've found that on my Mac debugging only works from 
projects I create in the original workspace. Those I create in a new workspace 
can only be compiled/debugged once and further updates & trace statements to 
the code are ignored.



- Original Message 
From: yigit <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, September 19, 2008 4:27:51 PM
Subject: Re: [flexcoders] unable to use debug mode


did you try changing your debugger? e.g. ie to ffox or vice versa

windsail05 wrote:
>
> For the past couple of months I have not been able to use debug mode
> for one of my workspaces. I am able to be in debug mode and run
> things from debug mode, but none of my breakpoints get triggered and
> none of my traces show up. I am not sure why this is happening. This
> workspace use to work in debug mode.
>
> Does anyone know of any settings that could have been changed or
> reasons for this happening?
>
> 



Re: [flexcoders] OutOfMemoryError when compiling my app with Ant

2008-09-01 Thread ivo
You might also need to set the Ant memory options

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg83489.html

- Ivo



- Original Message 
From: Mondain <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, September 1, 2008 11:11:29 AM
Subject: Re: [flexcoders] OutOfMemoryError when compiling my app with Ant


If this was a java project build you would simply increase the 
"memoryMaximumSize" option for the javac task, but in your case I see that you 
have allocated a maximum memory amount via a jvmarg to the mxmlc task. I'm not 
sure if this works the same way but I can see any application needing 2mb to 
build. I noticed some people saying to use fork="true" but then I saw this 
adobe bug report: http://bugs. adobe.com/ jira/browse/ SDK-15765
This may be semi-helpful to you also: http://soenkerohde. com/2008/ 06/change- 
eclipse-ant- settings- when-you- run-out-of- memory/

Good luck.
Paul


2008/9/1 Sebastien ARBOGAST 

I'm having a hard time compiling my application using Flex 3 Ant tasks. When I 
compile it in Flex Builder, using the default compiler, everything works fine. 
But when I try to build it from the command line (which I need to do on my 
continuous integration server) using the attached ant build file, I always get 
the following error:

main:
[mxmlc] Loading configuration file /Applications/ Adobe Flex Builder 3 
Plug-in/sdks/ 3.1.0/frameworks /flex-config. xml
[mxmlc] /Users/sarbogast/ dev/myapp/ flex/src/ index_384727. cache (No such 
file or directory)
[mxmlc] Error: Java heap space
[mxmlc] 
[mxmlc] java.lang.OutOfMemo ryError: Java heap space
[mxmlc] at macromedia.asc. parser.NodeFacto ry.qualifiedIden 
tifier(NodeFacto ry.java:1779)
[mxmlc] at macromedia.asc. parser.NodeFacto ry.qualifiedIden 
tifier(NodeFacto ry.java:1773)
[mxmlc] at macromedia.asc. parser.NodeFacto ry.binaryFunctio nDefinition( 
NodeFactory. java:719)
[mxmlc] at macromedia.abc. AbcParser. methodTrait( AbcParser. java:698)
[mxmlc] at macromedia.abc. AbcParser. methodTrait( AbcParser. java:516)
[mxmlc] at macromedia.abc. AbcParser. parseTraits( AbcParser. java:1130)
[mxmlc] at macromedia.abc. AbcParser. classTrait( AbcParser. java:1064)
[mxmlc] at macromedia.abc. AbcParser. parseTraits( AbcParser. java:1144)
[mxmlc] at macromedia.abc. AbcParser. parseScript( AbcParser. java:1197)
[mxmlc] at macromedia.abc. AbcParser. parseAbc( AbcParser. java:108)
[mxmlc] at flex2.compiler. abc.Compiler. parse1(Compiler. java:179)
[mxmlc] at flex2.compiler. API.parse1( API.java: 2315)
[mxmlc] at flex2.compiler. API.parse1( API.java: 2268)
[mxmlc] at flex2.compiler. API.batch2( API.java: 369)
[mxmlc] at flex2.compiler. API.batch( API.java: 1117)
[mxmlc] at flex2.compiler. API.compile( API.java: 1311)
[mxmlc] at flex2.compiler. API.compile( API.java: 1210)
[mxmlc] at flex2.tools. Compiler. mxmlc(Compiler. java:240)
[mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke0(Native Method)
[mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke(NativeMet 
hodAccessorImpl. java:39)
[mxmlc] at sun.reflect. DelegatingMethod AccessorImpl. invoke(Delegatin 
gMethodAccessorI mpl.java: 25)
[mxmlc] at java.lang.reflect. Method.invoke( Method.java: 597)
[mxmlc] at flex.ant.FlexTask. executeInProcess (FlexTask. java:310)
[mxmlc] at flex.ant.FlexTask. execute(FlexTask .java:243)
[mxmlc] at org.apache.tools. ant.UnknownEleme nt.execute( UnknownElement. 
java:288)
[mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke0(Native Method)
[mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke(NativeMet 
hodAccessorImpl. java:39)
[mxmlc] at sun.reflect. DelegatingMethod AccessorImpl. invoke(Delegatin 
gMethodAccessorI mpl.java: 25)
[mxmlc] at java.lang.reflect. Method.invoke( Method.java: 597)
[mxmlc] at org.apache.tools. ant.dispatch. DispatchUtils. execute(Dispatch 
Utils.java: 105)
[mxmlc] at org.apache.tools. ant.Task. perform(Task. java:348)
[mxmlc] at org.apache.tools. ant.Target. execute(Target. java:357)

BUILD FAILED
/Users/sarbogast/ dev/myapp/ flex/build. xml:12: mxmlc task failed

Yet, I've already set the memory limit to the maximu on my machine. Any idea?

-- 
Sébastien Arbogast

http://sebastien- arbogast. com
 


-- 
http://gregoire. org/
http://osflash. org/red5


Re: [flexcoders] How to get selectedIndex from itemRenderer

2008-08-29 Thread ivo
You probably want to get the selectedItem and then look for it in your data 
provider using indexOf, getItemIndex,..

- Ivo



- Original Message 
From: Howard Fore <[EMAIL PROTECTED]>
To: Flexcoders 
Sent: Friday, August 29, 2008 7:24:29 AM
Subject: [flexcoders] How to get selectedIndex from itemRenderer


Hey,

I've got a DataGrid that's using an inline itemRenderer of a ComboBox for one 
of the DataGridColumns. How can I get the selectedIndex of that ComboBox? 
There's a default sort on the DataGrid and the DataGrid is user-sortable as 
well, so the selectedIndex isn't going to mirror the index of the selected row 
in the DataGrid. I need it to pass to a ComboBox in a popup that will appear 
when the user double clicks it.

-- 
Howard Fore, howard.fore@ hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Drawing shapes with "holes" and applyng them as mask in AS3

2008-08-29 Thread ivo
I found this post very useful, perhaps you will as well

http://www.insideria.com/2008/01/flex-graphics-tricks-part-1-ma.html

- Ivo



- Original Message 
From: gabriela.perry <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, August 29, 2008 7:45:13 AM
Subject: [flexcoders] Drawing shapes with "holes" and applyng them as mask in 
AS3


Hi there.
Im trying to make something that will sound very familiar to
"flashers" around here (sure youre here!)
I need to draw a shape with a hole, and need to apply it as a mask to
an image. Im doing this with Flex. The "hole" in the mask is
dynamically created, thats why Im not using flash to draw a movieclip
as my mask.
Any ideas? Thanx in advance :0)
Gabi



Re: [flexcoders] How do I remove the arrow for a node in the Tree

2008-08-27 Thread ivo
You might also need to set  

disclosureClosedIcon
disclosureOpenIcon

-Ivo



- Original Message 
From: randalma2120 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, August 27, 2008 12:16:45 PM
Subject: [flexcoders] How do I remove the arrow for a node in the Tree


I created a Tree with new icons for folderOpen and folderClosed but I
still have the arrow. Can someone show or point me to how to remove this.

Used this is the CSS

Tree {
defaultLeafIcon: Embed("icons/ application. png");
folderOpenIcon: Embed("icons/ minus.png" );
folderClosedIcon: Embed("icons/ plus.png" );
}

Data is simple:












 




Re: [flexcoders] playerProductInstall doesn't show up in tiny window. Can I change that?

2008-08-27 Thread ivo
You might need to use SWFObject 
(http://code.google.com/p/swfobject/wiki/documentation) or create your own.


- Ivo

- Original Message 
From: whatabrain <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, August 27, 2008 11:49:54 AM
Subject: [flexcoders] playerProductInstall doesn't show up in tiny window. Can 
I change that?


I've created a flex app that's 154x150. If the user doesn't have the 
right version of Flash, playerProductInstal l.swf gets loaded. The 
problem is, if the "Adobe Flash Player Update" popup doesn't fit in the 
client area, it isn't drawn at all. You just get a blank area. I've 
determined that the app must be at least 214x137 to load the installer.

Is there any way I can fix this? Is the installer code available 
somewhere, so I can edit the width requirement? Or will I have to 
mangle the UI, to make it fit?

Thanks



Re: [flexcoders] How do I enter 2 arrays into one arraycollection

2008-08-27 Thread ivo
I think the arrays will need to be converted to some sort of simple objects, 
the parent will need a children field that consists of myChildrenArray:

var _kid:Object = {type: myChildrenArray[0], name: myChildrenArray[1]};
var __mom:Object = {type: myParentArray[0], name: myParentArray[1], children: 
new ArrayCollection([_kid])}

var companyData:ArrayCollection = new ArrayCollection([__mom]);

If you keep references to the ArrayCollection that makes up the children you 
can insert/remove other children

- Ivo



- Original Message 
From: Terry Allen <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, August 27, 2008 10:08:37 AM
Subject: Re: [flexcoders] How do I enter 2 arrays into one arraycollection


Thank you both for your replies.
 
Tracy,  if I were to concat() the two arrays, how would I be able to slip in 
the children field in the first array that represents the data from the second 
array.
 
 
 
Basically, I am attempting to populate a advancedDatagrid using the combination 
of two amfphp arrays. The data needs to be in Hierarchial format such as this :
combinedArrayCollec tion(parentDataA rray, childrenDataArray)
 
This would allow me to populate the datagrid with a groupable title and do a 
inlinerender of another adg with the children data from combinedArrayCollec 
tion.  
 
Maybe I am looking at this problem wrong since really all I need is to append 
children:[arrayData ] to the first array to get it to work. 
 
Do you have any advice on how I can accomplish this?
 
Thanks again for all of the help!
 
Terry


On Wed, Aug 27, 2008 at 1:10 PM, Tracy Spratt <[EMAIL PROTECTED] com> wrote:

Also, you could splice() or concat() the source arrays, then wrap the result in 
ArrayCollection.
Tracy
 


 
From:[EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
Scott Melby
Sent: Wednesday, August 27, 2008 12:08 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] How do I enter 2 arrays into one arraycollection
 
Brute force approach (not sure if it'll compile, but it'll get you close):

var combinedArray: Array = new Array();

for each(var obj:Object in array1)
{
combinedArray. push(obj) ;
}

for each(obj in array2)
{
combinedArray. push(obj) ;
}

myArrayCollection. source = combinedArray;

hth
Scott

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

tallen_eit wrote:
> Hello,
>
> I am trying to use 2 arrays I generate from a mySql database to 
> populate an AdvancedDataGrid. I need to be able to use the following 
> format but replace the static data with the two arrays I receive from 
> AMFPHP.
>
> (I pulled the following snippet from Peter Ent's blog (thank you Peter!)
>
>
> [Bindable]
> private var companyData: ArrayCollection = new ArrayCollection(
> [ 
> {type:"department", title:"Engineering", children: new 
> ArrayCollection(
> [ 
> {type:"employee", name:"Erin M"},
> 
> {type:"employee", name:"Ann B"} ] ) },
> 
> ] );
>
>
> How could I place the following arrays in the statement above?
> Parent = myParentArray
> children = myChildrenArray
>
> Thank you,
>
> Terry Allen
>
>
>
>
>  


[flexcoders] Location of FlightReservation samples?

2008-08-26 Thread ivo
Hey all,

Where can I find the Flex samples FlightReservation and FlightReservation2 
mentioned here 
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization
 ?

Thanks,

- Ivo



Re: [flexcoders] Sqlite retrive to object

2008-08-25 Thread ivo
You probably need to use registerClassAlias()

http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#registerClassAlias()

and for complex objects perhaps also implement IExternalizable

http://livedocs.adobe.com/flex/3/langref/flash/utils/IExternalizable.html



- Original Message 
From: markflex2007 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, August 25, 2008 11:14:14 AM
Subject: [flexcoders] Sqlite retrive to object


Hi,

I have saved a object to sqlite.

but I can not retrieve it back to same type of object.

I use the following code,but obj1 is null and obj2 have data.
but I need the data also save in obj1.

var obj1:userVO = new userVO();
var obj2:Object = new Object();

obj1 = result.data[ 0]["USER" ] as userVO;
obj2 = result.data[ 0]["USER" ]; 

Please help me and give me a idea how to fix it.

Thanks

Mark



[flexcoders] Cairngorm article sources on Adobe.com corrupt?

2008-08-22 Thread ivo
Hello,

I am trying to download the sources to the article at 
http://www.adobe.com/devnet/flex/articles/introducing_cairngorm.html 
(f3ic_studentFiles_16Jun08.zip) but I keep getting a corrupted download. I 
tried last nite at home and today at work with the same results. Can someone at 
Adobe docs verify the download?

Thanks,

- Ivo



[flexcoders] How/What adds an entry for my app to the Mac KeyChain?

2008-08-15 Thread ivo
One of the testing Macs threw up an interesting message after updating my AIR 
app:

'ServXYZ.app wants permission to use the "Adobe.APS" item from your keychain. 
Do you want to allow this?'

The app does use the EncryptedLocalStore which uses the KeyChain but I have 
never seen this message before in hundreds of installations/upgrades. It only 
happened on a test machine this once after an upgrade. Of all the machines this 
one is the only one that has an Adobe.APS entry for my app, none of the other 
installations do. How is an entry to my app added to the keychain and what 
triggers the message? I'd like to understand how often and under what 
circumstances our users might see that message.

Also, I'll file a bug that all keychain entries for all AIR apps are named 
Adobe.APS instead of using the application name/id making the message rather 
obscure.

Thanks,

- Ivo



Re: [flexcoders] Proxy server for testing?

2008-08-07 Thread ivo
Shortly after sending this message I fired up Fiddler2 
(http://www.fiddlertool.com/Fiddler) and noticed that all the traffic from my 
AIR app goes thru it. By updating a simple js script file the behavior of the 
Fiddler proxy is modified at runtime. Very slick.

- Ivo



- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: FlexCoders 
Sent: Thursday, August 7, 2008 3:51:38 PM
Subject: [flexcoders] Proxy server for testing?


Hello all,

I am testing an AIR app that works over a network and consumes REST services 
from various internal servers. The app always points to the same URL and I want 
to be able to redirect the IP it resolves to without having to edit by hand the 
hosts file and restarting the app.

Seems a proxy would do the job, where I point the app to the proxy and just 
configure the proxy at runtime to redirect the requests to different servers. 
Does anyone know of a good tool to achieve this?

Thanks,

- Ivo



[flexcoders] Proxy server for testing?

2008-08-07 Thread ivo
Hello all,

I am testing an AIR app that works over a network and consumes REST services 
from various internal servers. The app always points to the same URL and I want 
to be able to redirect the IP it resolves to without having to edit by hand the 
hosts file and restarting the app.

Seems a proxy would do the job, where I point the app to the proxy and just 
configure the proxy at runtime to redirect the requests to different servers. 
Does anyone know of a good tool to achieve this?

Thanks,

- Ivo



[flexcoders] how do I read a hexadecimal number value correctly?

2008-07-17 Thread ivo
Hello all,

I am using the Google APIs and am finding the IDs of the objects in Google are 
not getting translated correctly. When I request for a list of GData objects
I get back objects that in the debugger look like this:

id = mx.collections.ArrayCollection (@10781ec1)   
[0] = 5189229149115242496 [0x4803d86adb1dd800]
dispatchResetEvent = true
filterFunction = null
length = 1 
list = mx.collections.ArrayList (@1048bb51)
sort = null
source = Array (@106e75b9)

When I read the value of id[0] I get "5189229149115242000"   .

What would be the correct way of handling this value? I am attempting to covert 
it into a string so I can build a different URL.

Thanks,

- Ivo


[flexcoders] Debugging off when having multiple FB3 workspaces?

2008-07-14 Thread ivo
Hello all,

I ran across a problem I periodically have in Flex Builder where break points 
are off. This is an AIR project so there shouldnt be any browser caching 
issues. In the past this has not affected me terribly since I only experienced 
it on temporary machines, my main dev workstation never had this 
problem...until today.

All I did was switch workspaces to a brand new one and checked out from svn an 
earlier revision of the same project I was already working on. I then added a 
trace statement & put a break point on the new line but as I step thru the code 
it is off by one line. I deleted the contents of the bin folders & rebuilt but 
the problem persists. The only way I can make changes stick is to check into 
svn, blow away the workspace and redownload everything.

The original Flex Builder 3 workspace does not seem to have this problem but 
all new workspaces do.

In the past I have never had to work on two workspaces simultaneously so this 
wasnt a problem but now I need to be able to switch back and forth rapidly  
(using svn switch takes too long).

Does anyone know how to solve this issue?

Thanks,

- Ivo



Re: [flexcoders] Re: crossdomain with picasa

2008-06-30 Thread ivo
You can access their picasa data services thru 
http://photos.googleapis.com/data/ and load the crossdomain.xml at 
http://photos.googleapis.com/data/crossdomain.xml.


- Original Message 
From: kenny14390 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, June 30, 2008 9:11:03 AM
Subject: [flexcoders] Re: crossdomain with picasa


I don't know how to fix this problem, but I do know of the way to work
around it. Simply use HTTPService to call a file on your server (still
in your sandbox), which then calls Picasa and does whatever magic it
needs to get your data. Even though this is outside of your sandbox,
Flex has no idea where your file gets its data from and so it doesn't
care about the sandbox violation. For example, you can use a PHP file
to connect with Picasa then get whatever data it needs. Then
print/echo that data to the PHP page as XML and set the resultFormat
parameter of HTTPService to "e4x".

--- In [EMAIL PROTECTED] ups.com, David Pariente  wrote:
>
> Hello,
> 
> I did a website that gets xml data from picasa website.
> Locally worked perfect, but it complains about security when i
upload the site to my server.
> 
> I heard something about the crossdomain. xml file...but.. .i just read
that the file should be in the destiny server, not mine, so does that
meant that i will never be able to access picasa??
> 
> Please, hope i dont have to just throw all my work cause a reason
like this (T__T)
> 
> thnx a lot to everyone!
> 
> 
> 
>    _ _ _ ___ 
> Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
>



[flexcoders] AIR app shows duplicate status, bar, title bar when left idle

2008-06-22 Thread ivo
Hey everyone,

I am seeing an usual behavior in an AIR app I am working on. This app does not 
use systemChrome instead it is a Canvas with a custom title bar at top, then 
the app contents and status bar at the bottom. Under Windows if I let the app 
idle in the background for about a minute and then alt+tab it to the front then 
app will display twice within its boundaries. So the app will now consist of 
the title bar, the app content area (the actual contents not drawn), the status 
bar, then the title bar again, the app content area (with the contents not 
drawn) and the status bar. Has anyone seen this situation before?

Thanks,

- Ivo



[flexcoders] Air 1.1 SDK Flex Builder update?

2008-06-18 Thread ivo
Hello all,

Is the Air 1.1 sdk update to be done manually or will it be available thru the 
Flex Builder/eclipse update mechanism at some point? Dont want to mess up my FB 
installation by doing it manually if it will get picked up by a software update.

Thanks,

- Ivo



Re: [flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?

2008-06-03 Thread ivo
Thanks for the help Alex, I was unable to figure out why this subcomponent 
draws correctly in one instance and not on the other. The properties of the 
drawn instance (except for the initialized/invalidate) look comparable to the 
drawn one, both have a nestLevel of 5.

I have tentatively gotten around this issue by removing the undrawn 
subcomponent and re-adding it on the CREATION_COMPLETE handler for the parent 
component.

Thanks,

- Ivo


- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, May 30, 2008 9:20:57 PM
Subject: RE: [flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?


Nothing really.  All components are
created with $visible=false until creationComplete.  This actually implies that
the components haven’t been addChild’d to the parent or some parent
higher up the tree is not on the display list.  If nestLevel isn’t
greater than 2 or so, then that tree of objects hasn’t been properly
parented.
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of ivo
Sent: Friday, May 30, 2008 3:56 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what
prevents a FlexEvent.CREATION_ COMPLETE?
 
Thanks again for your reply Alex.
Seems that in the instances that are not drawn neither the commitProperties( )
nor measure() functions are called.

Reviewing the properties of the drawn and not-drawn instances on the
creationComplete event of the parent shows them to be basically equivalent, but
for a few. The not-drawn instance has the following properties:

$visiblefalse
initializedfalse
invalidateDisplayLi stFlagtrue
invalidatePropertie sFlagtrue
invalidateSizeFlagtrue

The drawn instances has those same properties showing the opposite value.

What does the $visible property indicate?

Thanks,

- Ivo
- Original Message

From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Friday, May 30, 2008 10:17:49 AM
Subject: RE: [flexcoders] what prevents a FlexEvent.CREATION_ COMPLETE?
The order is commitProperties, measure, then updateDisplayList.
 If code in measure() ends up calling invalidatePropertie s, you go back
to commitProperties and might never get over to updatedisplayList
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED]
ups.com ] On Behalf Of ivo
Sent: Friday, May 30, 2008 9:34 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what
prevents a FlexEvent.CREATION_ COMPLETE?
 
Thanks for
the reply Alex. One additional question, what would prevent updateDisplayList
from being called after a component is added to the display list?

Further tracing shows that in the correctly drawn instance the
updateDisplayList of the child components is called. In the one where the child
subcomponents are not drawn it is not called. If I iterate over the children of
the parent component it does list the subcomponents are being present.

Thanks,

- Ivo
- Original
Message 
From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, May 29, 2008 2:56:00 PM
Subject: RE: [flexcoders] what prevents a FlexEvent.CREATION_ COMPLETE?
If the child never finished validation because a call to updateDisplayList
invalidates size or properties, you won’t get creation_complete
 


 
From:[EMAIL PROTECTED] ups.com [mailto:
[EMAIL PROTECTED] ups.com ] On Behalf Of ivo
Sent: Thursday, May 29, 2008 11:42
AM
To: FlexCoders
Subject: [flexcoders] what
prevents a FlexEvent.CREATION_ COMPLETE?
 
Hello
listers,

I have a custom component I use in two locations in my app. In one instance it
appears with all subcomponents laid out correctly but in the other it appears
with an inner subcomponent blank, it is not drawn. This only happens on the web
Flash Player tho, the same component under AIR shows both instances drawn
correctly.

Tracing I find that under AIR I can handle the FlexEvent.CREATION_ COMPLETE for
the inner subcomponent for both instances. In the web version only one of them
(the one that appears complete) triggers the event handler, the other one never
gets triggered. I imagine this would cause the empty component symptom since
this is dispatched once drawing is complete. The CREATION_COMPLETE event for
the parent is always triggered tho.

Thanks,

- Ivo

Re: [flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?

2008-05-30 Thread ivo
Thanks again for your reply Alex. Seems that in the instances that are not 
drawn neither the commitProperties() nor measure() functions are called.

Reviewing the properties of the drawn and not-drawn instances on the 
creationComplete event of the parent shows them to be basically equivalent, but 
for a few. The not-drawn instance has the following properties:

$visiblefalse
initializedfalse
invalidateDisplayListFlagtrue
invalidatePropertiesFlagtrue
invalidateSizeFlagtrue

The drawn instances has those same properties showing the opposite value.

What does the $visible property indicate?

Thanks,

- Ivo


- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, May 30, 2008 10:17:49 AM
Subject: RE: [flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?


The order is commitProperties, measure,
then updateDisplayList.  If code in measure() ends up calling
invalidatePropertie s, you go back to commitProperties and might never get over
to updatedisplayList
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of ivo
Sent: Friday, May 30, 2008 9:34 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what
prevents a FlexEvent.CREATION_ COMPLETE?
 
Thanks for the reply Alex. One
additional question, what would prevent updateDisplayList from being called
after a component is added to the display list?

Further tracing shows that in the correctly drawn instance the
updateDisplayList of the child components is called. In the one where the child
subcomponents are not drawn it is not called. If I iterate over the children of
the parent component it does list the subcomponents are being present.

Thanks,

- Ivo
- Original Message

From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, May 29, 2008 2:56:00 PM
Subject: RE: [flexcoders] what prevents a FlexEvent.CREATION_ COMPLETE?
If the child never finished validation because a call to
updateDisplayList invalidates size or properties, you won’t get
creation_complete
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED]
ups.com ] On Behalf Of ivo
Sent: Thursday, May 29, 2008 11:42
AM
To: FlexCoders
Subject: [flexcoders] what
prevents a FlexEvent.CREATION_ COMPLETE?
 
Hello
listers,

I have a custom component I use in two locations in my app. In one instance it
appears with all subcomponents laid out correctly but in the other it appears
with an inner subcomponent blank, it is not drawn. This only happens on the web
Flash Player tho, the same component under AIR shows both instances drawn
correctly.

Tracing I find that under AIR I can handle the FlexEvent.CREATION_ COMPLETE for
the inner subcomponent for both instances. In the web version only one of them
(the one that appears complete) triggers the event handler, the other one never
gets triggered. I imagine this would cause the empty component symptom since
this is dispatched once drawing is complete. The CREATION_COMPLETE event for
the parent is always triggered tho.

Thanks,

- Ivo

Re: [flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?

2008-05-30 Thread ivo
Thanks for the reply Alex. One additional question, what would prevent 
updateDisplayList from being called after a component is added to the display 
list?

Further tracing shows that in the correctly drawn instance the 
updateDisplayList of the child components is called. In the one where the child 
subcomponents are not drawn it is not called. If I iterate over the children of 
the parent component it does list the subcomponents are being present.

Thanks,

- Ivo


- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 29, 2008 2:56:00 PM
Subject: RE: [flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?


If the child never finished validation
because a call to updateDisplayList invalidates size or properties, you won’t
get creation_complete
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of ivo
Sent: Thursday, May 29, 2008 11:42
AM
To: FlexCoders
Subject: [flexcoders] what
prevents a FlexEvent.CREATION_ COMPLETE?
 
Hello listers,

I have a custom component I use in two locations in my app. In one instance it
appears with all subcomponents laid out correctly but in the other it appears
with an inner subcomponent blank, it is not drawn. This only happens on the web
Flash Player tho, the same component under AIR shows both instances drawn
correctly.

Tracing I find that under AIR I can handle the FlexEvent.CREATION_ COMPLETE
for the inner subcomponent for both instances. In the web version only one of
them (the one that appears complete) triggers the event handler, the other one
never gets triggered. I imagine this would cause the empty component symptom
since this is dispatched once drawing is complete. The CREATION_COMPLETE event
for the parent is always triggered tho.

Thanks,

- Ivo

[flexcoders] what prevents a FlexEvent.CREATION_COMPLETE?

2008-05-29 Thread ivo
Hello listers,

I have a custom component I use in two locations in my app. In one instance it 
appears with all subcomponents laid out correctly but in the other it appears 
with an inner subcomponent blank,  it is not drawn. This only happens on the 
web Flash Player tho, the same component under AIR shows both instances drawn 
correctly.

Tracing I find that under  AIR I can handle the FlexEvent.CREATION_COMPLETE for 
the inner subcomponent for both instances. In the web version only one of them 
(the one that appears complete) triggers the event handler, the other one never 
gets triggered. I imagine this would cause the empty component symptom since 
this is dispatched once drawing is complete. The CREATION_COMPLETE event for 
the parent is always triggered tho.

Thanks,


- Ivo



[flexcoders] Issues uninstalling FP10 and installing FP9?

2008-05-22 Thread ivo
Hello all,

I used the uninstall_flash_player.exe to remove the FP10 I had previously 
installed and am trying to install FP9.The active x version installs without 
problems but the plugin version crashes repeatedly. Has anyone experienced this 
and now how to get around it?

Thanks,

- Ivo



[flexcoders] Exception on Minimize then Maximize AIR app Windows

2008-05-13 Thread ivo
Hey all,

Occasionally when minimizing them maximizing my AIR app under Windows I get the 
exception below. The app returns to the desktop but its tiny, consisting 
basically of the title bar and the status bar and only wide enough to display 
the minimize/restore/close buttons. Anyone have any idea what this might mean?

The invalid parameter below is in ProgrammaticSkin.as line 739, the call reads 
g.drawRect(0, 28, NaN, 1);

ArgumentError: Error #2004: One of the parameters is invalid.
at flash.display::Graphics/drawRect()
at 
mx.skins::ProgrammaticSkin/drawRoundRect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:739]
at 
mx.skins.halo::TabSkin/updateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\halo\TabSkin.as:342]
at 
mx.skins::ProgrammaticSkin/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]

Thanks,


- Ivo



[flexcoders] Get rid of a Flex Builder button

2008-05-09 Thread ivo
Hello all,

Is there a way I can hide the Profiler button on the Flex Builder tab bar? I 
keep clicking it when I mean to click on the debugger down arrow next to it.

Thanks,

- Ivo



[flexcoders] online docs seem to be unavailable

2008-05-01 Thread ivo
Have recently been using the online docs again, as of a few minutes I am 
getting:

502 Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /flex/3/langref/index.html.

Reason: DNS lookup failure for: d65app-vip.macromedia.com


- Ivo



[flexcoders] Re: Loading socket policy files q

2008-04-28 Thread Ivo
Hello all,

I am still trying to get this master policy server setup sorted out. I
have tested couple different policy servers:

http://blog.zappmonkey.com/2008/01/13/tcltk-flash-socket-policy-server/
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html

and they appear to work as expected when tested from the command-line:

perl -e 'printf "\0"' | nc mysite.com 843


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>





I still see no evidence that the Flash Player is trying to get a
policy file from port 843 tho. Nothing noted in the policylog.txt &
using tcpdump I dont see anything except an attempt to get
http://mysite:/crossdomain.xml .

As noted in earlier messages I have the line

Security.loadPolicyFile('xmlsocket://mysite.com:843');

Anyone had to set up a policy server and can give me ideas on how to
pin the issue?

Thanks,

- Ivo




--- In flexcoders@yahoogroups.com, Jesús Iglesias <[EMAIL PROTECTED]> wrote:
>
> Hi!!
> 
>  
> 
> You have to make a socket policy master SERVER, it's not just an http
> request to port 843. 
> 
> You need a server listening on port 843 responding to requests but
not as a
> http protocol.
> 
>  
> 
> Here you have one that is working fine:
> 
> http://blog.zappmonkey.com/2008/01/13/tcltk-flash-socket-policy-server/
> 
>  
> 
>  
> 
> Jesus Iglesias
> 
>  <http://blog.osusnet.com> http://blog.osusnet.com
> 
>  
> 
>  
> 
>  
> 
> De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
En nombre
> de ivo
> Enviado el: martes, 15 de abril de 2008 6:01
> Para: flexcoders@yahoogroups.com
> Asunto: Re: [flexcoders] Loading socket policy files q
> 
>  
> 
> I am getting sick of re-reading the Socket Policy update doc.
> 
> Seems the Flash Player is always failing to load the master socket
policy. I
> see in policylog.txt:
> 
> Warning: Failed to load policy file from
> http://mysite.com:/crossdomain.xml
> Error: Request for resource at http://mysite.com:/accounts/login by
> requestor from http://192.168.1.100/main.swf is denied due to lack
of policy
> file permissions.
> 
> Sniffing the http I dont see anywhere a request for the master
socket policy
> file at http://mysite.com:843 . The logging statements show that the
line
> 
> Security.loadPolicyFile('xmlsocket://mysite.com:843');
> 
> is getting hit tho.
> 
> going to http://mysite.com:843 returns an xml socket policy file:
> 
> curl -v http://mysite.com:843
> 
> < HTTP/1.1 200 OK
> < Date: Tue, 15 Apr 2008 03:55:09 GMT
> < Server: Apache
> < Last-Modified: Tue, 01 Apr 2008 21:32:45 GMT
> < ETag: "10c81a9-119-47f2a9fd"
> < Accept-Ranges: bytes
> < Content-Length: 281
> < Connection: close
> < Content-Type: application/xml
> < 
> 
> http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> 
> 
>   
>   
> 
> * Closing connection #0
> 
> 
> So what am I missing?
> 
> - Ivo
> 
> - Original Message 
> From: ivo <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, April 14, 2008 3:04:00 PM
> Subject: Re: [flexcoders] Loading socket policy files q
> 
> That should have been...(http://mysite. com:843/crossdomain . xml
> <http://mysite.com:/crossdomain.xml> ).
> 
> also, I dont have control of the server so I cannot place a socket
policy
> file at port 
> 
> Thanks,
> 
> - Ivo
> 
> - Original Message 
> From: ivo 
> To: FlexCoders <[EMAIL PROTECTED] ups.com>
> Sent: Monday, April 14, 2008 2:50:59 PM
> Subject: [flexcoders] Loading socket policy files q
> 
> My app is hosted on a server that has a master Socket policy file served
> from port 843 (http://mysite. <http://mysite.com:/crossdomain.xml>
> com:/ crossdomain. xml):
> 
> 
> 
> 
> 
> 
> In the code I explicitly load the master policy file, yet the player
still
> tries to load
> 
> http://mysite. <http://mysite.com:/crossdomain.xml>  com:/
> crossdomain. xml
> 
> And fails when it doesnt find one preventing me from communicating
with the
> service. Is there a step I am missing?
> 
> Thanks,
> 
> - Ivo
>




[flexcoders] Why does iterating over an array of functions fail?

2008-04-21 Thread ivo
Hello all,

I'd like to understand why if I create a filterFunction for a collection out of 
an array of Functions the filtering fails, but if I use an Object to hold them 
then everything is ok.

ex:

/*
below would fail with "TypeError: Error#1006: value is not a function" as soon 
as the for loop in the filter function is hit
*/
var validators:Array = [];
var options:IList = //...contains property => values
for(var i:int=0; i values
for(var i:int=0; i

[flexcoders] Re: Loading socket policy files q

2008-04-15 Thread Ivo
Thanks for the reply Jesús .

Also, this article that appeared yesterday clarified things some,

http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html

- Ivo

--- In flexcoders@yahoogroups.com, Jesús Iglesias <[EMAIL PROTECTED]> wrote:
>
> Hi!!
> 
>  
> 
> You have to make a socket policy master SERVER, it's not just an http
> request to port 843. 
> 
> You need a server listening on port 843 responding to requests but
not as a
> http protocol.
> 
>  
> 
> Here you have one that is working fine:
> 
> http://blog.zappmonkey.com/2008/01/13/tcltk-flash-socket-policy-server/
> 
>  
> 
>  
> 
> Jesus Iglesias
> 
>  <http://blog.osusnet.com> http://blog.osusnet.com
> 
>  
> 
>  
> 
>  
> 
> De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
En nombre
> de ivo
> Enviado el: martes, 15 de abril de 2008 6:01
> Para: flexcoders@yahoogroups.com
> Asunto: Re: [flexcoders] Loading socket policy files q
> 
>  
> 
> I am getting sick of re-reading the Socket Policy update doc.
> 
> Seems the Flash Player is always failing to load the master socket
policy. I
> see in policylog.txt:
> 
> Warning: Failed to load policy file from
> http://mysite.com:/crossdomain.xml
> Error: Request for resource at http://mysite.com:/accounts/login by
> requestor from http://192.168.1.100/main.swf is denied due to lack
of policy
> file permissions.
> 
> Sniffing the http I dont see anywhere a request for the master
socket policy
> file at http://mysite.com:843 . The logging statements show that the
line
> 
> Security.loadPolicyFile('xmlsocket://mysite.com:843');
> 
> is getting hit tho.
> 
> going to http://mysite.com:843 returns an xml socket policy file:
> 
> curl -v http://mysite.com:843
> 
> < HTTP/1.1 200 OK
> < Date: Tue, 15 Apr 2008 03:55:09 GMT
> < Server: Apache
> < Last-Modified: Tue, 01 Apr 2008 21:32:45 GMT
> < ETag: "10c81a9-119-47f2a9fd"
> < Accept-Ranges: bytes
> < Content-Length: 281
> < Connection: close
> < Content-Type: application/xml
> < 
> 
> http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> 
> 
>   
>   
> 
> * Closing connection #0
> 
> 
> So what am I missing?
> 
> - Ivo
> 
> - Original Message 
> From: ivo <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, April 14, 2008 3:04:00 PM
> Subject: Re: [flexcoders] Loading socket policy files q
> 
> That should have been...(http://mysite. com:843/crossdomain . xml
> <http://mysite.com:/crossdomain.xml> ).
> 
> also, I dont have control of the server so I cannot place a socket
policy
> file at port 
> 
> Thanks,
> 
> - Ivo
> 
> - Original Message 
> From: ivo 
> To: FlexCoders <[EMAIL PROTECTED] ups.com>
> Sent: Monday, April 14, 2008 2:50:59 PM
> Subject: [flexcoders] Loading socket policy files q
> 
> My app is hosted on a server that has a master Socket policy file served
> from port 843 (http://mysite. <http://mysite.com:/crossdomain.xml>
> com:/ crossdomain. xml):
> 
> 
> 
> 
> 
> 
> In the code I explicitly load the master policy file, yet the player
still
> tries to load
> 
> http://mysite. <http://mysite.com:/crossdomain.xml>  com:/
> crossdomain. xml
> 
> And fails when it doesnt find one preventing me from communicating
with the
> service. Is there a step I am missing?
> 
> Thanks,
> 
> - Ivo
>




Re: [flexcoders] Loading socket policy files q

2008-04-14 Thread ivo
I am getting sick of re-reading the Socket Policy update doc.

Seems the Flash Player is always failing to load the master socket policy. I 
see in policylog.txt:

Warning: Failed to load policy file from http://mysite.com:/crossdomain.xml
Error: Request for resource at http://mysite.com:/accounts/login by 
requestor from http://192.168.1.100/main.swf is denied due to lack of policy 
file permissions.

Sniffing the http I dont see anywhere a request for the master socket policy 
file at http://mysite.com:843 . The logging statements show that the line

Security.loadPolicyFile('xmlsocket://mysite.com:843');

is getting hit tho.

going to http://mysite.com:843 returns an xml socket policy file:

curl -v http://mysite.com:843

< HTTP/1.1 200 OK
< Date: Tue, 15 Apr 2008 03:55:09 GMT
< Server: Apache
< Last-Modified: Tue, 01 Apr 2008 21:32:45 GMT
< ETag: "10c81a9-119-47f2a9fd"
< Accept-Ranges: bytes
< Content-Length: 281
< Connection: close
< Content-Type: application/xml
< 

http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> 

  
  

* Closing connection #0


So what am I missing?

- Ivo

- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, April 14, 2008 3:04:00 PM
Subject: Re: [flexcoders] Loading socket policy files q


That should have been...(http://mysite. com:843/crossdomain . xml).

also, I dont have control of the server so I cannot place a socket policy file 
at port 

Thanks,

- Ivo

- Original Message 
From: ivo 
To: FlexCoders <[EMAIL PROTECTED] ups.com>
Sent: Monday, April 14, 2008 2:50:59 PM
Subject: [flexcoders] Loading socket policy files q

My app is hosted on a server that has a master Socket policy 
file served from port 843 (http://mysite. com:/ crossdomain. xml):






In the code I explicitly load the master policy file, yet the player still 
tries to load

http://mysite. com:/ crossdomain. xml

And fails when it doesnt find one preventing me from communicating with the 
service. Is there a step I am missing?

Thanks,

- Ivo




















Re: [flexcoders] Loading socket policy files q

2008-04-14 Thread ivo
That should have been...(http://mysite. com:843/crossdomain. xml).

also, I dont have control of the server so I cannot place a socket policy file 
at port 

Thanks,

- Ivo

- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: FlexCoders 
Sent: Monday, April 14, 2008 2:50:59 PM
Subject: [flexcoders] Loading socket policy files q

My app is hosted on a server that has a master Socket policy 
file served from port 843 (http://mysite. com:/ crossdomain. xml):






In the code I explicitly load the master policy file, yet the player still 
tries to load

http://mysite. com:/ crossdomain. xml

And fails when it doesnt find one preventing me from communicating with the 
service. Is there a step I am missing?

Thanks,

- Ivo














[flexcoders] Loading socket policy files q

2008-04-14 Thread ivo
My app is hosted on a server that has a master Socket policy file served from 
port 843 (http://mysite.com:/crossdomain.xml):






In the code I explicitly load the master policy file, yet the player still 
tries to load

http://mysite.com:/crossdomain.xml

And fails when it doesnt find one preventing me from communicating with the 
service. Is there a step I am missing?

Thanks,

- Ivo




Re: [flexcoders] convert MouseEvent into a DragEvent?

2008-04-02 Thread ivo
Seems I am unable to set the StageX/Y on a new DragEvent. According to the docs 
these values are generated from localX/Y but testing it shows the values for 
StageX/Y always remain 0. Is it because the localX/Y are "relative to the 
containing sprite"? How do I associate a new DragEvent with an arbitrary sprite?

- Ivo

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 1, 2008 9:16:58 PM
Subject: RE: [flexcoders] convert MouseEvent into a DragEvent?








You should be able to use the stageX/Y and
globalToLocal
   
 
From: [EMAIL PROTECTED] ups.com[mailto:flexcoders@ yahoogroups. com] On Behalf
Of ivo
Sent: Tuesday, April 01, 2008 4:43PM
To: FlexCoders
Subject: [flexcoders] convertMouseEvent into a DragEvent?
 
  
 I am trying to update the feedback for my Listcontrols with a custom 
dropIndicatorSkin .
My drag and drop handlers tho are written to accept MouseEvent so they can 
beused either for NativeDragEvent or DragEvent .
Unfortunately tho the ListBase calls to showDropFeedback/ hideDropFeedbackonly 
take a DragEvent. This means my custom dropIndicator skin can only be usedon 
web projects, not on my Air projects. Any suggestions on how I can getaround 
this?

The main issue is getting the event coordinates on a new DragEvent based on 
theMouseEvent correct so that the dropSkinIndicator highlights the appropiate 
row.

Thanks,

- Ivo
 
















[flexcoders] convert MouseEvent into a DragEvent?

2008-04-01 Thread ivo
 I am trying to update the feedback for my List controls with a custom 
dropIndicatorSkin .
My drag and drop handlers tho are written to accept MouseEvent so they can be 
used either for NativeDragEvent or DragEvent .
Unfortunately tho the ListBase calls to showDropFeedback/hideDropFeedback only 
take a DragEvent. This means my custom dropIndicator skin can only be used on 
web projects, not on my Air projects. Any suggestions on how I can get around 
this?

The main issue is getting the event coordinates on a new DragEvent based on the 
MouseEvent correct so that the dropSkinIndicator highlights the appropiate row.

Thanks,

- Ivo








Re: [flexcoders] Re: need help capturing focus in a variable or using event to capture current target

2008-03-28 Thread ivo
I am having what might be a related/similar issue, hopefully we can find the 
proper way to handle it and post it to the list.

I have a canvas-based component that contain shapes and listens to keyup events 
to performs ops on the currently selected shape (the one that was clicked 
last).  If the Window looses focus and back then the keyup events are no longer 
caught by the component unless the user manually clicks within it once again. 

My solution instead is to have the enclosing app track whether the component is 
currently in the display list and whether it was used (click or keyup) last. If 
so then on activate I simulate a click on the last selected shape.

I think this is related to focus but it seems the focus manager only deals with 
IFocusManagerComponent and the component has none of the listed implementors so 
trying to use getFocus() always returns null. Ideally I'd like to be able to 
set the focus back to the canvas without using a click event that wasn't due to 
user interaction.

- Ivo

- Original Message 
From: Teresa Howington <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, March 28, 2008 7:14:15 AM
Subject: [flexcoders] Re: need help capturing focus in a variable or using 
event to capture current target

I've had my nose buried in 3 Flex books and several forums for 
3 days 
now. I've not been able to find documentation showing an example of 
how to use focus. I even put a message in the Adobe LiveDocs, and 
they responded, "question is too specific. look elsewhere."

Has ANYONE ever attempted to catch focus in some manner or form? This 
should not be that hard but this is becoming a real pain!

--- In [EMAIL PROTECTED] ups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Look into the focus events. I don't know if there's a 
global "focusChanged"
> event or something like that, but you can definitely hook 
into "focusIn" and
> "focusOut" on individual components.
> 
> -J
> 
> On Fri, Mar 28, 2008 at 7:30 AM, Teresa Howington 

> wrote:
> 
> >   Hi everyone,
> >
> > I'm relatively new to Flex, and need help with targeting. I'm 
creating an
> > app that has multiple text areas, shape, and image objects. I 
want the user
> > to be able to click on one of these, have it show that 
it's "selected", and
> > then use the control buttons I make to manipulate the objects, 
like changing
> > font, rotating, etc.
> >
> > I'm using this Flex snippet from
> > http://blog. paranoidferret. com/index. php/2007/ 08/14/flex- snippet-
tutorial-using- the-textrange- class/
> > but trying to avoid hardcoding the target.
> >
> > Look at this snippet in particular:
> >
> >  **
> >
> > 
> >   

Re: [flexcoders] compc java.lang.OutOfMemoryError: Java heap space

2008-03-25 Thread ivo
I hit this same thing some time ago & the solutions was to increase the heap 
space for ant

http://tech.groups.yahoo.com/group/flexcoders/message/102140

- Ivo

- Original Message 
From: toofah_gm <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 25, 2008 2:06:03 PM
Subject: [flexcoders] compc java.lang.OutOfMemoryError: Java heap space

I am now trying to build using Ant and keep getting the 
following error:

[compc] Loading configuration file C:\Program Files\Adobe\ Flex
Builder 3\sdks\3.0.0\ frameworks\ flex-config. xml
[compc] Error: Java heap space
[compc] java.lang.OutOfMemo ryError: Java heap space

Does anyone know how to fix it?  I've tried increasing the java memory
vm parameters.  I've also added fork="true" to the compc task.  I
can't find a solution.

Thanks,

Gary














[flexcoders] Re: How to maintain a Tree opened/close state after removed/added to stage?

2008-03-06 Thread Ivo
Thanks, I posted the following with a test case

http://bugs.adobe.com/jira/browse/SDK-14892

- Ivo
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Please file a bug with a test case or post a test case in the forum.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ivo
> Sent: Wednesday, March 05, 2008 11:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to maintain a Tree opened/close state after
> removed/added to stage?
> 
>  
> 
> Hello all,
> 
> There is a behavior that is not apparent when building against Flex 3
> beta 3 but shows up of Flex 3 release.
> 
> I have a Tree that is added/removed from the stage at various times. In
> Beta 3 if I remove it from the display list & add it back at a later
> time the tree is with the branches opened/closed as they were when it
> was removed.
> 
> In the Flex Release the Tree always has all the branches closed once it
> is added to the stage. Looking at the Tree properties shows
> Tree.openItems does have a correct list of open branches. Iterating over
> this list to to open them, or close then open, or saving this list when
> removedFromStage and setting it again on addedToStage, or invalidating
> the display list does not do anything. My next shot is simulating mouse
> clicks on the renderers travelling from the outermost branches inward
> but this feels like overkill.
> 
> Any suggestions on how to trigger the display so it matched the internal
> open/closed state?
> 
> Thanks,
> 
> - Ivo
>




[flexcoders] is scripting AIR app uninstaller possible?

2008-03-06 Thread ivo
Is there a way to script an AIR app uninstaller?

If I run the .air file for an already installed app and select 'Uninstall' I 
noticed that contents of the EncryptedLocalStore and the 
applicationStorageDirectory are left behind & I'd like these blown away.

Thanks,

- Ivo








Re: [flexcoders] How to maintain a Tree opened/close state after removed/added to stage?

2008-03-05 Thread ivo
The Tree appears all collapsed. None of the branches that were previously open 
(listed under openItems) are expanded.

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 5, 2008 4:30:13 PM
Subject: RE: [flexcoders] How to maintain a Tree opened/close state after 
removed/added to stage?

  






Could be a bug.  I don’t understand
why you re-set openItems after re-adding the Tree to the display list.  I doubt
we tested under those conditions.  What happens if you don’t reset
openItems.
   
 
From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of ivo
Sent: Wednesday, March 05, 20081:42 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] How tomaintain a Tree opened/close state after 
removed/added to stage?
 
  
 Not sure where to go withthis next.

The following kinda works...the Tree listens for Event.ADDED_ TO_STAGE thengo 
thru:

var _opened:Array = (m_tree.openItems as Array).concat( []);
tree.openItems = [];
callLater(reOpenIte ms, [_opened]);

...then in reOpenItems just:

m_tree.openItems = _opened;

..the above works as long as the Tree is kept with the branches in theirinitial 
open/closed state. So the first time the Tree is shown a certain set ofinitial 
branches are opened...the user dismisses the Tree...I remove it fromthe 
displaythe user asks for the Tree view again...I readd the Tree &the above 
code runs & everything is ok as all its open like it wasinitially.

But if the user requests the Tree...closes a branch (or branches)... 
dismissesthe Tree..then later requests the Tree..I get an exception:

TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls: :List/createItem Renderer( )[E:\dev\ 3.0.x\frameworks 
\projects\ framework\ src\mx\controls\ List.as:1796]
at mx.controls: :List/http://www.adobe. com/2006/ flex/mx/internal 
::getMeasuringRe nderer()[ E:\dev\3. 0.x\frameworks\ projects\ framework\ 
src\mx\controls\ List.as:1734]
at mx.controls: :List/commitProp erties()[ E:\dev\3. 0.x\frameworks\ 
projects\ framewo!rk\ src\mx\controls\ List.as:764]
at mx.controls: :Tree/commitProp erties()[ E:\dev\3. 0.x\frameworks\ 
projects\ framework\ src\mx\controls\ Tree.as:1028]
at mx.core::UIComponen t/validateProper ties()[E: \dev\3.0. x\frameworks\ 
projects\ framework\ src\mx\core\ UIComponent. as:5670]

...the line \framework\src\ mx\controls\ List.as:1796 sez:

delete freeItemRenderersBy Factory[factory] [renderer] ;

and there really isnt a value for freeItemRenderersBy Factory[factory].  The 
var freeItemRenderersBy Factory does contain a single elementDictionary but the 
debugger wont reveal what its contents are.

What can cause this condition?



- Ivo


 - Original Message
From: ivo 
To: f! [EMAIL PROTECTED] ups.com
Sent: Wednesday, March 5, 2008 11:47:01 AM
Subject: [flexcoders] How to maintain a Tree opened/close state 
afterremoved/added to stage?
 Hello all,

There is a behavior that is not apparent when building against Flex 3 beta 3but 
shows up of Flex 3 release.

I have a Tree that is added/removed from the stage at various times. In Beta 
3if I remove it from the display list & add it back at a later time the treeis 
with the branches opened/closed as they were when it was removed.

In the Flex Release the Tree always has all the branches closed once it isadded 
to the stage. Looking at the Tree properties shows Tree.openItems doeshave a 
correct list of open branches. Iterating over this list to to open them,or 
close then open, or saving this list when removedFromStage and setting itagain 
on addedToStage, or invalidating the display list does not do anything.My next 
shot is simulating mouse clicks on the renderers travelling from theoutermost 
branches inward but this feels like overkill.

Any suggestions on how to trigger the display so it matched the 
internalopen/closed state?

Thanks,

- Ivo
 

  
 







  










Re: [flexcoders] How to maintain a Tree opened/close state after removed/added to stage?

2008-03-05 Thread ivo
Not sure where to go with this next.

The following kinda works...the Tree listens for Event.ADDED_TO_STAGE then go 
thru:

var _opened:Array = (m_tree.openItems as Array).concat([]);
tree.openItems = [];
callLater(reOpenItems, [_opened]);

...then in reOpenItems just:

m_tree.openItems = _opened;

..the above works as long as the Tree is kept with the branches in their 
initial open/closed state. So the first time the Tree is shown a certain set of 
initial branches are opened...the user dismisses the Tree...I remove it from 
the displaythe user asks for the Tree view again...I readd the Tree & the 
above code runs & everything is ok as all its open like it was initially.

But if the user requests the Tree...closes a branch (or branches)...dismisses 
the Tree..then later requests the Tree..I get an exception:

TypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls::List/createItemRenderer()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\List.as:1796]
at 
mx.controls::List/http://www.adobe.com/2006/flex/mx/internal::getMeasuringRenderer()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\List.as:1734]
at 
mx.controls::List/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\List.as:764]
at 
mx.controls::Tree/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\Tree.as:1028]
at 
mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]

...the line \framework\src\mx\controls\List.as:1796 sez:

delete freeItemRenderersByFactory[factory][renderer];

and there really isnt a value for freeItemRenderersByFactory[factory] .  The 
var freeItemRenderersByFactory does contain a single element Dictionary but the 
debugger wont reveal what its contents are.

What can cause this condition?



- Ivo


- Original Message ----
From: ivo <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 5, 2008 11:47:01 AM
Subject: [flexcoders] How to maintain a Tree opened/close state after 
removed/added to stage?

  Hello all,

There is a behavior that is not apparent when building against Flex 3 beta 3 
but shows up of Flex 3 release.

I have a Tree that is added/removed from the stage at various times. In Beta 3 
if I remove it from the display list & add it back at a later time the tree is 
with the branches opened/closed as they were when it was removed.

In the Flex Release the Tree always has all the branches closed once it is 
added to the stage. Looking at the Tree properties shows Tree.openItems does 
have a correct list of open branches. Iterating over this list to to open them, 
or close then open, or saving this list when removedFromStage and setting it 
again on addedToStage, or invalidating the display list does not do anything. 
My next shot is simulating mouse clicks on the renderers travelling from the 
outermost branches inward but this feels like overkill.

Any suggestions on how to trigger the display so it matched the internal 
open/closed state?

Thanks,

- Ivo



  










[flexcoders] How to maintain a Tree opened/close state after removed/added to stage?

2008-03-05 Thread ivo
Hello all,

There is a behavior that is not apparent when building against Flex 3 beta 3 
but shows up of Flex 3 release.

I have a Tree that is added/removed from the stage at various times. In Beta 3 
if I remove it from the display list & add it back at a later time the tree is 
with the branches opened/closed as they were when it was removed.

In the Flex Release the Tree always has all the branches closed once it is 
added to the stage. Looking at the Tree properties shows Tree.openItems does 
have a correct list of open branches. Iterating over this list to to open them, 
or close then open, or saving this list when removedFromStage and setting it 
again on addedToStage, or invalidating the display list does not do anything. 
My next shot is simulating mouse clicks on the renderers travelling from the 
outermost branches inward but this feels like overkill.

Any suggestions on how to trigger the display so it matched the internal 
open/closed state?

Thanks,

- Ivo




Re: [flexcoders] Flex Builder 3 debug builds broken, breakpoints all wrong

2008-03-05 Thread ivo
You beat me to the post, was just about to ask the list if anyone knew a way 
around this issue. Just upgraded to FB3 release and this became immediately 
apparent.

What works for me tho is after I update source files I delete their swf/swc 
from the bin folders.

-Ivo 

- Original Message 
From: thirtyfivemph <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 5, 2008 10:16:03 AM
Subject: [flexcoders] Flex Builder 3 debug builds broken, breakpoints all wrong

  Okay... I'm about to throw my laptop across the room. I am 
burning
time trying to fix this *bug* (bug, because as a user I shouldn't be
able to break this) in Flex Builder (I've seen it in 2, now seeing it
in 3).

I'm just happily editing my project... when all of sudden a trace
statement I add doesn't show up. Hmm... odd, let's set a breakpoint to
check it out...

What!? I try to set a breakpoint and it skips to a different line
number, just as if I'd try to set a breakpoint on a comment. This
smells familiar. Some cached incremental build data is lingering
somewhere and junking everything up...

So I clean and rebuild... no good.

I clean, restart Flex Builder, rebuild... no good.

I clean, reset my machine, rebuild... no good.

I clean, shut down Flex Builder, manually go and clear all the cache
files from my workspace's '.plugin' folder, rebuild... no good.

So, what's the deal? Am I missing some cache files? I find it
infuriating that explicitly choosing "clean" doesn't get me the same
result as if I checked out the source on a new machine and clicked
build... what's the point of clean if there's still some lingering
cache files?

Can anyone help? I can't effectively move forward at this point as
every time I make a change and rebuild my source the *changes* *don't*
*show* *up* in the resulting SWF. What the f*ck!?

Sorry if i sound a little angry... but we're trying to launch are
decently sized RIA after 18 months of work sometime in the next few
weeks so I'm a little, tiny bit antsy to get back to compiling/QA!

Help!!!

Troy.



  










Re: [flexcoders] Is setting custom headers on HTTPService for a GET possible?

2008-03-01 Thread ivo
Hello all,

Thought I'd repost again since I am curious as to the answer. I am thinking I 
am missing something blindingly obvious since no one bothers to reply. Must be 
a valid question because I have gotten three private "me too" replies.

I need to communicate with a web service where I need to set custom headers. 
Seems to work as expected for both GET and POST under AIR. Using web browsers 
the custom headers are only included for POST when using HTTPService and never 
for URLLoader. Couldnt find in the docs if this is by design or a bug since 
they lead me to believe this should be possible (except for the blacklisted 
headers).

Thanks,

- Ivo

- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 11:51:32 AM
Subject: Re: [flexcoders] Is setting custom headers on HTTPService for a GET 
possible?

  
Debugging  a bit further shows that the same behavior happens when using a 
URLLoader. Then the custom headers are not sent.

Under Air tho the custom headers are always sent, GET or POST.

These headers are all truly custom so they are not in the URLRequestHeader 
blacklist.

Is there a way to set custom headers on a GET? Short of opening a Socket 
connection and writing out the HTTP requests?


Thanks,

- Ivo

- Original Message 
From: ivo 
To: [EMAIL PROTECTED] ups.com
Sent: Friday, February 29, 2008 10:06:45 AM
Subject: [flexcoders] Is setting custom headers on HTTPService for a GET 
possible?

Hey all,

Don't see it indicated in the docs but debugging revealed that custom headers 
set on an HTTPService GET are not sent. Is this correct or am I missing 
something?

var httpService: HTTPService = new HTTPService( );
httpService. method = 'GET';
httpService. headers = {customHeader: 'foobar'};
httpService. send({});

/*
server-side all I see is:

[Fri Feb 29 10:05:34 2008] [error] Accept: */*
[Fri Feb 29 10:05:34 2008] [error] Accept-Encoding: gzip, deflate
[Fri Feb 29 10:05:34 2008] [error] Accept-Language: en
[Fri Feb 29 10:05:34 2008] [error] Connection: keep-alive
[Fri Feb 29 10:05:34 2008] [error] Content-Length: 14
[Fri Feb 29 10:05:34 2008] [error] Content-Type: application/ x-www-form- 
urlencoded

If I switch method = 'POST' then I see:

[Fri Feb 29 10:06:12 2008] [error] customHeader: foobar

*/

Thanks,

- Ivo



  




  










Re: [flexcoders] Is setting custom headers on HTTPService for a GET possible?

2008-02-29 Thread ivo
Debugging  a bit further shows that the same behavior happens when using a 
URLLoader. Then the custom headers are not sent.

Under Air tho the custom headers are always sent, GET or POST.

These headers are all truly custom so they are not in the URLRequestHeader 
blacklist.

Is there a way to set custom headers on a GET? Short of opening a Socket 
connection and writing out the HTTP requests?


Thanks,

- Ivo

- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 10:06:45 AM
Subject: [flexcoders] Is setting custom headers on HTTPService for a GET 
possible?

  Hey all,

Don't see it indicated in the docs but debugging revealed that custom headers 
set on an HTTPService GET are not sent. Is this correct or am I missing 
something?

var httpService: HTTPService = new HTTPService( );
httpService. method = 'GET';
httpService. headers = {customHeader: 'foobar'};
httpService. send({});

/*
server-side all I see is:

[Fri Feb 29 10:05:34 2008] [error] Accept: */*
[Fri Feb 29 10:05:34 2008] [error] Accept-Encoding: gzip, deflate
[Fri Feb 29 10:05:34 2008] [error] Accept-Language: en
[Fri Feb 29 10:05:34 2008] [error] Connection: keep-alive
[Fri Feb 29 10:05:34 2008] [error] Content-Length: 14
[Fri Feb 29 10:05:34 2008] [error] Content-Type: application/ x-www-form- 
urlencoded

If I switch method = 'POST' then I see:

[Fri Feb 29 10:06:12 2008] [error] customHeader: foobar

*/

Thanks,

- Ivo



  










[flexcoders] Is setting custom headers on HTTPService for a GET possible?

2008-02-29 Thread ivo
Hey all,

Don't see it indicated in the docs but debugging revealed that custom headers 
set on an HTTPService GET are not sent. Is this correct or am I missing 
something?

var httpService:HTTPService = new HTTPService();
httpService.method = 'GET';
httpService.headers = {customHeader: 'foobar'};
httpService.send({});

/*
server-side all I see is:

[Fri Feb 29 10:05:34 2008] [error] Accept: */*
[Fri Feb 29 10:05:34 2008] [error] Accept-Encoding: gzip, deflate
[Fri Feb 29 10:05:34 2008] [error] Accept-Language: en
[Fri Feb 29 10:05:34 2008] [error] Connection: keep-alive
[Fri Feb 29 10:05:34 2008] [error] Content-Length: 14
[Fri Feb 29 10:05:34 2008] [error] Content-Type: 
application/x-www-form-urlencoded

If I switch method = 'POST' then I see:

[Fri Feb 29 10:06:12 2008] [error] customHeader: foobar

*/

Thanks,

- Ivo




Re: [flexcoders] Re: mxmlc running out of heap space...

2008-02-12 Thread ivo
ahh...slick.

Setting ANT_OPTS did the trickalso the build takes only a few seconds 
instead of a minute.

- Ivo

- Original Message 
From: rueter007 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 10:39:55 AM
Subject: [flexcoders] Re: mxmlc running out of heap space...










  



set the following environment variable before the build depending on

your platform.



set ANT_OPTS=-Xmx500M 

  or

set ANT_OPTS=-Xmx500M ; export ANT_OPTS



- venkat



--- In [EMAIL PROTECTED] ups.com, ivo  wrote:

>

> I have a machine with 4GB of memory on which I develop an app using

Flex Builder 3 with no problems. Whenever I try to build the project

from the command-line thru an Ant task tho I get a:

> 

> [mxmlc] Error: Java heap space

> [mxmlc] java.lang.OutOfMemo ryError: Java heap space

> 

> I edited the file flex3sdk_be_ 121207/bin/ jvm.config so that the heap

space is increased to 1GB but I still keep getting this error.

> 

> Does anyone have any suggestions on how can I address this? I am

trying to make builds outside of Flex Builder so they can be automated.

> 

> Thanks,

> 

> - Ivo

>






  























[flexcoders] mxmlc running out of heap space...

2008-02-12 Thread ivo
I have a machine with 4GB of memory on which I develop an app using Flex 
Builder 3 with no problems. Whenever I try to build the project from the 
command-line thru an Ant task tho I get a:

[mxmlc] Error: Java heap space
[mxmlc] java.lang.OutOfMemoryError: Java heap space

I edited the file flex3sdk_be_121207/bin/jvm.config so that the heap space is 
increased to 1GB but I still keep getting this error.

Does anyone have any suggestions on how can I address this? I am trying to make 
builds outside of Flex Builder so they can be automated.

Thanks,

- Ivo




[flexcoders] Drag Proxy doesnt appear when drag motion moves cursor over neighboring item too fast...

2008-01-21 Thread ivo
I am experiencing a problem in a drag and drop control for which I have been 
unable to create a cut down test case version.

I have a Canvas full of draggable images that can be dragged over to a sibling 
drop pane. If an image is dragged over to the drop pane relatively fast the 
drag proxy does not appear and the drag events are never fired. Moving the 
mouse cursor back to the canvas that contains all the images will reveal the 
proxy at which point the drag can continue back to the drop pane & drag event 
are fired as expected.

This means the user has to click an image, drag a bit but not leave the parent 
canvas and when the proxy appears then you can drag over to the drop pane. It 
makes a common click & drag operation useless.

Has anyone experienced this and have a solution?

Thanks,

- Ivo




Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread ivo
Air apps also have available an EncryptedLocalStore 

http://livedocs.adobe.com/labs/flex3/langref/flash/data/EncryptedLocalStore.html



- Original Message 
From: Scott Mulder <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 10:55:37 AM
Subject: RE: [flexcoders] Adobe AIR Disconnected storage with Credit Cards










  












>From what I have figured out… Flex stores to a local db
file that is accessible to any other flex app that is running on the local
machine.  Not secure.  The only way you are going to get it to be
secure (from my understanding) is to encrypt it yourself and develop a security
routine yourself.  Syncing with the server is either handled on your own,
or if you use liveCycle or some other DTO with logic that does this
automatically.  There are some good tutorials on doing this with Java and
LiveCycles, but I don’t have much access to my server and don’t
know how to tell if I have LiveCycles installed (or knowledge of Java) so I
have been writing a custom sync routine that happens whenever a record is saved
that sends all unsynced records (“UPDATED”, “DELETED”, “NEW”)
to the FDS gateway into a ColdFusion Service.  I am also going to use
GUIDs to insure that the info is unique.  You’ll want to clear the
CCs out of your local SQLite db manually if you intend to store it the way I’m
doing it.
 

  
 

If I’m wrong someone correct me.
 

  
 

Scott
 

  
 

  
 





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

Sent: Tuesday, January 15, 2008 1:33 PM

To: [EMAIL PROTECTED] ups.com

Subject: Re: [flexcoders] Adobe AIR Disconnected storage with Credit
Cards
 







  
 







For me I would never try to store sensitive
private information anywhere 

as user don't know. I would ask to input credit cards information once 

again when getting back online.



George



Jeff Krueger wrote:

> Paul, 

> 

> Thanks. Yes I was thinking about something close to that. Of course when
the CC is entered you can do the check digit to make sure the number is valid.
I have a good background in Flex all the way back to flex 1.5. I haven't
started with AIR yet, but I am thinking so I put the CC into the value object
and attempt to call my webservice to actually do the charge. I am looking for
details about how the application handles the fact it can't get to the
webservice. What is AIR doing being the scene to "save" that so it
can resend it when a connection is available again. Yes if I encrypt the CC
before putting it into the value object that helps, but I still have to answer
the question for the auditors of where is the encrypted information stored. Is
it purged after the connection is reestablished, etc. So in a perfect world
maybe there is a flag for a field in AIR that if it has to store it for a temp
time that it will encrypt it. I am just having

> a hard time finding out the low level details of how this is supported
(The store and forward).

> 

> Thanks

> 

> Jeff

> 

> 
 




 
 











  























[flexcoders] AIR figure Windows taskbar size & position?

2007-12-07 Thread ivo
Hello all,

Is it possible thru AIR to determine the placement and size of the Windows 
taskbar?

Thanks,

- Ivo



[flexcoders] Any additional details on NativeDrag to OS?

2007-12-05 Thread ivo
Hello all,

What I would like to do is allow users to drag files off my AIR app onto their 
OS.

I believe I can tell reliably when a drag gesture ends outside the AIR app but 
I have not figured out how to tell whether the drag gesture ended at a 
filesystem location (like an open folder) or another open application (like 
notepad). If the drag gesture ended on a filesystem location, how do I resolve 
the location to a path?

Also, is there a way to replicate the mouse pointer feedback available in the 
DragManager when using the NativeDragManager for drag operations within app?

Thanks,

- Ivo






[flexcoders] How can I tell if NATIVE_DRAG_COMPLETE was releases inside/outside of air app?

2007-12-04 Thread Ivo
How can I tell if the mouse was release outside of the app (& where)
after a drag operation?




[flexcoders] flash.desktop.DragManager documentation location

2007-11-26 Thread Ivo
The documentation at 

http://livedocs.adobe.com/labs/flex/3/langref/flash/desktop/DragManager.html#doDrag()


makes reference to TransferableData which is not available when using
Flex Builder. Where can I find the matching documentation to my
current Flex Builder 3 installation?

Thanks,

- Ivo



[flexcoders] Any chrome managers available?

2007-11-09 Thread Ivo
Is there a library available that will help manage moving, resizing,
close, maximize, minimize of an application window whose chrome is set
to none ?

Seems moving and resizing are the move involved operations. I'm
wondering if anyone has abstracted this in a reusable library.

Thanks,

- Ivo 



[flexcoders] Re: Borderless, no title bar splash screen...

2007-11-06 Thread Ivo
Hi,

Adding a single image was just an example, I want to add more than
just an image to the borderless Window. 

I recently noticed that the AIR sample PixelPerfect accomplishes what
I am trying to do. I'll be looking at it more closely next.

Regards,

Ivo

--- In flexcoders@yahoogroups.com, "Vadim Melnik" <[EMAIL PROTECTED]> wrote:
>
> Hello Ivo,
> 
> To add only single image to the stage, you need to play with more
low level stuff that mx..Image. Have a look at things like
BitmapAssets, TextField, stage align, stage scaling etc. 
> 
> P.S.: Out of curiosity, do you have already something working
similar to my next example with images:)?
> 
> --
> Thanks,
> Vadim.
> 
>   - Original Message - 
>   From: Ivo 
>   To: flexcoders@yahoogroups.com 
>   Sent: Tuesday, November 06, 2007 11:10 PM
>   Subject: [flexcoders] Re: Borderless, no title bar splash screen...
> 
> 
>   Hi Vadim,
> 
>   Your example is kind of what I have, I have trouble adding items to it
>   tho,
> 
>   snip...
> 
>   var img:Image = new Image();
>   img.source = SPLASH_IMG;
>   wnd.stage.addChild(img);
> 
>   ...
> 
>   the items added to the wnd stage do not display. I imagine its
>   something simple I am missing, cant tell what tho.
> 
>   - Ivo
> 
>   --- In flexcoders@yahoogroups.com, "Vadim Melnik"  wrote:
>   >
>   > Hello Ivo,
>   > 
>   > Does it help, (AIR Beta 2)?
>   > 
>   > 
>   > 
>   >> xmlns:mx="http://www.adobe.com/2006/mxml";
>   > layout="vertical"
>   > width="400"
>   > height="300"
>   > click="exit()"
>   > showStatusBar="false"
>   > showTitleBar="false"
>   > showGripper="false"
>   > verticalAlign="middle"
>   > horizontalAlign="center"
>   > >
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 
>   > Thanks,
>   > Vadim.
>   > 
>   > - Original Message - 
>   > From: Ivo
>   > To: flexcoders@yahoogroups.com
>   > Sent: Tuesday, November 06, 2007 8:19 PM
>   > Subject: [flexcoders] Borderless, no title bar splash screen...
>   > 
>   > 
>   > Is it possible to create a splash screen in Flex so that it doesnt
>   > have the max/min/close buttons, title bar & status bar?
>   > 
>   > I've been playing with Application, with NativeWindow, with
>   > WindowedApplication setting the showFlexChrome='false'but no luck.
>   > 
>   > I see in the docs that specifiying NativeWindowSystemChrome with
a new
>   > instance of NativeWindow should do it but I am unable to figure
how to
>   > properly use it. Any examples I can take a look at out there?
>   > 
>   > Thanks,
>   > 
>   > Ivo
>   >
>




[flexcoders] Re: Borderless, no title bar splash screen...

2007-11-06 Thread Ivo
Hi Vadim,

Your example is kind of what I have, I have trouble adding items to it
tho,

snip...

var img:Image = new Image();
img.source = SPLASH_IMG;
wnd.stage.addChild(img);

...

the items added to the wnd stage do not display. I imagine its
something simple I am missing, cant tell what tho.

- Ivo

--- In flexcoders@yahoogroups.com, "Vadim Melnik" <[EMAIL PROTECTED]> wrote:
>
> Hello Ivo,
> 
> Does it help, (AIR Beta 2)?
> 
> 
> 
>   xmlns:mx="http://www.adobe.com/2006/mxml";
>  layout="vertical"
>  width="400"
>  height="300"
>  click="exit()"
>  showStatusBar="false"
>  showTitleBar="false"
>  showGripper="false"
>  verticalAlign="middle"
>  horizontalAlign="center"
> >
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks,
> Vadim.
> 
> - Original Message - 
> From: Ivo
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, November 06, 2007 8:19 PM
> Subject: [flexcoders] Borderless, no title bar splash screen...
> 
> 
> Is it possible to create a splash screen in Flex so that it doesnt
> have the max/min/close buttons, title bar & status bar?
> 
> I've been playing with Application, with NativeWindow, with
> WindowedApplication setting the showFlexChrome='false'but no luck.
> 
> I see in the docs that specifiying NativeWindowSystemChrome with a new
> instance of NativeWindow should do it but I am unable to figure how to
> properly use it. Any examples I can take a look at out there?
> 
> Thanks,
> 
> Ivo
>




[flexcoders] Borderless, no title bar splash screen...

2007-11-06 Thread Ivo
Is it possible to create a splash screen in Flex so that it doesnt
have the max/min/close buttons, title bar & status bar?

I've been playing with Application, with NativeWindow, with
WindowedApplication setting the showFlexChrome='false'but no luck.

I see in the docs that specifiying NativeWindowSystemChrome with a new
instance of NativeWindow should do it but I am unable to figure how to
properly use it. Any examples I can take a look at out there?

Thanks,

Ivo



[flexcoders] Re: API that encapsulates both Native DnD andDragEvents?

2007-10-30 Thread Ivo
I guess the initial attempt seemed easy, I just needed to create
helper classes one for the Air project and one for the Web-only
project that provide handlers for the DRAG_ENTER, DRAG_OVER &
DRAG_DROP (& their related NATIVE events) that just handle MouseEvents
. On the Air app the helper would need to check the type of the
MouseEvent and either handle it or pass it onto the Web-only drag
helper. The Web-only app doesnt have a choice. This allows DnD within
the app and from desktop to app.

>From app to desktop tho I am unsure how to proceed. It seems the drag
initiator is specific to the end location, if dragging from app to
desktop use flash.desktop.DragManager  if within the app then use
mx.managers.DragManager but there is no way to tell the intent of the
drag.

I guess one way would be to always initiate a drag with
mx.managers.DragManager and if its possible to check whether the drag
has crossed the application Window then turn it into a
flash.desktop.DragManager ?

Anyone have any experience with this?

Ivo

--- In flexcoders@yahoogroups.com, ivo <[EMAIL PROTECTED]> wrote:
>
> Hey all,
> 
> I am trying to get Drag and Drop deals with both Drag and Drop from
the local filesystem as well as within the application itself. I see
there are two APIs for Drag and Drop, each with its own DragManager
and distinct events. Has anyone worked on encapsulating these two on a
single API? My app should be used both on the web and as an air app
with little modifications so I am about to start looking into this.
> 
> Thanks,
> 
> - Ivo
>




[flexcoders] API that encapsulates both Native DnD andDragEvents?

2007-10-29 Thread ivo
Hey all,

I am trying to get Drag and Drop deals with both Drag and Drop from the local 
filesystem as well as within the application itself. I see there are two APIs 
for Drag and Drop, each with its own DragManager and distinct events. Has 
anyone worked on encapsulating these two on a single API? My app should be used 
both on the web and as an air app with little modifications so I am about to 
start looking into this.

Thanks,

- Ivo




[flexcoders] Re: AIR DnD onto a Tree, how to use calculateDropIndex ?

2007-10-26 Thread Ivo
So the solution was to extend the Tree and add a function that
replicates the part of Tree::updateDropData() that sets the value of
rowNum.

The rowNum then is the index of the node on which the event occurs.

Thanks,

Ivo

--- In flexcoders@yahoogroups.com, "Ivo" <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any experience with finding out over which node in a
> list/tree a NativeDragEvent occurs?
> 
> I have been using calculateDropIndex() but this only works on
DragEvents.
> 
> I've been testing with passing null to calculateDropIndex() and
> checking the dropTarget property with no luck.
> 
> Any clues as to the proper way to do this are greatly apprecited.
> 
> Thanks,
> 
> Ivo 
> 
> --- In flexcoders@yahoogroups.com, "Ivo"  wrote:
> >
> > I want to evaluate over which node of a Tree a NativeDragEvent
> > occurred. The fn calculateDropIndex() tho only accepts DragEvents.
> > 
> > How do I go about getting this information?
> > 
> > Thanks,
> > 
> > - Ivo
> >
>




[flexcoders] Re: AIR DnD onto a Tree, how to use calculateDropIndex ?

2007-10-26 Thread Ivo
Does anyone have any experience with finding out over which node in a
list/tree a NativeDragEvent occurs?

I have been using calculateDropIndex() but this only works on DragEvents.

I've been testing with passing null to calculateDropIndex() and
checking the dropTarget property with no luck.

Any clues as to the proper way to do this are greatly apprecited.

Thanks,

Ivo 

--- In flexcoders@yahoogroups.com, "Ivo" <[EMAIL PROTECTED]> wrote:
>
> I want to evaluate over which node of a Tree a NativeDragEvent
> occurred. The fn calculateDropIndex() tho only accepts DragEvents.
> 
> How do I go about getting this information?
> 
> Thanks,
> 
> - Ivo
>




[flexcoders] AIR DnD onto a Tree, how to use calculateDropIndex ?

2007-10-25 Thread Ivo
I want to evaluate over which node of a Tree a NativeDragEvent
occurred. The fn calculateDropIndex() tho only accepts DragEvents.

How do I go about getting this information?

Thanks,

- Ivo



Re: [flexcoders] Re: Conditional formatting of tree node labels

2007-06-04 Thread ivo
Thanks for the response Barry. I was away & just now
catching up on email.

Turns out I did not have to do:

var treeListData:TreeListData =
TreeListData(super.listData);
if(treeListData.isDirty){
this.label.setStyle('fontStyle', 'italic');
}

but just:

var treeListData:TreeListData =
TreeListData(super.listData);
if(treeListData.isDirty){
setStyle('fontStyle', 'italic');
}

I had one of those doh moments when I noticed it.

Regards,

Ivo


--- "barry.beattie" <[EMAIL PROTECTED]> wrote:

> Ivo, did you find a solution?
> 
> the tree controls' "labelFunction" (instead of
> "labelField") could be
> an easy way out to conditionally modify the label's
> condition0
> 
> just a quick suggestion
> 
> best'o'luck
> barry.b
> 
> 
>  dataProvider="{questionaire.section}" 
> labelFunction="treeLabel" 
> change="onTreeNodeSelected(event)"
>   />  
> 
> 
> private function treeLabel( item:Object ) : String
> {
>  var node:XML = XML(item);
>  var labelText:String;
>  // choose what to use for label
>  // TODO: replace hard-coded node name with [if
> not hasChildren]
>  if( node.localName() == "question")
>  {
>   labelText = String([EMAIL PROTECTED]);
>  }
>  else 
>  {
> labelText = String([EMAIL PROTECTED]);
>  }
>  if (labelText.length > 30) // too long
>  {
>   labelText = labelText.substr(0,30) + "...";
>  } 
>  return labelText;
> } 
> 
> 
> 



Re: [flexcoders] Tree edit item doubleclick

2007-05-24 Thread ivo
You have to set your Tree to editable and then listen for the event 
ListEvent.ITEM_EDIT_BEGIN .

Your handler for this event can keep tabs for what was the last node that was 
clicked and at what time. If there were no previous clicks on the target node 
or the last click was more than x milliseconds ago then you call 
event.preventDefault(); to disable editing, otherwise there were two 
consecutive clicks within x milliseconds so you let it continue and the label 
editing will take place.



- Original Message 
From: Morten Madsen <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 24, 2007 3:15:16 AM
Subject: [flexcoders] Tree edit item doubleclick









  



Hi people!

I have a tree, and I want to be able to double click on an item in the tree and 
then edit the name/label, is this posible?

Kind regards
Morten Madsen




  















[flexcoders] Conditional formatting of tree node labels

2007-05-22 Thread ivo
I want to apply different formatting to the labels of different types of nodes 
in a Tree.

I have extended TreeItemRenderer and overrode updateDisplayList() so that I 
could call setStyle() on each node based on specific properties, something like 
what I copied below, but I dont see it happening even tho the code is hit. What 
am I missing?


override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
if(super.data!=null) {
var treeListData:TreeListData = TreeListData(super.listData);
if(treeListData.isDirty){
this.label.setStyle('fontStyle', 'italic');
}
}
}


Thank you for any pointers,

Ivo




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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Trees and ActionScript

2007-05-17 Thread ivo
I implemented my tree using ArrayCollection for the data provider but the 
elements were simple objects...I would add deeper levels by manipulating the 
objects thru references rather than thru the dataprovider itself

var tree:Tree = new Tree();
var hashOfNodes:Object = new Object();
var dpArray:Array = new Array();

var node1:Object = {id: someId1, label: nodeName1, children[] };
var node2:Object = {id: someId2, label: nodeName2, children[] };
var node3:Object = {id: someId3, label: nodeName3, children[] };
hashOfNodes[node1.id] = node1;
hashOfNodes[node2.id] = node2;
hashOfNodes[node3.id] = node3;

dpArray.push(node1);
dpArray.push(node2);
dpArray.push(node3);

tree.dataProvider = ArrayCollection(dpArray):

later when adding children to a node (say node2) I would do:

var childNode:Object = {id: someIdChild, label: nodeNameChild, children[] };
hashOfNodes[childNode.id] = childNode;

var targetNode:Object = hashOfNodes[node2.id] ;
targetNode.children = [childNode];

So I would only set the dataProvider with the root nodes of the tree but 
manipulate the nodes thru the references kept under hashOfNodes .

Hope this helps & its clear enough,

Ivo

- Original Message 
From: Matt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 17, 2007 1:26:08 PM
Subject: [flexcoders] Trees and ActionScript









  



I am trying to programmatically build and manipulate a Tree entirely

in ActionScript and I'm having serious issues doing so.



I've tried various ways of doing it but currently my failed code looks

like:



var t:Tree = new Tree();

var dp:XMLListCollectio n = new XMLListCollection( );

var o1:XML = ;

dp.addItem(o1) ;

t.dataProvider = dp;



Ideally I'd like to use only Objects.  I've been able to make it work

thus far by just having a dataProvider as ArrayCollection and adding

Objects to it, but then I have no way of adding branches and I end up

with a 1-deep tree.



Any advice or references are appreciated. I've gone through the

flexdocs and they offer a few examples that seem to almost be talking

about what I'm trying to do, but they don't work.






  















Re: [flexcoders] FlexBuilder bug: failing to report location of errors, warnings and hints

2007-05-15 Thread ivo
I had this problem twice, once because the system was getting low on available 
memory. The second time I got some clues as to the problem files by looking at 
the eclipse Error Log. On my Mac it was under Window->Show View->Other->PDE 
Runtime->Error Log

- Original Message 
From: Robert W <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 15, 2007 12:53:25 PM
Subject: Re: [flexcoders] FlexBuilder bug: failing to report location of 
errors, warnings and hints

My recipe for that type of errors is use of ant script that calls mxmlc 
(with -verbose flag). Usually i want comment some lines to find 
uncatchable error.
rw
Matthew OMeara wrote:
>
> My FlexBuilder IDE has been broken for about 3 weeks now, and I have
> chosen to ignore it as all obvious fixes failed to right the ship.
>
> At some point 3 weeks ago, FlexBuilder completely botched my project
> files and left me in a state where I could no longer launch the
> application. So I created a new project from scratch (as a shell),
> ported the code over and got working again.
>
> Everything works fine now except the debugger which shows me the
> errors and warnings but fails to report which .as or .mxml file the
> error occured in. It only reports the line number, and of course the
> links (dbl click to go there) fail, as Flex Builder is missing the
> filename and itself has no idea where to send me to.
>
> I know others have faced this issue already, but the fix remains
> unclear.
>
> Any help appreciated, because it is tiring surfing the files to find
> the lines of code taht are failing.
>
> Thanks
>
> Matthew
>
>  



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








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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


  1   2   >