RE: [flexcoders] ShowDataTip makes charts impossible to destroy arrgghh!

2008-05-15 Thread Sunil Bannur
Not sure, how you are cleaning up your charts, but datatips are part of
the systemManger.toolTipChildren.

The best way to get rid of datatips is to position the mouse pointer
where there are no items, which would make the number of datatips on the
chart to be zero, which will remove the existing datatip children in
InstanceCache's set count method by calling removeChild method.

 

The src of datavisualization (which has charts, advanced data grid)
should be in your sdk\lib\DMV-source.jar, which should get extracted
once you apply your license.

 

-Sunil

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan
Sent: Thursday, May 15, 2008 11:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ShowDataTip makes charts impossible to destroy
arrgghh!

 

hi-

we are working on using the Profiler in FlexBuilder 3 to improve our
app's memory use. We have a number of charts using flex charting, and
we are trying to destroy them when they are no longer in use. This
involves cleaning up a tangled web of references to get them out of
memory.

this works fine, except for charts which have the showDataTips
property enabled. When the chart has been moused over and the dataTip
shown, destruction becomes impossible! I suspect this is b/c the
dataTip still exists and is bound to the chart, thus "holding" the
chart itself in memory even when it has been set to null and removed.

Does anyone have any clue how to eliminate the dataTip so we can get
the chart out of memory? As a side note, it would greatly help if we
could access the source of Pie or another chart-- we have the
Professional licenses which give us charting, but we only get the code
in swc form? Is there any way to see the source?

thanks!
Ryan

 

<><>

[flexcoders] Releasdate for flash player 10

2008-05-15 Thread Harald Dehn
is there allready a time shedule for the final release?

Harald


[flexcoders] Re: How do I dispatch an "everything" PropertyChangeEvent on this?

2008-05-15 Thread Josh McDonald
Once again, two seconds after I post, the answer pops into my head... And as
usual, the (simple) solution for anybody trawling the list in future:

[Bindable(event="populated")]
public class FooBar extends EventDispatcher  {

...

//Pay attention to me!
dispatchEvent(new Event("populated"));


-J

On Fri, May 16, 2008 at 4:30 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

> Hi guys,
>
> Disclaimer: this is probably a stupid question, but I've been trying to
> figure this out for way too long!
>
> I've got some code that does all sorts of things to this.foo, this.bar, and
> this.baz etc etc. At the moment I'm dispatching several standard
> PropertyChangeEvents as I change fields. What I'd like to do is once I've
> finished all my voodoo, dispatch a single event that says "everything needs
> to be updated", but I need to do it to this rather than on a reference in a
> parent object, as it's a non-visual component that has no idea where it sits
> in the object graph.
>
> I *know* there's a simple solution to this...
>
> -J
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]




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

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


[flexcoders] How do I dispatch an "everything" PropertyChangeEvent on this?

2008-05-15 Thread Josh McDonald
Hi guys,

Disclaimer: this is probably a stupid question, but I've been trying to
figure this out for way too long!

I've got some code that does all sorts of things to this.foo, this.bar, and
this.baz etc etc. At the moment I'm dispatching several standard
PropertyChangeEvents as I change fields. What I'd like to do is once I've
finished all my voodoo, dispatch a single event that says "everything needs
to be updated", but I need to do it to this rather than on a reference in a
parent object, as it's a non-visual component that has no idea where it sits
in the object graph.

I *know* there's a simple solution to this...

-J

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

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


[flexcoders] How to create line series dynamically.

2008-05-15 Thread Swamy Nathan
Hi Folks, I am using the xml like data1.xml















and my MXML code is






  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  
  
  

  
  
  
  

  
  
  
  

  
  
  
  
  
  
  

  
 




The line chart is come nice. My Question is how to create the dynamic line
series, when i change the xml like

 with out changing the mxml code.

please any one reply me

-- 
Thanks & Regards
Swaminathan. M


[flexcoders] Re: Keeping certain attributes of the updateDisplayList while extending Label

2008-05-15 Thread Shun Chu
Thanks again.

Yeah, I tried that as well. But it doesn't return the resized height
but a uniformed height of 18 pixels instead.

Is there no other way to capture the height after it's been drawn? I
have done the following:

var grid1:DataGrid = DataGrid(DataGridListData(listData).owner);
trace(grid1.getExplicitOrMeasuredHeight());

It returns the height of the datagrid.

trace(getExplicitOrMeasuredHeight());

It returns the 18 px height I mentioned earlier and truncates whatever
data that is beyond the 1st line.

I have also tried various other "get" and "measure" methods to no avail.

I may be naive, but is there a way to capture "grid1.[height of each
data cell]" and pass that as argument?

Thanks.

--- In flexcoders@yahoogroups.com, "Ben Clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> Maybe try 
getExplicitOrMeasuredWidth/Height()
> in drawRect()
> 
> Ben
> 
> 
> 
> On Thu, May 15, 2008 at 4:10 PM, Shun Chu <[EMAIL PROTECTED]> wrote:
> 
> >   Thanks for your suggestion. I did call the
> > "super.updateDisplayList()". Specifically, I am implementing what's
> > beeing shown here:
> >
> >
http://butterfliesandbugs.wordpress.com/2007/07/11/using-an-itemrenderer-to-change-the-background-of-a-datagrid-cell/
> >
> > I am guessing that the itemRenderer is being overridden with the the
> > "unscaledWidth" and "unscaledHeight" arguments in the "g.drawRect"
> > method. And it's drawing with the unscaled numbers. Is there a way to
> > somehow catch the resized height/width and pass those as arguments
> > instead?
> >
> > Thanks.
> >
> > --- In flexcoders@yahoogroups.com ,
> > "ben.clinkinbeard"
> >
> >  wrote:
> > >
> > > You need to call super.updateDisplayList() in your override.
> > >
> > > Ben
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
, "Shun
> > Chu"  wrote:
> > > >
> > > > Hi,
> > > >
> > > > I have extended the Label class by overriding the protected method
> > > > "updateDisplayList". The purpose was to allow showing
different cell
> > > > colors in a dataGrid by checking the value of each dataField
(if x >
> > > > 10, fill with green... etc).
> > > >
> > > > Now, the problem is, by overriding the "updateDisplayList"
method, I
> > > > lost the ability to scale the height of each a row when
there's more
> > > > data than the width allows. Or is there another way to do this
without
> > > > affecting the ability to scale?
> > > >
> > > > I am relatively new to Flex, so any useful comments are
appreciated.
> > > > Thank you.
> > > >
> > >
> >
> >  
> >
>




[flexcoders] "Cannot install featurecom.adobe.flexbuilder.feature.standalone 3.0.194161"

2008-05-15 Thread barry.beattie
just downloaded and tried to install FB3.

not good news. First time ever I've had a failure.

The error said it could not update the plug-ins into Eclipse

the problem could be my end: the SOE of my workstation has me set up
as an "almost" admin ... but not fully (and I can't change it -
although I can install other software: firefox, Apache, Coldfusion, etc)

so I'm looking for a work-around.

suggestions?

thanx
barry.b




!SESSION 2008-05-16 14:52:03.667
---
eclipse.buildId=unknown
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AU
Framework arguments:  -application
org.eclipse.update.core.standaloneUpdate -command install -from
file:\C:\Program Files\Adobe\Flex Builder
3\com.adobe.flexbuilder.update.site/ -featureId
com.adobe.flexbuilder.feature.standalone -version 3.0.194161
Command-line arguments:  -application
org.eclipse.update.core.standaloneUpdate -command install -from
file:\C:\Program Files\Adobe\Flex Builder
3\com.adobe.flexbuilder.update.site/ -featureId
com.adobe.flexbuilder.feature.standalone -version 3.0.194161

!ENTRY org.eclipse.update.core 4 0 2008-05-16 14:52:06.710
!MESSAGE Cannot install
featurecom.adobe.flexbuilder.feature.standalone 3.0.194161




Re: [flexcoders] dragAndDrop in DataGrid and HList? How?

2008-05-15 Thread Carlo Gulliani
ok, thanks


- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 10:58:48 PM
Subject: RE: [flexcoders] dragAndDrop in DataGrid and HList? How?


FlexStore example has drag&drop I
think.
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Carlo Gulliani
Sent: Thursday, May 15, 2008 12:45
AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders]
dragAndDrop in DataGrid and HList? How?
 
I mean how can I use drag
and drop for canvas component?
so, I have canvas and datagrid, I wanna dragging item from datagrid and drop it
to my Canvas. I see Canvas hasn't property of drag and drop, but has
dragComplete and dragDrop functions. How to make so, that i could take my item
from datagrid and place it to canvas or if I dropped my item on canvas then
call some function?
- Original Message

From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, May 15, 2008 1:35:26 AM
Subject: RE: [flexcoders] dragAndDrop in DataGrid and HList? How?
I’m not sure I understand your current problem.
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Carlo Gulliani
Sent: Wednesday, May 14, 2008 4:02
AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders]
dragAndDrop in DataGrid and HList? How?
 
nobody know how to
solution this idea?
- Original
Message 
From: Carlo Gulliani 
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, May 13, 2008 10:37:29 PM
Subject: Re: [flexcoders] dragAndDrop in DataGrid and HList? How?
thanks, will be
trying tomorrov, i understand drag and drop working in datagrid and
listcollection' s components. and theoretical, can i use construction such as
wrote Lee Brimelov in his blog www.gotoandlearn. com. I mean create sprite
object and to set it drop property and when i dropped my item, i.e item from
datagrid, then create new any object, for example canvas with some elements?
- Original
Message 
From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, May 13, 2008 9:45:29 PM
Subject: RE: [flexcoders] dragAndDrop in DataGrid and HList? How?
The data object that got dropped ends up in the dataProvider, and
the Image will pull a value from that dataObject based on labelField or
labelFunction of the HList
 
 
  


  

[flexcoders] invalid column widths in DG before render.

2008-05-15 Thread aceoohay
I have written a bit of code that generates the xml needed to display 
an Excel Workbook with multiple worksheets. I have created a tabbed 
panel with 5 different grids one per panel.

One of the features of the spreadsheet class is to grab the width of 
each column and create the same size column in Excel, this works well, 
except if the grid has not been displayed. In other words every tab 
that you display, the coresponding grid widths convert to Excel fine, 
the ones that you have not clicked get the data properly, but the sizes 
are very small, but not all the same size.

To get the size of the column I use;

Math.ceil(dg.columns[i].width)

Any clues as to what might be going on, or better yet how to solve it?

Paul



RE: [flexcoders] Position Menu under LinkButton

2008-05-15 Thread Alex Harui
Menus get parented by the systemManager so you have to translate to its
coordinate space
 
var pt = new Point(0,0);
pt = linkButton.localToGlobal(pt)
menu.show(pt.x, pt.y)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hess
Sent: Thursday, May 15, 2008 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Position Menu under LinkButton



Hi Folks,
 
I am trying to position a Menu under a help LinkButton to give the user
the help options. I thought I could use the link buttons x y (minus the
height and width of the button) to position the menu in the middle under
the button but it is not working. The LinkButton is a child of an HBox
and its x y is always 0. I have been able to position the menu where the
mouse x,y at time of click was (using Application.application.mouseX,Y)
but I would prefer to have the menu always show at the same position
relative to the button.
 
Does anyone know how I can do this?
 
Cheers,

Greg
 
 
 
 

 


[flexcoders] ContextMenuEvent over a List

2008-05-15 Thread Michael Slinn
I want to detect if the user right-clicked over a list item.  The
following throws an error (mouseEventToItemRenderer wants a
MouseEvent, not a ContextMenuEvent, and the cast to MouseEvent is
illegal), but the following code shows what I mean:

private function handleMenuSelect(event:ContextMenuEvent):void {
   var renderer:IListItemRenderer = mouseEventToItemRenderer(event as
MouseEvent);
   if (renderer==null) {
   trace("clicked on empty part of list");
   } else {
   trace("clicked on list item");
   var value:Object = listItemRenderer.data;
   var dropInListItemRenderer:IDropInListItemRenderer =
IDropInListItemRenderer(listItemRenderer);
   currentRow = dropInListItemRenderer.listData.rowIndex;
   }
}

What is the right way of doing this?

Mike



[flexcoders] Re: RTMP port 2038

2008-05-15 Thread meteatamel
It is possible. In your Flex app, you can create a ChannelSet and add
an RTMPChannel to it with the url that has the port, and then assign
that ChannelSet to your Flex component (RemoteObject,
Producer/Consumer, HTTPService/WebService, DataServcice). 

Check out the Actionscript API for these classes.

-Mete

--- In flexcoders@yahoogroups.com, "Robert Csiki" <[EMAIL PROTECTED]> wrote:
>
> 
> Is it possible to change this port value in LCDS without the need to
> rebuild the SWF?
> 
> Thanks.
>




RE: [flexcoders] Flex Messaging Service + Drag and Drop List Component

2008-05-15 Thread Seth Hodgson
Hi Jeffrey,

You shouldn't attempt to send UI components from one app to another; you just 
need to send enough info to the peer for it to simulate the same behaviors as 
you're doing locally. There's no out-of-the-box support for synchronizing the 
UI of your Flex app across peers.

Try sending identifiers for the component you're dragging, as well as for the 
drop target. In your messageHandler() method in the receiving app, use these 
identifiers to get references to the local UI components that match, and 
reparent the 'dragged' component under the local 'drop target' component. The 
reparenting could be simple and direct, and you could try to animate it once 
you get the basic scenario working if you wanted (you know where the 'dragged' 
component starts and where it ends up so maybe you could do a straight line 
animation to simulate the original drag and drop). Sorry, don't have time to 
code up anything at the moment.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey 
Walker
Sent: Thursday, May 15, 2008 3:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Messaging Service + Drag and Drop List Component

Thanks Seth, this helps a lot. But I am unclear on exactly what should be sent 
to the server inside of AsyncMessage. Below I have my drop handler and message 
handler. I am very new to Flex and I do not understand what to do in the 
message handler (i.e., where to set the received data) so that the consumers 
can actually see the drag an drop action happening. What do you mean by animate 
the item dragged along the simple path? I am using the built in drag and drop 
capabilities of ther List component. Can you please help me with my code? Thanks

private function dragDropHandler(event:DragEvent):void 
    {
        
        // Get the drop target component 
    var dropTarget:List = event.currentTarget as List;

   //Get dragged item 
   var draggedItem:CustomImageRenderer = event.draggedItem as 
CustomImageRenderer;

   //Send the message to the server 
  message = new AsyncMessage();
  message.headers.dropTarget = dropTarget;
  message.headers.draggedItem = draggedItem;
  producer.send(message);
    
    }

    private function messageHandler(event:MessageEvent):void
            {
                //WHAT DO I DO HERE?
                
            }

-- Jeffrey
On Thu, May 15, 2008 at 3:14 PM, Seth Hodgson <[EMAIL PROTECTED]> wrote:
You can put anything you like into the body, or headers, of an AsyncMessage; a 
string, a number, an anonymous Object, a typed Object (if you use a typed 
Object be sure to tag it with [RemoteClass] metadata). You can control which 
subscribed Consumers receive the message by using the Consumer.selector 
property (a SQL-92 expression evaluated on the server against the headers of 
incoming messages; if the message headers satisfy the expression the message 
will be delivered to the Consumer), or by using the Consumer.subtopic property 
to subscribe to a subtopic (or range of subtopics) within a destination and 
using the Producer.subtopic property to control which specific subtopic sent 
messages go to.

When building 'screen-sharing' style applications like this, you need to really 
keep network latency in mind. Some GUI frameworks will 'summarize' events 
before handing off to even local processing (i.e. collapsing a bunch of 
individual key strokes into a summary string containing all the characters 
typed since the last event dispatch and just dispatching that single event). 
This becomes even more important when you're considering sending lots of high 
frequency events over the network to peers.

In this case, I'd recommend sending a single message to subscribed peers on 
drop complete, indicating which component was dragged and dropped along with 
its final location. You can then either just reparent the corresponding 
component immediately on the receiving peer, or animate it along a simple path. 
There are lots of options with this sort of thing, but you shouldn't try to 
generate and send a message for each pixel it is dragged.

Hope that helps,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jeffreyr6915
Sent: Wednesday, May 14, 2008 11:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Messaging Service + Drag and Drop List Component


I have a 2 list components in which I have enabled drag and drop
(dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
dragDrop="dragDropHandler(event)"). So, I am able to drag and drop the
List items (which I have a custom itemRenderer for). I am also using
flex messaging service (Flex data services) so that a change made in
one connected client/browser is propagated to all other connected
browsers. I would like to be able to drag an item from one list to
another (in one brows

RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Gordon Smith
I think there is a conceptual distinction between the runtime type of an
AS3 value and the compile-time type of a var or parameter that holds
such a value.

 

The 'is' operator works on values. A value like 5 'is' both an int, a
uint, and a Number because it is a legal value in the set of possible
values for each of these types.

 

But I would expect a var declared as

 

var u:uint;

 

to report itself via describeType() as a uint, just like int and Number
do. It seems like a bug that it doesn't.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Whitelock
Sent: Thursday, May 15, 2008 3:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to tell if variable is an int, uint, or a
Number?

 

Thanks for the suggestion, but it still considers an int to be a uint
if the int is positive.

--- In flexcoders@yahoogroups.com 
, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> try using a dictionary instead of object
> 
> 
> - Original Message 
> From: Paul Whitelock <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com  
> Sent: Thursday, May 15, 2008 4:11:19 PM
> Subject: [flexcoders] Re: How to tell if variable is an int, uint,
or a Number?
> 
> 
> Well, it turns out that doesn't work either if the int is positive. If
> an int is positive all of the follow tests return true:
> 
> var testInt:int = 5;
> var obj:Object = testInt;
> 
> obj is int -> true
> obj is uint -> true
> obj is Number -> true
> 
> So, I'm back to assuming there is no way to tell an int from a
uint.
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "Paul Whitelock"  wrote:
> >
> > I found another way that seems to work (not sure why though):
> > 
> > var testUint:uint = 1;
> > var testInt:int = -1;
> > var testNumber:Number = 1.1;
> > 
> > var obj:Object = testUint;
> > 
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> > 
> > Output:
> > uint: true
> > int: false
> > Number: false
> > 
> > obj = testInt;
> > 
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> > 
> > Output:
> > 
> > uint: false
> > int: true
> > Number: false
> > 
> > obj = testNumber;
> > 
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> > 
> > Output:
> > uint: false
> > int: false
> > Number: true
> > 
> > 
> > --- In [EMAIL PROTECTED] ups.com, "Paul Whitelock"  wrote:
> > >
> > > Thanks! That did help, but it doesn't seem to work for a uint.
Here's
> > > my test code:
> > > 
> > > var testUint:uint = 1;
> > > var testInt:int = -1;
> > > var testNumber:Number = 1.1;
> > > var testString:String = "test";
> > > var testDate:Date = new Date();
> > > var testArray:Array = new Array();
> > > 
> > > var test:Array = [testUint, testInt, testNumber, testString,
testDate,
> > > testArray];
> > > 
> > > for (var i:uint = 0; i < test.length; i++) {
> > > var typeInfo:String = describeType( test[i]). @name.toString( );
> > > trace(typeInfo) ;
> > > }
> > > 
> > > And here's the output:
> > > 
> > > int
> > > int
> > > Number
> > > String
> > > Date
> > > Array
> > > 
> > > I'm guessing there's no way to identify a uint -- is that correct?
> > > 
> > > 
> > > --- In [EMAIL PROTECTED] ups.com, "Alex Harui"  wrote:
> > > >
> > > > There is code that might help in
> > > > DataGrid.as: itemEditorItemEd itEndHandler
> > > > 
> > > >  _ _ __
> > > > 
> > > > From: [EMAIL PROTECTED] ups.com
> > [mailto:[EMAIL PROTECTED] ups.com] On
> > > > Behalf Of Paul Whitelock
> > > > Sent: Thursday, May 15, 2008 12:31 PM
> > > > To: [EMAIL PROTECTED] ups.com
> > > > Subject: [flexcoders] How to tell if variable is an int, uint,
or a
> > > > Number?
> > > > 
> > > > 
> > > > 
> > > > I have a situation where an untyped variable is passed in a
method
> > > > call and I need to determine the data type for the variable. My
> first
> > > > thought was to use typeof, but typeof returns "number" for an
int,
> > > > uint, or a Number. The operator "is" will not work on
primitives.
> > > > 
> > > > Is there any way to determine the data type of an untyped
primitive
> > > > object?
> > > >
> > >
> >
>

 



RE: [flexcoders] Flash Player 10 is in prerelease!

2008-05-15 Thread Gordon Smith
> Does this imply Shockwave is falling into oblivion?

 

I doubt it, although I'm not in regular contact with that team any more.
(I used to work on Director for about 10 years before Flex.)

 

> For the next iteration of AS, please consider enums and typed
collections

 

The future of EcmaScript is being hashed out by standards committees, in
which Adobe participates. The ES4 spec won't be finished until late this
year at the earliest... too late for Flash Player 10. However, FP10 does
include a typed Vector class. For example, you can declare something to
be Vector., Vector., etc. We'll be making use of this
in new APIs for Flex 4.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Marcus Engene
Sent: Thursday, May 15, 2008 12:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flash Player 10 is in prerelease!

 

Gordon Smith wrote:
>
> http://labs.adobe.com/technologies/flashplayer10/
 
>
> 
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
> 
>
Hurra! I see you have h/w supported 3d! Does this imply Shockwave is 
falling into oblivion?

For the next iteration of AS, please consider enums and typed 
collections (even the Java 1.5 way of doing it is better than nothing). 
The lack of enums makes type safe api:s much harder, something your API 
shows too.

Best regards,
Marcus

 



RE: [flexcoders] Re: Problem with RTMP

2008-05-15 Thread Maciek Sakrejda
Hmm, that's interesting. Can one do that for the application context
root as well? 


-Original Message-
From: Seth Hodgson <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Problem with RTMP
Date: Thu, 15 May 2008 15:53:57 -0700

Alternately, you can build your Channels and ChannelSet in ActionScript
as your app starts up and assign that to your components (e.g.
RemoteObject, DataService, etc.). If you do this you either need to
hardcode URLs for your server (or servers in a cluster) into your code,
or make a request somewhere to fetch them dynamically. It's a chicken
and egg problem :) But you don't necessarily need to compile them in via
the -services mxmlc compiler flag.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Thursday, May 15, 2008 3:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with RTMP

Whenever you change that port, you need to rebuild the Flex app, as this
port value is burnt into the SWF. Someone please correct me if I'm
wrong.

--- In flexcoders@yahoogroups.com, "Madhu Bhat P" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> I have been working on the LCDS from past 4 months. I have an
> issue deploying more than two flex (with java) applications in
> weblogic. Whenever i start the app server it throws an exception
>
> flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
> encountered a fatal exception starting up: Address already in use:
> bind
>
>
> So changed the Port Number of RTMP of one of the application in the
> services-config.xml to 2038. After doing this error didnt reoccur,
> but the application started behaving weird.
> Initially the data would come properly but after the  minutes> specified in the services-config.xml the request sent from
> the frontend was not going to the backend.
>
> Can anyone help me in this regard, its an major issue with my project
>
> Thanks in Adavnce
>




 




RE: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled

2008-05-15 Thread Seth Hodgson
Not sure :) I'd suggest adding a comment to that bug asking this very question.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert 
Csiki
Sent: Thursday, May 15, 2008 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response 
with MTOM enabled

 
The issue had been logged logged a while back:
https://bugs.adobe.com/jira/browse/SDK-12723
How many votes does it need to get fixed?
Thanks, Robert

--- In flexcoders@yahoogroups.com, "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> No SOAP attachment specifications are currently supported; if an enhancement 
> request hasn't been logged, go ahead and log one.
> 
> Seth
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> Robert Csiki
> Sent: Monday, May 12, 2008 3:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response 
> with MTOM enabled
> 
> Hi there,
> 
> Is MTOM still unsupported, in Flex3? I'm still getting the same type of
> error, looks like Flex can't decode SOAP responses encoded MTOM.
> 
> Robert
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" pfarland@ wrote:
> >
> > There are no plans right now, but it's worth logging an enhancement
> > reques! t and then getting people to vote for it.
> >
> > http://bugs.adobe.com/flex/
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Peter Connolly
> > Sent: Friday, July 27, 2007 6:33 PM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] RPC Fault, Error #1088 when receiving SOAP
> > response with MTOM enabled
> >
> >
> > Any plans on adding support for it?
> >
> >
> >
> > On 7/27/07, Peter Farland pfarland@ wrote:
> >
> > Flex does not support MTOM as yet.
> >
>
 


RE: [flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-15 Thread Gordon Smith
I don't think the Player team has released any docs on the new APIs yet.
For now, they're mainly interested in developers using FP10 for
compatibility testing.

 

Gordon Smith

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, May 14, 2008 11:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flash Player 10 is in prerelease!

 

Is there a new api to play with?

--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> http://labs.adobe.com/technologies/flashplayer10/
 
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
>

 



RE: [flexcoders] RTMP port 2038

2008-05-15 Thread Seth Hodgson
Create your RTMPChannel in ActionScript and assign it to your components for 
use. When you want to change its URL, invoke disconnectAll() on your 
ChannelSet, update your RTMPChannel's URL, and reconnect (by making a remoting 
call, issuing a DataService fill, etc.)

I'm not sure what the use case is here though? Distributing a swf that will 
work against various servers which may be running their RTMP endpoints on 
different ports?

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert 
Csiki
Sent: Thursday, May 15, 2008 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RTMP port 2038

Is it possible to change this port value in LCDS without the need to rebuild 
the SWF?
Thanks.
 


[flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Paul Whitelock
Thanks for the suggestion, but it still considers an int to be a uint
if the int is positive.


--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> try using a dictionary instead of object
> 
> 
> - Original Message 
> From: Paul Whitelock <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, May 15, 2008 4:11:19 PM
> Subject: [flexcoders] Re: How to tell if variable is an int, uint,
or a Number?
> 
> 
> Well, it turns out that doesn't work either if the int is positive. If
> an int is positive all of the follow tests return true:
> 
> var testInt:int = 5;
> var obj:Object = testInt;
> 
> obj is int -> true
> obj is uint -> true
> obj is Number -> true
> 
> So, I'm back to assuming there is no way to tell an int from a uint.
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "Paul Whitelock"  wrote:
> >
> > I found another way that seems to work (not sure why though):
> > 
> > var testUint:uint = 1;
> > var testInt:int = -1;
> > var testNumber:Number = 1.1;
> > 
> > var obj:Object = testUint;
> > 
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> > 
> > Output:
> > uint: true
> > int: false
> > Number: false
> > 
> > obj = testInt;
> > 
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> > 
> > Output:
> > 
> > uint: false
> > int: true
> > Number: false
> > 
> > obj = testNumber;
> > 
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> > 
> > Output:
> > uint: false
> > int: false
> > Number: true
> > 
> > 
> > --- In [EMAIL PROTECTED] ups.com, "Paul Whitelock"  wrote:
> > >
> > > Thanks! That did help, but it doesn't seem to work for a uint.
Here's
> > > my test code:
> > > 
> > > var testUint:uint = 1;
> > > var testInt:int = -1;
> > > var testNumber:Number = 1.1;
> > > var testString:String = "test";
> > > var testDate:Date = new Date();
> > > var testArray:Array = new Array();
> > > 
> > > var test:Array = [testUint, testInt, testNumber, testString,
testDate,
> > > testArray];
> > > 
> > > for (var i:uint = 0; i < test.length; i++) {
> > >   var typeInfo:String = describeType( test[i]). @name.toString( );
> > >   trace(typeInfo) ;
> > > }
> > > 
> > > And here's the output:
> > > 
> > > int
> > > int
> > > Number
> > > String
> > > Date
> > > Array
> > > 
> > > I'm guessing there's no way to identify a uint -- is that correct?
> > > 
> > > 
> > > --- In [EMAIL PROTECTED] ups.com, "Alex Harui"  wrote:
> > > >
> > > > There is code that might help in
> > > > DataGrid.as: itemEditorItemEd itEndHandler
> > > > 
> > > >  _ _ __
> > > > 
> > > > From: [EMAIL PROTECTED] ups.com
> > [mailto:[EMAIL PROTECTED] ups.com] On
> > > > Behalf Of Paul Whitelock
> > > > Sent: Thursday, May 15, 2008 12:31 PM
> > > > To: [EMAIL PROTECTED] ups.com
> > > > Subject: [flexcoders] How to tell if variable is an int, uint,
or a
> > > > Number?
> > > > 
> > > > 
> > > > 
> > > > I have a situation where an untyped variable is passed in a method
> > > > call and I need to determine the data type for the variable. My
> first
> > > > thought was to use typeof, but typeof returns "number" for an int,
> > > > uint, or a Number. The operator "is" will not work on primitives.
> > > > 
> > > > Is there any way to determine the data type of an untyped
primitive
> > > > object?
> > > >
> > >
> >
>




RE: [flexcoders] Re: Problem with RTMP

2008-05-15 Thread Seth Hodgson
Alternately, you can build your Channels and ChannelSet in ActionScript as your 
app starts up and assign that to your components (e.g. RemoteObject, 
DataService, etc.). If you do this you either need to hardcode URLs for your 
server (or servers in a cluster) into your code, or make a request somewhere to 
fetch them dynamically. It's a chicken and egg problem :) But you don't 
necessarily need to compile them in via the -services mxmlc compiler flag.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert 
Csiki
Sent: Thursday, May 15, 2008 3:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with RTMP


Whenever you change that port, you need to rebuild the Flex app, as this
port value is burnt into the SWF. Someone please correct me if I'm
wrong.

--- In flexcoders@yahoogroups.com, "Madhu Bhat P" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> I have been working on the LCDS from past 4 months. I have an
> issue deploying more than two flex (with java) applications in
> weblogic. Whenever i start the app server it throws an exception
>
> flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
> encountered a fatal exception starting up: Address already in use:
> bind
>
>
> So changed the Port Number of RTMP of one of the application in the
> services-config.xml to 2038. After doing this error didnt reoccur,
> but the application started behaving weird.
> Initially the data would come properly but after the  minutes> specified in the services-config.xml the request sent from
> the frontend was not going to the backend.
>
> Can anyone help me in this regard, its an major issue with my project
>
> Thanks in Adavnce
>
 


Re: [flexcoders] Strategies for reducing size of Flex SWF?

2008-05-15 Thread Robert Stehwien
You can link the Flex framework as a runtime shared library (RSL).  This
creates a framework_xxx.swf and .swz file that contain the entire flex
framework instead of including the components you use in your application.
You application becomes smaller but the framework is pretty big.  The
advantage is flash players cache the framework so once someone loads that
version of the framework, they never need it again.

In Flex Builder you change the framework linkage to RSL in the "Flex Builder
Path" | "Library Path" properties of the project.

http://www.onflex.org/ted/2008/01/flex-3-framework-caching.php
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs#How_to_use_the_Flex_Framework_as_an_RSL

On Thu, May 15, 2008 at 1:18 PM, <[EMAIL PROTECTED]> wrote:

>  I'm building simple apps in Flex as I'm quite comfortable with the
> development environment compared with Flash. I've noticed that the simplest
> possible application – just an
>  - weighs in around
> 148KB when exported as a release build.
>
> What, if any, strategies are available for optimizing the size of SWFs
> produced by Flex?
>
> Best regards,
>
> Roger 
>


[flexcoders] Re: Flex Messaging Service + Drag and Drop List Component

2008-05-15 Thread jeffreyr6915
--- In flexcoders@yahoogroups.com, "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> You can put anything you like into the body, or headers, of an
AsyncMessage; a string, a number, an anonymous Object, a typed Object
(if you use a typed Object be sure to tag it with [RemoteClass]
metadata). You can control which subscribed Consumers receive the
message by using the Consumer.selector property (a SQL-92 expression
evaluated on the server against the headers of incoming messages; if
the message headers satisfy the expression the message will be
delivered to the Consumer), or by using the Consumer.subtopic property
to subscribe to a subtopic (or range of subtopics) within a
destination and using the Producer.subtopic property to control which
specific subtopic sent messages go to.
> 
> When building 'screen-sharing' style applications like this, you
need to really keep network latency in mind. Some GUI frameworks will
'summarize' events before handing off to even local processing (i.e.
collapsing a bunch of individual key strokes into a summary string
containing all the characters typed since the last event dispatch and
just dispatching that single event). This becomes even more important
when you're considering sending lots of high frequency events over the
network to peers.
> 
> In this case, I'd recommend sending a single message to subscribed
peers on drop complete, indicating which component was dragged and
dropped along with its final location. You can then either just
reparent the corresponding component immediately on the receiving
peer, or animate it along a simple path. There are lots of options
with this sort of thing, but you shouldn't try to generate and send a
message for each pixel it is dragged.
> 
> Hope that helps,
> Seth
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of jeffreyr6915
> Sent: Wednesday, May 14, 2008 11:01 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex Messaging Service + Drag and Drop List
Component
> 
> I have a 2 list components in which I have enabled drag and drop
> (dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
> dragDrop="dragDropHandler(event)"). So, I am able to drag and drop the
> List items (which I have a custom itemRenderer for). I am also using
> flex messaging service (Flex data services) so that a change made in
> one connected client/browser is propagated to all other connected
> browsers. I would like to be able to drag an item from one list to
> another (in one browser) and see that drag and drop happen (as it is
> happening) in all other connected browsers. I know that I need to send
> an AsyncMessage to the server via a producer, and receive from the
> server via a consumer.
> 
> Question: What do I include in the async message in order to see the
> list items drag/drop as it is happening in all connected browsers? 
> 
> Can someone help me with code/example? Thanks
>
Thanks Seth, this helps a lot. But I am unclear on exactly what should
be sent to the server inside of AsyncMessage. Below I have my drop
handler and message handler. I am very new to Flex and I do not
understand what to do in the message handler (i.e., where to set the
received data) so that the consumers can actually see the drag an drop
action happening. What do you mean by animate the item dragged along
the simple path? I am using the built in drag and drop capabilities of
ther List component. Can you please help me with my code? Thanks

private function dragDropHandler(event:DragEvent):void
{
   
// Get the drop target component
var dropTarget:List = event.currentTarget as List;

   //Get dragged item
   var draggedItem:CustomImageRenderer = event.draggedItem
as CustomImageRenderer;

   //Send the message to the server
  message = new AsyncMessage();
  message.headers.dropTarget = dropTarget;
  message.headers.draggedItem = draggedItem;
  producer.send(message);
   
}

private function messageHandler(event:MessageEvent):void
{
//WHAT DO I DO HERE?
   
}

-- Jeffrey





Re: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Sherif Abdou
try using a dictionary instead of object


- Original Message 
From: Paul Whitelock <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 4:11:19 PM
Subject: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?


Well, it turns out that doesn't work either if the int is positive. If
an int is positive all of the follow tests return true:

var testInt:int = 5;
var obj:Object = testInt;

obj is int -> true
obj is uint -> true
obj is Number -> true

So, I'm back to assuming there is no way to tell an int from a uint.


--- In [EMAIL PROTECTED] ups.com, "Paul Whitelock" <[EMAIL PROTECTED]> wrote:
>
> I found another way that seems to work (not sure why though):
> 
> var testUint:uint = 1;
> var testInt:int = -1;
> var testNumber:Number = 1.1;
> 
> var obj:Object = testUint;
> 
> trace ("uint: " + (obj is uint && obj is int));
> trace ("int: " + (obj is int && !(obj is uint)));
> trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
uint)));
> 
> Output:
> uint: true
> int: false
> Number: false
> 
> obj = testInt;
> 
> trace ("uint: " + (obj is uint && obj is int));
> trace ("int: " + (obj is int && !(obj is uint)));
> trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
uint)));
> 
> Output:
> 
> uint: false
> int: true
> Number: false
> 
> obj = testNumber;
> 
> trace ("uint: " + (obj is uint && obj is int));
> trace ("int: " + (obj is int && !(obj is uint)));
> trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
uint)));
> 
> Output:
> uint: false
> int: false
> Number: true
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "Paul Whitelock"  wrote:
> >
> > Thanks! That did help, but it doesn't seem to work for a uint. Here's
> > my test code:
> > 
> > var testUint:uint = 1;
> > var testInt:int = -1;
> > var testNumber:Number = 1.1;
> > var testString:String = "test";
> > var testDate:Date = new Date();
> > var testArray:Array = new Array();
> > 
> > var test:Array = [testUint, testInt, testNumber, testString, testDate,
> > testArray];
> > 
> > for (var i:uint = 0; i < test.length; i++) {
> > var typeInfo:String = describeType( test[i]). @name.toString( );
> > trace(typeInfo) ;
> > }
> > 
> > And here's the output:
> > 
> > int
> > int
> > Number
> > String
> > Date
> > Array
> > 
> > I'm guessing there's no way to identify a uint -- is that correct?
> > 
> > 
> > --- In [EMAIL PROTECTED] ups.com, "Alex Harui"  wrote:
> > >
> > > There is code that might help in
> > > DataGrid.as: itemEditorItemEd itEndHandler
> > > 
> > >  _ _ __
> > > 
> > > From: [EMAIL PROTECTED] ups.com
> [mailto:[EMAIL PROTECTED] ups.com] On
> > > Behalf Of Paul Whitelock
> > > Sent: Thursday, May 15, 2008 12:31 PM
> > > To: [EMAIL PROTECTED] ups.com
> > > Subject: [flexcoders] How to tell if variable is an int, uint, or a
> > > Number?
> > > 
> > > 
> > > 
> > > I have a situation where an untyped variable is passed in a method
> > > call and I need to determine the data type for the variable. My
first
> > > thought was to use typeof, but typeof returns "number" for an int,
> > > uint, or a Number. The operator "is" will not work on primitives.
> > > 
> > > Is there any way to determine the data type of an untyped primitive
> > > object?
> > >
> >
>




  

Re: [flexcoders] Flex Messaging Service + Drag and Drop List Component

2008-05-15 Thread Jeffrey Walker
Thanks Seth, this helps a lot. But I am unclear on exactly what should be
sent to the server inside of AsyncMessage. Below I have my drop handler and
message handler. I am very new to Flex and I do not understand what to do in
the message handler (i.e., where to set the received data) so that the
consumers can actually see the drag an drop action happening. What do you
mean by animate the item dragged along the simple path? I am using the built
in drag and drop capabilities of ther List component. Can you please help me
with my code? Thanks

private function dragDropHandler(event:DragEvent):void
{

// Get the drop target component
var dropTarget:List = event.currentTarget as List;

   //Get dragged item
   var draggedItem:CustomImageRenderer = event.draggedItem as
CustomImageRenderer;

   //Send the message to the server
  message = new AsyncMessage();
  message.headers.dropTarget = dropTarget;
  message.headers.draggedItem = draggedItem;
  producer.send(message);

}

private function messageHandler(event:MessageEvent):void
{
//WHAT DO I DO HERE?

}

-- Jeffrey

On Thu, May 15, 2008 at 3:14 PM, Seth Hodgson <[EMAIL PROTECTED]> wrote:

>   You can put anything you like into the body, or headers, of an
> AsyncMessage; a string, a number, an anonymous Object, a typed Object (if
> you use a typed Object be sure to tag it with [RemoteClass] metadata). You
> can control which subscribed Consumers receive the message by using the
> Consumer.selector property (a SQL-92 expression evaluated on the server
> against the headers of incoming messages; if the message headers satisfy the
> expression the message will be delivered to the Consumer), or by using the
> Consumer.subtopic property to subscribe to a subtopic (or range of
> subtopics) within a destination and using the Producer.subtopic property to
> control which specific subtopic sent messages go to.
>
> When building 'screen-sharing' style applications like this, you need to
> really keep network latency in mind. Some GUI frameworks will 'summarize'
> events before handing off to even local processing (i.e. collapsing a bunch
> of individual key strokes into a summary string containing all the
> characters typed since the last event dispatch and just dispatching that
> single event). This becomes even more important when you're considering
> sending lots of high frequency events over the network to peers.
>
> In this case, I'd recommend sending a single message to subscribed peers on
> drop complete, indicating which component was dragged and dropped along with
> its final location. You can then either just reparent the corresponding
> component immediately on the receiving peer, or animate it along a simple
> path. There are lots of options with this sort of thing, but you shouldn't
> try to generate and send a message for each pixel it is dragged.
>
> Hope that helps,
> Seth
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> jeffreyr6915
> Sent: Wednesday, May 14, 2008 11:01 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Flex Messaging Service + Drag and Drop List Component
>
>
> I have a 2 list components in which I have enabled drag and drop
> (dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
> dragDrop="dragDropHandler(event)"). So, I am able to drag and drop the
> List items (which I have a custom itemRenderer for). I am also using
> flex messaging service (Flex data services) so that a change made in
> one connected client/browser is propagated to all other connected
> browsers. I would like to be able to drag an item from one list to
> another (in one browser) and see that drag and drop happen (as it is
> happening) in all other connected browsers. I know that I need to send
> an AsyncMessage to the server via a producer, and receive from the
> server via a consumer.
>
> Question: What do I include in the async message in order to see the
> list items drag/drop as it is happening in all connected browsers?
>
> Can someone help me with code/example? Thanks
>
>  
>


Re: [flexcoders] Can AIR app get Workstation Credentials?

2008-05-15 Thread Douglas Knudsen
yes, on the wild internet I 100% agree.  But what about a inTRAnet with
strict IT rules in place?   The amount of time wasted logging in to the 25+
apps a day some enterprise employees have to use is expensive.

DK

On Thu, May 15, 2008 at 4:00 PM, Rick Winscot <[EMAIL PROTECTED]>
wrote:

>Crossing authentication barriers is always a hot topic… and the
> EncryptedStore would be a great place to mount a single sign-on solution for
> AIR apps. However – to keep this all in perspective – remember that any
> authentication method that allows credentials acquired during a handshake to
> be 'handled' outside the originating system isn't secure… it's a very bad
> idea.
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Kevin Aebig
> *Sent:* Thursday, May 15, 2008 10:56 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] Can AIR app get Workstation Credentials?
>
>
>
> Isn't this a perfect usage of the EncryptedStore feature? Why not save the
> login credentials when the person first logs in, than save them via the
> EncryptedStore for the remaining usage.
>
>
>
> !k
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Geoffrey
> *Sent:* Wednesday, May 14, 2008 3:11 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Can AIR app get Workstation Credentials?
>
>
>
> Our flex app requires a login(HTML page) before launching the main
> app(the SWF does not handle the logging in).
>
> Converting to an AIR app and I was wondering if I could get the logged
> in user's credentials from the workstation so we don't require a login
> screen.
>
>   
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled

2008-05-15 Thread Robert Csiki



The issue had been logged logged a while back:

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


How many votes does it need to get fixed?

Thanks, Robert


--- In flexcoders@yahoogroups.com, "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> No SOAP attachment specifications are currently supported; if an
enhancement request hasn't been logged, go ahead and log one.
>
> Seth
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Robert Csiki
> Sent: Monday, May 12, 2008 3:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP
response with MTOM enabled
>
> Hi there,
>
> Is MTOM still unsupported, in Flex3? I'm still getting the same type
of
> error, looks like Flex can't decode SOAP responses encoded MTOM.
>
> Robert
>
> --- In flexcoders@yahoogroups.com, "Peter Farland" pfarland@ wrote:
> >
> > There are no plans right now, but it's worth logging an enhancement
> > request and then getting people to vote for it.
> >
> > http://bugs.adobe.com/flex/
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Peter Connolly
> > Sent: Friday, July 27, 2007 6:33 PM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] RPC Fault, Error #1088 when receiving SOAP
> > response with MTOM enabled
> >
> >
> > Any plans on adding support for it?
> >
> >
> >
> > On 7/27/07, Peter Farland pfarland@ wrote:
> >
> > Flex does not support MTOM as yet.
> >
>




[flexcoders] RTMP port 2038

2008-05-15 Thread Robert Csiki

Is it possible to change this port value in LCDS without the need to
rebuild the SWF?

Thanks.



[flexcoders] Re: Problem with RTMP

2008-05-15 Thread Robert Csiki

Whenever you change that port, you need to rebuild the Flex app, as this
port value is burnt into the SWF. Someone please correct me if I'm
wrong.


--- In flexcoders@yahoogroups.com, "Madhu Bhat P" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> I have been working on the LCDS from past 4 months. I have an
> issue deploying more than two flex (with java) applications in
> weblogic. Whenever i start the app server it throws an exception
>
> flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
> encountered a fatal exception starting up: Address already in use:
> bind
>
>
> So changed the Port Number of RTMP of one of the application in the
> services-config.xml to 2038. After doing this error didnt reoccur,
> but the application started behaving weird.
> Initially the data would come properly but after the  minutes> specified in the services-config.xml the request sent from
> the frontend was not going to the backend.
>
> Can anyone help me in this regard, its an major issue with my project
>
> Thanks in Adavnce
>





RE: [flexcoders] Flex Messaging Service + Drag and Drop List Component

2008-05-15 Thread Seth Hodgson
You can put anything you like into the body, or headers, of an AsyncMessage; a 
string, a number, an anonymous Object, a typed Object (if you use a typed 
Object be sure to tag it with [RemoteClass] metadata). You can control which 
subscribed Consumers receive the message by using the Consumer.selector 
property (a SQL-92 expression evaluated on the server against the headers of 
incoming messages; if the message headers satisfy the expression the message 
will be delivered to the Consumer), or by using the Consumer.subtopic property 
to subscribe to a subtopic (or range of subtopics) within a destination and 
using the Producer.subtopic property to control which specific subtopic sent 
messages go to.

When building 'screen-sharing' style applications like this, you need to really 
keep network latency in mind. Some GUI frameworks will 'summarize' events 
before handing off to even local processing (i.e. collapsing a bunch of 
individual key strokes into a summary string containing all the characters 
typed since the last event dispatch and just dispatching that single event). 
This becomes even more important when you're considering sending lots of high 
frequency events over the network to peers.

In this case, I'd recommend sending a single message to subscribed peers on 
drop complete, indicating which component was dragged and dropped along with 
its final location. You can then either just reparent the corresponding 
component immediately on the receiving peer, or animate it along a simple path. 
There are lots of options with this sort of thing, but you shouldn't try to 
generate and send a message for each pixel it is dragged.

Hope that helps,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jeffreyr6915
Sent: Wednesday, May 14, 2008 11:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Messaging Service + Drag and Drop List Component

I have a 2 list components in which I have enabled drag and drop
(dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
dragDrop="dragDropHandler(event)"). So, I am able to drag and drop the
List items (which I have a custom itemRenderer for). I am also using
flex messaging service (Flex data services) so that a change made in
one connected client/browser is propagated to all other connected
browsers. I would like to be able to drag an item from one list to
another (in one browser) and see that drag and drop happen (as it is
happening) in all other connected browsers. I know that I need to send
an AsyncMessage to the server via a producer, and receive from the
server via a consumer.

Question: What do I include in the async message in order to see the
list items drag/drop as it is happening in all connected browsers? 

Can someone help me with code/example? Thanks
 


Re: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread EECOLOR
The best I could do is posted below. I could not make a distinction between
uint and int if the int is positive. To me it is unclear if the value
is represented as signed or unsigned integer within the player itself. It
is clear however that a positive (int) value is automatically serialized to
a uint if writen as an object.

What I would like to know however is why you would need this. I am very
curious what that knowledge could be usefull for.


*package
{
import flash.display.Sprite;
import flash.utils.ByteArray;
import flash.utils.getQualifiedClassName;

public class testAS extends Sprite
{
   static public const UNDEFINED:int = 0x00;
   static public const NULL:int = 0x01;
   static public const FALSE:int = 0x02;
   static public const TRUE:int = 0x03;
   static public const INT:int = 0x04;
   static public const NUMBER:int = 0x05;
   static public const STRING:int = 0x06;
   static public const XML_DOC:int = 0x07;
   static public const DATE:int = 0x08;
   static public const ARRAY:int = 0x09;
   static public const OBJECT:int = 0x0A;
   static public const XML:int = 0x0B;
   static public const BYTE_ARRAY:int = 0x0C;
   public function testAS()
   {
  var a:uint = 1;
  var b:int = -1;
  var c:Number = -1.5;

  var d:Object = new Object();
  var e:Array = new Array();
  var f:Sprite = new Sprite();

  trace(_getType(a));
  trace(_getType(b));
  trace(_getType(c));

  trace(_getType(d));
  trace(_getType(e));
  trace(_getType(f));
   };

   private function _getType(value:Object):String
   {
  var type:String;

  var ba:ByteArray = new ByteArray();
  ba.writeObject(value);
  ba.position = 0;

  switch (ba.readByte())
  {
 case UNDEFINED:
   type = "undefined";
   break;
case NULL:
  type = "null";
  break;
 case FALSE:
  type = "Boolean";
  break;
 case INT:
  type = (ba.readByte() >> 31) && 1 ? "int" : "uint";
  break;
 case NUMBER:
  type = "Number";
  break;
 case STRING:
  type = "String";
  break;
 case XML_DOC:
  type = "XMLDocument";
  break;
 case DATE:
  type = "Date";
  break;
 case ARRAY:
  type = "Array";
  break;
 case OBJECT:
  type = getQualifiedClassName(value);
  break;
 case XML:
  type = "XML";
  break;
 case BYTE_ARRAY:
  type = "ByteArray";
  break;
 default:
  type = "unknown";
  break;
   };

   return type + " - " + getQualifiedClassName(value);
};*


Greetz Erik


On 5/15/08, Paul Whitelock <[EMAIL PROTECTED]> wrote:
>
> Well, it turns out that doesn't work either if the int is positive. If
> an int is positive all of the follow tests return true:
>
> var testInt:int = 5;
> var obj:Object = testInt;
>
> obj is int -> true
> obj is uint -> true
> obj is Number -> true
>
> So, I'm back to assuming there is no way to tell an int from a uint.
>
>
> --- In flexcoders@yahoogroups.com , "Paul
> Whitelock" <[EMAIL PROTECTED]> wrote:
> >
> > I found another way that seems to work (not sure why though):
> >
> > var testUint:uint = 1;
> > var testInt:int = -1;
> > var testNumber:Number = 1.1;
> >
> > var obj:Object = testUint;
> >
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> >
> > Output:
> > uint: true
> > int: false
> > Number: false
> >
> > obj = testInt;
> >
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> >
> > Output:
> >
> > uint: false
> > int: true
> > Number: false
> >
> > obj = testNumber;
> >
> > trace ("uint: " + (obj is uint && obj is int));
> > trace ("int: " + (obj is int && !(obj is uint)));
> > trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
> uint)));
> >
> > Output:
> > uint: false
> > int: false
> > Number: true
> >
> >
> > --- In flexcoders@yahoogroups.com , "Paul
> Whitelock"  wrote:
> > >
> > > Thanks! That did help, but it doesn't seem to work for a uint. Here's
> > > my test code:
> > >
> > > var testUint:uint = 1;
> > > var testInt:int = -1;
> > > var testNumber:Number = 1.1;
> > > var testString:String = "test";
> > > var testDate:Date = new Date();
> > > var testArray:Array = new Array();
> > >
> > > var test:Array = [testUint, testInt, testNumber, testString, testDate,
> > > testArray];
> > >
> > > for (var i:uint = 0; i < test.length; i++) {
> > > var typeInfo:String = describeType(test[i])[EMAIL PROTECTED]();
> > > trace(typeInfo);
> > > }
> > >
> > > And here's the output:

RE: [flexcoders] Can AIR app get Workstation Credentials?

2008-05-15 Thread Kevin Aebig
Yeah... with that I completely agree. I was assuming that he came to terms
with the fact that his login *should* be in the application itself instead
of breaking it up into pieces.

 

Cheers,

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Winscot
Sent: Thursday, May 15, 2008 4:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Can AIR app get Workstation Credentials?

 

Crossing authentication barriers is always a hot topic. and the
EncryptedStore would be a great place to mount a single sign-on solution for
AIR apps. However - to keep this all in perspective - remember that any
authentication method that allows credentials acquired during a handshake to
be 'handled' outside the originating system isn't secure. it's a very bad
idea. 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin Aebig
Sent: Thursday, May 15, 2008 10:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Can AIR app get Workstation Credentials?

 

Isn't this a perfect usage of the EncryptedStore feature? Why not save the
login credentials when the person first logs in, than save them via the
EncryptedStore for the remaining usage.

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey
Sent: Wednesday, May 14, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can AIR app get Workstation Credentials?

 

Our flex app requires a login(HTML page) before launching the main
app(the SWF does not handle the logging in). 

Converting to an AIR app and I was wondering if I could get the logged
in user's credentials from the workstation so we don't require a login
screen.

 



[flexcoders] NJFLEX Inaugural Meeting.

2008-05-15 Thread Dave
NJFLEX Inaugural Meeting.    
Posted on May 15th, 2008 by The Mad Admin
Where:

157 Broad Street,  Suite 211
Red Bank, NJ 07701

 
  Map


TIME:

Wednesday, May  21st @ 7pm



Give  Away and Pizza/Drinks, and Meet the other Flex People!!!

This meeting will be very "introductory," and is geared more
towards a meeting the other members, rather than an educational
discussion.

Next month we'll start up the  speakers.



Please  RSVP on www.NJFlex.com   to ensure we
have enough food  and chairs for everyone.



Thanks,









[flexcoders] Position Menu under LinkButton

2008-05-15 Thread Greg Hess
Hi Folks,

I am trying to position a Menu under a help LinkButton to give the user the
help options. I thought I could use the link buttons x y (minus the height
and width of the button) to position the menu in the middle under the button
but it is not working. The LinkButton is a child of an HBox and its x y is
always 0. I have been able to position the menu where the mouse x,y at time
of click was (using Application.application.mouseX,Y) but I would prefer to
have the menu always show at the same position relative to the button.

Does anyone know how I can do this?

Cheers,

Greg


RE: [flexcoders] Can AIR app get Workstation Credentials?

2008-05-15 Thread Rick Winscot
Crossing authentication barriers is always a hot topic. and the
EncryptedStore would be a great place to mount a single sign-on solution for
AIR apps. However - to keep this all in perspective - remember that any
authentication method that allows credentials acquired during a handshake to
be 'handled' outside the originating system isn't secure. it's a very bad
idea. 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin Aebig
Sent: Thursday, May 15, 2008 10:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Can AIR app get Workstation Credentials?

 

Isn't this a perfect usage of the EncryptedStore feature? Why not save the
login credentials when the person first logs in, than save them via the
EncryptedStore for the remaining usage.

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey
Sent: Wednesday, May 14, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can AIR app get Workstation Credentials?

 

Our flex app requires a login(HTML page) before launching the main
app(the SWF does not handle the logging in). 

Converting to an AIR app and I was wondering if I could get the logged
in user's credentials from the workstation so we don't require a login
screen.

 



[flexcoders] Re: Include images in SWC via compc

2008-05-15 Thread Richard Rodseth
Are there any good (preferably GUI) tools for inspecting the contents
of SWCs and SWFs. My colleague is still having no luck building the
SWC that I now have working in FlexBuilder.

I have a feeling the key is understanding what Flexbuilder does when
you designate a file (eg "src" in my layout below) as the "main"
source folder. Is there a compc equivalent, or just the -source-path
option?

On Wed, May 14, 2008 at 2:24 PM, Richard Rodseth <[EMAIL PROTECTED]> wrote:
> The good news is I was finally able to build my "Resources" SWC
> (containing images, stylesheets, and properties files that embed
> images) in Flexbuilder. The bad news is for my poor colleague who is
> gallantly doing the continuous integration work (with MSBuild and
> mxmlc/compc).
>
> In Flexbuilder, I ended up with the following layout:
>
> resourcesproj
> ..locale
> en_US
> ..images.properties
> ..src
> images
> ..zoom.png
> com
> ..stylesheets
> myapp.css
>
> In Flexbuilder, I had the images checked on the Assets tab, and the
> following additional compiler options
>
> -locale en_US -source-path=../locale/{locale}
> -include-resource-bundles=images,UIStrings -include-file myapp.css
> ../stylesheets/myapp.css
>
> Is there really no wildcard way to include all the images in the SWC
> from the command line without  listing them explicitly in a config
> file? I guess Flexbuilder builds a list based on the checkboxes in the
> Assets tab?
>
> The properties files references the images like this
> zoom=Embed("images/zoom.png")
>
> I assume we would have to use images/zoom.png as the name in a
> -include-file directive?
>
> Hoping for better error messages and CI support in Flexbuilder 4...
>


Re: [flexcoders] coldfusion and Flex?

2008-05-15 Thread Mark Shen
Hi Jeff,
I use CF7.02 and I use default services-config. xml .
Do you mean I do not need change FB project setting and Flex codes? I work in 
local pc, I can not install cf 7 and cf 8 in same system ,right?
Thanks
Mark


- Original Message 
From: "Battershall, Jeff" <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 4:39:10 PM
Subject: RE: [flexcoders] coldfusion and Flex?


If you're using CF 7.02, the differences should be mimimal. The
services-config. xml filea now has things broken out into separate files,
so if you've done anything custom there, you'll have a small amount of
work to do.

Set up a dev instance using the developer edition of CF8 and test things
out to be sure.

Jeff

-Original Message-
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
Behalf Of markflex2007
Sent: Thursday, May 15, 2008 3:22 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] coldfusion and Flex?

Hi,

I am working with CF7,Flex and Cairngorm.the application works fine.

My manager want to use CF8 now, I do not have idea what I have to 
change from setting up project to Flex coding etc.

I need to know the steps before I switch cf7 to cf8.

Do you have experience for this.Please give me a hit.

Thanks

Mark

 - - --

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

 


  

[flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Paul Whitelock
Well, it turns out that doesn't work either if the int is positive. If
an int is positive all of the follow tests return true:

var testInt:int = 5;
var obj:Object = testInt;

obj is int -> true
obj is uint -> true
obj is Number -> true

So, I'm back to assuming there is no way to tell an int from a uint.
 

--- In flexcoders@yahoogroups.com, "Paul Whitelock" <[EMAIL PROTECTED]> wrote:
>
> I found another way that seems to work (not sure why though):
> 
> var testUint:uint = 1;
> var testInt:int = -1;
> var testNumber:Number = 1.1;
> 
> var obj:Object = testUint;
> 
> trace ("uint: " + (obj is uint && obj is int));
> trace ("int: " + (obj is int && !(obj is uint)));
> trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
uint)));
> 
> Output:
> uint: true
> int: false
> Number: false
> 
> obj = testInt;
> 
> trace ("uint: " + (obj is uint && obj is int));
> trace ("int: " + (obj is int && !(obj is uint)));
> trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
uint)));
> 
> Output:
> 
> uint: false
> int: true
> Number: false
> 
> obj = testNumber;
> 
> trace ("uint: " + (obj is uint && obj is int));
> trace ("int: " + (obj is int && !(obj is uint)));
> trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is
uint)));
> 
> Output:
> uint: false
> int: false
> Number: true
> 
> 
> --- In flexcoders@yahoogroups.com, "Paul Whitelock"  wrote:
> >
> > Thanks! That did help, but it doesn't seem to work for a uint. Here's
> > my test code:
> > 
> > var testUint:uint = 1;
> > var testInt:int = -1;
> > var testNumber:Number = 1.1;
> > var testString:String = "test";
> > var testDate:Date = new Date();
> > var testArray:Array = new Array();
> > 
> > var test:Array = [testUint, testInt, testNumber, testString, testDate,
> > testArray];
> > 
> > for (var i:uint = 0; i < test.length; i++) {
> > var typeInfo:String = describeType(test[i])[EMAIL PROTECTED]();
> > trace(typeInfo);
> > }
> > 
> > And here's the output:
> > 
> > int
> > int
> > Number
> > String
> > Date
> > Array
> > 
> > I'm guessing there's no way to identify a uint -- is that correct?
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > >
> > > There is code that might help in
> > > DataGrid.as:itemEditorItemEditEndHandler
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Paul Whitelock
> > > Sent: Thursday, May 15, 2008 12:31 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] How to tell if variable is an int, uint, or a
> > > Number?
> > > 
> > >  
> > > 
> > > I have a situation where an untyped variable is passed in a method
> > > call and I need to determine the data type for the variable. My
first
> > > thought was to use typeof, but typeof returns "number" for an int,
> > > uint, or a Number. The operator "is" will not work on primitives.
> > > 
> > > Is there any way to determine the data type of an untyped primitive
> > > object?
> > >
> >
>




Re: [flexcoders] Re: Keeping certain attributes of the updateDisplayList while extending Label

2008-05-15 Thread Ben Clinkinbeard
Maybe try  
getExplicitOrMeasuredWidth/Height()
in drawRect()

Ben



On Thu, May 15, 2008 at 4:10 PM, Shun Chu <[EMAIL PROTECTED]> wrote:

>   Thanks for your suggestion. I did call the
> "super.updateDisplayList()". Specifically, I am implementing what's
> beeing shown here:
>
> http://butterfliesandbugs.wordpress.com/2007/07/11/using-an-itemrenderer-to-change-the-background-of-a-datagrid-cell/
>
> I am guessing that the itemRenderer is being overridden with the the
> "unscaledWidth" and "unscaledHeight" arguments in the "g.drawRect"
> method. And it's drawing with the unscaled numbers. Is there a way to
> somehow catch the resized height/width and pass those as arguments
> instead?
>
> Thanks.
>
> --- In flexcoders@yahoogroups.com ,
> "ben.clinkinbeard"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > You need to call super.updateDisplayList() in your override.
> >
> > Ben
> >
> >
> > --- In flexcoders@yahoogroups.com , "Shun
> Chu"  wrote:
> > >
> > > Hi,
> > >
> > > I have extended the Label class by overriding the protected method
> > > "updateDisplayList". The purpose was to allow showing different cell
> > > colors in a dataGrid by checking the value of each dataField (if x >
> > > 10, fill with green... etc).
> > >
> > > Now, the problem is, by overriding the "updateDisplayList" method, I
> > > lost the ability to scale the height of each a row when there's more
> > > data than the width allows. Or is there another way to do this without
> > > affecting the ability to scale?
> > >
> > > I am relatively new to Flex, so any useful comments are appreciated.
> > > Thank you.
> > >
> >
>
>  
>


RE: [flexcoders] coldfusion and Flex?

2008-05-15 Thread Battershall, Jeff
If you're using CF 7.02, the differences should be mimimal. The
services-config.xml filea now has things broken out into separate files,
so if you've done anything custom there, you'll have a small amount of
work to do.

Set up a dev instance using the developer edition of CF8 and test things
out to be sure.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Thursday, May 15, 2008 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] coldfusion and Flex?


Hi,

I am working with CF7,Flex and Cairngorm.the application works fine.

My manager want to use CF8 now, I do not have idea what I have to 
change from setting up project to Flex coding etc.

I need to know the steps before I switch cf7 to cf8.

Do you have experience for this.Please give me a hit.

Thanks

Mark






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





[flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Paul Whitelock
I found another way that seems to work (not sure why though):

var testUint:uint = 1;
var testInt:int = -1;
var testNumber:Number = 1.1;

var obj:Object = testUint;

trace ("uint: " + (obj is uint && obj is int));
trace ("int: " + (obj is int && !(obj is uint)));
trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is uint)));

Output:
uint: true
int: false
Number: false

obj = testInt;

trace ("uint: " + (obj is uint && obj is int));
trace ("int: " + (obj is int && !(obj is uint)));
trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is uint)));

Output:

uint: false
int: true
Number: false

obj = testNumber;

trace ("uint: " + (obj is uint && obj is int));
trace ("int: " + (obj is int && !(obj is uint)));
trace ("Number: " + ((obj is Number) && !(obj is int) && !(obj is uint)));

Output:
uint: false
int: false
Number: true


--- In flexcoders@yahoogroups.com, "Paul Whitelock" <[EMAIL PROTECTED]> wrote:
>
> Thanks! That did help, but it doesn't seem to work for a uint. Here's
> my test code:
> 
> var testUint:uint = 1;
> var testInt:int = -1;
> var testNumber:Number = 1.1;
> var testString:String = "test";
> var testDate:Date = new Date();
> var testArray:Array = new Array();
>   
> var test:Array = [testUint, testInt, testNumber, testString, testDate,
> testArray];
> 
> for (var i:uint = 0; i < test.length; i++) {
>   var typeInfo:String = describeType(test[i])[EMAIL PROTECTED]();
>   trace(typeInfo);
> }
> 
> And here's the output:
> 
> int
> int
> Number
> String
> Date
> Array
> 
> I'm guessing there's no way to identify a uint -- is that correct?
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > There is code that might help in
> > DataGrid.as:itemEditorItemEditEndHandler
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Paul Whitelock
> > Sent: Thursday, May 15, 2008 12:31 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] How to tell if variable is an int, uint, or a
> > Number?
> > 
> >  
> > 
> > I have a situation where an untyped variable is passed in a method
> > call and I need to determine the data type for the variable. My first
> > thought was to use typeof, but typeof returns "number" for an int,
> > uint, or a Number. The operator "is" will not work on primitives.
> > 
> > Is there any way to determine the data type of an untyped primitive
> > object?
> >
>




[flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Paul Whitelock
Thanks! That did help, but it doesn't seem to work for a uint. Here's
my test code:

var testUint:uint = 1;
var testInt:int = -1;
var testNumber:Number = 1.1;
var testString:String = "test";
var testDate:Date = new Date();
var testArray:Array = new Array();

var test:Array = [testUint, testInt, testNumber, testString, testDate,
testArray];

for (var i:uint = 0; i < test.length; i++) {
var typeInfo:String = describeType(test[i])[EMAIL PROTECTED]();
trace(typeInfo);
}

And here's the output:

int
int
Number
String
Date
Array

I'm guessing there's no way to identify a uint -- is that correct?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There is code that might help in
> DataGrid.as:itemEditorItemEditEndHandler
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Paul Whitelock
> Sent: Thursday, May 15, 2008 12:31 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to tell if variable is an int, uint, or a
> Number?
> 
>  
> 
> I have a situation where an untyped variable is passed in a method
> call and I need to determine the data type for the variable. My first
> thought was to use typeof, but typeof returns "number" for an int,
> uint, or a Number. The operator "is" will not work on primitives.
> 
> Is there any way to determine the data type of an untyped primitive
> object?
>




[flexcoders] Re: Keeping certain attributes of the updateDisplayList while extending Label

2008-05-15 Thread Shun Chu
Thanks for your suggestion. I did call the
"super.updateDisplayList()". Specifically, I am implementing what's
beeing shown here:
http://butterfliesandbugs.wordpress.com/2007/07/11/using-an-itemrenderer-to-change-the-background-of-a-datagrid-cell/

I am guessing that the itemRenderer is being overridden with the the
"unscaledWidth" and "unscaledHeight" arguments in the "g.drawRect"
method. And it's drawing with the unscaled numbers. Is there a way to
somehow catch the resized height/width and pass those as arguments
instead?

Thanks.

--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> You need to call super.updateDisplayList() in your override.
> 
> Ben
> 
> 
> --- In flexcoders@yahoogroups.com, "Shun Chu"  wrote:
> >
> > Hi,
> > 
> > I have extended the Label class by overriding the protected method
> > "updateDisplayList". The purpose was to allow showing different cell
> > colors in a dataGrid by checking the value of each dataField (if x >
> > 10, fill with green... etc).
> > 
> > Now, the problem is, by overriding the "updateDisplayList" method, I
> > lost the ability to scale the height of each a row when there's more
> > data than the width allows. Or is there another way to do this without
> > affecting the ability to scale?
> > 
> > I am relatively new to Flex, so any useful comments are appreciated.
> > Thank you.
> >
>




[flexcoders] Email permission

2008-05-15 Thread Yahoo Mail


Ricardo Araujo




  



[flexcoders] Re: Show tooltip on click - possible?

2008-05-15 Thread Borek
Thanks for this, I'm sure monkey patching would help but I want to
avoid it if possible. Unfortunately, it seems that monkey patching is
the only way here. Someone from the Flex team could pick this up...

Borek

--- In flexcoders@yahoogroups.com, "wesley.petrowski"
<[EMAIL PROTECTED]> wrote:
>
> 
> It's possible, but ugly.  I did a similar thing in a project I'm working
> on where I wanted errorTips to show on focusIn/focusOut.  I created a
> subclass of ToolTipManagerImpl and overrode the registerErrorTip method
> - you'd want to override registerToolTip instead.  The current
> implementation adds mouseOver/Out listeners to decide when to show/hide
> the tooltip.  You can change this to add a click listener instead.
> 
> Then, you have to monkey patch ToolTipManager so that it uses your
> ToolTipManagerImpl subclass.  In the getter for the impl property, just
> change it to create a new instance of your subclass instead of checking
> the Singleton registry.
> 
> 
> 
> That should be a start, anyway, if you're up to some hacks.
> 
> --- In flexcoders@yahoogroups.com, "Borek"  wrote:
> >
> > My situation is that users can hover over a help icon and get a nice
> > help tooltip. One problem is that this tooltip isn't displayed
> > immediately (there is a 0.5s lag by default) which is easily fixed by
> > showDelay property on ToolTipManager. However, there is this second
> > problem: some users click the help icon instead of just hovering over
> > it. This will unfortunately hide the tooltip so the action is exactly
> > opposite of what the users expected.
> >
> > The was to fix this would be something like
> >
> > 
> >
> > which would trigger tooltip creation as usual. Unfortunately, there is
> > no method like that [in Flex 2] and I couldn't find any feasible
> > replacement. Is there any solution to this?
> >
> > N.B. ToolTipManager.createToolTip() doesn't help - first of all, it
> > creates an instance of ToolTip (which is hardcoded which I think is
> > wrong - it should respect ToolTipManager.toolTipClass IMO). Second,
> > this method is for generic creation of arbitraty tooltips which is not
> > my case - I like my tooltip and just want to find a way to trigger it
> > other than hovering over the UIComponent with a mouse.
> >
> > P.P.S In the internal ToolTipManagerImls class, there is a (private)
> > method createTip(). Well that sounds good except it's a private method
> > in an internal class...
> >
>




RE: [flexcoders] How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Alex Harui
There is code that might help in
DataGrid.as:itemEditorItemEditEndHandler

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Whitelock
Sent: Thursday, May 15, 2008 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to tell if variable is an int, uint, or a
Number?

 

I have a situation where an untyped variable is passed in a method
call and I need to determine the data type for the variable. My first
thought was to use typeof, but typeof returns "number" for an int,
uint, or a Number. The operator "is" will not work on primitives.

Is there any way to determine the data type of an untyped primitive
object?

 



[flexcoders] Re: Can AIR app get Workstation Credentials?

2008-05-15 Thread Geoffrey
I've decided to create a login panel to allow the user to login first,
but I've run into a snag.  We're using acegi as our security layer,
and it intercepts all requests checking for state.

I thought that I could just call the j_acegi_security_check.jsp
directly supplying it with user and password, but it returns the
acegilogin.jsp page.  I noticed that my initial request to the
j_acegi_security_check.jsp page had no jsessionid associated with it,
so I thought that was the problem.  To test that idea I created
another HTTPSession request that gets spit out upon
applicationComplete to a bogus page on the server.  Now my AIR session
seems to have the JSESSIONID cookie set because when I send the real
'logon' request, I see the same JSESSIONID in the header.

Unfortunately, this didn't work either because I still get the
acegilogin.jsp page returned to me.

The only real difference I see between the web and AIR requests is
that the 'Referer' is different in the header.  From AIR, the referer
is "app:/AirMain.swf", from the web version of our app it's
"acegilogin.jsp;jsessionid=098CEB40890309539C7E50EF410B54DE".

Does anyone have experience integrating AIR and acegi?


--- In flexcoders@yahoogroups.com, "Kevin Aebig" <[EMAIL PROTECTED]> wrote:
>
> Isn't this a perfect usage of the EncryptedStore feature? Why not
save the
> login credentials when the person first logs in, than save them via the
> EncryptedStore for the remaining usage.
> 
>  
> 
> !k
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Geoffrey
> Sent: Wednesday, May 14, 2008 3:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Can AIR app get Workstation Credentials?
> 
>  
> 
> Our flex app requires a login(HTML page) before launching the main
> app(the SWF does not handle the logging in). 
> 
> Converting to an AIR app and I was wondering if I could get the logged
> in user's credentials from the workstation so we don't require a login
> screen.
>




[flexcoders] How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Paul Whitelock
I have a situation where an untyped variable is passed in a method
call and I need to determine the data type for the variable. My first
thought was to use typeof, but typeof returns "number" for an int,
uint, or a Number. The operator "is" will not work on primitives.

Is there any way to determine the data type of an untyped primitive
object?



[flexcoders] Strategies for reducing size of Flex SWF?

2008-05-15 Thread rogerhoward
I¹m building simple apps in Flex as I¹m quite comfortable with the
development environment compared with Flash. I¹ve noticed that the simplest
possible application ­ just an
 - weighs in around
148KB when exported as a release build.

What, if any, strategies are available for optimizing the size of SWFs
produced by Flex?

Best regards,

Roger


[flexcoders] coldfusion and Flex?

2008-05-15 Thread markflex2007
Hi,

I am working with CF7,Flex and Cairngorm.the application works fine.

My manager want to use CF8 now, I do not have idea what I have to 
change from setting up project to Flex coding etc.

I need to know the steps before I switch cf7 to cf8.

Do you have experience for this.Please give me a hit.

Thanks

Mark





RE: [flexcoders] Re: Calling static function on Class instance

2008-05-15 Thread Alex Harui
Yes.  Static are not inherited so you have to find the base class that
has the static function.  describeType or getQualifiedSuperClassname()

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Thursday, May 15, 2008 12:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Calling static function on Class instance

 

Going back to my project the ["functionName"] does not work still. the
class reference points to a class that extends a base class. The static
function is in the base class. Is that why it doesn't work?

Thanks

On Thu, May 15, 2008 at 8:24 AM, Giles Roadnight <[EMAIL PROTECTED]
 > wrote:

Thanks Gordon. I got your code to run fine but when I try c.Roadnight()
outside the class I still get a compiler error. c["Roadnight works"]();

I have attached a zip of the project. The compiler error line is
commented out.






On Wed, May 14, 2008 at 6:56 PM, Gordon Smith <[EMAIL PROTECTED]
 > wrote:

Alex meant c.Roadnight() or c["Roadnight"]() if you want to call the
static function. Without the () you get a reference to the function,
rather than the result produced by calling the function.

 

Here is a complete and tested ActionScript app which illustrates four
ways to call a static function on a Class object. It outputs "Roadnight"
four times.

 

package

{

 

import flash.display.Sprite;

 

public class Giles extends Sprite

{

public function Giles()

{

super();

 

var c:Class = Giles;

c.Roadnight();

c["Roadnight"]();

 

var f:Function;

f = c.Roadnight;

f();

f = c["Roadnight"];

f();

}



public static function Roadnight():void

{

trace("Roadnight");

}

}

 

}

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Giles Roadnight
Sent: Wednesday, May 14, 2008 1:03 AM
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Re: Calling static function on Class instance

 

Many thanks for the replies, describeType works great.

I can't get c.Roadnight to work though and for now am having to create
an instance of the class to call the function (which I had to make
non-static).

var selectedTemplateClass:Class = initEvent.frameType;
var xml:XML = selectedTemplateClass.getBlankXML();

gives a compiler error.

var selectedTemplateClass:Class = initEvent.frameType;
var xml:XML = selectedTemplateClass.getBlankXML;

does not give a compiler error but xml remains null

I also tried

var selectedTemplateClass:Class = initEvent.frameType;
var blankXMLFunction:Function =
selectedTemplateClass.getBlankXML;
var xml:XML = blankXMLFunction();

but blankXMLFunction remains null.

At the moment I have it working with a fresh instance of the class but
I'd rather not do it this way if possible.

Thanks

Giles

On Tue, May 13, 2008 at 6:32 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

You mean you have:

 

pulbic class Giles

{

public static function Roadnight():void

{

}

}

 

And

 

var c:Class = Giles;

 

 

If so it is just just be c.Roadnight or c["RoadNight"]

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Giles Roadnight
Sent: Tuesday, May 13, 2008 8:44 AM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Re: Calling static function on Class instance

 

Along the same lines - how do I get the class name from a Class object.
If I do toString() I get [class HeaderImage1]. Do I just have to extract
the string from that?

Thanks again

Giles

On Tue, May 13, 2008 at 4:21 PM, Giles Roadnight <[EMAIL PROTECTED]
 > wrote:

Hi All

I have a class (BaseTemplate) that is extended to become lots of
different Template classes.

I have a list class that takes an array of Class objects to allow a user
to select a template (the renderer creates an instance of the class).

When I click an item in the list I want to call a static function on the
Template.

When I have a Class object is there anyway of calling a static function
on that class without creating an instance of the class?

Thanks

-- 
Giles Roadnight
http://giles.roadnight.name   




-- 
Giles Roadnight
http://giles.roadnight.name   




-- 
Giles Roadnight
http://giles.roadnight.name   




-- 
Giles Roadnight
http://giles.roadnight.name 

RE: [flexcoders] dragAndDrop in DataGrid and HList? How?

2008-05-15 Thread Alex Harui
FlexStore example has drag&drop I think.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carlo 
Gulliani
Sent: Thursday, May 15, 2008 12:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] dragAndDrop in DataGrid and HList? How?

 

I mean how can I use drag and drop for canvas component?
so, I have canvas and datagrid, I wanna dragging item from datagrid and drop it 
to my Canvas. I see Canvas hasn't property of drag and drop, but has 
dragComplete and dragDrop functions. How to make so, that i could take my item 
from datagrid and place it to canvas or if I dropped my item on canvas then 
call some function?

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 1:35:26 AM
Subject: RE: [flexcoders] dragAndDrop in DataGrid and HList? How?

I’m not sure I understand your current problem.

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Carlo Gulliani
Sent: Wednesday, May 14, 2008 4:02 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] dragAndDrop in DataGrid and HList? How?

 

nobody know how to solution this idea?

- Original Message 
From: Carlo Gulliani 
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, May 13, 2008 10:37:29 PM
Subject: Re: [flexcoders] dragAndDrop in DataGrid and HList? How?

thanks, will be trying tomorrov, i understand drag and drop working in datagrid 
and listcollection' s components. and theoretical, can i use construction such 
as wrote Lee Brimelov in his blog www.gotoandlearn. com. I mean create sprite 
object and to set it drop property and when i dropped my item, i.e item from 
datagrid, then create new any object, for example canvas with some elements?

- Original Message 
From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, May 13, 2008 9:45:29 PM
Subject: RE: [flexcoders] dragAndDrop in DataGrid and HList? How?

The data object that got dropped ends up in the dataProvider, and the Image 
will pull a value from that dataObject based on labelField or labelFunction of 
the HList

 

 

 

 



[flexcoders] Re: ComboBox Data Display woes, Getting [object Object] instead of what I need

2008-05-15 Thread bredwards358
Never mind, I did a bit of messing around and found the solution to be
that I simply had to set the labelField property to whatever column
header I was binding the box to.



[flexcoders] ComboBox Data Display woes, Getting [object Object] instead of what I need

2008-05-15 Thread bredwards358
The AIR application that I'm currently developing, gets its data from
a SQL Lite database and does it through whatever select statement it
needs which then puts the results into an array collection variable
which is then passed into the dataProvider for the control. So far,
its just been data grids, but when I try to put the array collection
variable into a combobox, I get this when I trace it:

[object Object],[object Object],[object Object]

I get the same result when I trace it on a data grid so I know that
it's working properly, I'm guessing something's not being liked when
it comes to combo boxes. The select statement is simply selecting one
column from the desired table. I am wondering if there is something
needed to be done to get the selected data to display properly in the
comboBox instead of [object Object],[object Object],[object Object].
More than likely I'm hoping this is something simple I'm just
overlooking, thanks in advance.

EDIT: Here's the XML tag for my comboBox



model.classData is the ArrayCollection which stores the data from the
insert statement



[flexcoders] dynamic headertext default value and dynamic value > How on initial load of flex

2008-05-15 Thread Jason B
so ive got a grid to show search results
now if i hit search i return the STATIONSEARCH_HEADER value as "search
results 1 of 200"
but on initial load the default text is dataresults :( 
how can i have just a default text of "Search Results" on initial load?





[flexcoders] Getting started with the new text features in Astro?

2008-05-15 Thread Jim Hayes

Great, we now have an sdk to compile flash player 10 (see 
http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x)

My greatest interest is in the new text features, so is there any guide / 
documentation / anything at all as to what the mark up should be?

I have the example from the demo, only cast my eyes over it earlier today but 
it looked fairly basic (Downloading SDK now, so not had a proper look so far).

Can't wait to see what it will do, thanks in advance!

__
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.
__


RE: [flexcoders] Re: Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Jim Hayes



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Andrew Wetmore
Sent: Thu 15/05/2008 17:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bump: problem with missing dB on Mac for AIR app
 

> >
> 
> Our investigations seem to show that the installer can't create a
> subdirectory on Mac in the documents folder, either with the name as
> displayed above or as "OLE" without spaces. If we create the folder
> manually, the installer is able to create the database in it. I am now
> going to switch the installation location to
> "applicationStorageDirectory", with no subdirectory, and see if it
works.
>

Yes, that works!

Now my problem is that I don't know where the
applicationStorageDirectory location is. None of the normal searches
are turning up the database file, although it obviously exists. Does
anyone know what obfuscation is being used? The tutorials indicate a
location in Documents and Settings on the PC, but there is no dB there
for this app.

Thanks in advance.

a

I just traced out the nativePath property of that directory, seemed the easiest 
thing to do.



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

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

[flexcoders] ShowDataTip makes charts impossible to destroy arrgghh!

2008-05-15 Thread Ryan
hi-

we are working on using the Profiler in FlexBuilder 3 to improve our
app's memory use. We have a number of charts using flex charting, and
we are trying to destroy them when they are no longer in use. This
involves cleaning up a tangled web of references to get them out of
memory.


this works fine, except for charts which have the showDataTips
property enabled. When the chart has been moused over and the dataTip
shown, destruction becomes impossible! I suspect this is b/c the
dataTip still exists and is bound to the chart, thus "holding" the
chart itself in memory even when it has been set to null and removed.

Does anyone have any clue how to eliminate the dataTip so we can get
the chart out of memory? As a side note, it would greatly help if we
could access the source of Pie or another chart-- we have the
Professional licenses which give us charting, but we only get the code
in swc form? Is there any way to see the source?

thanks!
Ryan



[flexcoders] Re: Keeping certain attributes of the updateDisplayList while extending Label

2008-05-15 Thread ben.clinkinbeard
You need to call super.updateDisplayList() in your override.

Ben


--- In flexcoders@yahoogroups.com, "Shun Chu" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I have extended the Label class by overriding the protected method
> "updateDisplayList". The purpose was to allow showing different cell
> colors in a dataGrid by checking the value of each dataField (if x >
> 10, fill with green... etc).
> 
> Now, the problem is, by overriding the "updateDisplayList" method, I
> lost the ability to scale the height of each a row when there's more
> data than the width allows. Or is there another way to do this without
> affecting the ability to scale?
> 
> I am relatively new to Flex, so any useful comments are appreciated.
> Thank you.
>




[flexcoders] Re: Drop Handler

2008-05-15 Thread Steve Ashton

To get a reference to the source tree:
event.dragInitiator

To get a reference to the items selected/dragged from source tree:
event.dragSource.dataForFormat("treeItems") as Array


-Steve Ashton



--- In flexcoders@yahoogroups.com, "Rafael Faria" 
<[EMAIL PROTECTED]> wrote:
>
> When i drop an item from a tree to another, on the drop handler how do
> i get the SOURCE tree object? 
> 
> i know how to get the target (event.target or event.currentTarget) but
> how do i get the source?
> 
> Rafael
>




[flexcoders] Re: insidious gray bar in FULLSCREEN with OS X Air app

2008-05-15 Thread jhno

> Is it the status bar?

It was, indeed, the status bar. Yippee!

Thanks for the fast response... I really appreciate it. 

suds




[flexcoders] Re: Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Andrew Wetmore
--- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>
> 
> > >
> > 
> > Our investigations seem to show that the installer can't create a
> > subdirectory on Mac in the documents folder, either with the name as
> > displayed above or as "OLE" without spaces. If we create the folder
> > manually, the installer is able to create the database in it. I am now
> > going to switch the installation location to
> > "applicationStorageDirectory", with no subdirectory, and see if it
> works.
> >
> 
> Yes, that works!
> 
> Now my problem is that I don't know where the
> applicationStorageDirectory location is. None of the normal searches
> are turning up the database file, although it obviously exists. Does
> anyone know what obfuscation is being used? The tutorials indicate a
> location in Documents and Settings on the PC, but there is no dB there
> for this app.
> 
> Thanks in advance.
> 
> a
>

Found it!

documents and settings/[user name]/application data/[funky backwards
address starting with com.cds]/local Store

I should have been able to guess that, i guess.



RE: [flexcoders] Re: DropShadow with WindowedApplication

2008-05-15 Thread Battershall, Jeff
Check this out:

http://coenraets.org/blog/2008/02/salesbuilder-for-air-10/

Gives the exact how-to and good code samples and graphical assets to get
you started.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of quantum_ohm
Sent: Thursday, May 15, 2008 11:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DropShadow with WindowedApplication


Nobody ? :-(




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





[flexcoders] Re: Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Andrew Wetmore

> >
> 
> Our investigations seem to show that the installer can't create a
> subdirectory on Mac in the documents folder, either with the name as
> displayed above or as "OLE" without spaces. If we create the folder
> manually, the installer is able to create the database in it. I am now
> going to switch the installation location to
> "applicationStorageDirectory", with no subdirectory, and see if it
works.
>

Yes, that works!

Now my problem is that I don't know where the
applicationStorageDirectory location is. None of the normal searches
are turning up the database file, although it obviously exists. Does
anyone know what obfuscation is being used? The tutorials indicate a
location in Documents and Settings on the PC, but there is no dB there
for this app.

Thanks in advance.

a



[flexcoders] nvmd black&white, how can i make this a fade transition

2008-05-15 Thread Derrick Anderson
i found a cool post on flexamples.com about how to convert an image to b&w
with ColorMatrixFilter

0.2225
0.7169
0.0606



i want color/b&w in a combobox and when they change it to b&w that i fade to
b&w similar to how xp does it on the logout screen.  i'm not great with
effects and transitions yet, anybody know how i can achieve this?

thanks,
d.


[flexcoders] Keeping certain attributes of the updateDisplayList while extending Label

2008-05-15 Thread Shun Chu
Hi,

I have extended the Label class by overriding the protected method
"updateDisplayList". The purpose was to allow showing different cell
colors in a dataGrid by checking the value of each dataField (if x >
10, fill with green... etc).

Now, the problem is, by overriding the "updateDisplayList" method, I
lost the ability to scale the height of each a row when there's more
data than the width allows. Or is there another way to do this without
affecting the ability to scale?

I am relatively new to Flex, so any useful comments are appreciated.
Thank you.



[flexcoders] black and white print preview

2008-05-15 Thread Derrick Anderson
hey list, i was just working on a reporting app and had a thought.  would it
be possible to give a 'black and white' preview of a ui component?

i realized that many of the reports I'm creating have many colors in the
charts and backgrounds, but that most of the prints are going to be done on
black and white laser printers.  I think it would be neat to give a black
and white view of my reports in my flex app if they specify that is where
they are printing.

anybody know how to do this?

thanks,
d.


[flexcoders] Re: Flash Player 10 Beta

2008-05-15 Thread wesley.petrowski
Even if you don't install it permanently, you could always try it out 
for a day or two, make sure your apps work with the new player.

--- In flexcoders@yahoogroups.com, "Nick Collins" <[EMAIL PROTECTED]> wrote:
>
> You should be fine. The new APIs (IK, 3D transformations, etc.) aren't
> available in Flex, so you won't be using them. This is just a new 
player,
> for now.
> 
> On Thu, May 15, 2008 at 10:34 AM, Nate Pearson <[EMAIL PROTECTED]>
> wrote:
> 
> >   Is it even the slightest good idea for flex developers to install
> > this? I just don't want to build some apps and think they are okay
> > then find out that my users running flash 9 can't use it.
> >
> >  
> >
>




Re: [flexcoders] Flash Player 10 Beta

2008-05-15 Thread Nick Collins
You should be fine. The new APIs (IK, 3D transformations, etc.) aren't
available in Flex, so you won't be using them. This is just a new player,
for now.

On Thu, May 15, 2008 at 10:34 AM, Nate Pearson <[EMAIL PROTECTED]>
wrote:

>   Is it even the slightest good idea for flex developers to install
> this? I just don't want to build some apps and think they are okay
> then find out that my users running flash 9 can't use it.
>
>  
>


[flexcoders] Re: Show tooltip on click - possible?

2008-05-15 Thread wesley.petrowski

It's possible, but ugly.  I did a similar thing in a project I'm working
on where I wanted errorTips to show on focusIn/focusOut.  I created a
subclass of ToolTipManagerImpl and overrode the registerErrorTip method
- you'd want to override registerToolTip instead.  The current
implementation adds mouseOver/Out listeners to decide when to show/hide
the tooltip.  You can change this to add a click listener instead.

Then, you have to monkey patch ToolTipManager so that it uses your
ToolTipManagerImpl subclass.  In the getter for the impl property, just
change it to create a new instance of your subclass instead of checking
the Singleton registry.



That should be a start, anyway, if you're up to some hacks.

--- In flexcoders@yahoogroups.com, "Borek" <[EMAIL PROTECTED]> wrote:
>
> My situation is that users can hover over a help icon and get a nice
> help tooltip. One problem is that this tooltip isn't displayed
> immediately (there is a 0.5s lag by default) which is easily fixed by
> showDelay property on ToolTipManager. However, there is this second
> problem: some users click the help icon instead of just hovering over
> it. This will unfortunately hide the tooltip so the action is exactly
> opposite of what the users expected.
>
> The was to fix this would be something like
>
> 
>
> which would trigger tooltip creation as usual. Unfortunately, there is
> no method like that [in Flex 2] and I couldn't find any feasible
> replacement. Is there any solution to this?
>
> N.B. ToolTipManager.createToolTip() doesn't help - first of all, it
> creates an instance of ToolTip (which is hardcoded which I think is
> wrong - it should respect ToolTipManager.toolTipClass IMO). Second,
> this method is for generic creation of arbitraty tooltips which is not
> my case - I like my tooltip and just want to find a way to trigger it
> other than hovering over the UIComponent with a mouse.
>
> P.P.S In the internal ToolTipManagerImls class, there is a (private)
> method createTip(). Well that sounds good except it's a private method
> in an internal class...
>




[flexcoders] opinion about flex module

2008-05-15 Thread Felipe Fernandes
Hi,

I´m working on an application that by the flex documentation it´s a
great candidate to use flex module.
It´s a big application where the user is only going to use one of its
features each time.
I´ve seen a lot modules topics on this and other lists tha I subscribe
talking about problems with this aproach so I´m not so sure anymore if
it´s a good idea to use it.
Thats why I would like to hear from who has used it what they think about it.
What are the pros and cons? Is it easy to pass information from one
module to another? and things like that.

Thanks in advanced

Felipe


[flexcoders] website

2008-05-15 Thread nihilism machine
can anyone send me a website which has no backend and uses easing,  
just so that i can get an idea of how to structure my mxml file. that  
would be very helpful, especially a site that is one single file.

-e


[flexcoders] Re: Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Andrew Wetmore
--- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, shaun  wrote:
> 
> > 
> > What is the path to your db file?
> > C:\My Documents ain't gunna work..  :)
> >
> 
> Indeed it would not. Here is the declaration:
> 
> var dbFile:File = File.documentsDirectory.resolvePath("Open Learning
> Exchange/OLEcds.db");
> 
> According to Marco Casario's "Flex Solutions" that should do the trick.
>

Our investigations seem to show that the installer can't create a
subdirectory on Mac in the documents folder, either with the name as
displayed above or as "OLE" without spaces. If we create the folder
manually, the installer is able to create the database in it. I am now
going to switch the installation location to
"applicationStorageDirectory", with no subdirectory, and see if it works.




[flexcoders] Flash Player 10 Beta

2008-05-15 Thread Nate Pearson
Is it even the slightest good idea for flex developers to install
this?  I just don't want to build some apps and think they are okay
then find out that my users running flash 9 can't use it.



Re: [flexcoders] Red 5 Flv Player

2008-05-15 Thread Chris Allen

Hi Sajid,

Sorry that I didn't notice this email earlier. Buffering can be  
tricky. ;)


Before you go to far down the line of developing your player, you  
might want to look at the Jedai project first. We are building a whole  
framework and a series of components to work with Red5 and FMS. Please  
ask the guys there about your question, and it might be nice to have  
your help on the project. The FLV Player component would be a needed  
addition to the project.


http://jedai.googlecode.com or contact Project leader Dominick  
Accattato at dominick (at) infrared5.com.


-Chris

On May 8, 2008, at 4:46 AM, Sajid Hussain wrote:



Dudes ,

I m creting Flv player for red 5 , all functions are mostly done but  
I m stuck with its buffering bar . u may say I dont have more  
knwoldge about buffer :P

but could any one suggest how to create buffer bar ?

Sajid
Pakistan


Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
Try it now.







[flexcoders] Fw: Re: Datagrid - Save Funtionality

2008-05-15 Thread Hemkarna
You can send the Array Collection that populates a DataGrid back to
the server. You may opt to convert the object to an XML object or do
what I have done is send Array objects back using AMF to the server
for consumption within your application.

You may want to use Flash Remoting (ColdFusion), BlazeDS (Java, ASP,
etc.) or LCDS to send the object back.

NOTE: If you want you can send dg.dataProvider and dg.columns to the
server these will be available as array of structures.

Enjoy!!!





[flexcoders] Multi-Column HTML Text

2008-05-15 Thread aut0poietic_us
Okay, so I've been googling around and checking the archives for a
while, so I think I know the answer to this one, but wanted to ask the
list:

Does anyone know of a Multi-Column Text field that supports HTML?

Obviously I've seen the MultiColumnTextField in the livedocs, but
that's plain text only. What I need is the ability to display bold,
underline, hyperlinks and lists in the field.

I'm making the guess that such an animal doesn't exist. That said,
anyone have a hint at a strategy for building one? 

jer



[flexcoders] Re: Getting Parent node of xml element

2008-05-15 Thread Steve Ashton
XML objects have a parent():* function.  Something like this may work:

var parent:XML = selectedItem.parent();
if( parent ){ // check for null
  var parentID:String = [EMAIL PROTECTED];
}

-Steve Ashton


--- In flexcoders@yahoogroups.com, "bichara.eric" <[EMAIL PROTECTED]> 
wrote:
>
> Hi All,
> 
> Simple question which im struggling with. I have an xml being used 
as
> the data provider for a tree component for example:
> 
> 
>   
> 
>   
>   
> 
>   
> ;
> 
> When i click on a element of the tree i want to get the ID attribute
> of that element AND the id attribute of the parent node. So if i 
click on
>  then i want to be able to know that the
> parent id is 2. I know how to get the id of the attribute of the
> element i clicked on but not its parent. Any suggestions? Thanks in
> advance
> 
> /Eric
>




[flexcoders] Show tooltip on click - possible?

2008-05-15 Thread Borek
My situation is that users can hover over a help icon and get a nice
help tooltip. One problem is that this tooltip isn't displayed
immediately (there is a 0.5s lag by default) which is easily fixed by
showDelay property on ToolTipManager. However, there is this second
problem: some users click the help icon instead of just hovering over
it. This will unfortunately hide the tooltip so the action is exactly
opposite of what the users expected.

The was to fix this would be something like



which would trigger tooltip creation as usual. Unfortunately, there is
no method like that [in Flex 2] and I couldn't find any feasible
replacement. Is there any solution to this?

N.B. ToolTipManager.createToolTip() doesn't help - first of all, it
creates an instance of ToolTip (which is hardcoded which I think is
wrong - it should respect ToolTipManager.toolTipClass IMO). Second,
this method is for generic creation of arbitraty tooltips which is not
my case - I like my tooltip and just want to find a way to trigger it
other than hovering over the UIComponent with a mouse.

P.P.S In the internal ToolTipManagerImls class, there is a (private)
method createTip(). Well that sounds good except it's a private method
in an internal class...



[flexcoders] Re: Imported skin built using Flash doesn't work well with scale-9 and bitmaps

2008-05-15 Thread João
I think this is an essential feature, and I wonder why it isn't
supported right now. Flex can use scale-9 with directly imported
bitmaps, why shouldn't it work with bitmaps imported from Flash CS3?

I have created the feature request here:
https://bugs.adobe.com/jira/browse/SDK-15575

Please, vote! :)

Thanks,

João Saleiro

PS: In the meanwhile I guess I have to create my bitmap skins on
external files, and set the scale-9 grid by hand on CSS





RE: [flexcoders] Re: insidious gray bar in FULLSCREEN with OS X Air app

2008-05-15 Thread Jim Hayes
I think you're correct, apologies! Off the top of my head is a dreadful
place to come from :-)
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey
Sent: 15 May 2008 15:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: insidious gray bar in FULLSCREEN with OS X Air
app
 
I believe you mean WindowedApplication, not nativeWindow.

--- In flexcoders@yahoogroups.com 
, "Jim Hayes" <[EMAIL PROTECTED]> wrote:
>
> Is it the status bar? If so, set the nativeWindow's showStatusBar =
> false.
> 
> This one got me! (I felt stupid :-( )
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of jhno
> Sent: 15 May 2008 13:52
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] insidious gray bar in FULLSCREEN with OS X Air
app
> 
> Greetings FC's, 
> 
> Running a Flex 3 AIR application in FULLSCREEN mode results in a gray
> bar at the bottom of the screen that I can not, for the life of me,
> get rid of. 
> 
> The bar is clearly the bottom component of an OS X window. I have
> tried adjusting the window settings in x-app.xml, to no avail. The
> problem occurs even with a maximally simple Flex app.
> 
> I have seen this on several different systems and all monitor
> resolutions: it is very consistent. These are OS X 10.5 systems, the
> most recent Flex and AIR downloads from Adobe. 
> 
> Has anybody else seen this problem?
> 
> Thanks big foaming heaps, 
> sudsminimal
> 
> 
> __
> 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.
> __
>
 

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

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

[flexcoders] Re: DropShadow with WindowedApplication

2008-05-15 Thread quantum_ohm
Nobody ? :-(



RE: [flexcoders] Can AIR app get Workstation Credentials?

2008-05-15 Thread Kevin Aebig
Isn't this a perfect usage of the EncryptedStore feature? Why not save the
login credentials when the person first logs in, than save them via the
EncryptedStore for the remaining usage.

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey
Sent: Wednesday, May 14, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can AIR app get Workstation Credentials?

 

Our flex app requires a login(HTML page) before launching the main
app(the SWF does not handle the logging in). 

Converting to an AIR app and I was wondering if I could get the logged
in user's credentials from the workstation so we don't require a login
screen.

 



[flexcoders] Re: Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Andrew Wetmore
--- In flexcoders@yahoogroups.com, shaun <[EMAIL PROTECTED]> wrote:

> 
> What is the path to your db file?
> C:\My Documents ain't gunna work..  :)
>

Indeed it would not. Here is the declaration:

var dbFile:File = File.documentsDirectory.resolvePath("Open Learning
Exchange/OLEcds.db");

According to Marco Casario's "Flex Solutions" that should do the trick.




[flexcoders] Re: Imported skin built using Flash doesn't work well with scale-9 and bitmaps

2008-05-15 Thread ben.clinkinbeard
I believe the 9 slice built into Flash only works on vector graphics
created in Flash. So yea, missing feature. If you file it, I will vote
for it.

Ben


--- In flexcoders@yahoogroups.com, João <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
> 
> is this a bug or a missing feature?
> 
> I have created a skin of a button on Flash CS3 using the Flex Skin
> Design Extensions. After importing the skin to Flex using the import
> artwork, the scale-9 grid doesn't work well if my button was skinned
> using bitmaps. 
> 
> -Is this supposed to happen?
> -Is there a workaround?
> -Should I fill this as a bug or wanted feature on the Adobe JIRA?
> 
> Thanks,
> 
> joão SAleiro
>




Re: [flexcoders] Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread shaun
Andrew Wetmore wrote:
> This is getting urgent. Can anyone point me to where we can start our
> investigations? The installer works fine on Windows, but on Mac it
> looks like the database does not get created. Therefore on Mac the app
> launches, but you can't get past the registration screen.
> 
> Help help!
> 
> 
> a
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>> Hi:
>>
>> A colleague tried to install the app I am working on on his Mac. App
>> installed, but the database is nowhere to be seen. App stalls at the
>> first point where it would be expected to call (as opposed to
>> initialize) the dB. Where should I start looking to figure out what is
>> going on?
>>
>> a

What is the path to your db file?
C:\My Documents ain't gunna work..  :)


[flexcoders] Re: insidious gray bar in FULLSCREEN with OS X Air app

2008-05-15 Thread Geoffrey
I believe you mean WindowedApplication, not nativeWindow.


--- In flexcoders@yahoogroups.com, "Jim Hayes" <[EMAIL PROTECTED]> wrote:
>
> Is it the status bar? If so, set the nativeWindow's showStatusBar =
> false.
>  
> This one got me! (I felt stupid :-( )
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jhno
> Sent: 15 May 2008 13:52
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] insidious gray bar in FULLSCREEN with OS X Air app
>  
> Greetings FC's, 
> 
> Running a Flex 3 AIR application in FULLSCREEN mode results in a gray
> bar at the bottom of the screen that I can not, for the life of me,
> get rid of. 
> 
> The bar is clearly the bottom component of an OS X window. I have
> tried adjusting the window settings in x-app.xml, to no avail. The
> problem occurs even with a maximally simple Flex app.
> 
> I have seen this on several different systems and all monitor
> resolutions: it is very consistent. These are OS X 10.5 systems, the
> most recent Flex and AIR downloads from Adobe. 
> 
> Has anybody else seen this problem?
> 
> Thanks big foaming heaps, 
> sudsminimal
>  
> 
> __
> 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.
> __
>




RE: [flexcoders] Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Jim Hayes
Where do you write the database file? It's not recommended to write
anything into the application directory (I believe for the reason that
it does not work x-platform, could this be your problem?).
Instead it should be the application storage directory, I seem to
remember reading.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Wetmore
Sent: 15 May 2008 15:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bump: problem with missing dB on Mac for AIR app
 
This is getting urgent. Can anyone point me to where we can start our
investigations? The installer works fine on Windows, but on Mac it
looks like the database does not get created. Therefore on Mac the app
launches, but you can't get past the registration screen.

Help help!

a

--- In flexcoders@yahoogroups.com 
, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>
> Hi:
> 
> A colleague tried to install the app I am working on on his Mac. App
> installed, but the database is nowhere to be seen. App stalls at the
> first point where it would be expected to call (as opposed to
> initialize) the dB. Where should I start looking to figure out what is
> going on?
> 
> a
>
 

__
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.
__

RE: [flexcoders] insidious gray bar in FULLSCREEN with OS X Air app

2008-05-15 Thread Jim Hayes
Is it the status bar? If so, set the nativeWindow's showStatusBar =
false.
 
This one got me! (I felt stupid :-( )
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jhno
Sent: 15 May 2008 13:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] insidious gray bar in FULLSCREEN with OS X Air app
 
Greetings FC's, 

Running a Flex 3 AIR application in FULLSCREEN mode results in a gray
bar at the bottom of the screen that I can not, for the life of me,
get rid of. 

The bar is clearly the bottom component of an OS X window. I have
tried adjusting the window settings in x-app.xml, to no avail. The
problem occurs even with a maximally simple Flex app.

I have seen this on several different systems and all monitor
resolutions: it is very consistent. These are OS X 10.5 systems, the
most recent Flex and AIR downloads from Adobe. 

Has anybody else seen this problem?

Thanks big foaming heaps, 
sudsminimal
 

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

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

[flexcoders] Bump: problem with missing dB on Mac for AIR app

2008-05-15 Thread Andrew Wetmore
This is getting urgent. Can anyone point me to where we can start our
investigations? The installer works fine on Windows, but on Mac it
looks like the database does not get created. Therefore on Mac the app
launches, but you can't get past the registration screen.

Help help!


a



--- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>
> Hi:
> 
> A colleague tried to install the app I am working on on his Mac. App
> installed, but the database is nowhere to be seen. App stalls at the
> first point where it would be expected to call (as opposed to
> initialize) the dB. Where should I start looking to figure out what is
> going on?
> 
> a
>




[flexcoders] Imported skin built using Flash doesn't work well with scale-9 and bitmaps

2008-05-15 Thread João
Hey guys,

is this a bug or a missing feature?

I have created a skin of a button on Flash CS3 using the Flex Skin
Design Extensions. After importing the skin to Flex using the import
artwork, the scale-9 grid doesn't work well if my button was skinned
using bitmaps. 

-Is this supposed to happen?
-Is there a workaround?
-Should I fill this as a bug or wanted feature on the Adobe JIRA?

Thanks,

joão SAleiro



[flexcoders] DropShadow with WindowedApplication

2008-05-15 Thread quantum_ohm
Hi All !

Does anybody know how to apply a dropshadow to a WindowedApplication
(AIR app) ?

In Flex Builder there are some options to do it, but it doesn't work...???

Thx



[flexcoders] insidious gray bar in FULLSCREEN with OS X Air app

2008-05-15 Thread jhno
Greetings FC's, 

Running a Flex 3 AIR application in FULLSCREEN mode results in a gray
bar at the bottom of the screen that I can not, for the life of me,
get rid of. 

The bar is clearly the bottom component of an OS X window. I have
tried adjusting the window settings in x-app.xml, to no avail. The
problem occurs even with a maximally simple Flex app.

I have seen this on several different systems and all monitor
resolutions: it is very consistent. These are OS X 10.5 systems, the
most recent Flex and AIR downloads from Adobe. 

Has anybody else seen this problem?

Thanks big foaming heaps, 
sudsminimal



[flexcoders] Getting Parent node of xml element

2008-05-15 Thread bichara.eric
Hi All,

Simple question which im struggling with. I have an xml being used as
the data provider for a tree component for example:


  

  
  

  
;

When i click on a element of the tree i want to get the ID attribute
of that element AND the id attribute of the parent node. So if i click on
 then i want to be able to know that the
parent id is 2. I know how to get the id of the attribute of the
element i clicked on but not its parent. Any suggestions? Thanks in
advance

/Eric



[flexcoders] Re: Problem in FlashPaper - Convert PDF file to SWF in Web page

2008-05-15 Thread valdhor
As Alex asked, what specifically did not work? Did it throw an error?
What error? What were you trying to do that did not work? How were you
trying to do it? Could you post a snippet of code that does not work?


--- In flexcoders@yahoogroups.com, "tatva28" <[EMAIL PROTECTED]> wrote:
>
> Thanks for replyng
> 
> I am trying converting PDF file to SWF in Web page on the fly using
> Flash Paper and I write code for web appication but that didnt work,
> that same code working in Window applcation .why? can you guide me.
> 
> Umesh
>




Re: [flexcoders] Re: Question about IISTestProjectFlex3 project

2008-05-15 Thread Jon Santos
Ok ok Cato.i imagine that before.
By the wayin other test i try to make with your appplicationi´m using 
Granite to connect with RemoteObjects.but i didn´t change ur source I 
suppose use Flex DataServices2.5.6 or Granite1.0 must be transparent for the 
proper behavior of the applicaiton.i´m right?
Ok.by the wayi´m waiting your new files
Thanks in advance Cato
Really i appreciate your help.


- Original Message 
From: Cato Paus <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 6:21:08 PM
Subject: [flexcoders] Re: Question about IISTestProjectFlex3 project


Ah, yes of course, I have the Flex data servises 2.5.6 running in 
this project, sorry I will take that away and send you new files :)

--- In [EMAIL PROTECTED] ups.com, Jon Santos <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> - Forwarded Message 
> From: Jon Santos <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Sent: Thursday, May 15, 2008 4:16:11 PM
> Subject: Question about IISTestProjectFlex3 project
> 
> 
> Hi Cato..
>  
> I´m trying to install your application. ...in my Eclipse
>  
> I have created the IISTestProjectFlex3 Flex project 
>  
> To see the structure of my project in Eclipsesee the attached 
file.
>  
> I´m getting one error :
>  
> unable to open 'C:\videoclub\ IISTestProjectFl ex3
\LCDS_FLEX_SERVER_ ROOT\WEB- INF\flex\ libs\fds. swc'
>  
> I don´t know if i must create the LCDS_FLEX_SERVER_ ROOT or just 
change my properties of my project
> Can you check it.
>  
> Thanks in advance
>

 


  

[flexcoders] Re: Question about IISTestProjectFlex3 project

2008-05-15 Thread Cato Paus
Ah, yes of course, I have the Flex data servises 2.5.6 running in 
this project, sorry I will take that away and send you new files :)


--- In flexcoders@yahoogroups.com, Jon Santos <[EMAIL PROTECTED]> wrote:
>
> 
> 
> 
> - Forwarded Message 
> From: Jon Santos <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Sent: Thursday, May 15, 2008 4:16:11 PM
> Subject: Question about IISTestProjectFlex3 project
> 
> 
> Hi Cato..
>  
> I´m trying to install your applicationin my Eclipse
>  
> I have created the IISTestProjectFlex3 Flex project 
>  
> To see the structure of my project in Eclipsesee the attached 
file.
>  
> I´m getting one error :
>  
> unable to open 'C:\videoclub\IISTestProjectFlex3
\LCDS_FLEX_SERVER_ROOT\WEB-INF\flex\libs\fds.swc'
>  
> I don´t know if i must create the LCDS_FLEX_SERVER_ROOT or just 
change my properties of my project
> Can you check it.
>  
> Thanks in advance
>




Re: [flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-15 Thread VELO
Any word on API?

VELO

On Thu, May 15, 2008 at 3:25 AM, Bjorn Schultheiss <
[EMAIL PROTECTED]> wrote:

>   Is there a new api to play with?
>
>
> --- In flexcoders@yahoogroups.com , "Gordon
> Smith" <[EMAIL PROTECTED]> wrote:
> >
> > http://labs.adobe.com/technologies/flashplayer10/
> >
> >
> >
> > Gordon Smith
> >
> > Adobe Flex SDK Team
> >
>
>  
>


RE: [flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-15 Thread Gregor Kiddie
That was the one that had me dancing in my seat too.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: 15 May 2008 11:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flash Player 10 is in prerelease!

On Thursday 15 May 2008, Cato Paus wrote:
> Yes, Yes, Yes! we have File uploade and downloade to localhost :)
> it's a greeat day :) Woowo

Release notes:
"device fonts as first class citizens that can be anti-aliased, rotated"
That is going to make use nice labels on Charts *so* much easier !

-- 
Tom Chiverton




Re: [flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-15 Thread Tom Chiverton
On Thursday 15 May 2008, Cato Paus wrote:
> Yes, Yes, Yes! we have File uploade and downloade to localhost :)
> it's a greeat day :) Woowo

Release notes:
"device fonts as first class citizens that can be anti-aliased, rotated"
That is going to make use nice labels on Charts *so* much easier !

-- 
Tom Chiverton



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

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

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



  1   2   >