[flexcoders] AMFPHP & explicitType error

2007-02-09 Thread Kevin
I am still having some problems using explicitType with PHP & Flex.   
I am trying to send a basic Object back from PHP to flex and have it  
map to a VO.  I think I have it all set up correctly, but I continue  
to get an error:


IN FLEX VO UserDataVO.as

[RemoteClass("com.onefoot.dbocl.services.vo.users.UserDataVO")]

IN PHP VO UserDataVO.php
var $_explicitType = "com.onefoot.dbocl.services.vo.users.UserDataVO";

SEND FROM PHP
public function getUserInfo(){
/* retrieve session variables from server
 */
 $User = new UserDataVO();
 $User->fullName = "Test User";
 $User->firstName = "Test";
 $User->lastName = "User";

 return $User;
 }


RECEIVE IN FLEX from getUserInfo() call
public function result(data:Object):void
{
var userData:UserDataVO = data.result;
}

ERROR
Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED]  
to com.onefoot.dbocl.vo.users.UserDataVO.




Thanks for the help!

- Kevin





Re: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-09 Thread Ben Stucki

Generally speaking, I believe that the DragManager is intended 
for open drag and drop operations where an item might have a target to be 
dropped into (such as dragging a file into a folder). The startDrag and 
stopDrag methods are equally as important, but are better suited for 
constrained or custom drag operations where the drag must be within a container 
or follow a set path (such as dragging a playhead across the track of an mp3 or 
video player). Custom dragging is great for creating unique user interfaces and 
custom components.

Ben Stucki
-
We're Hiring! Seeking a passionate developer to join our team building Flex 
based products. Position is in the Washington D.C.  
metro area. If interested contact [EMAIL PROTECTED]



From: "Daniel Freiman" <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2007 7:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: StartDrag() versus DragManager.doDrag() 

I can't speak to Adobe's intent, but I regularly avoid startDrag because I need 
more fine control over the drag. For example if you want to program a drag that 
implements "snap to" functionality, you're going to want to have direct control 
over the placement of the object, instead of letting the player handle it.  As 
I said, I don't know why Adobe did it in this case, but here's an example of 
why someone might want to do it somewhere.

- Dan


On 2/9/07, Derrick Grigg <[EMAIL PROTECTED]> wrote:

> I can't find anywhere that we use startDrag()in the framework, 

> including in the DragManager.

My bad, you know what they say about 'assuming'. 

Just did some more digging, in the DragProxy class and was very

surprised to see that it actually uses a mouse move event listener and

then repositions the drag proxy based on the the x/y of the mouse.

var pt:Point = new Point();

var point:Point = new Point(event.localX, event.localY);

point = DisplayObject(event.target).localToGlobal(point);

point =

DisplayObject(dragInitiator.systemManager.topLevelSystemManager).globalToLocal(point);

var mouseX:Number = point.x;

var mouseY:Number = point.y;

x = mouseX - xOffset;

y = mouseY - yOffset;

This just begs the question, why??? Why go through all that instead of

just using the startDrag that is a core method of the Sprite class?

Just to offset the DragProxy slightly from the mouse pointer? I don't

get it, why bloat (in my opinion) the code. From my understanding

classes and methods that are actually compiled into the flash plugin

(ie the flash.* package) run faster than those that are not (ie. the

mx.* package). I don't understand why all the extra code is required

to accomplish something the plugin already has the ability to do.






[flexcoders] Re: more news on our upcoming marketing efforts

2007-02-09 Thread ben.clinkinbeard
I think that's what this is supposed to be
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610. There is
also the Flex Cookbook
(http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepage&productId=2),
but like the Adobe forums neither one seems to be used very much. I'm
not exactly sure why Adobe's site (and MM's before it) never seem to
attract much community activity, but I suspect that the (ongoing, even
since recent upgrades) poor performance has at least something to do
with it.

Ben


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> Actually I gave some of the dev team here are Optimal a Flex 2
training so they could use it in their own projects. And I was showing
them some of the components people built that I was already using. So
they asked where do we find these? Is there an apache commons type web
site to go to? I think this is something that needs to be work on,
cause people are building some useful components, but they post them
on their blogs and such, so if you don't read blogs everyday and write
them down, you are going to loose track of them. So maybe something
can be done in that regard.
> 
> Dimitrios Gianninas
> Optimal Payments Inc.
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com on behalf of Matt Chotin
> Sent: Fri 2/9/2007 12:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] more news on our upcoming marketing efforts
>  
> http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
> cfm
> 
> Hopefully we're going to see an influx of people trying Flex, any
> suggestions the community wants to put together for helping folks get up
> and running are always appreciated.
> 
> Matt
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé.  L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation.  Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système.  La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux.  Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.
>




[flexcoders] Re: Self Signed Cert. For Secure SecureRTMPChannel

2007-02-09 Thread vitopn
Hi Doug,

  I'm fairly certain that the self-signed cert is in the keystore. 
(Doesn't "keytool -genkey .." store the newly generated cert in the
keystore?)  I am doing a list and the flex2cert is in there.

C:\Documents and Settings\vitopn>keytool -list -keystore
C:\Tomcat\webapps\Presidio\WEB-INF\flex\.keystore
Enter keystore password:  changeit

Keystore type: jks
Keystore provider: SUN

Your keystore contains 2 entries

tomcat, Feb 8, 2007, keyEntry,
Certificate fingerprint (MD5):
FB:13:46:DE:C5:F9:BA:F7:D0:57:95:58:D5:AA:80:4F
flex2cert, Feb 8, 2007, keyEntry,
Certificate fingerprint (MD5):
B5:8D:4C:DD:01:9B:09:01:3E:88:B9:90:4D:8F:70:6C

Any other thoughts?

Thank you,
-Vito

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> 
> Looks like you didn't add the self-signed certificate to the keystore. 
> Check out the "keytool -import" command.
> 
>
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#Comman\
> ds
>
 nds> 
>
 nds>
> 
> 
> --- In flexcoders@yahoogroups.com, "vitopn"  wrote:
> >
> > What steps do I need to take to get a self signed certificate to work
> > with SecureRTMPChannel?
> >
> > I generate the keystore file with something like this:
> > keytool -genkey -alias flex2cert -dname "CN=localhost, OU=Presidio,
> > O=Presidio, L=San Francisco, S=California, C=CA" -validity 3650
> >
> > and configure the channel like this:
> >  > class="mx.messaging.channels.SecureRTMPChannel">
> >  > class="flex.messaging.endpoints.SecureRTMPEndpoint" />
> > 
> > 20
> >
>
C:/Tomcat/webapps/Presidio/WEB-INF/flex/.keystore re-file>
> > changeit
> > 
> > 
> >
> >
> > The server starts and I see this in the console:
> > [Flex][INFO] Endpoint secureRTMP created with security: None
> > at URI: rtmps://localhost:2099
> > [Flex][WARN] The current license does not support clustering;
> > clustering for all destinations is disabled.
> > [Flex][INFO] RTMPS-Server listening on port:2099
> > [Flex][DEBUG] Created worker thread: RTMPS-Worker-0
> > [Flex][DEBUG] Created worker thread: RTMPS-Worker-1
> > [Flex][DEBUG] Created worker thread: RTMPS-Worker-2
> > [Flex][DEBUG] Created worker thread: RTMPS-Worker-3
> >
> >
> > When I try to connect I get this:
> >
> > 'secureRTMP' channel got status. (Object)#0
> > code = "NetConnection.Connect.CertificateUntrustedSigner"
> > level = "status"
> >
> >
> > Thank you,
> > -Vito
> >
>




RE: [flexcoders] more news on our upcoming marketing efforts

2007-02-09 Thread Dimitrios Gianninas
Actually I gave some of the dev team here are Optimal a Flex 2 training so they 
could use it in their own projects. And I was showing them some of the 
components people built that I was already using. So they asked where do we 
find these? Is there an apache commons type web site to go to? I think this is 
something that needs to be work on, cause people are building some useful 
components, but they post them on their blogs and such, so if you don't read 
blogs everyday and write them down, you are going to loose track of them. So 
maybe something can be done in that regard.

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Matt Chotin
Sent: Fri 2/9/2007 12:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] more news on our upcoming marketing efforts
 
http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
cfm

Hopefully we're going to see an influx of people trying Flex, any
suggestions the community wants to put together for helping folks get up
and running are always appreciated.

Matt

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

<>

Re: [flexcoders] Re: TextInput - Incorrect focus behavior

2007-02-09 Thread Adam Royle
What about:



Adam

  - Original Message - 
  From: acooleagle 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, February 10, 2007 8:51 AM
  Subject: [flexcoders] Re: TextInput - Incorrect focus behavior



  Thanks for responding - TextInput does not have a property "selectable"
  ...

  My intention is that I don't want the user to be able to leave the field
  until a certain value has been entered.

  --- In flexcoders@yahoogroups.com, "superstella_uk" <[EMAIL PROTECTED]>
  wrote:
  >
  > --- In flexcoders@yahoogroups.com, "acooleagle" acooleagle@ wrote:
  >
  > Cant you just set the TextField.selectable = false ?
  >
  > >
  > >
  > > Hi all,
  > >
  > > Seems to me that focus events in TextInputs are a bit out of whack.
  > >
  > > The test application below should never allow focus on the
  > > phoneNumberInput field, since its "focusIn" event immediately
  redirects
  > > focus back to the zipcodeInput field.
  > >
  > > However, the zipCodeInput field remains "active" (as indicated by
  the
  > > blue highlight) the phoneNumberInput retains the prompt (!!).
  > >
  > > This is a major problem for us as we would like the focus and the
  prompt
  > > to stay in the active field on occasions where the content of the
  field
  > > is invalid.
  > >
  > > As far as I am concerned this weird focus/prompt behavior is a bug.
  > >
  > > $5 million question now is : does anybody know a workaround?
  > >
  > > Thanks for all feedback,
  > >
  > > = Dirk
  > >
  > >
  > >
  > > 
  > > http://www.adobe.com/2006/mxml";>
  > >
  > > 
  > > 
  > >  > focusIn="zipCodeInput.setFocus()" />
  > > 
  > >
  > > 
  > >
  >



   

[flexcoders] DataGrid rendering

2007-02-09 Thread dontlament
I have a large dynamic datagrid with 4 dropdown filtering options to
compare a large database of products.  The design of the site and
datagrid is calling for a lot of custom style.  The issue I am having is
there seems to be no mechanism to track when a datagrid has finished
rendering, so I can hide it as the styles are applied, so I am getting a
very ugly and clunky render of the datagrid.  Has anyone had this issue
before, or anyone have any suggestions on how to circumvent this
problem?




Re: [flexcoders] can I animate using Flash Bitmaps with Flex Canvas??

2007-02-09 Thread Doug McCune

how about this?

// you've got your bitmap, wherever it came from
var bitmap:Bitmap;

var comp:UIComponent = new UIComponent();
comp.addChild(bitmap);

then add the UIComponent to the container you want to add it to. You 
might not be able to add a Bitmap directly to a container, but nobody 
said you can't add it to a UIComponent first. You gotta be sneaky.




davidmccallie wrote:


Noobie question here: I want to animate a complex dissolve of a
mosaic of hundreds of small pictures that make up a photo mosaic.
Each picture (32x32) will dissolve to a second image in parallel with
all the others. I tried to do this in Flex, using Image() objects
placed on a Canvas container, with a set of Fade effects for the
animation.
I can display the mosaic of the images at the start, but when I try to
Play the Fade() on each image, the Canvas appears to "batch" all the
updates and does not show changes until all the fades are done -- at
which point the whole canvas repaints showing all the new images --
without any visible animation! (I know that the fades are occurring
because I can trace them fine.)

I tried an alternate approach using pure ActionScript 3 with the
PixelDissolve method of Bitmapdata class. This works fine, but it
appears that if I want to use Bitmaps as display objects, I can't use
any of the Flex containers to hold them since you can't do an
addChild(bitmap) to a Flex container (which expects only IUIComponent.)

Is there any way to force the Canvas to show the updates to the
hundreds of Images as they occur? I tried various uses of
ValidateNow() but that didn't do anything.

If I want to use low-level bitmaps and PixelDissolve, is there any
clean way to do that within the Flex framework? How can I draw
Bitmaps onto a Flex container?

Thanks!!

 




[flexcoders] Re: Controlling a Component in an Item Renderer

2007-02-09 Thread Paul Whitelock
Thanks Tracy! I did a quick test and that appears to do exactly what I
need!

Paul


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> You must work with the dataProvider.  The renderer must set its enabled
> state based on a field/property/attribute in the dataProvider in the set
> data() function.
> 
>  
> 
> When you update the dataProvider using the API, and set the enabled
> field/property/attribute on the desired items, the itemRenderer will
> automatically disable the assocated checkboxes.
> 
>  
> 
> You cannot directly control the checkbox in the renderer, but must work
> with the dataProvider.
> 
>  
> 
> Did I mention that you must work with the dataProvider?
> 
>  
> 
> Tracy



[flexcoders] can I animate using Flash Bitmaps with Flex Canvas??

2007-02-09 Thread davidmccallie
Noobie question here:  I want to animate a complex dissolve of a
mosaic of hundreds of small pictures that make up a photo mosaic. 
Each picture (32x32) will dissolve to a second image in parallel with
all the others.  I tried to do this in Flex, using Image() objects
placed on a Canvas container, with a set of Fade effects for the
animation.
I can display the mosaic of the images at the start, but when I try to
Play the Fade() on each image, the Canvas appears to "batch" all the
updates and does not show changes until all the fades are done -- at
which point the whole canvas repaints showing all the new images --
without any visible animation!  (I know that the fades are occurring
because I can trace them fine.)

I tried an alternate approach using pure ActionScript 3 with the
PixelDissolve method of Bitmapdata class.  This works fine, but it
appears that if I want to use Bitmaps as display objects, I can't use
any of the Flex containers to hold them since you can't do an
addChild(bitmap) to a Flex container (which expects only IUIComponent.)

Is there any way to force the Canvas to show the updates to the
hundreds of Images as they occur?  I tried various uses of
ValidateNow() but that didn't do anything.

If I want to use low-level bitmaps and PixelDissolve, is there any
clean way to do that within the Flex framework?  How can I draw
Bitmaps onto a Flex container?

Thanks!!




Re: [flexcoders] Flex Builder to run faster

2007-02-09 Thread Shannon Hicks
I don't think there's going to be any way to speed up Flex Builder. You 
could try using a different tool to edit you MXML/AS, and build it using 
the regular SDK.


In other words, you might be better off getting by without using Flex 
Builder at all.


Shan

André Rodrigues Pena wrote:


Hi all,

I need to run Flex Builder in a computer that's not so fast with only 
256 MB.


Does anybody know something I can do so that my Flex Builder can run 
more seamlessly? even if I need to lose some features?


I would appreciate any help

thanks in advance

--
André Rodrigues Pena

LOCUS
www.locus.com.br 

Blog
www.techbreak.org 

 




[flexcoders] New to the group

2007-02-09 Thread Pedro Pastor
Hello to all of you.
 
I have just entered this group. I am quite new to those technologies (Flex 2
and ActionScript 3). 
 
After reading some documentation I’m doing some practising and I have some
questions to this community.
 
1)   E4X query language:
 
I’m used to work with XPath for dealing with XML structures. I’ve tried to
do some (not very complicated) queries using E4X BUT it seems like E4X
doesn’t work the same way (and it is far from fulfilling the XML queries
needs). For example, given the following XML date:
 


……….. 

BB
CCC

 

……….. 

H

 
And so on…..
 

 
Using an 
 
And asking for:
 
idHTTPService.lastResult.record.(HYPERLINK
"mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED])
 
this query only provides the record elements that have ONLY ONE 
child AND has an [EMAIL PROTECTED] == c001”. I mean, the  tags with 
more than one
 children always fail.
 
-Is this the correct behaviour?
-How can I perform such type of query?
 
Thank you very much in advance.
 
Pedro

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.32/677 - Release Date: 08/02/2007
21:04
 


[flexcoders] Re: TextInput - Incorrect focus behavior

2007-02-09 Thread acooleagle

Thanks for responding - TextInput does not have a property "selectable"
...

My intention is that I don't want the user to be able to leave the field
until a certain value has been entered.


--- In flexcoders@yahoogroups.com, "superstella_uk" <[EMAIL PROTECTED]>
wrote:
>
> --- In flexcoders@yahoogroups.com, "acooleagle" acooleagle@ wrote:
>
> Cant you just set the TextField.selectable = false ?
>
> >
> >
> > Hi all,
> >
> > Seems to me that focus events in TextInputs are a bit out of whack.
> >
> > The test application below should never allow focus on the
> > phoneNumberInput field, since its "focusIn" event immediately
redirects
> > focus back to the zipcodeInput field.
> >
> > However, the zipCodeInput field remains "active" (as indicated by
the
> > blue highlight) the phoneNumberInput retains the prompt (!!).
> >
> > This is a major problem for us as we would like the focus and the
prompt
> > to stay in the active field on occasions where the content of the
field
> > is invalid.
> >
> > As far as I am concerned this weird focus/prompt behavior is a bug.
> >
> > $5 million question now is : does anybody know a workaround?
> >
> > Thanks for all feedback,
> >
> > = Dirk
> >
> >
> >
> > 
> > http://www.adobe.com/2006/mxml";>
> >
> >  
> >  
> >   > focusIn="zipCodeInput.setFocus()" />
> >  
> >
> > 
> >
>




[flexcoders] Flex Builder to run faster

2007-02-09 Thread André Rodrigues Pena

Hi all,

I need to run Flex Builder in a computer that's not so fast with only 256
MB.

Does anybody know something I can do so that my Flex Builder can run more
seamlessly? even if I need to lose some features?

I would appreciate any help

thanks in advance

--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


RE: [flexcoders] Controlling a Component in an Item Renderer

2007-02-09 Thread Tracy Spratt
You must work with the dataProvider.  The renderer must set its enabled
state based on a field/property/attribute in the dataProvider in the set
data() function.

 

When you update the dataProvider using the API, and set the enabled
field/property/attribute on the desired items, the itemRenderer will
automatically disable the assocated checkboxes.

 

You cannot directly control the checkbox in the renderer, but must work
with the dataProvider.

 

Did I mention that you must work with the dataProvider?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Whitelock
Sent: Friday, February 09, 2007 8:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Controlling a Component in an Item Renderer

 

I have an item renderer specified for a List component and there is a
CheckBox component within the item renderer so that each List element
displays a CheckBox. What I'd like to do is if a certain condition
exists in the application I'd like to disable the item renderer's
CheckBox for specific List elements (i.e. some List elements would
show an enabled CheckBox and some List elements would show a disabled
CheckBox depending upon what's going on in the application).

Is there any way to disable the item renderer's CheckBox for a
specific List element from the application? Thanks for any pointers!

Paul

 



[flexcoders] Re: Controlling a Component in an Item Renderer

2007-02-09 Thread nathanpdaniel
The field used to determine if the Item should be checked or not from 
the list stand point will also be able to tell your Item to ckeck the 
checkbox.  
For Example:
xml data - 
Load the data into your list.  Then in your Item's MXML file, you'd 
use something like this:

http://www.adobe.com/2006/mxml"; 
initialize="doCheck()">

RE: [flexcoders] Custom TreeItemRenderer??

2007-02-09 Thread Tracy Spratt
Here is an example that is pretty easy to understand.  You can ignore
the line drawing stuff for your purposes.

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=575

 

I suggest you rename this to what you want yours to be called and then
get it working with your tree.  Then, begin modifying it to display what
you want.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tinkiknit
Sent: Friday, February 09, 2007 1:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom TreeItemRenderer??

 

Hi again Flexperts...

I'm still working on my tree of query terms...I'm perplexed about 
customizing the TreeItemRenderer so that my "nodes" (these are 
actually my custom component which is used to create query terms) 
show up instead of the default file icon and label.

Example in plain text:

AND
|
+

OR
|
+

NOT
|
+
the + represents my custom component as it's a linkButton that when 
clicked brings up a fancy query builder to add a term for that 
operation...so far I have in XML representing my tree:















I want my children to show up as the custom component that is fully 
functional and think that TreeItemRenderer is the place I need to put 
code to do this. Any examples out there for using a custom component 
for nodes?

Thanks in advance!

Christine

 



[flexcoders] Controlling a Component in an Item Renderer

2007-02-09 Thread Paul Whitelock
I have an item renderer specified for a List component and there is a
CheckBox component within the item renderer so that each List element
displays a CheckBox. What I'd like to do is if a certain condition
exists in the application I'd like to disable the item renderer's
CheckBox for specific List elements (i.e. some List elements would
show an enabled CheckBox and some List elements would show a disabled
CheckBox depending upon what's going on in the application).

Is there any way to disable the item renderer's CheckBox for a
specific List element from the application? Thanks for any pointers!

Paul



RE: [flexcoders] more news on our upcoming marketing efforts

2007-02-09 Thread Matt Chotin
Hey Cortland,

 

This could be an interesting idea and I'll pass it on.  When we had the
derby when Flex 2 launched, no one submitted any utility libraries.  I'd
be curious if others would be interested if we were to focus on an area
like this.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cortlandt Winters
Sent: Friday, February 09, 2007 1:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] more news on our upcoming marketing efforts

 

Hi Matt,

Something I'd like to see would be a contest like you had when Flex2
first came out, but with two differences.

1) The focus is on porting open source libraries from other languages to
As3. 

2) The prizes aren't tv's, but licences to either Flash Media Server or
Flex Data Sevices. That way if somebody has an idea that they think
would be worth creating if not for the eventual server license costs,
there is a real motivation to implementing it. If they sucede and it
wins, maybe they can make a small business out of it. What programmer
wants a tv? Programming is twice the fun. Put those servers at the
disposal of some motivated individuals rather than just companies with
capital funding at no cost to yourselves but providing ten times the
value of a tv to the contestants. 

Though I competely agree with Bruce Eckel's article in general, it is
also still true that there are 10 years of libraries available for
applets. If hell were to freeze and sun were to suddenly learn how to
make installing applets easy for the normal computer user,  applets
would suddenly be competitive because of that. For business software I
think applets are competitive in many cases because of existing
libraries. With all the speed of as3, we still don't have a standard 3d
library and there are a lot of graphing tools and abstract libraries
that seem like they could be pretty easily ported over. 

Thanks for asking.

-Cort

On 2/9/07, Matt Chotin <[EMAIL PROTECTED]  >
wrote:

http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
 
cfm

Hopefully we're going to see an influx of people trying Flex, any
suggestions the community wants to put together for helping folks get up
and running are always appreciated.

Matt

__._

 

 



Re: [flexcoders] PHP FLEX Login Component Free Source

2007-02-09 Thread Hilary Bridel

Thank you Anthony,
This will be useful to many.

Hilary

www.bridel.org



On 2/10/07, omnipotencezennou <[EMAIL PROTECTED]> wrote:


  I have just publish a working PHP / Flex login/Registration component
to my blog. You can right click to view the source. It is fully
commented and includes lots of features like client side validation
and a remember username feature for creating cookies on the client
computer.
Hope that this helps someone comments and suggestions welcome.

Link to the site:
;http://www.betadesigns.co.uk/index.php/blog/

Enjoy
Anthony







--
Hilary

--


[flexcoders] Trigger?

2007-02-09 Thread Tom Cornilliac
The ComboBox.close() method accepts a "trigger:Event = null" argument.
What does the trigger do?

What I'm trying to do is close the combobox from a function and then
dispatch and event when it's done closing. Any ideas?

~Tom


RE: [flexcoders] Re: no rtmp connection on win xp ?

2007-02-09 Thread Jeff Vroom
I think that this is just the generic "can't connect" error.  Usually
you get this when the player is unable to connect to the socket.   I was
going to suggest a firewall issue or something like that but you already
tried that?

 

Can you to something like:

 

"telnet localhost 2038"

 

If that gets "Could not open connection to the host", it is a socket
problem with that machine - possibly still a firewall or etc\hosts entry
for localhost?   If that is at least able to connect it will clear the
screen and possibly dump some garbage output.  In that case it would
indicate it is a problem with flash trying to connect that is at least
not due to a system problem.

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chrisnoeflex
Sent: Thursday, February 08, 2007 5:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: no rtmp connection on win xp ?

 

Jeff,

this is what i'm seeing, when i use the fdb debugger :
(i already uninstalled my firewall, disabled the windows fire wall, 
so there should be no problem with any ports that are unusable).
He is sending to rtmp://localhost:2038,   and is
receiving

channel got status. (Object)#0

That's the problem i think. Can you give me any more info on why it 
is giving me status 0 ? what does this mean ?

[trace] cds-producer-bezoeker.hibernate-null DataService.fill() 
called with 2 arguments.
[trace] (Array)#0
[trace] [0] "flex:hql"
[trace] [1] "From Bezoekers"
[trace]
[trace] Client ID specified in subscribe is ignored when a session is 
assigned.
[trace] 'cds-consumer-bezoeker.hibernate-null' consumer subscribe.
[trace] 'my-rtmp' channel endpoint set to rtmp://localhost:2038
 
[trace] 'my-rtmp' channel settings are:
[trace] 
[trace] 
[trace] 
[trace] 
[trace] 'cds-producer-bezoeker.hibernate-null' producer sending 
message '3E8750DC-A3BB-B127-5436-A16753E08387
[trace] 'my-rtmp' channel got status. (Object)#0
[trace] code = "NetConnection.Connect.Failed"
[trace] level = "error"
[trace] 'my-rtmp' channel polling stopped.
[trace] 'my-rtmp' channel connect failed.
[trace] 'cds-consumer-bezoeker.hibernate-null' consumer channel 
faulted with Channel.Connect.Failed null
[trace] 'cds-consumer-bezoeker.hibernate-null' consumer starting 
resubscribe timer.
[trace] 'cds-producer-bezoeker.hibernate-null' producer channel 
faulted with Channel.Connect.Failed null
[trace] 'cds-producer-bezoeker.hibernate-null' producer fault 
for '3E8750DC-A3BB-B127-5436-A16753E08387'.
[trace] 'cds-consumer-bezoeker.hibernate-null' consumer trying to 
resubscribe.
[trace] 'my-rtmp' channel got status. (Object)#0
[trace] code = "NetConnection.Connect.Failed"
[trace] level = "error"
[trace] 'my-rtmp' channel polling stopped.
[trace] 'my-rtmp' channel connect failed.
[trace] 'cds-consumer-bezoeker.hibernate-null' consumer channel 
faulted with Channel.Connect.Failed null
[trace] 'cds-producer-bezoeker.hibernate-null' producer channel 
faulted with Channel.Connect.Failed null
[trace] 'cds-consumer-bezoeker.hibernate-null' consumer trying to 
resubscribe.
[trace] 'my-rtmp' channel got status. (Object)#0

 



[flexcoders] Re: remove comments on compile - strip comments - optimize SWF size - reduce siz

2007-02-09 Thread Jason Hanson
Thanks for your response and all the info about the way the SWF is
compiled.  I am looking for an obfuscator, but all the 3rd party tools
out there are still in development.

If the comments are not complied into the SWF then there must be
something else that is causing the size difference - like line numbers
issue you spoke to.  

I am working on 'lite' version of Cairngorm.swc.  To do so I made a
new Library project and put in all the com.adobe.caringorm.* source
code (v2.1)

I removed the business package and the SWC size drops to 8364 bytes
I then remove all the comments the the SWC size drops to 8302 bytes

The 64 bytes must just be the difference in line numbers.  I just
assumed that the comments were added in like in AS2.

Perhaps I should remove all the extra line breaks in the code ... 



--jason



--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Comments are not compiled into the SWF; no source code is. The debug
> version of the SWF has opcodes which have file paths and line numbers.
> So there is a tiny effect from comments affecting the line numbers
> (possibly to have more digits) which can then change the SWF
> compression. But this is insignificant.
> 
>  
> 
> Names like getVideoPlayer only appear once in the SWF (in the "constant
> pool") no matter how many times you call this method, but the constant
> pool can still be sizable. A SWF obfuscator would presumably shorten the
> names (as well as make them unreadable), but Adobe haven't developed one
> and I'm not sure 3rd-party ones are available for Player 9 SWFs.
> 
>  
> 
> - Gordon
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jason Hanson
> Sent: Friday, February 09, 2007 10:40 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] remove comments on compile - strip comments -
> optimize SWF size - reduce size
> 
>  
> 
> Is there a way to remove comments or strip comments out of the AS3
> code during compiler preprocessing? I have noticed that the SWF size
> is larger if comments are left in. It is not a huge amount of added
> size, but it can add up to 10-20 KB for a large project. 
> 
> I am working on an AS3 project (not mxml) and I am trying to get the
> final size down to less then 40KB. I am looking for a way to remove
> comments to make the SWF smaller. I would also like to run a tool
> that will shorten all the class, property, and method names. I could
> go in and manually optimize the code, but it makes development much
> harder when you have no comments and you methods are named gvp()
> gvpl() instead of getVideoPlayer() and getVideoPlaylist(). I would
> much rather find a precompile process of some kind.
> 
> Any ideas?
> 
> Thanks
> 
> --jason
> 
> key words:
> remove comments on compile
> strip comments
> optimize SWF size
> reduce size
> file size
>




Re: [flexcoders] more news on our upcoming marketing efforts

2007-02-09 Thread Cortlandt Winters

I should add that there was one more reason I suggested this that relates
more to your original question.

I think the best way to start with Flex is not to focus on MXML or the Flex
framework or the nice components or liquid layout so much up front, but to
focus on the As3 language first. To just start with some text programming
and implement something you've done already in another language seems to be
the best way to start feeling comfortable with it pretty quickly.

The graphics and layout and components are the thing that motivates one to
use Flex in the end, but I don't think it's the best way to get familiar
with the language and how it works. If you start out by creating your custom
components and dealing with the larger UI framework it's easy to get bogged
down with details. You find yourself focusing on style properties and
framework issues, rather than the repeatable aspects of the core language.

I think since I started looking at everything as As3 first, instead of Mxml,
I've made quicker progress as a result.

On 2/9/07, Cortlandt Winters <[EMAIL PROTECTED]> wrote:


Hi Matt,

Something I'd like to see would be a contest like you had when Flex2 first
came out, but with two differences.

1) The focus is on porting open source libraries from other languages to
As3.

2) The prizes aren't tv's, but licences to either Flash Media Server or
Flex Data Sevices. That way if somebody has an idea that they think would be
worth creating if not for the eventual server license costs, there is a real
motivation to implementing it. If they sucede and it wins, maybe they can
make a small business out of it. What programmer wants a tv? Programming is
twice the fun. Put those servers at the disposal of some motivated
individuals rather than just companies with capital funding at no cost to
yourselves but providing ten times the value of a tv to the contestants.

Though I competely agree with Bruce Eckel's article in general, it is also
still true that there are 10 years of libraries available for applets. If
hell were to freeze and sun were to suddenly learn how to make installing
applets easy for the normal computer user,  applets would suddenly be
competitive because of that. For business software I think applets are
competitive in many cases because of existing libraries. With all the speed
of as3, we still don't have a standard 3d library and there are a lot of
graphing tools and abstract libraries that seem like they could be pretty
easily ported over.

Thanks for asking.

-Cort

On 2/9/07, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
>   http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
>
> cfm
>
> Hopefully we're going to see an influx of people trying Flex, any
> suggestions the community wants to put together for helping folks get up
> and running are always appreciated.
>
> Matt
>  __._
>




[flexcoders] Flex 2 API for Yahoo! Maps

2007-02-09 Thread Tariq Ahmed
There's a suggestion on the Yahoo Developer Network for a Flex 2 API for 
Yahoo Maps.

All of you want it, even if you don't think you do. :)

So throw in that vote!

http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208





[flexcoders] mouseOver an element within a TileList problem

2007-02-09 Thread bensmith5774
Hello, I hope someone can help me with my problem - I think I may be missing 
something 
rather obvious.

I have a TileList populated with data (ArrayCollection). Underneath the 
TileList I have a blank 
area. When the user mouseOver's a row in the TileList I want some of that data 
(for example 
name, category) to appear in the blank area. This sounds rather straight 
forward but I having 
a bit of a hard time getting it to work.

Is there a way to explicitly reference the currently "mouseOver'd" object so it 
can be displayed 
outside the TileList. item renderers and repeaters don't seem to help much as 
I'm trying to 
display the content OUTSIDE of the TileList. I've also tried using IViewCursor 
(cursor.current.name) but it only ever displays the first element of the 
ArrayCollection.

Any ideas much appreciated.
Iain.



Re: [flexcoders] more news on our upcoming marketing efforts

2007-02-09 Thread Cortlandt Winters

Hi Matt,

Something I'd like to see would be a contest like you had when Flex2 first
came out, but with two differences.

1) The focus is on porting open source libraries from other languages to
As3.

2) The prizes aren't tv's, but licences to either Flash Media Server or Flex
Data Sevices. That way if somebody has an idea that they think would be
worth creating if not for the eventual server license costs, there is a real
motivation to implementing it. If they sucede and it wins, maybe they can
make a small business out of it. What programmer wants a tv? Programming is
twice the fun. Put those servers at the disposal of some motivated
individuals rather than just companies with capital funding at no cost to
yourselves but providing ten times the value of a tv to the contestants.

Though I competely agree with Bruce Eckel's article in general, it is also
still true that there are 10 years of libraries available for applets. If
hell were to freeze and sun were to suddenly learn how to make installing
applets easy for the normal computer user,  applets would suddenly be
competitive because of that. For business software I think applets are
competitive in many cases because of existing libraries. With all the speed
of as3, we still don't have a standard 3d library and there are a lot of
graphing tools and abstract libraries that seem like they could be pretty
easily ported over.

Thanks for asking.

-Cort

On 2/9/07, Matt Chotin <[EMAIL PROTECTED]> wrote:


  http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
cfm

Hopefully we're going to see an influx of people trying Flex, any
suggestions the community wants to put together for helping folks get up
and running are always appreciated.

Matt
 __._



[flexcoders] AMF3/WebService benchmark app

2007-02-09 Thread Mark Piller
Hey guys,

Does anyone know whatever happened to the Census app built by James
Ward? It used to be available at http://www.jamesward.org/census/. The
application used to compare performance of various ways of accessing
server-side data (remoting, web service, http get, etc). If anyone
saved a copy of the source code for that app before it was pulled, I
would love to get a copy.

Thanks,
Mark



RE: [flexcoders] Flex Form Field Focus

2007-02-09 Thread Jagos, Allan
Unless I missed it I didn't see any responses on this.  Can this not be
done or is it a bad question.  I am new to Flex. :-)

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jagos, Allan
Sent: Wednesday, February 07, 2007 2:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Form Field Focus

 

In Flex, when you have focus on a form field and then switch to another
web page and then come back you lose focus on that field.  HTML form
fields retain their focus but Flex apparently do not.  Is there some
code or property that will allow this?

 

Thanks, 

 

 

  Allan M. Jagos 

   Web Developer   

   Robinson & Cole LLP
   280 Trumbull Street
   Hartford, CT  06103-3597
   Direct (860) 275-8335 | Fax (860) 275-8299  
   [EMAIL PROTECTED]   | www.rc.com
  
   Contact Card   

 Boston  New London  Hartford  Stamford  White Plains  New York
Sarasota 


__
This transmittal may be a confidential attorney-client communication or
may otherwise be privileged or confidential. If it is not clear that you
are the intended recipient, you are hereby notified that you have
received this transmittal in error; any review, dissemination,
distribution or copying of this transmittal is strictly prohibited. If
you suspect that you have received this communication in error, please
notify us immediately by telephone at 1-860-275-8200, or e-mail at
[EMAIL PROTECTED] and immediately delete this message and all its attachments.
__
This email has been scanned by the MessageLabs Email Security System.

 


__
This transmittal may be a confidential attorney-client communication or may 
otherwise be privileged or confidential. If it is not clear that you are the 
intended recipient, you are hereby notified that you have received this 
transmittal in error; any review, dissemination, distribution or copying of 
this transmittal is strictly prohibited. If you suspect that you have received 
this communication in error, please notify us immediately by telephone at 
1-860-275-8200, or e-mail at [EMAIL PROTECTED] and immediately delete this 
message and all its attachments.
__
This email has been scanned by the MessageLabs Email Security System.

[flexcoders] Using setSyle on dynamic created button not working

2007-02-09 Thread darylgmyers
I'm creating a number of objects dynamically in actionscript.  then I'm 
using setStyle to set certain styles before addChild actually adds the 
object to the container.  The setStyle is not working.  Below is a 
small piece of the code.

varnewButton:Button = new Button;
newButton.label="Update";   
newButton.setStyle("bottom","10");  
newButton.addEventListener(MouseEvent.CLICK,clickUpdate);
newHBox.addChild(newButton);



RE: [flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-09 Thread Matt Chotin
I don't know of gotchas right now.  I don't think we can stop you from
writing your own impls, though don't take that as a complete legal
blessing.  As far as technical hurdles I don't know enough, I just know
we spent a while on them :-)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of brian.knorr
Sent: Friday, February 09, 2007 11:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: any interest in an alternative to QTP to
automate Flex apps?

 


Ya...I discovered that there isn't an AutomationManager implementation
in the automation packages in the SDK. But now I am looking into
implementing the IAutomationManager and the IAutomationObjectHelper
myself with my own classes. With this I should be able to "play"
events to instrument the Flex ui components. Matt - do you know of
any gotchas that I should be aware of in doing this?

Thanks,

Brian

--- In flexcoders@yahoogroups.com 
, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Yes, there is a licensing restriction on mx.automation. The
> implementation of IAutomationManager which is the main entry point
into
> the system is restricted by the per-seat license of FDS as we've been
> discussing. The reason the rest of the code is included is because you
> need to be able to write your components to implement the appropriate
> methods and whatnot to support the larger system. If you were a
> component developer you can still implement the APIs for free.
> 
> 
> 
> Matt
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Chris Luebcke
> Sent: Friday, February 09, 2007 10:45 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: any interest in an alternative to QTP to
> automate Flex apps?
> 
> 
> 
> I think you could have saved yourself some time by adding
> ${FRAMEWORKS}\libs\automation.swc (there's also an
> automation_charts.swc) to your project's library path.
> 
> Matt Chotin, et al: Is there a licensing restriction on using the
> mx.automation package (i.e. FDS)? This thread has kind of lead me to
> believe that there is, but I don't think it's been stated explicitly,
> so maybe I'm just smoking.
> 
> --- In flexcoders@yahoogroups.com


> , "brian.knorr"  wrote:
> >
> > 
> > I started playing around with the automation package. I first had to
> > copy the automation source from the Flex SDK into my project and
> > compile it...for some reason the classes are not accessible starting
> > out. I see that I can drive the Flex UI through the automation
events
> > programmatically...I did a little test and it seems to work so far.
I
> > will continue looking into leveraging the automation classes found
in
> > the SDK. I still plan on creating a scripting layer that abstracts
> > folks from having to do event based logic. But why do I need FDS? It
> > seems to work fine so far without it.
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 
>  , "Matt Chotin" 
wrote:
> > >
> > > FDS requirement first: it is a licensing requirement; it is not a
> > > technical requirement. And the license is that you need to pay
> for one
> > > FDS CPU license per tester seat. That license could be
Departmental
> > > (list $6k) or Enterprise. So if you're looking to create a tool
that
> > > can be used for free by the testers, the automation framework is
> > > probably not for you. But if you're just looking to avoid using
QTP
> > > then this could give you a big head start.
> > > 
> > > 
> > > 
> > > We are working on documentation for writing an agent. That has
been
> > > slower to come out because it's primarily ISV/partners who are
> > > interested in building agents. When the docs are ready we'll post
> them.
> > > 
> > > 
> > > 
> > > I think it is fair to say that playback is essentially what you
> need to
> > > support scripting, even if you don't need recording. QTP for
example
> > > records actions into scripts, then the tool plays the script back
> and we
> > > turn those into the playback commands. You can do the same thing.
> > > Either you can write to the automation framework directly with
> events,
> > > or you could write some layer that takes your own scripting calls
> and
> > > generates the automation events for you. The automation framework
is
> > > written in AS and exposes classes, methods, and events, so it is
> capable
> > > of being used programmatically.
> > > 
> > > 
> > > 
> > > Matt
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
 
>  
> [mailto:flexcoders@yahoogroups.

[flexcoders] Datefield inconsistencies? Or is it just me!

2007-02-09 Thread baserath_2001
This little error is driving me crazy:

I am trying to populate a datagrid with values from a table based on 
the day selected in the datefield. I can use the datefield to choose 
and pass the value to my webservice but the result returned does not 
reflect the date selected. For example I can select 2/9/2007 and the 
service sends 2/8/2007 if it sends any data at all.

Is my error in flex or in my webservice. I know this is not a 
coldfusion forum but I use a cffunction as my service. I feel it may 
be flex related since occasionally I can get the same error in 
VB.net.  


When the component is created I set the default date of the datefield 
using the following code in the DateField Creation Complete event:


creationComplete="dtcLogDate.selectedDate = new Date();" 


The initialized the data loads properly based on the above setting 
but when I start changing the date is where the problem exists.


I pass the variable as the input parameter in the service using:


{dtcLogDate.selectedDate}



My webservice is below as you can see I receive the dateVar as a 
cfarugment I then break it down into dayparts in order to filter my 
data since the data, which being filtered is stored in "mm/dd/ 
hh:mm:ss AM" format in the db.











SELECT
  E.first_name,
  E.last_name,
  E.address,
  E.city,
  E.state,
  E.zip,
  E.email,
  E.phone as empPhone,
  STUFF(CONVERT(char(19), L.logrecord , 100),1,12,'') AS 
LogInTime,
  L.eid,
  S.store_code,
  S.address as StoreAddress,
  S.city as StoreCity,
  S.state as StoreState,
  S.phone as StorePhone
FROM dbo.loghistory AS L
INNER JOIN dbo.employees AS E
ON L.eid = E.eid
INNER JOIN dbo.stores AS S
ON S.sid = E.sid
WHERE DATEPART(, L.logrecord) = #scheduleYear# AND 
DATEPART(mm, L.logrecord) = #scheduleMonth# AND
DATEPART(dd, L.logrecord) = #scheduleDay# 
order by logrecord desc




Thanks in advance!
Shawn





RE: [flexcoders] remove comments on compile - strip comments - optimize SWF size - reduce size

2007-02-09 Thread Gordon Smith
Comments are not compiled into the SWF; no source code is. The debug
version of the SWF has opcodes which have file paths and line numbers.
So there is a tiny effect from comments affecting the line numbers
(possibly to have more digits) which can then change the SWF
compression. But this is insignificant.

 

Names like getVideoPlayer only appear once in the SWF (in the "constant
pool") no matter how many times you call this method, but the constant
pool can still be sizable. A SWF obfuscator would presumably shorten the
names (as well as make them unreadable), but Adobe haven't developed one
and I'm not sure 3rd-party ones are available for Player 9 SWFs.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Hanson
Sent: Friday, February 09, 2007 10:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] remove comments on compile - strip comments -
optimize SWF size - reduce size

 

Is there a way to remove comments or strip comments out of the AS3
code during compiler preprocessing? I have noticed that the SWF size
is larger if comments are left in. It is not a huge amount of added
size, but it can add up to 10-20 KB for a large project. 

I am working on an AS3 project (not mxml) and I am trying to get the
final size down to less then 40KB. I am looking for a way to remove
comments to make the SWF smaller. I would also like to run a tool
that will shorten all the class, property, and method names. I could
go in and manually optimize the code, but it makes development much
harder when you have no comments and you methods are named gvp()
gvpl() instead of getVideoPlayer() and getVideoPlaylist(). I would
much rather find a precompile process of some kind.

Any ideas?

Thanks

--jason

key words:
remove comments on compile
strip comments
optimize SWF size
reduce size
file size

 



[flexcoders] Problem populating datagrid after state change, need a Repeater maybe?

2007-02-09 Thread Cashorali, Tanya M.
I have a form collecting data about an experiment.  There's a numeric stepper
that specifies number of repeated experiments there will be.

 

Once the user enters all the data and presses submit, there's a state change
triggered if the numeric stepper value is > 1.

I'd like the data from the form to be repeated the number of times specified and
the only item that would change is the name of the experiment.

These could also be text boxes that are editable so that the user can change
certain aspects of each experiment.

 

At this point, I can't even populate a datagrid manually.I also tried using
a Repeater with no luck, I could only get the currentItem, it didn't generate
multiple textboxes based on an ArrayCollection.





THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER 
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR 
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS 
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND 
PROPERLY DISPOSE OF THIS INFORMATION.




RE: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-09 Thread Gordon Smith
Thanks, Francis. Sorry I didn't read the ASDoc carefully enough!

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Francis Cheng
Sent: Friday, February 09, 2007 10:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

It is documented, in two places:

 

1)   ActionScript Language Reference: 
http://www.adobe.com/livedocs/flex/201/langref/flash/events/EventDispatc
her.html
 
In the method detail for flash.events.EventDispatcher.addEventListener()
see the description of the priority parameter:
"If two or more listeners share the same priority, they are processed in
the order in which they were added."

2)   Programming ActionScript 3.0 (chapter on Event Handling)
http://www.adobe.com/livedocs/flex/201/html/16_Event_handling_172_6.html
#119538
 
See the subsection titled "Adding Event Listeners" and the paragraph
that discusses the priority parameter. The last sentence reads:
Event listeners with the same priority are executed in the order that
they were added, so the earlier a listener is added, the sooner it will
be executed.

 

HTH,

 

Francis



From: Gordon Smith 
Sent: Friday, February 09, 2007 9:58 AM
To: flexcoders@yahoogroups.com
Cc: DL-Flash Player IMD
Subject: RE: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

It should be documented, but I'm not sure that it is. I can't find it in
the ASDoc, for example, which doesn't seem to discuss the case of
registering multiple listeners for the same event with the same
priority.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Friday, February 09, 2007 12:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

Hi Gordon, 

Is this a documented behaviour or just the current implementation? 
Where can we find the documentation? 

Cheers
Ralf. 




On 2/9/07, Gordon Smith <[EMAIL PROTECTED]  >
wrote:

> Didn't I read somewhere that the order you add listeners is the order
they get dispatched in as3 now?

 

That's correct.


 

 

 

 



[flexcoders] Re: Does anyone know how to set a legendMarkerRenderer dynamically ???

2007-02-09 Thread mgrayfmr
I tried something else on a suggestion, that also did not work, even 
though it seems OK.

I created a style sheet entry like this:
.legendRenderer
{
legendMarkerRenderer:   ClassReference
("mx.charts.renderers.CircleItemRenderer");
}

I made sure the style sheet was included in my app.
I then set the style of my series like this:
for(var k:int = 0; k < tmpSeriesArrayColl.length - 1; k++)
{ 
ls = new LineSeries();
ls.displayName = tmpSeriesArrayColl[k].name;
ls.yField = 'value'; 
ls.xField = 'time';  
ls.form = "line";
ls.dataProvider = tmpSeriesArrayColl[k].data;

stroke = new Stroke();
//Use the color specified in XML for the stroke
stroke.color = tmpSeriesArrayColl[k].color;
stroke.weight = 1;
ls.setStyle("lineStroke", stroke);
ls.styleName = "legendRenderer";
this.linechart.series[k] = ls;  
}
}

It still complained that the object did not find the IFactory 
interface. So it is trying to load my renderer.
It looks like the answer would be to sub-class the renderer and 
implement the IFactory interface. 
Just thought I would share in case anyone sees this issue.

--- In flexcoders@yahoogroups.com, "mgrayfmr" <[EMAIL PROTECTED]> wrote:
>
> I am creating LineSeries objects dynamically, and I want to be 
able 
> to use the CircleItemRenderer for the legend. 
> I tried doing this several ways, but get an error that the 
renderer 
> cannot be cast to a type of IFactory. I tried making sure 
> CircleItemRenderer was imported, and using new CircleItemRenderer
(), 
> but no dice.
> 
> I'm doing something like this.
> The only line that blows up is the LegendMarkerRenderer.
> My array contains series data, a display name, and a color.
> 
> for(var k:int = 0; k < ChartDataVO.arrCollSeriesArray.length - 1; 
> k++)
> { 
>ls = new LineSeries();
>ls.displayName = ChartDataVO.arrCollSeriesArray[k].name;
>ls.yField = 'value'; 
>ls.xField = 'time';  
>ls.form = "line";
>ls.dataProvider = ChartDataVO.arrCollSeriesArray[k].data;
>   
>stroke = new Stroke();
>stroke.color = ChartDataVO.arrCollSeriesArray[k].color;
>stroke.weight = 1;
>ls.setStyle("lineStroke", stroke);
>ls.setStyle
> ("legendMarkerRenderer", "mx.charts.renderers.CircleItemRenderer");
>ls.styleName = ChartDataVO.arrCollSeriesArray_AVG[k].key; 
>this.linechart.series[k] = ls;  
> }
> 
> Anyone have any insights ?
> Thanks in advance !!!
> Mike
>




[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-09 Thread brian.knorr

Ya...I discovered that there isn't an AutomationManager implementation
in the automation packages in the SDK.  But now I am looking into
implementing the IAutomationManager and the IAutomationObjectHelper
myself with my own classes.  With this I should be able to "play"
events to instrument the Flex ui components.  Matt - do you know of
any gotchas that I should be aware of in doing this?

Thanks,

Brian

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Yes, there is a licensing restriction on mx.automation.  The
> implementation of IAutomationManager which is the main entry point into
> the system is restricted by the per-seat license of FDS as we've been
> discussing.  The reason the rest of the code is included is because you
> need to be able to write your components to implement the appropriate
> methods and whatnot to support the larger system.  If you were a
> component developer you can still implement the APIs for free.
> 
>  
> 
> Matt
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Chris Luebcke
> Sent: Friday, February 09, 2007 10:45 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: any interest in an alternative to QTP to
> automate Flex apps?
> 
>  
> 
> I think you could have saved yourself some time by adding
> ${FRAMEWORKS}\libs\automation.swc (there's also an
> automation_charts.swc) to your project's library path.
> 
> Matt Chotin, et al: Is there a licensing restriction on using the
> mx.automation package (i.e. FDS)? This thread has kind of lead me to
> believe that there is, but I don't think it's been stated explicitly,
> so maybe I'm just smoking.
> 
> --- In flexcoders@yahoogroups.com 
> , "brian.knorr"  wrote:
> >
> > 
> > I started playing around with the automation package. I first had to
> > copy the automation source from the Flex SDK into my project and
> > compile it...for some reason the classes are not accessible starting
> > out. I see that I can drive the Flex UI through the automation events
> > programmatically...I did a little test and it seems to work so far. I
> > will continue looking into leveraging the automation classes found in
> > the SDK. I still plan on creating a scripting layer that abstracts
> > folks from having to do event based logic. But why do I need FDS? It
> > seems to work fine so far without it.
> > 
> > 
> > --- In flexcoders@yahoogroups.com
>  , "Matt Chotin"  wrote:
> > >
> > > FDS requirement first: it is a licensing requirement; it is not a
> > > technical requirement. And the license is that you need to pay
> for one
> > > FDS CPU license per tester seat. That license could be Departmental
> > > (list $6k) or Enterprise. So if you're looking to create a tool that
> > > can be used for free by the testers, the automation framework is
> > > probably not for you. But if you're just looking to avoid using QTP
> > > then this could give you a big head start.
> > > 
> > > 
> > > 
> > > We are working on documentation for writing an agent. That has been
> > > slower to come out because it's primarily ISV/partners who are
> > > interested in building agents. When the docs are ready we'll post
> them.
> > > 
> > > 
> > > 
> > > I think it is fair to say that playback is essentially what you
> need to
> > > support scripting, even if you don't need recording. QTP for example
> > > records actions into scripts, then the tool plays the script back
> and we
> > > turn those into the playback commands. You can do the same thing.
> > > Either you can write to the automation framework directly with
> events,
> > > or you could write some layer that takes your own scripting calls
> and
> > > generates the automation events for you. The automation framework is
> > > written in AS and exposes classes, methods, and events, so it is
> capable
> > > of being used programmatically.
> > > 
> > > 
> > > 
> > > Matt
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
>  
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > > Behalf Of brian.knorr
> > > Sent: Thursday, February 08, 2007 7:35 AM
> > > To: flexcoders@yahoogroups.com 
> 
> > > Subject: [flexcoders] Re: any interest in an alternative to QTP to
> > > automate Flex apps?
> > > 
> > > 
> > > 
> > > 
> > > Is there any documentation on building an adapter to use the
> > > automation packages? I browsed through the source of the classes in
> > > the automation package and it appears to support the record and
> > > playback model of testing, which in my opinion what you want to
> avoid.
> > > Can the automation package be leveraged for programmatically
> > > controlling the Flex components like you would do in a tool like
> > > Watir, Watij, or Jemmy? Is FDS a

RE: [flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-09 Thread Matt Chotin
Yes, there is a licensing restriction on mx.automation.  The
implementation of IAutomationManager which is the main entry point into
the system is restricted by the per-seat license of FDS as we've been
discussing.  The reason the rest of the code is included is because you
need to be able to write your components to implement the appropriate
methods and whatnot to support the larger system.  If you were a
component developer you can still implement the APIs for free.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Luebcke
Sent: Friday, February 09, 2007 10:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: any interest in an alternative to QTP to
automate Flex apps?

 

I think you could have saved yourself some time by adding
${FRAMEWORKS}\libs\automation.swc (there's also an
automation_charts.swc) to your project's library path.

Matt Chotin, et al: Is there a licensing restriction on using the
mx.automation package (i.e. FDS)? This thread has kind of lead me to
believe that there is, but I don't think it's been stated explicitly,
so maybe I'm just smoking.

--- In flexcoders@yahoogroups.com 
, "brian.knorr" <[EMAIL PROTECTED]> wrote:
>
> 
> I started playing around with the automation package. I first had to
> copy the automation source from the Flex SDK into my project and
> compile it...for some reason the classes are not accessible starting
> out. I see that I can drive the Flex UI through the automation events
> programmatically...I did a little test and it seems to work so far. I
> will continue looking into leveraging the automation classes found in
> the SDK. I still plan on creating a scripting layer that abstracts
> folks from having to do event based logic. But why do I need FDS? It
> seems to work fine so far without it.
> 
> 
> --- In flexcoders@yahoogroups.com
 , "Matt Chotin"  wrote:
> >
> > FDS requirement first: it is a licensing requirement; it is not a
> > technical requirement. And the license is that you need to pay
for one
> > FDS CPU license per tester seat. That license could be Departmental
> > (list $6k) or Enterprise. So if you're looking to create a tool that
> > can be used for free by the testers, the automation framework is
> > probably not for you. But if you're just looking to avoid using QTP
> > then this could give you a big head start.
> > 
> > 
> > 
> > We are working on documentation for writing an agent. That has been
> > slower to come out because it's primarily ISV/partners who are
> > interested in building agents. When the docs are ready we'll post
them.
> > 
> > 
> > 
> > I think it is fair to say that playback is essentially what you
need to
> > support scripting, even if you don't need recording. QTP for example
> > records actions into scripts, then the tool plays the script back
and we
> > turn those into the playback commands. You can do the same thing.
> > Either you can write to the automation framework directly with
events,
> > or you could write some layer that takes your own scripting calls
and
> > generates the automation events for you. The automation framework is
> > written in AS and exposes classes, methods, and events, so it is
capable
> > of being used programmatically.
> > 
> > 
> > 
> > Matt
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com 
] On
> > Behalf Of brian.knorr
> > Sent: Thursday, February 08, 2007 7:35 AM
> > To: flexcoders@yahoogroups.com 

> > Subject: [flexcoders] Re: any interest in an alternative to QTP to
> > automate Flex apps?
> > 
> > 
> > 
> > 
> > Is there any documentation on building an adapter to use the
> > automation packages? I browsed through the source of the classes in
> > the automation package and it appears to support the record and
> > playback model of testing, which in my opinion what you want to
avoid.
> > Can the automation package be leveraged for programmatically
> > controlling the Flex components like you would do in a tool like
> > Watir, Watij, or Jemmy? Is FDS absolutely required to build on top
of
> > this system? 
> > 
> > --- In flexcoders@yahoogroups.com
 

> > , "Matt Chotin"  wrote:
> > >
> > > I am not looking to derail any interest in you guys building
> > > alternatives, but would like to point out that the Flex team did a
> > large
> > > amount of work to enable the kind of functionality you're
looking for
> > > (minus the tool). Check out the mx.automation packages and
you'll see
> > > the infrastructure that is in place to solve problems like using
> > > semantic events instead of x/y coordinates, etc. Admittedly, this
is
> > > the portion that we consider the mo

Re: [flexcoders] How to get Flex2 Maven Plugin?

2007-02-09 Thread Thijs Triemstra | Collab

Hi Cristian,

The pom.xml below is a copy-paste of the example on your site, it  
also uses version '1.0-SNAPSHOT' and after reading your reply I  
realized that this should be '1.0-alpha-2' instead.
Maybe you should modify the examples on your site or point out it  
needs to be changed to the most recent version..


cheers,

Thijs

Op 8-feb-2007, om 22:03 heeft Christian Gruber het volgende geschreven:

Only versions 1.0-alpha-1 and 1.0-alpha-2 have been published.  The  
snapshots are not published at present.  I am currently on a two  
week trip away, and will be publishing further changes when I  
return, which will be available within a few hours of their  
publishing on ibiblio.


In the mean-time, please feel free to e-mail me with comments,  
thoughts, missing features, problems, etc.


Regards,
Christian Gruber


On 2/6/07 12:47 AM, "Thijs Triemstra | Collab" <[EMAIL PROTECTED]>  
wrote:







I created a new project with maven and edited the pom.xml so it looks
like this:

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
maven.apache.org/maven-v4_0_0.xsd">
 4.0.0
 nl.collab.flex.maven
 flex-maven-test
 swf
 1.0-SNAPSHOT
 
 /Developer/SDKs/Flex
 
 
 
 
 net.israfil.mojo
 maven-flex2-plugin
 1.0-SNAPSHOT
 true
 
 ${flex.home}
 true
 src/main/resources/services-config.xml
 main.mxml
 
 
 
 
 
 
 junit
 junit
 3.8.1
 test
 
 


And when I try 'mvn compile' I get the error below. Is the plugin
going to be available in the main repository (central)? How do I get
the plugin to work?

[INFO] Scanning for projects...
[INFO]
--
[ERROR] BUILD ERROR
[INFO]
--
[INFO] Failed to resolve artifact.

GroupId: net.israfil.mojo
ArtifactId: maven-flex2-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

net.israfil.mojo:maven-flex2-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)

[INFO]
--
[INFO] For more information, run Maven with the -e switch
[INFO]
--
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Feb 05 23:40:52 CET 2007
[INFO] Final Memory: 1M/2M
[INFO]
--

Thanks,

Thijs









Re: [flexcoders] Flex 2 + Wiimote + PaperVision 3D = good times

2007-02-09 Thread slangeberg

No, if you read his articles, or watch the right movie (can't remember!)
you'll see he wrote a socket server (C++?) that communicates with the Wii.
Then, flash hooks up with a binary socket and reads from that.

-Scott

On 2/9/07, Kevin Newman <[EMAIL PROTECTED]> wrote:


  slangeberg wrote:
> By way of bytearray.org :
>
> http://blog.je2050.de/2007/02/02/wiiflash-and-papervision3d/
>
> : : ) Scott
I must have missed it. Does the Wii support Flash Player 9 now?

Kevin N.

 





--

: : ) Scott


[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-09 Thread Chris Luebcke
I think you could have saved yourself some time by adding
${FRAMEWORKS}\libs\automation.swc (there's also an
automation_charts.swc) to your project's library path.

Matt Chotin, et al: Is there a licensing restriction on using the
mx.automation package (i.e. FDS)? This thread has kind of lead me to
believe that there is, but I don't think it's been stated explicitly,
so maybe I'm just smoking.

--- In flexcoders@yahoogroups.com, "brian.knorr" <[EMAIL PROTECTED]> wrote:
>
> 
> I started playing around with the automation package.  I first had to
> copy the automation source from the Flex SDK into my project and
> compile it...for some reason the classes are not accessible starting
> out.  I see that I can drive the Flex UI through the automation events
> programmatically...I did a little test and it seems to work so far.  I
> will continue looking into leveraging the automation classes found in
> the SDK.  I still plan on creating a scripting layer that abstracts
> folks from having to do event based logic.  But why do I need FDS?  It
> seems to work fine so far without it.
> 
> 
> --- In flexcoders@yahoogroups.com, "Matt Chotin"  wrote:
> >
> > FDS requirement first: it is a licensing requirement; it is not a
> > technical requirement.  And the license is that you need to pay
for one
> > FDS CPU license per tester seat.  That license could be Departmental
> > (list $6k) or Enterprise.  So if you're looking to create a tool that
> > can be used for free by the testers, the automation framework is
> > probably not for you.  But if you're just looking to avoid using QTP
> > then this could give you a big head start.
> > 
> >  
> > 
> > We are working on documentation for writing an agent.  That has been
> > slower to come out because it's primarily ISV/partners who are
> > interested in building agents.  When the docs are ready we'll post
them.
> > 
> >  
> > 
> > I think it is fair to say that playback is essentially what you
need to
> > support scripting, even if you don't need recording.  QTP for example
> > records actions into scripts, then the tool plays the script back
and we
> > turn those into the playback commands.  You can do the same thing.
> > Either you can write to the automation framework directly with events,
> > or you could write some layer that takes your own scripting calls and
> > generates the automation events for you.  The automation framework is
> > written in AS and exposes classes, methods, and events, so it is
capable
> > of being used programmatically.
> > 
> >  
> > 
> > Matt
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of brian.knorr
> > Sent: Thursday, February 08, 2007 7:35 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: any interest in an alternative to QTP to
> > automate Flex apps?
> > 
> >  
> > 
> > 
> > Is there any documentation on building an adapter to use the
> > automation packages? I browsed through the source of the classes in
> > the automation package and it appears to support the record and
> > playback model of testing, which in my opinion what you want to avoid.
> > Can the automation package be leveraged for programmatically
> > controlling the Flex components like you would do in a tool like
> > Watir, Watij, or Jemmy? Is FDS absolutely required to build on top of
> > this system? 
> > 
> > --- In flexcoders@yahoogroups.com

> > , "Matt Chotin"  wrote:
> > >
> > > I am not looking to derail any interest in you guys building
> > > alternatives, but would like to point out that the Flex team did a
> > large
> > > amount of work to enable the kind of functionality you're
looking for
> > > (minus the tool). Check out the mx.automation packages and
you'll see
> > > the infrastructure that is in place to solve problems like using
> > > semantic events instead of x/y coordinates, etc. Admittedly, this is
> > > the portion that we consider the more interesting IP rather than the
> > > plugin that enables QTP to leverage this functionality (and what you
> > > need to pay to use). If you have FDS or are willing to invest
money in
> > > the APIs even if not in QTP itself, I'd encourage you to build
on top
> > of
> > > this system. Interest from other vendors is increasing as well and I
> > > hope that we'll see offerings in addition to QTP in the future (they
> > > will be built using this framework). 
> > > 
> > > 
> > > 
> > > As I stated previously we will continue to examine licensing options
> > for
> > > things like the automation package, but do not expect any changes in
> > the
> > > short term.
> > > 
> > > 
> > > 
> > > Matt
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com

> > ] On
> > > Behalf Of brian.knorr
> > > Sent: Wednesday, February 07,

[flexcoders] Re: filterFunction

2007-02-09 Thread Mark
That would be a great start, thanks



--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>
> if you want, I can post how I iterate through a collection which should get
> you started.
> 
> On 2/9/07, Mark <[EMAIL PROTECTED]> wrote:
> >
> >   I was just about to post the same question before I saw this and
> > thought I'd ride this one out to see where it goes.
> >
> > I've found a bunch of examples on how to filter an ArrayCollection
> > with a text box such as this one (maybe it will help you Kumar):
> > http://spbarber.com/blog/flex-20-listcollectionviewfilterfunction-
> > example-1
> >
> > What I'm looking to do is filter my ArrayCollection with a
> > radiobuttongroup I have in place. Below is my XML and I want to
> > filter on the "phase" node. So if the user clicks the radio button
> > with the value of Deployment my datagrid will now only display those
> > records. The text examples seem to be much more than I need. I
> > believe it should be easier than what I'm finding.
> >
> > 
> > 
> > US Flash 8 Upgrade
> > 1
> > Deployment Date
> > Deployment
> > Initiative to upgrade
> > Derek Nagy
> > 07/06/2006
> > 07/06/2006
> > 0
> > EYG
> > Security fixes
> > US
> > All
> > 
> > 
> > 
> > Howard
> > ...
> >
> > ===
> >
> > --- In flexcoders@yahoogroups.com , kumarpal
> > jain 
> > wrote:
> > >
> > > Hi All,
> > >
> > > Can some one help me in filterFunction method of
> > listcollectionView or Array Collection ..
> > >
> > > I am looking for some examples on the same which will help .
> > >
> > > I am a bit confused in this I want to filter some records in
> > array collection and can we use this method for this...
> > >
> > > Thanks
> > > Kumar
> > >
> > >
> > >
> > > -
> > > Here's a new way to find what you're looking for - Yahoo! Answers
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
>




Re: [flexcoders] Flex 2 + Wiimote + PaperVision 3D = good times

2007-02-09 Thread Kevin Newman
slangeberg wrote:
> By way of bytearray.org :
>
> http://blog.je2050.de/2007/02/02/wiiflash-and-papervision3d/
>
> : : ) Scott 
I must have missed it. Does the Wii support Flash Player 9 now?

Kevin N.





[flexcoders] retreiving object height after adding it as a child object

2007-02-09 Thread scott_flex
How or when can you retreive the height of a display object when you 
add it to your vbox or hbox.

I have code that looks like this:

var myObject:myControl = new myControl();

// call the public load method with xml to set some text
// on myControl and other display values.
myControl.load(myXml); 

myVBox.addChild(myControl);

trace(myControl.height); // returns 0

if I add an updateComplete event listener to myControl, i normally 
get 4 calls to the handler since there are several phases in the 
layout.  Which one is the last one?  In theory the "next" one is the 
last one, i realize that.  

if i listen to the creationComplete event, it's only called 
once but it's dispached before it finished it's truly done sizing 
itself.

even doing a callLater to get myControl's height doesn't work, too 
soon.

SO at what point can i be sure that i can retreive the 
myControl.height property and know it's the final height?




[flexcoders] remove comments on compile - strip comments - optimize SWF size - reduce size

2007-02-09 Thread Jason Hanson
Is there a way to remove comments or strip comments out of the AS3
code during compiler preprocessing?  I have noticed that the SWF size
is larger if comments are left in.  It is not a huge amount of added
size, but it can add up to 10-20 KB for a large project. 

I am working on an AS3 project (not mxml) and I am trying to get the
final size down to less then 40KB.  I am looking for a way to remove
comments to make the SWF smaller.  I would also like to run a tool
that will shorten all the class, property, and method names.  I could
go in and manually optimize the code, but it makes development much
harder when you have no comments and you methods are named gvp()
gvpl() instead of getVideoPlayer() and getVideoPlaylist().  I would
much rather find a precompile process of some kind.

Any ideas?

Thanks

--jason

key words:
remove comments on compile
strip comments
optimize SWF size
reduce size
file size




[flexcoders] problem loading an AS3 Swf into another one

2007-02-09 Thread nicolasparziale
basically what happens is that i can load the first AS3 swf(a.swf)
into another AS3. but when i try to load it into another project it
seems to have a security trouble or something that don't let me access
the SWFLoader.content , but of course that it's fully loaded when i
try on doing that.

Did anyone had a similar problem?

(sorry about my english but im argentinian)

thanks and gracias !



[flexcoders] amfphp + codeigniter

2007-02-09 Thread joshua gatcke
Has anyone ever created a Flex + PHP project using AMFPHP +  
Codeigniter? I have been trying to integrate the two with no luck.

Or maybe I shouldn't integrate the two, the question then becomes:  
does anyone know how to consume webservices from external sources  
with amfphp? what I mean is, right now, with amfphp I have to point  
my remoteobject tag to amfphp/gateway.php sending the method I want  
to use etc. What if I wanted to use the remote object tag to access  
flickr? would I have to call the flickr webservice from an amfphp  
service and return the results to flex with amfphp, or is there a way  
to go from flex -> flickr using amfphp? If the latter is possible,  
then I can just create xml-rpc web services in CI and serve them to  
flex.

I am trying to create a flex application that people can download and  
install on their servers / host. That is why we are using PHP. I find  
it incredibly limiting to use  with rest style data  
exchange for my entire application, that is why I am trying to use  
amfphp.

Do a lot of you guys use flex + php? if so, what sort of development  
approach do you take?

THanks in advance for any help suggestions.

  


[flexcoders] Re: Self Signed Cert. For Secure SecureRTMPChannel

2007-02-09 Thread Doug Lowder

Looks like you didn't add the self-signed certificate to the keystore. 
Check out the "keytool -import" command.

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#Comman\
ds
 



--- In flexcoders@yahoogroups.com, "vitopn" <[EMAIL PROTECTED]> wrote:
>
> What steps do I need to take to get a self signed certificate to work
> with SecureRTMPChannel?
>
> I generate the keystore file with something like this:
> keytool -genkey -alias flex2cert -dname "CN=localhost, OU=Presidio,
> O=Presidio, L=San Francisco, S=California, C=CA" -validity 3650
>
> and configure the channel like this:
>  class="mx.messaging.channels.SecureRTMPChannel">
>  class="flex.messaging.endpoints.SecureRTMPEndpoint" />
> 
> 20
>
C:/Tomcat/webapps/Presidio/WEB-INF/flex/.keystore
> changeit
> 
> 
>
>
> The server starts and I see this in the console:
> [Flex][INFO] Endpoint secureRTMP created with security: None
> at URI: rtmps://localhost:2099
> [Flex][WARN] The current license does not support clustering;
> clustering for all destinations is disabled.
> [Flex][INFO] RTMPS-Server listening on port:2099
> [Flex][DEBUG] Created worker thread: RTMPS-Worker-0
> [Flex][DEBUG] Created worker thread: RTMPS-Worker-1
> [Flex][DEBUG] Created worker thread: RTMPS-Worker-2
> [Flex][DEBUG] Created worker thread: RTMPS-Worker-3
>
>
> When I try to connect I get this:
>
> 'secureRTMP' channel got status. (Object)#0
> code = "NetConnection.Connect.CertificateUntrustedSigner"
> level = "status"
>
>
> Thank you,
> -Vito
>




RE: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-09 Thread Francis Cheng
It is documented, in two places:

 

1)   ActionScript Language Reference: 
http://www.adobe.com/livedocs/flex/201/langref/flash/events/EventDispatc
her.html
In the method detail for flash.events.EventDispatcher.addEventListener()
see the description of the priority parameter:
"If two or more listeners share the same priority, they are processed in
the order in which they were added."

2)   Programming ActionScript 3.0 (chapter on Event Handling)
http://www.adobe.com/livedocs/flex/201/html/16_Event_handling_172_6.html
#119538
See the subsection titled "Adding Event Listeners" and the paragraph
that discusses the priority parameter. The last sentence reads:
Event listeners with the same priority are executed in the order that
they were added, so the earlier a listener is added, the sooner it will
be executed.

 

HTH,

 

Francis



From: Gordon Smith 
Sent: Friday, February 09, 2007 9:58 AM
To: flexcoders@yahoogroups.com
Cc: DL-Flash Player IMD
Subject: RE: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

It should be documented, but I'm not sure that it is. I can't find it in
the ASDoc, for example, which doesn't seem to discuss the case of
registering multiple listeners for the same event with the same
priority.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Friday, February 09, 2007 12:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

Hi Gordon, 

Is this a documented behaviour or just the current implementation? 
Where can we find the documentation? 

Cheers
Ralf. 



On 2/9/07, Gordon Smith <[EMAIL PROTECTED]  >
wrote:

> Didn't I read somewhere that the order you add listeners is the order
they get dispatched in as3 now?

 

That's correct.


 

 

 

 



[flexcoders] Custom TreeItemRenderer??

2007-02-09 Thread tinkiknit
Hi again Flexperts...

I'm still working on my tree of query terms...I'm perplexed about 
customizing the TreeItemRenderer so that my "nodes" (these are 
actually my custom component which is used to create query terms) 
show up instead of the default file icon and label.

Example in plain text:

AND
 |
 +

OR
 |
 +

NOT
 |
 +
the + represents my custom component as it's a linkButton that when 
clicked brings up a fancy query builder to add a term for that 
operation...so far I have in XML representing my tree:


  
 

 
 

 
 

 
  


I want my children to show up as the custom component that is fully 
functional and think that TreeItemRenderer is the place I need to put 
code to do this. Any examples out there for using a custom component 
for nodes?

Thanks in advance!

Christine



Re: [flexcoders] Re: filterFunction

2007-02-09 Thread Clint Tredway

if you want, I can post how I iterate through a collection which should get
you started.

On 2/9/07, Mark <[EMAIL PROTECTED]> wrote:


  I was just about to post the same question before I saw this and
thought I'd ride this one out to see where it goes.

I've found a bunch of examples on how to filter an ArrayCollection
with a text box such as this one (maybe it will help you Kumar):
http://spbarber.com/blog/flex-20-listcollectionviewfilterfunction-
example-1

What I'm looking to do is filter my ArrayCollection with a
radiobuttongroup I have in place. Below is my XML and I want to
filter on the "phase" node. So if the user clicks the radio button
with the value of Deployment my datagrid will now only display those
records. The text examples seem to be much more than I need. I
believe it should be easier than what I'm finding.



US Flash 8 Upgrade
1
Deployment Date
Deployment
Initiative to upgrade
Derek Nagy
07/06/2006
07/06/2006
0
EYG
Security fixes
US
All



Howard
...

===

--- In flexcoders@yahoogroups.com , kumarpal
jain <[EMAIL PROTECTED]>
wrote:
>
> Hi All,
>
> Can some one help me in filterFunction method of
listcollectionView or Array Collection ..
>
> I am looking for some examples on the same which will help .
>
> I am a bit confused in this I want to filter some records in
array collection and can we use this method for this...
>
> Thanks
> Kumar
>
>
>
> -
> Here's a new way to find what you're looking for - Yahoo! Answers
>

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: filterFunction

2007-02-09 Thread Mark
I was just about to post the same question before I saw this and 
thought I'd ride this one out to see where it goes.

I've found a bunch of examples on how to filter an ArrayCollection 
with a text box such as this one (maybe it will help you Kumar):
http://spbarber.com/blog/flex-20-listcollectionviewfilterfunction-
example-1

What I'm looking to do is filter my ArrayCollection with a 
radiobuttongroup I have in place.  Below is my XML and I want to 
filter on the "phase" node.  So if the user clicks the radio button 
with the value of Deployment my datagrid will now only display those 
records.  The text examples seem to be much more than I need.  I 
believe it should be easier than what I'm finding.




US Flash 8 Upgrade
1
Deployment Date
Deployment
Initiative to upgrade
Derek Nagy
07/06/2006
07/06/2006
0
EYG
Security fixes
US
All



Howard
  ...


===





--- In flexcoders@yahoogroups.com, kumarpal jain <[EMAIL PROTECTED]> 
wrote:
>
> Hi All,
>
>   Can some one help me in filterFunction method of 
listcollectionView or Array Collection ..
>
>   I am looking for some examples on the same which will help .
>
>   I am a bit confused in this I want to filter some records in 
array collection and can we use this method for this...
>
>   Thanks
>   Kumar
>
> 
>   
> -
>  Here's a new way to find what you're looking for - Yahoo! Answers
>




[flexcoders] PHP FLEX Login Component Free Source

2007-02-09 Thread omnipotencezennou
I have just publish a working PHP / Flex login/Registration component
to my blog. You can right click to view the source. It is fully
commented and includes lots of features like client side validation
and a remember username feature for creating cookies on the client
computer.
Hope that this helps someone comments and suggestions welcome.

Link to the site:
;http://www.betadesigns.co.uk/index.php/blog/

Enjoy
Anthony



RE: [flexcoders] Basics question about FLEX 2 (newbie with flex )

2007-02-09 Thread Gordon Smith
> can flex 2 compile AS2 code target to player 7?

 

No, sorry. Flex 2 relies on AS3, which requires Player 9.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sshaders
Sent: Friday, February 09, 2007 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Basics question about FLEX 2 (newbie with flex )

 

Hi all, 
I have two questions about flex:

I need to be compliant with flash player 7, 
can flex 2 compile AS2 code target to player 7?

I'm using Remoting extension for flash MX 2004; 
can I use the same Remoting extension with flex 2?
Basicly i'm using AMFPHP, maybe there exist new connection string

in advance thanks 
best regard

 



RE: [flexcoders] Re: FormItem adds extra space on the left . . .

2007-02-09 Thread Gordon Smith
The purpose of a FormItem is to associate a label with one or more
controls like this:

 

Name:  |-|  |-|

 

Address:  |-|

 

It looks like you don't need the label, so you don't need to use a
FormItem. But FormItem should be OK to use even when you don't use a
label, and I'm not sure why it's giving you a bad layout.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of crumpelfungus
Sent: Friday, February 09, 2007 8:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FormItem adds extra space on the left . . .

 

Clint,

Thank you for your swift reply.

Are you saying that there is no benefit in using FormItem with a
RadioButton? (At least, nothing that couldn't be done otherwise.)

--- In flexcoders@yahoogroups.com 
, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>
> Dont use the form or formItem tags, use a grid to layout your form.
> 

 



RE: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-09 Thread Gordon Smith
It should be documented, but I'm not sure that it is. I can't find it in
the ASDoc, for example, which doesn't seem to discuss the case of
registering multiple listeners for the same event with the same
priority.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Friday, February 09, 2007 12:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

Hi Gordon, 

Is this a documented behaviour or just the current implementation? 
Where can we find the documentation? 

Cheers
Ralf. 




On 2/9/07, Gordon Smith <[EMAIL PROTECTED]  >
wrote:

> Didn't I read somewhere that the order you add listeners is the order
they get dispatched in as3 now?

 

That's correct.


 

 

 

 



[flexcoders] Missing SDK Source Code

2007-02-09 Thread j.conley

Just wondering why the source for I/O related classes are mysteriously
missing from the Flex2 SDK when it is present for most other components.

for example:
mx.rpc.*
mx.messaging.*





Re: [flexcoders] more news on our upcoming marketing efforts

2007-02-09 Thread Jack Park

Lots more example code. Tons of example code. All kinds of use cases, all
kinds of interfaces to external technologies (e.g. java, javascript, php,
ruby on rails, whatever).

On 2/9/07, Matt Chotin <[EMAIL PROTECTED]> wrote:


  http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
cfm

Hopefully we're going to see an influx of people trying Flex, any
suggestions the community wants to put together for helping folks get up
and running are always appreciated.

Matt
 



[flexcoders] Self Signed Cert. For Secure SecureRTMPChannel

2007-02-09 Thread vitopn
What steps do I need to take to get a self signed certificate to work
with SecureRTMPChannel?

I generate the keystore file with something like this:
keytool -genkey -alias flex2cert -dname "CN=localhost, OU=Presidio,
O=Presidio, L=San Francisco, S=California, C=CA" -validity 3650

and configure the channel like this:



20
C:/Tomcat/webapps/Presidio/WEB-INF/flex/.keystore
changeit




The server starts and I see this in the console:
[Flex][INFO] Endpoint secureRTMP created with security: None
at URI: rtmps://localhost:2099
[Flex][WARN] The current license does not support clustering;
clustering for all destinations is disabled.
[Flex][INFO] RTMPS-Server listening on port:2099
[Flex][DEBUG] Created worker thread: RTMPS-Worker-0
[Flex][DEBUG] Created worker thread: RTMPS-Worker-1
[Flex][DEBUG] Created worker thread: RTMPS-Worker-2
[Flex][DEBUG] Created worker thread: RTMPS-Worker-3


When I try to connect I get this:

'secureRTMP' channel got status. (Object)#0
code = "NetConnection.Connect.CertificateUntrustedSigner"
level = "status"


Thank you,
-Vito





RE: [flexcoders] Re: Is it possble to drag and drop a line chart ?

2007-02-09 Thread Karl Johnson
I am sure there are a lot of interesting ways to tackle this. I doubt
there is any kind of native support for this functionality, but it is a
pretty interesting and fun problem to tackle. I would start by doing
something like laying a transparent canvas over top of the chart
component, and listen on all mouse events. On mouse down, capture the x
and y of the mouse and determine which item in the chart has been
clicked (either by doing some math or hardcoding the positions to start
with). Then create a drag proxy which contains a representation of the
bar/line being dragged, so it gives them the feel of actually moving the
line item while the drag.
 
On mouse up, after some logic to verify they are dropping it in a good
place (same logic in dragEnter as well), you determine what has been
dragged from the drag source and then manipulate the dataProvider behind
the chart to reflect what has been moved. And of course add some sexy
effects so the line graph transitions nicely from the previous state to
the new state!
 
Hope that helps some. I like problems like these :-)
 
|<
 
Karl Johnson
Cynergy Systems, Inc.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Friday, February 09, 2007 12:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is it possble to drag and drop a line chart ?



Or maybe another solution to the problem ?
Regards,
Sean.

--- In flexcoders@yahoogroups.com 
, "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> Can anyone shed some light on how ( if possible ) to drag a line 
chart 
> bar.
> 
> Basically, I wish to modify the underline data provider using a 
line 
> chart with a drag and drop mouse click so when I drag a bar it will 
> modify the underline data structure...
> 
> Thank you for all the help,
> 
> Sean.
>



 


RE: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-09 Thread Gordon Smith
> Why go through all that instead of just using the startDrag that is a
core method of the Sprite class?

 

I'll try to find out...

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Grigg
Sent: Friday, February 09, 2007 6:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

 


> I can't find anywhere that we use startDrag()in the framework, 
> including in the DragManager.

My bad, you know what they say about 'assuming'. 

Just did some more digging, in the DragProxy class and was very
surprised to see that it actually uses a mouse move event listener and
then repositions the drag proxy based on the the x/y of the mouse.

var pt:Point = new Point();
var point:Point = new Point(event.localX, event.localY);
point = DisplayObject(event.target).localToGlobal(point);
point =
DisplayObject(dragInitiator.systemManager.topLevelSystemManager).globalT
oLocal(point);
var mouseX:Number = point.x;
var mouseY:Number = point.y;
x = mouseX - xOffset;
y = mouseY - yOffset;

This just begs the question, why??? Why go through all that instead of
just using the startDrag that is a core method of the Sprite class?
Just to offset the DragProxy slightly from the mouse pointer? I don't
get it, why bloat (in my opinion) the code. From my understanding
classes and methods that are actually compiled into the flash plugin
(ie the flash.* package) run faster than those that are not (ie. the
mx.* package). I don't understand why all the extra code is required
to accomplish something the plugin already has the ability to do.

 



[flexcoders] Re: TextInput - Incorrect focus behavior

2007-02-09 Thread superstella_uk
--- In flexcoders@yahoogroups.com, "acooleagle" <[EMAIL PROTECTED]> wrote:

Cant you just set the TextField.selectable = false ?

>
> 
> Hi all,
> 
> Seems to me that focus events in TextInputs are a bit out of whack.
> 
> The test application below should never allow focus on the
> phoneNumberInput field, since its "focusIn" event immediately redirects
> focus back to the zipcodeInput field.
> 
> However, the zipCodeInput field remains "active" (as indicated by the
> blue highlight) the phoneNumberInput retains the prompt (!!).
> 
> This is a major problem for us as we would like the focus and the prompt
> to stay in the active field on occasions where the content of the field
> is invalid.
> 
> As far as I am concerned this weird focus/prompt behavior is a bug.
> 
> $5 million question now is : does anybody know a workaround?
> 
> Thanks for all feedback,
> 
> = Dirk
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
>  
>  
>   focusIn="zipCodeInput.setFocus()" />
>  
> 
> 
>




[flexcoders] Re: Basics question about FLEX 2 (newbie with flex )

2007-02-09 Thread ben.clinkinbeard
Flex 2 can only target FP9.

HTH,
Ben


--- In flexcoders@yahoogroups.com, "sshaders" <[EMAIL PROTECTED]> wrote:
>
> Hi all, 
> I have two questions about flex:
>  
> I need to be compliant with flash player 7, 
> can flex 2 compile AS2 code  target to player 7?
> 
> I'm using Remoting extension for flash MX 2004; 
> can I use the same Remoting extension with flex 2?
> Basicly i'm using AMFPHP, maybe there exist new connection string
> 
> in advance thanks 
> best regard
>




[flexcoders] Re: How many phone call does it take to convert a license?

2007-02-09 Thread Tom Cornilliac
Quick update on this issue; Matt Chotin stepped up big time and was
able to get me a new key in less than 24 hours. Thank You, Thank You,
Thank You Matt!

~Tom

On 2/8/07, Tom Cornilliac <[EMAIL PROTECTED]> wrote:
> This is off topic, forgive me. I'm furious and I need to vent publicly
> and I'm sure at least a few of you on this list might benefit from
> this experience. I'm not in the habit of publicly biting the hand that
> feeds me but this nonsense has gone to far to keep it to myself. Adobe
> Customer Service; You should be ashamed of your service in this
> matter.
>
> I have been "trying" to convert one of my FlexBuilder Windows licenses
> to Mac for nearly 30 days now without success. I've been on the phone
> with Customer services several times now and each time I get a
> different story:
>
> * First it was "Your Windows volume license key should work on the Mac
> version", I quickly found out that was wrong.
>
> * Second it was "Sorry about that sir, your Windows key will work but
> you need different media, the demo won't work. We'll ship that to you
> within two weeks", two and a half weeks later no media.
>
> * So I call for the third time..."I'm sorry sir but you've been
> misinformed, you need to fax us a Letter of Software Destruction and
> we'll issue you a new key within 48 hours. OK no problem I've got six
> days left on my demo.
>
> * Today my demo has expired and still no key in sight. Again I
> call"We've received you fax and it's in process but I'm sorry
> again sir, you've been misinformed, it can take up to two weeks to
> issue a new key. You should be receiving your new key along with new
> media in the mail. In the mail!
>
> Words cannot describe how disappointed I am at this point. Adobe has
> basically shut down my primary development platform in the middle of a
> huge project and they don't seem to care. I have a Platinum Support
> Agreement with Adobe, you'd think surely that would get me priority
> service as the agreement I payed for describes. Sadly, I didn't help
> at all. So what about extending the demo? Extension keys are fairly
> common. Nope, they only have one for FlexBuilder 1.5 and not 2.
>
> I have payed for the product, I have payed for Customer Service
> priority (to avoid these issues and loss of productivity), I have
> given you ample time to do your job in this matter. What can possibly
> be so hard about issuing a new license key?
>
> If any of you on the Flex product team are listening and can help in
> this case I would greatly appreciate it. Short of a miracle, I'm off
> to convert my entire development environment back to Windows ;-(
>
> ~Tom
>


[flexcoders] Newbie Question on Menubar/MenuBarItem transition

2007-02-09 Thread jscrummack
Hi,

How do I effect the transition of a menubar list as it displays?
It currently looks like its doing some kind of wipe right transition.

Could just be me but I can't get a handle on what I need to override
to change / remove this transition?

Thanks

Jason



[flexcoders] Re: issue with dataManagementService and spring (i suppose)

2007-02-09 Thread billy_d_white
Did you ever get a solution to this issue?  I'm having the same issue
and my setup is very similar (Tomcat with FDS, Spring, Hibernate,
etc).  I've found that I can create an object, and it immediately
appears in the list component so the fill method is picking it up
after it is saved on the backend. However, I cannot delete it without
getting the "not managed by this service" error. If I click around and
trigger the fill again, it still gives the error. However, if I close
the client browser, start a new one, and login again, I can then go
and delete that item with no problems.

Any ideas?

Bill
--- In flexcoders@yahoogroups.com, "fabio_sebastiano"
<[EMAIL PROTECTED]> wrote:
>
> Hi all, 
> i'm facing a really frustrating issues with my web application taht
> use flex 2.0, fds and integrate spring and flex. Everything works fine
> if a retrieve data from server and display them, but if i try to make
> anykind of update on them, it gives me this error:
> 
> [RPC Fault faultString="Item with id
> '755B8019-F6C0-1DAA-4B7C-09D02B5271B3' not managed by this service. 
> Error on destination 'ente'." faultCode="Local.Call.Failed"
> faultDetail="null"]
> at
>
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> at mx.rpc::AsyncDispatcher/::timerEventHandler()
> at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
> at flash.utils::Timer/flash.utils:Timer::tick()+
> 
> 1) In the Data-management-config.xml, here's the destionation
definition:
> 
> ...
> 
> 
>   
>  EnteAssembler
>   spring
>  
>  
>  
>  
>  
> 
> 2) i've got an assembler class that extends Abstract Assembler and
> overide update, create, delete and fill methods. Fill method works fine.
> 
> 3) i've got an AS3 mapping file with managed and remotclass metadata
> 
> 4) spring seems to be well configured because it could retrieve object
> and beans.
> 
> Where the error is
> Thank you so much
> 
> Fabios
>




[flexcoders] Re: Is it possble to drag and drop a line chart ?

2007-02-09 Thread helihobby
Or maybe another solution to the problem ?
Regards,
Sean.

--- In flexcoders@yahoogroups.com, "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> Can anyone shed some light on how ( if possible ) to drag a line 
chart 
> bar.
> 
> Basically, I wish to modify the underline data provider using a 
line 
> chart with a drag and drop mouse click so when I drag a bar it will 
> modify the underline data structure...
> 
> Thank you for all the help,
> 
> Sean.
>




[flexcoders] Re: more news on our upcoming marketing efforts

2007-02-09 Thread maunger
You go Matt! (And all of the Flex team for that matter!)

excellent news

Mitch

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
> cfm
> 
> Hopefully we're going to see an influx of people trying Flex, any
> suggestions the community wants to put together for helping folks get up
> and running are always appreciated.
> 
> Matt
>




[flexcoders] more news on our upcoming marketing efforts

2007-02-09 Thread Matt Chotin
http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.
cfm

Hopefully we're going to see an influx of people trying Flex, any
suggestions the community wants to put together for helping folks get up
and running are always appreciated.

Matt


RE: [flexcoders] Do I need an ISV support plan if...

2007-02-09 Thread Matt Chotin
Hi Hyrum,

 

The only time you need the ISV support plan or OEM agreement is if you
actually include the SDK as part of your product.  Two examples:

1)   you send your software to customers and include the Flex SDK so
that they can compile SWFs or CSS, etc

2)   as part of your product online you use the SDK to compile MXML
on the fly

 

So if you were to use the SDK to produce SWFs, then put those SWFs on
your website, you have no obligation to us.

 

Hope that helps.  If you have more questions on this feel free to mail
me.

 

Matt

Flex PM

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wilsonpaulsen
Sent: Thursday, February 08, 2007 8:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Do I need an ISV support plan if...

 

I'm hoping someone here can help me.

After spending several weeks programming using the Flex SDK, I found
this on the Adobe website:

"For ISVs that develop software applications for sale that are built
on or embed Flex, an Adobe ISV support plan and/or OEM license and
redistribution agreement is required."

I have a few questions:

First, would this apply to any online Flex-based swf file that is only
accessible to members of a subscription-based service? I'm confused
since the EULA doesn't mention anything about this

Second, how can I actually go about paying Adobe what they want? I've
sent emails to [EMAIL PROTECTED]   as the
website suggests, but haven't
received any responses (for the last two weeks!).

Thanks;
-Hyrum

 



[flexcoders] Basics question about FLEX 2 (newbie with flex )

2007-02-09 Thread sshaders
Hi all, 
I have two questions about flex:
 
I need to be compliant with flash player 7, 
can flex 2 compile AS2 code  target to player 7?

I'm using Remoting extension for flash MX 2004; 
can I use the same Remoting extension with flex 2?
Basicly i'm using AMFPHP, maybe there exist new connection string

in advance thanks 
best regard





[flexcoders] Re: Yahoo API: Vote for Flex 2 version

2007-02-09 Thread TJ Downes
Shan, that's exciting news! Thanks for the link.

Mike, I completely agree. There's an application I am building for the
advertising industry that will benefit greatly from an integrated API
and I have been holding off on the mapping functionality until the new
API is released. I'm extremely excited to be a developer right now!
Flex has opened so many doors for internet application developer.

As a side note, the Flex 2 Yahoo Maps API suggestion went from 2 votes
to 67 in less than 24 hours. A Yahoo employee posted the following:

"Wow, okay, seems like there's some interest in Flex 2. :) Making the
appropriate inquiries now."

So maybe we will get an ETA :)




--- In flexcoders@yahoogroups.com, Shannon Hicks <[EMAIL PROTECTED]> wrote:
>
> I think Yahoo plans on releasing the new API's at 360Flex.
> 
> http://360flex.org/2007/01/360flex-adds-yahoo-as-sponsor.html
> 
> The topics are called "Yahoo! AS3 and Flex 2 Libraries" part 1 and 2.
> 
> Shan
> 
> 
> TJ Downes wrote:
> >
> > Currently the Yahoo Maps Flex API is limited to Flex 1.5. In order to
> > use Yahoo Maps in Flex 2 applications we are forced to hack it in
> > using the Flash API. This works, but is not the easiest or optimal
> > solution.
> >
> > Yahoo has implemented a suggestion box. Suggestions are rated by the
> > number of votes they receive. Someone posted a suggestion for Flex 2
> > API for Yahoo Maps. I would love to see more people provide their
> > input on this in hopes of getting a Flex 2 API for Yahoo Maps in a
> > timely fashion. So, show your support and vote for the Flex 2 API!
> > http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208 
> > 
> >
> > (this is a repost from my blog, so for those of you who have already
> > seen it on my blog I apologize for the redundancy!)
> >
> >
>




Re: [flexcoders] Re: FormItem adds extra space on the left . . .

2007-02-09 Thread Clint Tredway

If you need to have complete control over how the form is laid out, I
wouldn't use the form container, I would use something else. I am not sure
if you are aware of this, but you can use other containers inside a formItem
tag, i.e. a HBox or VBox... etc.. but that will not solve your issue of
taking the padding from the left side.

On 2/9/07, crumpelfungus <[EMAIL PROTECTED]> wrote:


  Clint,

Thank you for your swift reply.

Are you saying that there is no benefit in using FormItem with a
RadioButton? (At least, nothing that couldn't be done otherwise.)

--- In flexcoders@yahoogroups.com , "Clint
Tredway" <[EMAIL PROTECTED]> wrote:
>
> Dont use the form or formItem tags, use a grid to layout your form.
>

 





--
http://indeegrumpee.spaces.live.com/


Re: [flexcoders] Yahoo API: Vote for Flex 2 version

2007-02-09 Thread Shannon Hicks

I think Yahoo plans on releasing the new API's at 360Flex.

http://360flex.org/2007/01/360flex-adds-yahoo-as-sponsor.html

The topics are called "Yahoo! AS3 and Flex 2 Libraries" part 1 and 2.

Shan


TJ Downes wrote:


Currently the Yahoo Maps Flex API is limited to Flex 1.5. In order to
use Yahoo Maps in Flex 2 applications we are forced to hack it in
using the Flash API. This works, but is not the easiest or optimal
solution.

Yahoo has implemented a suggestion box. Suggestions are rated by the
number of votes they receive. Someone posted a suggestion for Flex 2
API for Yahoo Maps. I would love to see more people provide their
input on this in hopes of getting a Flex 2 API for Yahoo Maps in a
timely fashion. So, show your support and vote for the Flex 2 API!
http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208 



(this is a repost from my blog, so for those of you who have already
seen it on my blog I apologize for the redundancy!)

 




[flexcoders] Re: FormItem adds extra space on the left . . .

2007-02-09 Thread crumpelfungus
Clint,

Thank you for your swift reply.

Are you saying that there is no benefit in using FormItem with a
RadioButton? (At least, nothing that couldn't be done otherwise.)



--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>
> Dont use the form or formItem tags, use a grid to layout your form.
> 




[flexcoders] TextInput - Incorrect focus behavior

2007-02-09 Thread acooleagle

Hi all,

Seems to me that focus events in TextInputs are a bit out of whack.

The test application below should never allow focus on the
phoneNumberInput field, since its "focusIn" event immediately redirects
focus back to the zipcodeInput field.

However, the zipCodeInput field remains "active" (as indicated by the
blue highlight) the phoneNumberInput retains the prompt (!!).

This is a major problem for us as we would like the focus and the prompt
to stay in the active field on occasions where the content of the field
is invalid.

As far as I am concerned this weird focus/prompt behavior is a bug.

$5 million question now is : does anybody know a workaround?

Thanks for all feedback,

= Dirk




http://www.adobe.com/2006/mxml";>

 
 
 
 






RE: [flexcoders] Catching IOError on Loader

2007-02-09 Thread Robb Cundick
The brokenImageSkin sounds like just what I need. I'll check that out.
Thanks!
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Friday, February 09, 2007 9:17 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Catching IOError on Loader
 
Gordon's original answer, which is that the Image or SWFLoader
components dispatch ioError events, should still apply. If you set an
event listener for the flash.events.IOErrorEvent.IO_ERROR event, then it
should get dispatched if the image file can't be found. Make sure you're
listening for the right event, assuming you are there shouldn't be a
reason it wouldn't get dispatched.

Alternatively, you could go another route, which is to define a custom
skin for broken images. SWFLoader and Image allow you to specify the
brokenImageSkin, which will be used to render the visual display of an
image that couldn't be loaded. You could set this to your "no picture"
blank image and then if the image can't be found it would display as you
want it to.

Doug

Robb Cundick wrote: 
Thanks for the reply.
 
I did try just setting an image component's source property at
runtime. It works fine if the image is there but if there is no image it
just shows a blank (with a red "x") and doesn't generate an error.
 
The reason I need to catch the error is that I am building a
directory application for an organization. Some people in the directory
will have a picture, but some will not. All pictures will reside in a
folder at the server end and be accessed via a URL. When a person's
directory record is loaded I will build the name of their picture using
their directory record ID. If a picture with that name cannot be found,
I want to display an alternate image (a blank image that says "no
picture").
 
So I just need some way to know if the picture file doesn't
exist, in which case I will point the image component to the blank
image.
 
-Robb
 



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Friday, February 09, 2007 1:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Catching IOError on Loader
 
Loader doesn't dispatch an ioError event. (It isn't listed in
the ASDoc for Loader at
http://livedocs.macromedia.com/flex/201/langref/index.html
 .) This
event is dispatched by the Loader's contentLoaderInfo object., which is
an instance of LoaderInfo. I don't remember at the moment why the
Player's Loader is designed this way.
 
Flex's SWFLoader and Image components do dispatch ioError
events.
 
- Gordon
 



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Robb Cundick
Sent: Thursday, February 08, 2007 11:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Catching IOError on Loader
 
Hello, all:
 
I am using a Loader to retrieve a jpeg file that may or my not
exist. If it doesn't exist, I'm getting an Actionscript error message:
 
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load
Never Completed.
 
I would like to catch this error and handle it gracefully;
however I have not been able to figure out how to catch it. Try/catch
doesn't work (probably because it's an asynchronous process). But I also
tried adding an event listener as follows:
 
function myPictureLoader()
{
  var pictLdr:Loader = new Loader();
  var pictURL:String = "photos/NzPicture.jpg"
  var pictURLReq:URLRequest = new URLRequest(pictURL);
  pictLdr.addEventListener(IOErrorEvent.IO_ERROR,
handleIOError);
  pictLdr.load(pictURLReq); 
}  


function handleIOError(event:IOErrorEvent) : void {
  Alert.show('file not found', 'IO error');
}   

However the listener function never fires and I still get the
Actionscript error box popping up. Any ideas?
 
TIA,
Robb Cundick
 
 


[flexcoders] Cairngorm: Set the DataGrid selectedItem value - best practice?

2007-02-09 Thread Danko Kozar
I'm interested what's the best practice for this issue:

I edit a DataGrid items - not in the grid but in the form that pops up 
on items double-click.

After the edited item is submitted to the database, I'd like to change 
it's on-screen appearance.

If I change its value in a DataProvider - then the whole grid 
refreshes. I don't wand that, because I'd like my old item to ramain 
selected, only its values have to change.

I've been using the Cairngorm, so I'd like this solution to be 
professional as it can be :-)

For now, I hold a reference to my grid in a ModelLocator, so I can 
reset the selected grid item with syntax: ModelLocator.getInstance
().myGrid... and set its selected items value. I assume it can go 
smarter than that...



Re: [flexcoders] Catching IOError on Loader

2007-02-09 Thread Doug McCune
Gordon's original answer, which is that the Image or SWFLoader 
components dispatch ioError events, should still apply. If you set an 
event listener for the flash.events.IOErrorEvent.IO_ERROR event, then it 
should get dispatched if the image file can't be found. Make sure you're 
listening for the right event, assuming you are there shouldn't be a 
reason it wouldn't get dispatched.


Alternatively, you could go another route, which is to define a custom 
skin for broken images. SWFLoader and Image allow you to specify the 
brokenImageSkin, which will be used to render the visual display of an 
image that couldn't be loaded. You could set this to your "no picture" 
blank image and then if the image can't be found it would display as you 
want it to.


Doug

Robb Cundick wrote:


Thanks for the reply.

 

I did try just setting an image component's source property at 
runtime. It works fine if the image is there but if there is no image 
it just shows a blank (with a red "x") and doesn't generate an error.


 

The reason I need to catch the error is that I am building a directory 
application for an organization. Some people in the directory will 
have a picture, but some will not. All pictures will reside in a 
folder at the server end and be accessed via a URL. When a person's 
directory record is loaded I will build the name of their picture 
using their directory record ID. If a picture with that name cannot be 
found, I want to display an alternate image (a blank image that says 
"no picture").


 

So I just need some way to know if the picture file doesn't exist, in 
which case I will point the image component to the blank image.


 


-Robb

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Gordon Smith

*Sent:* Friday, February 09, 2007 1:21 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Catching IOError on Loader

 

Loader doesn't dispatch an ioError event. (It isn't listed in the 
ASDoc for Loader at 
http://livedocs.macromedia.com/flex/201/langref/index.html 
.) This 
event is dispatched by the Loader's contentLoaderInfo object., which 
is an instance of LoaderInfo. I don't remember at the moment why the 
Player's Loader is designed this way.


 


Flex's SWFLoader and Image components do dispatch ioError events.

 


- Gordon

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Robb Cundick

*Sent:* Thursday, February 08, 2007 11:16 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Catching IOError on Loader

 


Hello, all:

 

I am using a Loader to retrieve a jpeg file that may or my not exist. 
If it doesn't exist, I'm getting an Actionscript error message:


 

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never 
Completed.


 

I would like to catch this error and handle it gracefully; however I 
have not been able to figure out how to catch it. Try/catch doesn't 
work (probably because it's an asynchronous process). But I also tried 
adding an event listener as follows:


 


function myPictureLoader()

{

  var pictLdr:Loader = new Loader();

  var pictURL:String = "photos/NzPicture.jpg"

  var pictURLReq:URLRequest = new URLRequest(pictURL);

  pictLdr.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);

  pictLdr.load(pictURLReq);

} 

   


function handleIOError(event:IOErrorEvent) : void {

  Alert.show('file not found', 'IO error');

}  



However the listener function never fires and I still get the 
Actionscript error box popping up. Any ideas?


 


TIA,

Robb Cundick

 




Re: [flexcoders] Re:HTML in Flex

2007-02-09 Thread Kevin Newman
Robi Ray wrote:
> You can use the iframe trick, but rather than iframe try using the 'div' &
> 'layer' html tags along with JavaScript. This will remove cross browser
> issues.
>
> Cheers !
>
>   
OMG, the layer html tag! I think I lost a few years of life when I read 
that. Please tell me no one is still testing in Netscape 4.x. That would 
be very unfortunate for them.

Kevin N.





Re: [flexcoders] FormItem adds extra space on the left . . .

2007-02-09 Thread Clint Tredway

Dont use the form or formItem tags, use a grid to layout your form.

On 2/9/07, crumpelfungus <[EMAIL PROTECTED]> wrote:


  *Does anyone know how to control the space within a FormItem?*

If I have a FormItem and then add a RadioButton (or any other control for
that matter), I always get a bunch of extra space to the left of the
control.

That space cannot be influenced or manipulated with any of the available
style settings for either the control or the FormItem.

My problem is that I have to mimick an existing GUI, and for the purpose I
would like to be able to figure this out.

Any ideas how to get rid of that extra space?




I've tried paddingLeft of the container (Form) and the FormItem and the
control, but so far no luck.


*[. . . code snippet . . .]*



  

  

  

  
 
  


 





--
http://indeegrumpee.spaces.live.com/


Re: [flexcoders] filterFunction

2007-02-09 Thread Clint Tredway

I have what I call filter functions that will find items and remove them or
if not found add them.. not sure what you are meaning by filter...

On 2/9/07, kumarpal jain <[EMAIL PROTECTED]> wrote:


  Hi All,

Can some one help me in filterFunction method of listcollectionView or
Array Collection ..

I am looking for some examples on the same which will help .

I am a bit confused in this I want to filter some records in array
collection and can we use this method for this...

Thanks
Kumar


--
Here's a new way to find what you're looking for - Yahoo! 
Answers

 





--
http://indeegrumpee.spaces.live.com/


Re: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-09 Thread Daniel Freiman

I can't speak to Adobe's intent, but I regularly avoid startDrag because I
need more fine control over the drag. For example if you want to program a
drag that implements "snap to" functionality, you're going to want to have
direct control over the placement of the object, instead of letting the
player handle it.  As I said, I don't know why Adobe did it in this case,
but here's an example of why someone might want to do it somewhere.

- Dan

On 2/9/07, Derrick Grigg <[EMAIL PROTECTED]> wrote:



> I can't find anywhere that we use startDrag()in the framework,
> including in the DragManager.

My bad, you know what they say about 'assuming'.

Just did some more digging, in the DragProxy class and was very
surprised to see that it actually uses a mouse move event listener and
then repositions the drag proxy based on the the x/y of the mouse.

var pt:Point = new Point();
var point:Point = new Point(event.localX, event.localY);
point = DisplayObject(event.target).localToGlobal(point);
point =
DisplayObject(dragInitiator.systemManager.topLevelSystemManager
).globalToLocal(point);
var mouseX:Number = point.x;
var mouseY:Number = point.y;
x = mouseX - xOffset;
y = mouseY - yOffset;

This just begs the question, why??? Why go through all that instead of
just using the startDrag that is a core method of the Sprite class?
Just to offset the DragProxy slightly from the mouse pointer? I don't
get it, why bloat (in my opinion) the code. From my understanding
classes and methods that are actually compiled into the flash plugin
(ie the flash.* package) run faster than those that are not (ie. the
mx.* package). I don't understand why all the extra code is required
to accomplish something the plugin already has the ability to do.

 



[flexcoders] Personalized framework ASDocs

2007-02-09 Thread Daniel Freiman

I want to create an ASDoc of the flash and mx packages with my own personal
annotations (It just seems like a good place to keep notes and would be a
convenient way to publish those notes if there aren't any copyright issues,
which I'll have to look into).  I've tried running ASDocs on the framework
and I got all sorts of errors because of style include files (GapStyles.as,
etc).  This wouldn't have gotten me the the flash package anyway.  Does
anyone know if there's and ASDoc's decompiler (I understand this would only
get me the interface of the code that is in the docs but that's all I want).

thanks,

- Dan


Re: [flexcoders] StartDrag() versus DragManager.doDrag()

2007-02-09 Thread Igor Costa

Hi Mike

I particulary do not like to use DragManager for containers or UIComponents.
I use both methods but in some case I just use isDragging method of
DraManager Class.

Here's a short example of that.

   

   
   


Imitate the same way of doDrag() method do. I just did mine way.


Best.
On 2/8/07, Mike Anderson <[EMAIL PROTECTED]> wrote:


  Hello All,

I am getting confused, as to which method I should use, for simply
panning around an Image/SWF file.

I did follow Michael's suggestions, and looked at the quick "Dragging an
Image to Canvas" tutorial contained in the help files. My understanding
is a little deeper, when it comes to using DragManager - but in my case,
I am getting some odd results.

For the purposes of strictly panning Objects around, startDrag() is
providing me better "Visual Results" - as it happens in real-time when
dragging the mouse around. When using doDrag(), it makes a copy of the
Object (I suppose, it's the Proxy being dragged) and then finishes the
move, upon the mouse release. Also, for some reason, when using
doDrag(), the Object doesn't always move the same distance, when
compared to the distance of the mouse drag. Really weird... And it
gets worse, the more distance I move the mouse. One last thing too, the
ImageProxy appears Outside of the container, when dragging the Image -
and in my case, my SWF File is 2,000 x 2,200 - so you can imagine the
whole screen filling up with my Image.

Since I am not doing any advanced functions, and just want to move the
Image around on the Screen, would it be acceptable to use startDrag()?

I guess what I REALLY need to find out, is if startDrag() and stopDrag()
will eventually be deprecated, or be considered NOT the way to handle
dragging Objects around.

Could any of you shed some additional light on this topic?

Thanks in advance,

Mike
 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


[flexcoders] filterFunction

2007-02-09 Thread kumarpal jain
Hi All,
   
  Can some one help me in filterFunction method of listcollectionView or Array 
Collection ..
   
  I am looking for some examples on the same which will help .
   
  I am a bit confused in this I want to filter some records in array collection 
and can we use this method for this...
   
  Thanks
  Kumar
   


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

RE: [flexcoders] Catching IOError on Loader

2007-02-09 Thread Robb Cundick
Thanks for the reply.
 
I did try just setting an image component's source property at runtime.
It works fine if the image is there but if there is no image it just
shows a blank (with a red "x") and doesn't generate an error.
 
The reason I need to catch the error is that I am building a directory
application for an organization. Some people in the directory will have
a picture, but some will not. All pictures will reside in a folder at
the server end and be accessed via a URL. When a person's directory
record is loaded I will build the name of their picture using their
directory record ID. If a picture with that name cannot be found, I want
to display an alternate image (a blank image that says "no picture").
 
So I just need some way to know if the picture file doesn't exist, in
which case I will point the image component to the blank image.
 
-Robb
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Friday, February 09, 2007 1:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Catching IOError on Loader
 
Loader doesn't dispatch an ioError event. (It isn't listed in the ASDoc
for Loader at http://livedocs.macromedia.com/flex/201/langref/index.html
 .) This
event is dispatched by the Loader's contentLoaderInfo object., which is
an instance of LoaderInfo. I don't remember at the moment why the
Player's Loader is designed this way.
 
Flex's SWFLoader and Image components do dispatch ioError events.
 
- Gordon
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robb Cundick
Sent: Thursday, February 08, 2007 11:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Catching IOError on Loader
 
Hello, all:
 
I am using a Loader to retrieve a jpeg file that may or my not exist. If
it doesn't exist, I'm getting an Actionscript error message:
 
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
Completed.
 
I would like to catch this error and handle it gracefully; however I
have not been able to figure out how to catch it. Try/catch doesn't work
(probably because it's an asynchronous process). But I also tried adding
an event listener as follows:
 
function myPictureLoader()
{
  var pictLdr:Loader = new Loader();
  var pictURL:String = "photos/NzPicture.jpg"
  var pictURLReq:URLRequest = new URLRequest(pictURL);
  pictLdr.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
  pictLdr.load(pictURLReq); 
}  

function handleIOError(event:IOErrorEvent) : void {
  Alert.show('file not found', 'IO error');
}   

However the listener function never fires and I still get the
Actionscript error box popping up. Any ideas?
 
TIA,
Robb Cundick
 


[flexcoders] FormItem adds extra space on the left . . .

2007-02-09 Thread crumpelfungus
Does anyone know how to control the space within a FormItem?

If I have a FormItem and then add a RadioButton (or any other control
for that matter), I always get a bunch of extra space to the left of the
control.

That space cannot be influenced or manipulated with any of the available
style settings for either the control or the FormItem.

My problem is that I have to mimick an existing GUI, and for the purpose
I would like to be able to figure this out.

Any ideas how to get rid of that extra space?




I've tried paddingLeft of the container (Form) and the FormItem and the
control, but so far no luck.


[. . . code snippet . . .]



   

   
 
   

   
  
   




Re: [flexcoders] versus for loading external SWF Files

2007-02-09 Thread Daniel Freiman

Image is a subclass of SWFLoader.  Thus SWFLoader is probably more
lightweight than Image.  Both import JPEG, PNG, GIF, and SWF.  The only real
difference is that Image implements IDataRenderer<../core/IDataRenderer.html>,
IDropInListItemRenderer ,
IListItemRenderer. 

See the API docs for more details.

- Dan

On 2/8/07, Mike Anderson <[EMAIL PROTECTED]> wrote:


  Hello All,

If I want to bring in an external SWF File, and this SWF File doesn't
contain anything else other than pure Vector Information making up a map
graphic, is there a real need to use SWFLoader?

I mean, the true purpose of using SWFLoader to bring in SWF Files, is to
gain access to any advanced aspects of the SWF - like Named Assets,
Functions, the PlayHead in cases of a multi-framed SWF, etc.

If this is the only reason, then using the  would be overkill
to bring in something that the  could easily take care of
correct?

Thanks in advance for your help,

Mike
 



Re: [flexcoders] Show/Hide Column of Grid using Context Menu

2007-02-09 Thread Adam Royle
Hi Sanya,

I have done this in my app successfully, however with a different technique. My 
context menu shows all of the columns in the datagrid, with a prefix that 
denotes whether it is visible or not. Once clicked, it figured out which column 
was clicked and toggle's the visibility. It works well.

I have a function which creates two ContextMenu objects, one that contains all 
of the column names, and one that is empty. Since the ContextMenu has to be 
associated with the datagrid before the right-click occurs, I dynamically 
assign it within a mouseMove event (based on the value of the .contentMouseY 
property).

This means the context menu with column names only show when you right-click on 
the headers. I don't mind showing code except it's a bit of a mess at the 
moment and might confuse the matter rather than explaining it.

Sorry I didn't run your example files so I'm not sure if I'm addressing your 
specific problem or not.

Cheers,
Adam

  - Original Message - 
  From: sanjaypmg 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, February 09, 2007 10:54 PM
  Subject: [flexcoders] Show/Hide Column of Grid using Context Menu


  Hi all,

  Am making a function of show/hide column of dataGrid using Context 
  Menu. 

  Contextmenu comes when user clicks right button of mouse on header.

  I have made a mxml component and added in headerRender of the 
  dataGrid Column. But when I click on my hide column button of 
  context menu it doesnt hide my clickd coloum. 

  Here in case of Filter in my files, If I enable sorting of the same 
  column, it overrides my filter functionality. can anyone let me know 
  the solution of it?

  In testCombo.mxml, currently I have populated Combo box using 
  hardcoded array. I want to populate this array dynamically so that I 
  can use the same file for multiple filters. Kindly do let me know 
  how can I populate combo box dynamically?

  I am atteching my code pls have a look n help me.

  Thanks in Advance,
  Sanjay sharma

  File # 1  contMenuOnGrid.mxml

  
  http://www.adobe.com/2006/mxml"; 
  layout="absolute" initialize="doInit()" 
  xmlns:local="*" xmlns:gridCode="*" >
  
  
  
  
  
  
  

  File # 2  gridCode.mxml
  
  http://www.adobe.com/2006/mxml"; 
  >

  
  
  
  
  
  
  
  
  
  
  
  

  File # 3  contMenu.mxml

  
  http://www.adobe.com/2006/mxml"; 
  enabled="false" height="100%" width="100%" 
  preinitialize="doCreationComplete( event )" alpha="100" 
  backgroundAlpha="0" borderThickness="0">
  
  [Event( name="hideColumn", 
  type="flash.events.Event" )] 
   
  
  
  
  

  File # 4  shPanel.mxml

  
  http://www.adobe.com/2006/mxml"; 
  title="Show/Hide Column" x="350" y="86" 
  showCloseButton="true" close="closePOP()" height="200" 
  width="314" verticalAlign="middle" horizontalAlign="center">

  
  
  

  
  
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  

  File # 5  testCombo.mxml

  
  http://www.adobe.com/2006/mxml"; 
  preinitialize="init()"> 
  
  
   
   
   

  

  File # 6  myContactEditable.mxml

  
  
  http://www.adobe.com/2006/mxml";>

  
  
  

  



   

[flexcoders] Does anyone know how to set a legendMarkerRenderer dynamically ???

2007-02-09 Thread mgrayfmr
I am creating LineSeries objects dynamically, and I want to be able 
to use the CircleItemRenderer for the legend. 
I tried doing this several ways, but get an error that the renderer 
cannot be cast to a type of IFactory. I tried making sure 
CircleItemRenderer was imported, and using new CircleItemRenderer(), 
but no dice.

I'm doing something like this.
The only line that blows up is the LegendMarkerRenderer.
My array contains series data, a display name, and a color.

for(var k:int = 0; k < ChartDataVO.arrCollSeriesArray.length - 1; 
k++)
{ 
   ls = new LineSeries();
   ls.displayName = ChartDataVO.arrCollSeriesArray[k].name;
   ls.yField = 'value'; 
   ls.xField = 'time';  
   ls.form = "line";
   ls.dataProvider = ChartDataVO.arrCollSeriesArray[k].data;

   stroke = new Stroke();
   stroke.color = ChartDataVO.arrCollSeriesArray[k].color;
   stroke.weight = 1;
   ls.setStyle("lineStroke", stroke);
   ls.setStyle
("legendMarkerRenderer", "mx.charts.renderers.CircleItemRenderer");
   ls.styleName = ChartDataVO.arrCollSeriesArray_AVG[k].key; 
   this.linechart.series[k] = ls;  
}

Anyone have any insights ?
Thanks in advance !!!
Mike



Re: [flexcoders] SQL DATABASE CONNECTION

2007-02-09 Thread Rich Tretola

If you are running FDS, you can use RemoteObject to connect to your java
class files.  The java files need to handle the database connection.

Rich


On 2/9/07, sekar r <[EMAIL PROTECTED]> wrote:


  Hi all,

here i am trying to connect sql database from flex. my apllication server
is tomcat. i am using java.

how we can store the data's in sql database. what are the step and method
i should do.

How we can connection throguh java pl give me guide.

plz help me. it may very helpful this.

--
The fish are biting.
 Get more 
visitorson
 your site using Yahoo!
Search Marketing.

 





--
Rich Tretola

http://www.EverythingFlex.com


[flexcoders] Re: SQL DATABASE CONNECTION

2007-02-09 Thread jrunrandy
In Flex, you access the database indirectly, using HTTPService, 
WebService or RemoteObject. If you have to use Java, you should use 
the  HTTPService tag to invoke a servlet or JSP that access the 
database and returns the data as XML. It should look something like 
this:


 
   ***UserID goes here***
   ***User name goes here***
   
 


For the basic client-side and server-side code you'll need, see the 
DevCenter articls on PHP 
(http://www.adobe.com/devnet/flex/articles/flex2_php.html) and  
ColdFusion 
(http://www.adobe.com/devnet/coldfusion/articles/integrate_flex.html)
.

HTH
Randy Nielsen
Flex Documentation Manager
Adobe Systems, Incorporated



[flexcoders] Re: View State - How to call a function on a custom component???

2007-02-09 Thread boy_trike
If I understand your question, you have a public function in your component 
that you want 
to call after it is added when the view state changes.  I do this all the time. 
 The trick is to 
have a function called when you enter the state ie:



  
  


then in your enterState function, call the desired function in your component:
...
myOrderEntry.readOrders();
...


Bruce








[flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-09 Thread Derrick Grigg
 
> I can't find anywhere that we use startDrag()in the framework, 
> including in the DragManager.

My bad, you know what they say about 'assuming'. 

Just did some more digging, in the DragProxy class and was very
surprised to see that it actually uses a mouse move event listener and
then repositions the drag proxy based on the the x/y of the mouse.

var pt:Point = new Point();
var point:Point = new Point(event.localX, event.localY);
point = DisplayObject(event.target).localToGlobal(point);
point =
DisplayObject(dragInitiator.systemManager.topLevelSystemManager).globalToLocal(point);
var mouseX:Number = point.x;
var mouseY:Number = point.y;
x = mouseX - xOffset;
y = mouseY - yOffset;

This just begs the question, why??? Why go through all that instead of
just using the startDrag that is a core method of the Sprite class?
Just to offset the DragProxy slightly from the mouse pointer? I don't
get it, why bloat (in my opinion) the code. From my understanding
classes and methods that are actually compiled into the flash plugin
(ie the flash.* package) run faster than those that are not (ie. the
mx.* package). I don't understand why all the extra code is required
to accomplish something the plugin already has the ability to do.


 




Re: [flexcoders] Re: How to have datagrids with different filterfunction for a single dataprovide

2007-02-09 Thread EECOLOR

This is possible if you use the class below. It extends ArrayCollection and
adds two methods:

addReflection(reflection:ArrayCollection)
removeReflection(reflection:ArrayCollection)

This class makes sure the reflections share the list (inner dataProvider) of
the main collection. If something changes in the list all child components
will be refreshed automatically.

This class ensures that more collections share the same data, this helps you
in the sence that you dont need to copy the collections if you want to use
different filters for different views.


Greetz Erik


package fly.flex.collections
{
import mx.collections.ArrayCollection;
import flash.utils.Dictionary;
import mx.events.CollectionEvent;
import mx.events.CollectionEventKind;
import mx.collections.IList;
import mx.binding.utils.BindingUtils;
import mx.binding.utils.ChangeWatcher;
import flash.utils.Timer;
import flash.events.TimerEvent;

public class ReflectorArrayCollection extends ArrayCollection
{
 private var _reflections:Dictionary;
 private var _timer:Timer;
 private var _reflectionsNeedRefresh_bool:Boolean;

 public function ReflectorArrayCollection(source:Array = null)
 {
  super(source);

  _reflections = new Dictionary(true);
  _timer = new Timer(0);
  _timer.addEventListener(TimerEvent.TIMER, _timerHandler);
 };

 private function _timerHandler(e:TimerEvent):void
 {
  if (_reflectionsNeedRefresh_bool)
  {
   _reflectionsNeedRefresh_bool = false;

   var obj:Object;
   var reflection:ArrayCollection;
   for (obj in _reflections)
   {
reflection = obj as ArrayCollection;
reflection.refresh();
   };
  };
 };

 private function _collectionChangeHandler(e:CollectionEvent):void
 {
  /*
   If we would refresh the reflections here they items would not yet
   be available. Apparently this handler is called too fast. A handler
outside of this class would work. To solve it we use a timer.
   */
  _reflectionsNeedRefresh_bool = true;
  _timer.start();
 };

 public function addReflection(reflection:ArrayCollection):void
 {
  _reflections[reflection] = BindingUtils.bindProperty(reflection, "list",
this, "list");
 };

 public function removeReflection(reflection:ArrayCollection):void
 {
  var watcher:ChangeWatcher = _reflections[reflection];
  watcher.unwatch();

  delete _reflections[reflection];
 };

 /*
  The list setter is overridden in order to make sure we allways have a
listener
  to the correct internal list.
 */
 override public function set list(value:IList):void
 {
  if (list)
  {
   list.removeEventListener(CollectionEvent.COLLECTION_CHANGE,
_collectionChangeHandler);
  };

  super.list = value;

  if (list)
  {
   list.addEventListener(CollectionEvent.COLLECTION_CHANGE,
_collectionChangeHandler);
  };
 };
};
};


[flexcoders] BoxDivider background image

2007-02-09 Thread jscrummack
Hi,

I'm looking to set a repeating background image to the actual divider
between two panels in a dividerbox, I can change the actual knob image
no problems but all attempts to setting an image on its background
seem to fail (only seem to have access to the background image on the
whole dividerbox and not the boxdivider class?).

Thanks 

Jason




Re: [flexcoders] Registration Points and Flex -

2007-02-09 Thread Cortlandt Winters

Hi Mike,

I did notice recently that the zoomInstance class has a public registration
point.

I think you pass each icon into the constructor of a subclass of  the
zoomInstance class that determines, based on the icon type, whether to set
the originx and originy to the center or the upper left.

-Cort


On 2/8/07, Mike Anderson <[EMAIL PROTECTED]> wrote:


  Hello All,

As all of you Flash People know, whenever you have Assets in your
Library, they all have a Registration Point. I know 99% of you already
know this, but for those who don't, the Registration Point is the spot
on the Object, that is considered to be 0,0.

Typically, it's either in the upper-left-hand corner, or smack-dab in
the middle.

This way, whenever you are Scaling your Object, the sizing will get
bigger downwards and to the right, or it will scale evenly from the
Center Out.

With this said, after embedding all my Graphical Icons (which will serve
as WayPoints for my Map Application), how can I control the nature of
how these Icons Scale??

Some of my Icons, are drawn in such a way, where they have a little
arrow in the upper-left-hand corner. That way, it's obvious to the
user, that wherever they drop their WayPoint on the Map, the top of the
Pointer on the Icon, IS precisely the spot where the WayPoint
coordinates are referring to (and will scale accordingly from that
point).

Then again, some of my other Icons, are just general in nature, and
those need to specifically scale from the CENTER Out.

In Flash, I was able to tweak the Registration Points, so that they
would automatically Scale the way I needed them to.

BUT, in Flex, I don't even know where to start with something like this.

Could anybody shed some light on this topic for me?

Thanks in advance,

Mike
 



[flexcoders] Do I need an ISV support plan if...

2007-02-09 Thread wilsonpaulsen
I'm hoping someone here can help me.

After spending several weeks programming using the Flex SDK, I found
this on the Adobe website:

"For ISVs that develop software applications for sale that are built
on or embed Flex, an Adobe ISV support plan and/or OEM license and
redistribution agreement is required."

I have a few questions:

First, would this apply to any online Flex-based swf file that is only
accessible to members of a subscription-based service? I'm confused
since the EULA doesn't mention anything about this

Second, how can I actually go about paying Adobe what they want? I've
sent emails to [EMAIL PROTECTED] as the website suggests, but haven't
received any responses (for the last two weeks!).

Thanks;
-Hyrum




[flexcoders] More Information About Adobe Flash Player Trace Move...

2007-02-09 Thread idpjc
(This is regarding Adobe changing the trace output location done by 
the debug flash player supplied with Flex 2.0.1 to C:\Documents and 
Settings\{UserName}\Application Data\Macromedia\Flash Player\Logs)

As I use the trace output from the flash player for my companies 
flex continuous integration system (flexunit test results etc...) I 
have had to investigate this much further.  Here is what I have found 
which I hope is useful to other developers:

Although Adobe have changed the debug player so it always outputs to 
the \Documents and Settings\{UserName}\Application 
Data\Macromedia\Flash Player\Logs, it is still possible to redirect 
the output to another location by overriding the USERPROFILE 
environment variable, using the following technique for example:

Step 1) Create a new directory C:\FlexTrace

Step 2) Under C:\FlexTrace directory, create the directory 
\Application Data\Macromedia\Flash Player\Logs, so you end up with 
the following directory structure:

   C:\FlexTrace
\Application Data
   \Macromedia
  \Flash Player
 \Logs

Step 3) In directory C:\Documents and Settings\{UserName}, create a 
mm.cfg file which contains the following lines:
  ErrorReportingEnable=1
  TraceOutputFileEnable=1  

Step 4) From a windows command shell, type: set 
USERPROFILE=C:\FlexTrace

Step 5) Execute a swf which includes trace (i.e. type 
SAFlashPlayer.exe  from the command prompt)

Step 6) If you then look in directory C:\FlexTrace\Application 
Data\Macromedia\Flash Player\Logs you will find the file called 
flashlog.txt created.

Notes For Above:

>From my tests, the environment variables HOMEDRIVE and HOMEPATH are 
no longer used for the location of the mm.cfg file (it MUST be in 
the  location specified in step 3).

Permanently overriding the environment variable USERPROFILE is 
obviously not a good idea, so for step 4 you would normally make that 
change just for the time you need it (for example in an ANT script 
make it a local change when using the exec task).

There doesn't seem to be any way now to specify a trace filename, so 
the easiest solution would be just to move/rename the flashlog.txt 
file when your swf task is complete (i.e. if doing unit test runs).

You will notice that the flash player will (when some trace has been 
written) create additional directories in the same sub-directory as 
the Logs directory.

Philip Carlin.



  1   2   >