Re: [flexcoders] antlr for as3? parsers?

2007-01-18 Thread Clint Modien

Check out Alessandro's blog...

http://www.sephiroth.it/weblog/archives/2006/12/an_experience_with_antlr_with_java_an.php
http://www.sephiroth.it/weblog/archives/2006/12/actionscript_parsing_the_yacc_revenge.php
http://www.sephiroth.it/weblog/archives/2007/01/actionscript_parsing_with_pybison_the.php



On 1/18/07, Aldo Bucchi <[EMAIL PROTECTED]> wrote:


  or something similar??

need to make a parser for a rather complex EBNF grammar, and by hand I
have only gone so far...

thx,
Aldo
--
: Aldo Bucchi :
mobile (56) 8 429 8300
 



[flexcoders] Re: Image source doesn't affect Image size?

2007-01-18 Thread lar.drolet
Try this:
trace("iw "+bImage.contentWidth);
trace("ih "+bImage.contentHeight);


LD

--- In flexcoders@yahoogroups.com, Russell Sprague <[EMAIL PROTECTED]> wrote:
>
> It seems that if an image is loaded into an Image tag at runtime, the 
> size is w=0 h=0, ex.
> 
> private var imgsrc:String;
> public function loadImage(val:String):void{
> imgsrc = "assets/images/"+val;
> }
> private function imgLoaded(e:Event):void{
> trace("tw "+this.width);
> trace("iw "+bImage.width);
> trace(e.target.width);
> }
> ...
>  horizontalCenter="0" verticalCenter="0"/>
> 
> if I call the loadImage function with a image url string,
> even after the image loads into the Image tag, it returns 0 for the 
> width and height of the Image tag.
> 
> I tried using a callLater function in the loadImage function, but it 
> gave the same results.
> 
> Is there a way to get the width and height of an Image tag if it loads 
> in an image at runtime?
> 
> Thanks
> Russ
>




[flexcoders] Binding result from CFC to a Detail Form

2007-01-18 Thread malik_robinson
Hi,

I am using a CFC here that has a method that accepts a userId, it then
runs an sql query and retrieves all the data associated with the user
like:

FirstName
LastName
Email, etc

I am trying to find out how I can set the form fields "text" property
equal to that of the Array that is returned from my RemoteObject Call.

I have this code in my "main" application file.  I did a trace on the
employeeDataArray and it has all the details for that user so the remote
call is working fine, I just cant figure out how to bind the values in
the array to the various form fields on "myForm" which is the "id" I
have given the form.

   private function populateEmployeeProfileForm(
event:flash.events.Event ):void {
 appViewStack.selectedChild=vs_EmployeeProfile;
 employeeDataArray = ApplicationState.instance.employeeArray;
   // do I do this??  frmEmployeeProfile.myForm  ??? didnt work
for me
 }




 
  
  
  




-Malik



Re: [flexcoders] New Component Released - Animated Gif Loader

2007-01-18 Thread Doug McCune
oh, I know, I know. That rotating earth is what comes up in the 
wikipedia article for "animated gif". I just saw a few people ask about 
it and then decided it would be a fun challenge. So now I have the 
incredibly useful knowledge about the byte order or an animated gif file.



Brendan Meutzner wrote:


Sorry, but I've gotta ask but what the heck are people still using 
animated GIFs for?  I kinda thought it was so "yesterday"...?  You 
know, the waving flag, the (sorry Doug... I saw your demo) rotating 
earth, etc... 


Brendan



On 1/18/07, *JesterXL* <[EMAIL PROTECTED] 
> wrote:


I musta read like 3 C classes that convert GIF's to SWF's only to
realize I'd have to take years to learn C JUST to get Flash Player
to support this in converting the C to AS3... and now you've coded
it, HOT!!!



On Jan 18, 2007, at 5:20 PM, dougmccune wrote:

[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50.

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/ 2007/01/17/animatedgifloader/


Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/ exchange/index.cfm?view=sn610#
view=sn611&viewName=Flex%20Extension &loc=en_us&authorid=61303741&
page=0&scrollPos=0&subcatid=0&snid=sn611&
itemnumber=0&extid=1103970& catid=0



Feedback is always appreciated!

Thanks,
Doug McCune



 




Re: [flexcoders] New Component Released - Animated Gif Loader

2007-01-18 Thread Brendan Meutzner

Sorry, but I've gotta ask but what the heck are people still using animated
GIFs for?  I kinda thought it was so "yesterday"...?  You know, the waving
flag, the (sorry Doug... I saw your demo) rotating earth, etc...

Brendan



On 1/18/07, JesterXL <[EMAIL PROTECTED]> wrote:


  I musta read like 3 C classes that convert GIF's to SWF's only to
realize I'd have to take years to learn C JUST to get Flash Player to
support this in converting the C to AS3... and now you've coded it,
HOT!!!


On Jan 18, 2007, at 5:20 PM, dougmccune wrote:

[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50.

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/2007/01/17/animatedgifloader/

Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#view=sn611&;
viewName=Flex%20Extension&loc=en_us&authorid=61303741&page=0&scrollPos
=0&subcatid=0&snid=sn611&itemnumber=0&extid=1103970&catid=0

Feedback is always appreciated!

Thanks,
Doug McCune


 


RE: [flexcoders] Image source doesn't affect Image size?

2007-01-18 Thread Gordon Smith
Try using the 'complete' event.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Russell Sprague
Sent: Thursday, January 18, 2007 4:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image source doesn't affect Image size?

 

It seems that if an image is loaded into an Image tag at runtime, the 
size is w=0 h=0, ex.

private var imgsrc:String;
public function loadImage(val:String):void{
imgsrc = "assets/images/"+val;
}
private function imgLoaded(e:Event):void{
trace("tw "+this.width);
trace("iw "+bImage.width);
trace(e.target.width);
}
...


if I call the loadImage function with a image url string,
even after the image loads into the Image tag, it returns 0 for the 
width and height of the Image tag.

I tried using a callLater function in the loadImage function, but it 
gave the same results.

Is there a way to get the width and height of an Image tag if it loads 
in an image at runtime?

Thanks
Russ

 



RE: [flexcoders] css's speed

2007-01-18 Thread Gordon Smith
Are you asking about the difference between writing

 





global { fontSize: 12 }



...



 

and writing

 





...



 

where foo.css contains

 

global { fontSize: 12 }

 

?

 

You're unlikely to notice any difference in compilation speed, although when 
you use a separate CSS file the compiler obviously has to read in another file, 
which probably takes a few milliseconds if it isn't in the OS's disk cache.

 

And they compile to the same ActionScript code so there's no runtime difference.

 

So take your pick. It doesn't matter.

 

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL 
PROTECTED]
Sent: Wednesday, January 17, 2007 11:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] css's speed

 

css.css and css in mxml

which one is faster?







女友喜欢去的好地方!所有东东吐血价 点击进入有大惊喜! 

 

 



[flexcoders] Re: How can I do to add a background color for datagrid header?

2007-01-18 Thread sanjaypmg
Zedan,

you can change background and header color of dataGrid by using the 
following in css:

DataGrid {
   backgroundAlpha: 0.5;
   backgroundColor: #cc;
  headerColors: #ffcc00, #ff9900;
}

Regards,
Sanjay

--- In flexcoders@yahoogroups.com, "zedan_gu" <[EMAIL PROTECTED]> wrote:
>
> Igor Costa, thanks for help, but I just want to set the column
> header's bgcolor which user clicks, no the datagrid bgcolor, other
> help? Thanks 
> --- In flexcoders@yahoogroups.com, "Igor Costa"  wrote:
> >
> > Zedan
> > 
> > I suggest you to take a look at the Flex cookbook, If I'm not 
wrong
> already
> > has a solution for that.
> > But if Not, just take a look at the Flex Style Explore and use 
the
> Class of
> > StyleManager to do that.
> > for example:
> > 
> > public function setHeaderBack():void
> > {
> >   myGrid.setStyle("backgroundColor",0x990044);
> > }
> > 
> > then in the datagrid just put a datagrid Event click handler.
> > 
> > Isn't a best decribe for your problem just point you out on that.
> > 
> > 
> > Best.
> > 
> > On 1/18/07, zedan_gu  wrote:
> > >
> > >   I*m attempting to add a background color for datagrid 
header
> when user
> > > clicks the header to sort the data, to indicate which column 
was
> > > sorted, how can I achieve this?
> > > I want to get the header which user click, and then set it*s
> > > background color style, but I can*t get the header, 
getChildAt()
> ? No
> > > use, Flex 2 Help document is helpless for me about this issue.
> > > Any suggestions would be greatly appreciated
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > 
> > Igor Costa
> > www.igorcosta.org
> > www.igorcosta.com
> > skype: igorpcosta
> >
>




RE: [flexcoders] Canvas ScrollBars problems...

2007-01-18 Thread Lieven Cardoen
Please, I need this to be able to continue... It's really annoying me
and I tried like everything, except waiting a few frames...

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: donderdag 18 januari 2007 21:48
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Canvas ScrollBars problems...

 

Nobody a clue???

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: donderdag 18 januari 2007 18:17
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Canvas ScrollBars problems...

 

I have a component wich extends Canvas (FloorPlan). I add a component
extending Container to this Canvas.

 

Now, in this Container, I draw a lot of things and I set the width and
height myself so the Canvas show ScrollBars where needed.

 

The problem now is following : 

 

If I redraw something and reset the width and height of the Container,
strange things start to happen when previously the horizontal scrollbar
for instance was at its maximum.

 

If I click the horizontal scrollbar, somehow the Canvas changes its
scrollbars to correctly. 

 

I tried all of these, and nothing seems to work.

 

In the Container : 

   

   //paints things and sets width and
height of Container

this.paint();

  

 

this.validateNow();

  this.validateDisplayList();

  this.validateSize()

  this.validateNow();

  (this.parent as FloorPlan).validateNow();

  (this.parent as FloorPlan).validateDisplayList();

  (this.parent as FloorPlan).validateSize();

  (this.parent as FloorPlan).validateNow();

 

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 

 



Re: [flexcoders] New Component Released - Animated Gif Loader

2007-01-18 Thread JesterXL
I musta read like 3 C classes that convert GIF's to SWF's only to  
realize I'd have to take years to learn C JUST to get Flash Player to  
support this in converting the C to AS3... and now you've coded it,  
HOT!!!



On Jan 18, 2007, at 5:20 PM, dougmccune wrote:

[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50.

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/2007/01/17/animatedgifloader/

Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/exchange/index.cfm? 
view=sn610#view=sn611&viewName=Flex% 
20Extension&loc=en_us&authorid=61303741&page=0&scrollPos=0&subcatid=0&sn 
id=sn611&itemnumber=0&extid=1103970&catid=0


Feedback is always appreciated!

Thanks,
Doug McCune






[flexcoders] Re: Application without FDS?

2007-01-18 Thread sanjaypmg
Thanks Benjamin and group,

XML solution seems good but If the data is large in size, it would 
take time to create XML then more time will also be taken by flex to 
parse those XMLs, isnt It?

Do you have some idea how can i use Java's webservices in flex?

I have used webservices developed in Coldfusion but I dont have any 
idea of using same developed in java.

Waiting for response..

Thanks,
Sanjay sharma

--- In flexcoders@yahoogroups.com, "whitelines81" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Sanjay (and group),
> I've just started using Flex with Java and did not want to start 
using
> FDS, simply because clustering is something we require and 
currently
> cannot take the 20K+ licensing fees. We've developed a solution 
with
> actionscript and a servlet that does compressed xml back and forth
> (binary over the wire) and was wondering what the community's 
interest
> would be? We are looking at creating a more robust version and
> releasing it possibly open source.
> 
> Any ideas?
> 
> Many thanks,
> Benjamin
> 
> Benjamin Ranck
> Senior Technologist
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > "...flex without FDS..." reduced cost and complexity.
> > 
> >  
> > 
> > "..create XMLs at the runtime..." this will take some server 
side code.
> > 
> >  
> > 
> > Tracy
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of sanjaypmg
> > Sent: Thursday, January 18, 2007 1:38 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Application without FDS?
> > 
> >  
> > 
> > Thanks David,
> > 
> > We have existing application developed in Struts and UI is in 
JSP...
> > 
> > Client just wants to change the UI of a few screens only without 
> > using FDS.
> > 
> > Is there only way to create XMLs at the runtime? as you have 
> > suggested...
> > 
> > What are the advantages and disadvantages of creating 
application in 
> > flex without FDS?
> > 
> > Thanks in advance..
> > Sanjay Sharma
> > 
> > --- In flexcoders@yahoogroups.com 
> > , "David Mendels"  
> > wrote:
> > >
> > > Hello,
> > > 
> > > FDS is not required. Use the SDK and/or Flex Builder and go 
for 
> > it! 
> > > 
> > > Connect to your back end using just XML over HTTP. This is a 
fine
> > > approach for many use cases.
> > > 
> > > FDS offers additional value in a number of areas, in 
particular: 
> > > * Remoting--simplifies programming model and higher performance
> > > protocal for connecting to Java obects on server (performance 
> > benefit it
> > > material for larger data sets, immaterial for trivial amounts 
of 
> > data.)
> > > * Messaging--connect to JMS or other messaging service, push 
> > and
> > > real time data to client
> > > * Data Service--page data, synch data
> > > More info on FDS available on www.adobe.com
> > > 
> > > HTH,
> > > David
> > > Adobe
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> > 
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of sanjaypmg
> > > Sent: Thursday, January 18, 2007 12:39 AM
> > > To: flexcoders@yahoogroups.com  
> > > Subject: [flexcoders] Application without FDS?
> > > 
> > > 
> > > 
> > > Hi,
> > > 
> > > I have a general question for all
> > > 
> > > Can I make application with FDS?
> > > 
> > > If yes, How can I call my java's remote object?
> > > 
> > > If No, Can you please tell me? Why cannt I make application in 
> > flex 
> > > without FDS?
> > > 
> > > Thanks,
> > > Sanjay Sharma
> > >
> >
>




[flexcoders] Re: a [SIMPLE] resize demo ? anyone ?

2007-01-18 Thread oneproofdk
Hi Tracy.

Thanks for your reply.
I'm not able to find anyResize components on Flex Exchange - is it me ?
Maybe you we're thinking of the "DualSLider" component ?

What I'm looking for, is a working demo of a small app, that will load
2 external images into a canvas at runtime (HTTP).
Somewhere on the layout there should be a slider (or 2 buttons 50% +
100%), allowing the user to resize the images.

My problem (I think) is that I can't figure out how to get the
image.widtth and .height - it always return 0 ?

Thanks for your help,
Mark

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> There is a commercial component on Flex Exchange:
> 
> http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#loc=en_us&vie
> w=sn610&viewName=Adobe%20Exchange&avm=1
> 
>  
> 
> If you don't want to play with your own solution.
> 
> Tracy




[flexcoders] Re: multiple Selection in DataGrid?

2007-01-18 Thread sanjaypmg
Thanks to all... :)
Sanjay

--- In flexcoders@yahoogroups.com, "David Harris" <[EMAIL PROTECTED]> 
wrote:
>
> you'd be after the 'allowMultipleSelection="true" ' attribute I'd 
be
> guessing...
> 
> On 1/19/07, sanjaypmg <[EMAIL PROTECTED]> wrote:
> >
> >   Hi Dude..
> >
> > Is it possible to selected multiple rows in DataGrid?
> >
> > How can I do that?
> >
> > Regards,
> > Sanjay Sharma
> >
> >  
> >
>




[flexcoders] antlr for as3? parsers?

2007-01-18 Thread Aldo Bucchi
or something similar??

need to make a parser for a rather complex EBNF grammar, and by hand I
have only gone so far...

thx,
Aldo
-- 
: Aldo Bucchi :
mobile (56) 8 429 8300


[flexcoders] Re:An internal build error has occurred. Please check the Error Log.

2007-01-18 Thread Robi Ray
Well, this seems to be kind of a bug in the tool. I faced a similar
situation some time back, but could not trace out the issue. Often, it is
because of a corrupted file. The only I could solve it was delete all
project references & start afresh.



[flexcoders] FDS jars in a maven repo??

2007-01-18 Thread Aldo Bucchi
Hi all,

Just wondering if anyone has found / installed the fds2 libraries in a
maven repo
otherwise, any official naming to perform a manual install?

thx,
Aldo

-- 
: Aldo Bucchi :
mobile (56) 8 429 8300


RE: [flexcoders] Flex compiler error

2007-01-18 Thread Dimitrios Gianninas

Has nothing do with Flex Builder, this is the command line compiler that comes 
with FDS.
Anyways I opened up a support case so we will see what happens.

I am also going to try to use the mxmlc.jar directly.

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Igor Costa
Sent: Thu 1/18/2007 6:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex compiler error
 
It means that the Flex Builder couldn't get your JVM, just Reinstall your
Flex Builder with closed 2.0 and than re-install it will works fine.

I saw by other members here the same problems. just re-install the Flex
Builder Updater que will works fine.

Best.

On 1/18/07, Dimitrios Gianninas <[EMAIL PROTECTED]>
wrote:
>
>On some window based PCs, we get the following when compiling our Flex
> app with 2.01:
>
>  [echo] using /dev/libraries/fxcore/2.01/sdk/bin/mxmlc (1.4.2_06-b03)
>  [exec] Error: could not find a JVM.
>
> Anyone seen this before? If i switch back to 2.0, no problem.
>
> *Dimitrios Gianninas*
> *RIA Developer*
> *Optimal Payments Inc.*
>
>
> *AVIS IMPORTANT*
>
> *WARNING*
>
> 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.
>
> 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.
>
>  
>



-- 

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

-- 
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] AS3 code obfuscators

2007-01-18 Thread Jim Cheng
Daniel Wabyick wrote:

> Does anyone know of any AS3 code obfuscators out there?

I don't know of any publicly available obfuscators.  But, given the fact 
that Adobe has contributed the source code for the AS3 virtual machine 
to the the Mozilla community as the Tamarin project, it would not be 
very difficult for one to be written.

Be forewarned, however, there is already a basic AS3 decompiler written 
in AS3 available with the sources, and in them lie myriad starting 
points for writing bytecode analysis programs in both C++ and AS3 (or 
any other language of your choice, if you care to do the porting).

See:

   http://www.mozilla.org/projects/tamarin/

   http://www.5etdemi.com/blog/archives/2007/01/as3-decompiler/

Like others have already mentioned, you're best off keeping your highly 
sensitive code tightly secured on the server-side.  That is to say, you 
really shouldn't implement trade secrets or sensitive financial data 
encryption algorithms in a SWF.  But if you want to make your latest 
Flex-based game a little bit harder to steal or cheat at, obfuscation 
might at best deter casual thievery and create more busy work for the 
truly dedicated.

That being said, there are still quite a few "very interesting things" 
that can now be done given that we've got the Tamarin source code.  ;)

Jim


[flexcoders] Re: Combobox displays [Object object], not States

2007-01-18 Thread Jim Pickering
Doug thanks so much. I really appreciate it.

Jim
--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> Sounds like you need to set the labelField property of your combo 
> box.  For example, if the objects in your statesData array contain a 
> property called "name" with the values you want shown in the 
> control, you would use:
> 
> 
> 
> If you aren't sure what the property with the label you want to show 
> up in the combobox is called, switch back to datagrid and see what's 
> in the appropriate column header - that'll be the value to use in 
> place of "name" in the above example.
> 
> 
> --- In flexcoders@yahoogroups.com, "Jim Pickering" 
>  wrote:
> >
> > In my code, below, if I change Combobox to Datagrid, the data 
> loads just
> > fine. But as a Combobox I get the exact number of records returned 
> from
> > my database table, but [Object object] in the Combobox. What am I
> > missing?
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="vertical"
> >  xmlns:forms="forms.*"
> > creationComplete="cfService.getStatesAsArray()">
> > 
> >  
> >  
> >  
> > 
> >   >  destination="cfmx"
> >  source="cats.com.states"
> >  result="statesHandler(event)"/>
> > 
> >  
> > 
> > 
> > 
> >
>




[flexcoders] Re: How can I do to add a background color for datagrid header?

2007-01-18 Thread zedan_gu
Igor Costa, thanks for help, but I just want to set the column
header's bgcolor which user clicks, no the datagrid bgcolor, other
help? Thanks 
--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> Zedan
> 
> I suggest you to take a look at the Flex cookbook, If I'm not wrong
already
> has a solution for that.
> But if Not, just take a look at the Flex Style Explore and use the
Class of
> StyleManager to do that.
> for example:
> 
> public function setHeaderBack():void
> {
>   myGrid.setStyle("backgroundColor",0x990044);
> }
> 
> then in the datagrid just put a datagrid Event click handler.
> 
> Isn't a best decribe for your problem just point you out on that.
> 
> 
> Best.
> 
> On 1/18/07, zedan_gu <[EMAIL PROTECTED]> wrote:
> >
> >   I*m attempting to add a background color for datagrid header
when user
> > clicks the header to sort the data, to indicate which column was
> > sorted, how can I achieve this?
> > I want to get the header which user click, and then set it*s
> > background color style, but I can*t get the header, getChildAt()
? No
> > use, Flex 2 Help document is helpless for me about this issue.
> > Any suggestions would be greatly appreciated
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.org
> www.igorcosta.com
> skype: igorpcosta
>




RE: [flexcoders] Re: QTP plug in requires FDS?! That's crazy

2007-01-18 Thread Lance Linder
Thanks for looking out for us Matt!

 

Even though I would love to license FDS it's just that we don't have an
immediate need for FDS and it is a lot of extra $$ to spend just to get
the QTP plug-in J

 

Hope to see some more licensing options in the future!

 

Thanks,

Lance

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Thursday, January 18, 2007 1:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: QTP plug in requires FDS?! That's crazy

 

There is no technical requirement for FDS, we primarily thought we
weren't going to charge FDS customers *more* to add testing support for
now.  I admit it's possible we misjudged the size of the potential
audience and we are investigating future alternatives.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, January 18, 2007 4:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: QTP plug in requires FDS?! That's crazy

 

On Wednesday 17 January 2007 19:20, Tariq Ahmed wrote:
> I know FDS being required wasn't done for the hell of it, but
> architecturally it should have been an option that provides extra
benefits,

You'd have thought so.

> those who know me, I'm Flex's biggest fan. It feels like the Flex
> management/marketing team's nature is to assume that most companies
are
> mega enterprises with monster budgets. In the land of Flex, any new

That was certainly the way Flex was sold initaly remember. I think
things have 
changed, and Adobe probably have a fairly sound reason for requiring FDS

(async command push to the and pull from player maybe).

-- 
Tom Chiverton
Helping to administratively benchmark best-of-breed e-tailers



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF. A list of
members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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

 



[flexcoders] Re: FDS Application takes a while to load

2007-01-18 Thread Alexander Tsoukias
I am using the multiserver version of Coldfusion Enterprise Jrun, and
I have added a new server and within that server I've expanded the FDS
wars.

Any idea?

Thanks,
Alex

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> What  FDS version do you use? using the J2EE web-tier like TomCat?
If true,
> better uses the tomcat 5.5.
> 
> If Not, just take a look on the performace of your Jrun server,
maybe it's
> running in debug mode.
> 
> 
> Best.
> 
> On 1/18/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:
> >
> >   I am using this example to test out the whole FDS idea:
> >
> >
> >
http://coenraets.org/blog/2006/10/building-collaborative-applications-with-flex-data-services-and-flash-media-server/
> >
> > When I run the application from the URL, it takes up to 4 minutes to
> > load the application.
> >
> > Any idea why this would be happening?
> >
> > Thanks,
> > Alexander
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.org
> www.igorcosta.com
> skype: igorpcosta
>




RE: [flexcoders] Re: Populating List with Data From Web Service

2007-01-18 Thread Tracy Spratt
It is under DataGridColumn in the docs.

 

Also, there are several examples on CFLEX.net.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Lee
Sent: Thursday, January 18, 2007 4:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Populating List with Data From Web Service

 

Tracy, as always, you rock. Thanks for the help. Can you point me 
in the right direction as to where to find information on how to use 
a labelFunction()? Sorry to be so thick.

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> "...as the data provider for a grid, and it works perfectly...it's 
just
> when I try to use it as a data provider for a list, it doesn't 
work ..."
> 
> Sounds like you should verify your labelField property or use a
> labelFunction(). A labelFunction will let you debug the actual item
> object.
> 
> 
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Lisa Lee
> Sent: Thursday, January 18, 2007 3:45 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Populating List with Data From Web Service
> 
> 
> 
> Thanks very much for the info, Clint. If I return a query instead 
of 
> an array, do I still cast it as an ArrayCollection? It doesn't seem 
> to be working for me. The other puzzling thing is that I can use my 
> current code and use the result as the data provider for a grid, 
and 
> it works perfectly...it's just when I try to use it as a data 
> provider for a list, it doesn't work.
> 
> --- In flexcoders@yahoogroups.com
  
> , "Clint Tredway"  
> wrote:
> >
> > Web services are not returned liked that. My advice is to use 
> remoting with
> > CF and your code will work the way it is now.. also, you can 
return 
> the
> > query itself without making an array to send back.
> > 
> > On 1/17/07, Lisa Lee  wrote:
> > >
> > > Hi,
> > >
> > > I have a list that I want to populate with data from a CFC, but 
> all I
> > > get with my current code is a list with every row 
reading '[object
> > > Object]' instead of actual data from my web service. The web 
> service
> > > should just be returning an array (also, is an array the best 
way 
> to
> > > return data for a list?).
> > >
> > > Main code of CFC that returns data:
> > >
> > > 
> > > SELECT
> > > pkServiceTypeID,
> > > Description
> > > FROM tblSYS_ServiceTypes WITH (NOLOCK)
> > > ORDER BY Description
> > > 
> > >
> > > 
> > >
> > > 
> > > 
> > >  > > pkServiceTypeID>
> > > 
> > > 
> > >
> > > 
> > >
> > > Main elements of MXML that pertain to the list:
> > >
> > > 
> > > http://www.adobe.com/2006/mxml
 
>  > "
> > > layout="absolute"
> > > creationComplete="perfManWS.GetServiceTypes.send();">
> > > 
> > > 
> > > 
> > >
> > >  > >
> > > wsdl="http://development/dev1/workspaces/lisa/components/perfo
 
>  > 
> > > rmancemanagement.cfc?wsdl">
> > >  > > result="serviceTypeHandler(event)">
> > > 
> > > xxx
> > > xxx
> > > 
> > > 
> > > 
> > >
> > >  > >
> > > dataProvider="{serviceTypeDP}"
> > >
> > > labelField="description"
> > >
> > > allowMultipleSelection="true"/>
> > >
> > > 
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > http://indeegrumpee.spaces.live.com/
 
>  > 
> >
>

 



[flexcoders] Re: How to embed FlashType font?

2007-01-18 Thread zedan_gu
igorpcosta, thanks for your help, but I always make a error when I
bulid the project, I had created a swf file in Flash 8, and embeded it
in CSS.
My project is in 2.0 now, I don't want to code it with 2.0.1 at
present, other help? Thanks.

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> Zedan
> 
> Try to do this with flex 2.0.1 now it's a direct mode, otherwise in
> the 2.0you had to create first in Flash 8 and then add the source
> Embeded as your
> font created and passed throw the library to be acessed.
> 
> Best.
> 
> On 1/18/07, zedan_gu <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> > I have a trouble about FlashType font.
> > I created a swf file follow  > FlashType fonts> in Adobe Flex2 Help(Flex2 Developer's Guide), and
> > then want to embed it in flex with code that:
> > @font-face
> > {
> > src:url("/Font/test2.swf");
> > fontFamily: "test";
> > }
> > but it alway show a same error:
> > "font 'test' with normal weight and regular style not found", what
> > happen about this? Help me please.
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.org
> www.igorcosta.com
> skype: igorpcosta
>




Re: [flexcoders] multiple Selection in DataGrid?

2007-01-18 Thread David Harris

you'd be after the 'allowMultipleSelection="true" ' attribute I'd be
guessing...

On 1/19/07, sanjaypmg <[EMAIL PROTECTED]> wrote:


  Hi Dude..

Is it possible to selected multiple rows in DataGrid?

How can I do that?

Regards,
Sanjay Sharma

 



[flexcoders] Image source doesn't affect Image size?

2007-01-18 Thread Russell Sprague
It seems that if an image is loaded into an Image tag at runtime, the 
size is w=0 h=0, ex.

private var imgsrc:String;
public function loadImage(val:String):void{
imgsrc = "assets/images/"+val;
}
private function imgLoaded(e:Event):void{
trace("tw "+this.width);
trace("iw "+bImage.width);
trace(e.target.width);
}
...


if I call the loadImage function with a image url string,
even after the image loads into the Image tag, it returns 0 for the 
width and height of the Image tag.

I tried using a callLater function in the loadImage function, but it 
gave the same results.

Is there a way to get the width and height of an Image tag if it loads 
in an image at runtime?

Thanks
Russ




[flexcoders] Re: Combobox displays [Object object], not States

2007-01-18 Thread Doug Lowder
Sounds like you need to set the labelField property of your combo 
box.  For example, if the objects in your statesData array contain a 
property called "name" with the values you want shown in the 
control, you would use:



If you aren't sure what the property with the label you want to show 
up in the combobox is called, switch back to datagrid and see what's 
in the appropriate column header - that'll be the value to use in 
place of "name" in the above example.


--- In flexcoders@yahoogroups.com, "Jim Pickering" 
<[EMAIL PROTECTED]> wrote:
>
> In my code, below, if I change Combobox to Datagrid, the data 
loads just
> fine. But as a Combobox I get the exact number of records returned 
from
> my database table, but [Object object] in the Combobox. What am I
> missing?
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="vertical"
>  xmlns:forms="forms.*"
> creationComplete="cfService.getStatesAsArray()">
> 
>  
>  
>  
> 
>destination="cfmx"
>  source="cats.com.states"
>  result="statesHandler(event)"/>
> 
>  
> 
> 
> 
>




Re: [flexcoders] Re: AMFPHP & Security

2007-01-18 Thread Patrick Mineault
I think you're misunderstanding my argument Mark. Of course you can 
spoof any message you want, and you don't have to be an expert either to 
do it; you could use the amfphp service browser of SabreAMF as a library 
or a Flash movie to send any message whatsoever to a gateway.

The issue with class mapping is that when developers put something in 
the service folder, they know that the code can be included and methods 
run on it. If they care about security, they will take care that the 
methods defined are not dangerous if remotely executed with other data. 
But from talking to a very well-known blogger (a Java fan) and seeing 
some of the new code that is going around in tutorials, I see that while 
people are taking care of escaping strings before sending them to a 
database and the like, they don't bother to check the argument type 
that's received, and while that may not be dangerous if you receive an 
array instead of a string, it may be if you receive a live object which 
has code in it which may be executed.

The locking mechanisms which apply to amfphp, WebORB or Fluorine are 
per-method, but class mappings in most implementations is per gateway 
(at least, that's what it is in amfphp, Fluorine, or OpenAMF). So you 
could call an unlocked method with a mapped class that you would only 
expect to receive in a locked method, and if that mapped class has 
side-effects it could do some damage. Because class mapping and VOs are 
often used in database scenarios, we're talking about potential 
data-loss issues here. It's a far-fetched scenario, but the main issue 
is that it is such an unobvious scenario that you might not actually 
think about it, and you might not think about securing against it.

About the "Our implementation (weborb) does it quite well", I'm not sure 
what you're referring to by "it". Could you expand?

Patrick

Mark Piller a écrit :
>
> Zoli is right. Usage of a specific object type in a method signature
> is irrelevant to security. In fact, you do not even need to know AMF
> to do it. One could easily use something like ServiceCapture to
> understand the structure of the argument type then construct a similar
> object and run it a local Flex/Flash movie with unrestricted security.
> Essentially it means that a gateway must safeguard against such
> malicious attacks. Our implementation (weborb) does it quite well.
>
> Cheers,
> Mark
>
> --- In [EMAIL PROTECTED] ups.com 
> , "Zoltan Csibi" 
> wrote:
> >
> >
> > What I mean is: if I can sniff what typed VO an application is
> receiving, I
> > can "craft" an AMF packet with:
> > - call to "deleteUser"
> > - the same VO "type" (simplified: as we know that this is just a
> string of
> > the class name followed by other strings describing property names
> and other
> > binary data with property values etc etc etc)
> >
> > The gateway (fluorine, openamf, fds ... anything) will see a "valid"
> > object/type. There is no type-coercion error here.
> >
> > This is an easy task to do with AMF knowledge.
> >
> >
> > Bottom line: I don't think that passing simple types, untyped VOs or
> typed
> > VOs makes any difference from security point of view.
> >
> >
> > Mit freundlichem Gruß,
> > Zoli
> >
> >
> >
> >  _ _ __
> >
> > From: [EMAIL PROTECTED] ups.com 
>  [mailto:[EMAIL PROTECTED] 
> ups.com ] On
> > Behalf Of Patrick Mineault
> > Sent: Thursday, January 18, 2007 6:29 PM
> > To: [EMAIL PROTECTED] ups.com 
> > Subject: Re: [flexcoders] AMFPHP & Security
> >
> >
> >
> > Wouldn't Fluorine and OpenAMF throw a type-coercion error, given that
> > the first argument is typed? Of course, the code in the constructor
> > would be called anyways.
> >
> > Patrick
> >
>
>  



RE: [flexcoders] AS3 code obfuscators

2007-01-18 Thread Zoltan Csibi
what? :))
 

Mit freundlichem Gruß,

Zoli

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Igor Costa
Sent: Friday, January 19, 2007 1:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AS3 code obfuscators



Daniel

The goal to create Bests RIA isn't in obfuscated the Code in Client side but
do much more in server-side, I belive it's the best obfuscators that exists.


Best.



On 1/18/07, Daniel Wabyick <[EMAIL PROTECTED] 
com> wrote: 


Does anyone know of any AS3 code obfuscators out there?

Thanks,
-D








-- 

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

 


[flexcoders] Combobox displays [Object object], not States

2007-01-18 Thread Jim Pickering
In my code, below, if I change Combobox to Datagrid, the data loads just
fine. But as a Combobox I get the exact number of records returned from
my database table, but [Object object] in the Combobox. What am I
missing?


http://www.adobe.com/2006/mxml";
layout="vertical"
 xmlns:forms="forms.*"
creationComplete="cfService.getStatesAsArray()">

 
 
 

 

 








Re: [flexcoders] Context menu Submenu

2007-01-18 Thread Igor Costa

Nope Isn't possible.


Best

On 1/18/07, alok512522 <[EMAIL PROTECTED]> wrote:


  Is it possible to have a context menu item which has a child sub-menu.
Currently I have a COntext menu item and when i click it I open
another regular Flex Menu where it is possible to create a sub-menu.
But when you right click and the Adobe COntext menu pops up there i am
unable to add a menuitem which can contain a submenu. Any help here
will be appreciated.

 





--

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


Re: [flexcoders] How to embed FlashType font?

2007-01-18 Thread Igor Costa

Zedan

Try to do this with flex 2.0.1 now it's a direct mode, otherwise in
the 2.0you had to create first in Flash 8 and then add the source
Embeded as your
font created and passed throw the library to be acessed.

Best.

On 1/18/07, zedan_gu <[EMAIL PROTECTED]> wrote:


  Hi,
I have a trouble about FlashType font.
I created a swf file follow  in Adobe Flex2 Help(Flex2 Developer's Guide), and
then want to embed it in flex with code that:
@font-face
{
src:url("/Font/test2.swf");
fontFamily: "test";
}
but it alway show a same error:
"font 'test' with normal weight and regular style not found", what
happen about this? Help me please.

 





--

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


Re: [flexcoders] css.css and css in .mxml, which one is faster?

2007-01-18 Thread Igor Costa

Both

Both are compiled into the .swf file in the compile time.

The difference between them it's just organize your code.

But in the 2.0.1 the run time css it's better.


Best

On 1/18/07, aedisju <[EMAIL PROTECTED]> wrote:


  hello!

css.css and css in .mxml, which one is faster?

 





--

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


[flexcoders] Problem with module classes instantiation through ModuleManager

2007-01-18 Thread tvikatos
I have a module that combines mxml and as3. The problem I describe
below happens in either case:
* main module file in AS extending ModuleBase
* main module file in MXML extending mx:Module

When I load the module using ModuleLoader and its 'child' property,
all is good.
When I use ModuleManager and I instantiate a module object through
IModuleInfo.factory.create(), the objects defined as MXML tags within
my module are not instantiated (properties remain null).
Is there something I can do to properly instantiate the module
(something that apparently ModuleLoader does behind the scene)?

Or should I just not use any MXML with modules?



Re: [flexcoders] Binding ComboBox that has no dataProvider yet

2007-01-18 Thread Igor Costa

Libby

Not sure about your question, are you trying to bind some data into a
comboBox but want to the first item to be empty of data?

I used once using as static using the mx.bindingUtils class but it was just
passing to dataProvider as the frist in static mode.
and join both dinamic and static. using the SelectedIndex.


Best

On 1/17/07, Libby <[EMAIL PROTECTED]> wrote:


  I notice that if you use mx.binding tags in your mxml, you can bind a
comboBox prior to it having any data in it. When I try to do this from
actionscript using mx.bindingUtils, I get a null object reference on
the selectedItem. Once I set the dataProvider, then binding works no
problem. I was wondering if anyone knows how this null reference
situation is being handled in the binding tag? Maybe I shouldn't be
binding to selectedItem, but to something else?

Thanks,
Libby

 





--

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


[flexcoders] Re: Source not found error when debugging

2007-01-18 Thread rumpleminzeflickr
Hi turns out my computer is buggered..

Rebuilding now thanks for the help all :)


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 18 January 2007 00:35, rumpleminzeflickr wrote:
> > When I run a project in debug mode I get an error, "source not 
found"
> > error.
> 
> For what class ?
> 
> -- 
> Tom Chiverton
> Helping to preemptively morph essential solutions
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the 
registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




Re: [flexcoders] css's speed

2007-01-18 Thread Igor Costa

Both are.

Until the 2.0.1 were the same speed, but now in 2.0.1 the run time it's
better.

Best

On 1/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


  css.css and css in mxml

which one is faster?


--
女友喜欢去的好地方!所有东东吐血价 
点击进入有大惊喜!

 





--

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


Re: [flexcoders] multiple Selection in DataGrid?

2007-01-18 Thread Igor Costa

Hi Sanjay

Yes totally

Using just this parameter into your  tag  


Best

On 1/18/07, sanjaypmg <[EMAIL PROTECTED]> wrote:


  Hi Dude..

Is it possible to selected multiple rows in DataGrid?

How can I do that?

Regards,
Sanjay Sharma

 





--

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


Re: [flexcoders] EEK CodeBehind Repeater / RadioButton issue!

2007-01-18 Thread Igor Costa

It's better to declare a boolean value to pass throw your radiobuttons than
passing as a RadioButton.

Because as the error says, it's unknowed as a type pass type. against the
convert without passing extra arguments.


Best

On 1/18/07, Steve Cox <[EMAIL PROTECTED]> wrote:


  All,

When using the code behind technique to declare the controls you will
use in the MXML I have come across an issue I cannot work out a solution
for.

Usually for controls declaring the id of the control inside the code
behind class as public you can access a control you added to mxml. So
for example you would use:

public var myRadioButton : RadioButton

Where the RadioButton in your MXML had the id of myRadioButton.
Now the issue.. What if that RadioButton is inside a Repeater? For the
code to compile the type (RadioButton) must be the same in both the MXML
and the class, however when the repeater runs it builds up an Array
called myRadioButton each containing an instance of the RadioButton!
However I cannot declare myRadioButton as an Array inside the class
because the compiler thinks it should be a repeater!

When running a repeater I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED]
to mx.controls.RadioButton.

What have I missed? Any ideas?

Cheers,

Steve

 





--

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


Re: [flexcoders] An internal build error has occurred. Please check the Error Log.

2007-01-18 Thread Igor Costa

Chris

Just select your project, go to menu in Project > clean > select your
project, clean and then build again.

Means that in somehow you were trying to use the Compiler with the .swf file
opened and used at the same time.

just clean your project then recompile again and don't forget to close or
stop using the current .swf you are trying to compile.



best.

On 1/18/07, chrislpigg <[EMAIL PROTECTED]> wrote:


  Does anyone know how to fix this error message in Flex 2.0?

 





--

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


Re: [flexcoders] How can I do to add a background color for datagrid header?

2007-01-18 Thread Igor Costa

Zedan

I suggest you to take a look at the Flex cookbook, If I'm not wrong already
has a solution for that.
But if Not, just take a look at the Flex Style Explore and use the Class of
StyleManager to do that.
for example:

public function setHeaderBack():void
{
 myGrid.setStyle("backgroundColor",0x990044);
}

then in the datagrid just put a datagrid Event click handler.

Isn't a best decribe for your problem just point you out on that.


Best.

On 1/18/07, zedan_gu <[EMAIL PROTECTED]> wrote:


  I*m attempting to add a background color for datagrid header when user
clicks the header to sort the data, to indicate which column was
sorted, how can I achieve this?
I want to get the header which user click, and then set it*s
background color style, but I can*t get the header, getChildAt() ? No
use, Flex 2 Help document is helpless for me about this issue.
Any suggestions would be greatly appreciated

 





--

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


Re: [flexcoders] AS3 code obfuscators

2007-01-18 Thread Michael Schmalle

On that note;

The adenvt of module swf and css swf is going to make it even more fun for
those that want to kipe and steal. ;-)

Have fun!

PS, If you are truly and inventor, you'll be on tot he next best thing while
there cracking your stuff anyway. haha

Peace, Mike

On 1/18/07, Igor Costa <[EMAIL PROTECTED]> wrote:


  Daniel

The goal to create Bests RIA isn't in obfuscated the Code in Client side
but do much more in server-side, I belive it's the best obfuscators that
exists.


Best.

On 1/18/07, Daniel Wabyick <[EMAIL PROTECTED]> wrote:
>
>
> Does anyone know of any AS3 code obfuscators out there?
>
> Thanks,
> -D
>
>


--

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





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] i love flex.

2007-01-18 Thread Igor Costa

hahaha

Something maybe hited you today and impressed.

That's good.

Awesome day to you too.

On 1/18/07, kasey.mccurdy <[EMAIL PROTECTED]> wrote:


  i just wanted to say that. i really think adobe (well, the macromedia
team) has done an amazing job in creating an amazing framework...

and no, im not a macromedia employee.

that is all ... i hope all my fellow flex-coders have an awesome day...

 





--

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


Re: [flexcoders] Browser-difference Netconnection AMF0

2007-01-18 Thread Igor Costa

Frederick

This happens not because of your browser but some configuration into your
amfphp. Did you tried with the last update of amfphp 1.9 , that in also
supports
amf3

best.

On 1/18/07, wesubotnix <[EMAIL PROTECTED]> wrote:


  Hi,

After compiling old (Flex 2.0) classes within the 2.01 framework, our
amfphp-connection stops working in some client browsers. A
NetConnection.Call.BadVersion. error is thrown. The strange thing is
that it works fine in Internet Explorer 6, but not IE7, or Firefox2.
Could there be a difference in the amf0-interpretation between the
flashplayers? Anyone know, or would like to guess, why this happens?

Thanks,
Fredrik Sandberg

 





--

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


Re: [flexcoders] Application exit handler

2007-01-18 Thread Igor Costa

Ajit

I suggest you to create a time Session. it's a better workarround to control
that.

Take a look at Flex Cookbook exist an work around to that.

Best.

On 1/18/07, ajitparthan <[EMAIL PROTECTED]> wrote:


  Is there a standard way to setup an exit handler for Flex applications?
In the project I am working on, we login to a remote webservice at
startup. I would also like to gracefully logout when the user is
"done" with application.

The application has a "logout" action which the user can use but I am
guessing most of the time the user is either a) going to just close
the browser tab/window or b) navigate out by going to homepage or some
other URL. I am trying to find a way to register an exit handler that
will be called in these cases.

One option is to use the FABridge mechanism and invoke a function on
"onbeforeunload" at the Javascript level. But I could not get it to
work for the case where user just closes tab or browser window.

Any ideas/suggestions/pointers on this will be greatly appreciated.

--ajit

 





--

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


Re: [flexcoders] FDS Application takes a while to load

2007-01-18 Thread Igor Costa

What  FDS version do you use? using the J2EE web-tier like TomCat? If true,
better uses the tomcat 5.5.

If Not, just take a look on the performace of your Jrun server, maybe it's
running in debug mode.


Best.

On 1/18/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:


  I am using this example to test out the whole FDS idea:


http://coenraets.org/blog/2006/10/building-collaborative-applications-with-flex-data-services-and-flash-media-server/

When I run the application from the URL, it takes up to 4 minutes to
load the application.

Any idea why this would be happening?

Thanks,
Alexander

 





--

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


[flexcoders] Re: It shouldn't be this hard.

2007-01-18 Thread lar.drolet
Had some issues with the Image too, use an 


The complete was the one method that seemed to fire when the image was
loaded.

Good Luck.

LD

--- In flexcoders@yahoogroups.com, Russell Sprague <[EMAIL PROTECTED]> wrote:
>
> well that is what I thought, but I couldn't get it to work.
> 
> Shannon Hicks wrote:
> >
> > You could always set the x/y by hand when you load the image. 
> > Something like this:
> >
> > loadImage():void {
> > image.source = mynewimage.jpg
> > callLater(centerImage);
> > }
> >
> > centerImage():void {
> > image.x = (wrapper.width / 2) - (image.width / 2);
> > image.y = (wrapper.height/ 2) - (image.height/ 2);
> > }
> >
> > Shan
> >
> > Russell Sprague wrote:
> >
> >> @Matt
> >> yea I don't really hate the docs, I was just a little frustrated, 
> >> because most of the examples are Actionscript examples, and if I am 
> >> looking for an example of how to do something in mxml, I don't know 
> >> enough to translate the AS to mxml.
> >>
> >> @roman
> >> I tried the horizontal and verticalCenter, and it didn't work
> >> I think part of the problem is there is nothing in the component 
> >> until I load the image, so there is nothing to measure to.
> >>
> >> Russ
> >> Matt Horn wrote:
> >>
> >>> > I hate the flex documentation...
> >>>
> >>> Also, if there are specific problems with the documentation,
please let
> >>> the doc team know by either posting to this list, adding a
comment to
> >>> livedocs, or filing a bug at http://www.adobe.com/go/wish. 
> >>>  Thanks,
> >>>
> >>> matt horn
> >>> flex docs
> >>>
> >>> > -Original Message-
> >>> > From: flexcoders@yahoogroups.com 
> >>> 
> >>> > [mailto:flexcoders@yahoogroups.com 
> >>> ] On Behalf Of Roman Protsiuk
> >>> > Sent: Thursday, January 18, 2007 7:51 AM
> >>> > To: flexcoders@yahoogroups.com

> >>> > Subject: Re: [flexcoders] It shouldn't be this hard.
> >>> >
> >>> > The first thought is:
> >>> >
> >>> > 
> >>> >  >>> > verticalCenter="0" /> 
> >>> >
> >>> > To scale, dunno, but maybe something like:
> >>> >
> >>> > 
> >>> >  >>> > source="{yourSource}"
> >>> > width="{imageContainer.width < image.width ?
> >>> > imageContainer.width : image.width}"
> >>> > height="{imageContainer.height < image.height ?
> >>> > imageContainer.height : image.height}"
> >>> > scaleContent="true"
> >>> > horizontalCenter="0"
> >>> > verticalCenter="0" />
> >>> > 
> >>> >
> >>> > This one probably won't work, it's very dirty, however might
> >>> > give you a clue... ;)
> >>> >
> >>> > And the easiest way to scale, but still, not so nice from the
> >>> > point of ui (it scales both way) is just:
> >>> >
> >>> >  >>> > width="100%" height="100%" />
> >>> >
> >>> > Have fun,
> >>> > R.
> >>> >
> >>> >
> >>> >
> >>> > On 1/18/07, Russell Sprague <[EMAIL PROTECTED] 
> >>> 
> >>> >  >>> > > wrote:
> >>> >
> >>> > I hate the flex documentation...
> >>> >
> >>> > All I want to do is dynamically center an image on my stage.
> >>> >
> >>> > I have a VDividedBox with an image in the top, and text
> >>> > in the bottom.
> >>> > I loading in images by setting the source of an image
> >>> > tag(probably not
> >>> > the best way to do it, but again I hate the Flex docs...).
> >>> > So when the image loads I am trying to set it to center
> >>> > in the upper
> >>> > pane of the vdividedbox, but all my attemps have failed.
> >>> >
> >>> > It would be nice to also resize the image as the
> >>> > divideBar is dragged,
> >>> > but only to the original size of the image, then it
> >>> > just centers.
> >>> >
> >>> > Thanks
> >>> > Russ
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>>
> >>
> >
> >
>




[flexcoders] Loading Modules issue/confusion

2007-01-18 Thread lar.drolet
Playing with the whole Module loading thing and discovered a few
things that seem odd, or maybe I just don't get Modules like I thought
I did.

I created an Application with a ModuleLoader including two listeners:
Setup and Ready.

Inside of my Module.swf (swf to load into the ModuleLoader) I have a
simple Canvas object, within the Module tag I also include a
creationComplete which calls initMod.  Also inside the Module.swf I
have a function called getInfo that does a simple trace.

When I compile my Application I expected to see some traces in the
following order:

Loading Module...
Module Setup...
Loaded Module created...
Module Ready...
getInfo called...

or 

Loading Module...
Module Setup...
Module Ready...
Loaded Module created...
getInfo called...


My thinking was that as I load the Module.swf I would see the Setup
called when it begins to load, then when the Module.swf is loaded the
creationComplete would fire, followed by the Ready with my getInfo
call firing last.  The Ready and the creationComplete may be flip
flopped I was not sure which would fire first.

What did trace out surprised me.

Loading Module...
Module Setup...
Module Ready...
getInfo called...
Loaded Module created...

So what stumped me is that the getInfo call actually worked before the
creationComplete fired.  Why did this happen in this order?

Also having issues with the idea of passing data on the Query string
but that is for another post still playing with the code.

Thanks.

LD




Re: [flexcoders] Flex compiler error

2007-01-18 Thread Igor Costa

It means that the Flex Builder couldn't get your JVM, just Reinstall your
Flex Builder with closed 2.0 and than re-install it will works fine.

I saw by other members here the same problems. just re-install the Flex
Builder Updater que will works fine.

Best.

On 1/18/07, Dimitrios Gianninas <[EMAIL PROTECTED]>
wrote:


   On some window based PCs, we get the following when compiling our Flex
app with 2.01:

 [echo] using /dev/libraries/fxcore/2.01/sdk/bin/mxmlc (1.4.2_06-b03)
 [exec] Error: could not find a JVM.

Anyone seen this before? If i switch back to 2.0, no problem.

*Dimitrios Gianninas*
*RIA Developer*
*Optimal Payments Inc.*


*AVIS IMPORTANT*

*WARNING*

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.

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.

 





--

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


Re: [flexcoders] AS3 code obfuscators

2007-01-18 Thread Igor Costa

Daniel

The goal to create Bests RIA isn't in obfuscated the Code in Client side but
do much more in server-side, I belive it's the best obfuscators that exists.


Best.

On 1/18/07, Daniel Wabyick <[EMAIL PROTECTED]> wrote:



Does anyone know of any AS3 code obfuscators out there?

Thanks,
-D

 





--

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


RE: [flexcoders] How to deal with icons in a custom button skin ?

2007-01-18 Thread Laurent Vitalis
Here's what I ended up with, can someone tell me if it's the right way to do
it ?

 

public class MyButton extends Button

{

  private var highlight:UIComponent;

 

  public function MyButton():void

  {

super();

highlight = new UIComponent();

addChild(highlight);

}

 

  override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void

  {

super.updateDisplayList(unscaledWidth, unscaledHeight);



setChildIndex(highlight, numChildren - 1);

 

var cornerRadius:Number = getStyle("cornerRadius");

  

highlight.graphics.clear();

highlight.graphics.beginGradientFill("linear", [ 0xFF,
0xFF ], [0, 0.40], null, verticalGradientMatrix(1, 1, unscaledWidth - 2,
(unscaledHeight - 2) / 2));

 
GraphicsUtil.drawRoundRectComplex(highlight.graphics,1,1,unscaledWidth-2,(un
scaledHeight-2)/2,cornerRadius-1,cornerRadius-1,0,0);

highlight.graphics.endFill();

  }   

}

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Laurent Vitalis
Sent: 18 janvier 2007 13:47
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to deal with icons in a custom button skin ?

 

Hi, i've started working in Flex 2 last month. I am unable to achieve
something I consider simple even after googling a lot and reading my 3 books
(as3 cookbook, flex2 training and as3 design patts.).

 

I want to code a button skin which will display a highlight OVER the button
icon and text.

 

I want my updateDisplayList to do the following :

 

-  draw the button background (drawRoundRect)

-  draw the icon

-  draw the text

-  draw the highlight (another drawRoundRect)

-  draw a shadow (RectangularDropShadow)

 

After looking at Button.as, I'm afraid that the component is not flexible
enough for this.

 

Thanks for your help.

Laurent.

 

__ NOD32 1988 (20070118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



[flexcoders] Flex compiler error

2007-01-18 Thread Dimitrios Gianninas
On some window based PCs, we get the following when compiling our Flex app with 
2.01:
 
 [echo] using /dev/libraries/fxcore/2.01/sdk/bin/mxmlc (1.4.2_06-b03)
 [exec] Error: could not find a JVM.
 
Anyone seen this before? If i switch back to 2.0, no problem.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 

-- 
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: Updating a DataService fill

2007-01-18 Thread Jeff Vroom
Right after it prints that message, it goes and invokes the "Fill"
method.  Most likely, your fill method is returning the same set of
items it had returned before the call?  Is there any caching going on?
Maybe you can stop in the debugger in your fill method to see what is
going on?

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of spirit_ryder2k
Sent: Thursday, January 18, 2007 4:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Updating a DataService fill

 

Whoops, seems like I missed a part

[Flex] Started transaction using jndi name: java:comp/UserTransaction
[Flex] Queuing refresh fill till commit for CategoryDS with 
parameters: null
[Flex] Committed transaction
[Flex] Committed transaction
[Flex] Refresh fill: destination=CategoryDS fillParameters=null 
refreshed: 1 fi
lls

So it seems the fill is refreshed but my client doesnt receive any 
updates on the CategoryDS. I can provide the code if needed.

--- In flexcoders@yahoogroups.com 
, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> As long as you add the refreshFill to the
> "DataServiceTransaction.getCurrentDataServiceTransaction" it will 
be run
> after the transaction commits. One way to get more information 
about
> what is happening is to turn on debug logging in
> WEB-INF/flex/services-config.xml (search for level=".." change that 
to
> Debug and make sure that DataService.* and Message.* are listed in
>  tags just below). If the output is kind of large, feel 
free
> to send the output to be directly ([EMAIL PROTECTED]) and hopefully I can
> figure out what is going on from that. 
> 
> 
> 
> Jeff
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of spirit_ryder2k
> Sent: Tuesday, January 16, 2007 5:08 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Updating a DataService fill
> 
> 
> 
> Hi Jeff,
> 
> I tried your code but it didn't help. The Javadocs gives a little 
> information about transactions in an assembler method except that 
it 
> auto commits after the method ends.
> Maybe the fill refreshes before the item created is commited so it 
> refreshes with the same data?
> 
> --- In flexcoders@yahoogroups.com
  

> , "Jeff Vroom"  wrote:
> >
> > Try changing your code to:
> > 
> > 
> > 
> > DataServiceTransaction dtx =
> > DataServiceTransaction.getCurrentDataServiceTransaction();
> > 
> > dtx.refreshFill("CategoryDS", null);
> > 
> > 
> > 
> > You also don't want the dtx.commit() in there. The basic problem 
is
> > that when your createItem call is made, the current transaction 
is 
> still
> > open (i.e. not committed). In this case, you want to do the 
> refreshFill
> > in the new (i.e. the current) transaction. If you create your own 
> new
> > one, it will refresh the fill but before the current change has 
been
> > committed to the database.
> > 
> > 
> > 
> > Jeff
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
  

> 
> [mailto:flexcoders@yahoogroups.com
  

> ] On
> > Behalf Of spirit_ryder2k
> > Sent: Monday, January 15, 2007 5:21 AM
> > To: flexcoders@yahoogroups.com 

 
> > Subject: [flexcoders] Updating a DataService fill
> > 
> > 
> > 
> > Hi, I'm writing a small forum application which uses multiple 
> > DataService destinations.
> > 
> > In my CategoryDS destination I fill a datagrid with a list of 
forum 
> > categories and each category has a property which keeps track of 
> the 
> > number of threads in it.
> > 
> > In my ThreadDS destination I retrieve a list of threads in a 
> > category. This works fine. When I create a new thread I want the 
> > CategoryDS to refill itself so the thread count is updated:
> > 
> > // in my thread assembler
> > public void createItem(Object newVersion)
> > {
> > ...
> > DataServiceTransaction dtx = DataServiceTransaction.begin(false);
> > dtx.refreshFill("CategoryDS", null);
> > dtx.commit();
> > }
> > 
> > Unfortunately this does not work :(
> > When I manually refresh the counter is updated. Am I missing 
> > something in my code? I can post mxml source or config source if 
> > needed.
> >
>

 



[flexcoders] AS3 code obfuscators

2007-01-18 Thread Daniel Wabyick

Does anyone know of any AS3 code obfuscators out there?


Thanks,
-D



[flexcoders] Re: Making a "Hover menu" with Flex

2007-01-18 Thread missgiggygirl
--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> For instance;
> 
> private var hoverMenu:Menu;
> 
> hoverMenu = Menu(PopUpManager.createPopUp(this, Menu));
> 
> hoverMenu.x = calcXCoord;
> hoverMenu.y = calcYCoord;
> 
> hoverMenu.dataProvider = hoverMenuDP;
> 
> You have complete control over the popup once it is created. All the
popup
> manager does is stick it into the systemManager as a child which then
> becomes parented by the systemManager not the Application.
> 
> Peace, Mike
> 

Thanks for taking the time to help a newb!  I get it now!  :)

-- Ann



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

2007-01-18 Thread Jeff Vroom
I think that the problem is that some exception is occurring in the Java
code which is not being caught.  This causes the RTMP connection to
close and gives your application a generic fault.  The best way to
diagnose this is to turn debug logging on the server.  If you go to your
WEB-INF/flex/services-config.xml file, search for level=".." change that
to Debug, then make sure the  section just below that has
 tags for DataService.*, Message.*, Endpoint.*, and Service.*.
Hopefully you'll get a nice stack trace in the logs which points to
where this error is occurring.

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chrisnoeflex
Sent: Thursday, January 18, 2007 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] no rtmp connection on win xp ?

 

Hello

I have a simple web app that populates a data grid with records from 
an oracle DB. I use tomcat (but also tried 3 different releases from 
oc4j, and JRUN).
When i come to the following line : dsPresentation.fill
(presentations, "all.presentations", []); (using Hibernate), keep 
getting following error : [RPC Fault faultString="Send failed" 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Connect.Failed error null"]
at 
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/intern
 
al::dispatchFaultEvent()
at ::DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed
()
at 
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCh
annel::connectFailed()
at 
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel:
:statusHandler()

looking in the flexlog.txt it says :

21:05:20.406 [INFO] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer set destination 
to 'nierob.presentation.hibernate'.
21:05:20.406 [INFO] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer set destination 
to 'nierob.presentation.hibernate'.
21:05:20.421 [DEBUG] 
mx.data.DataService.nierob.presentation.hibernate Configuration for 
destination='nierob.presentation.hibernate':









21:05:20.453 [DEBUG] 
mx.data.DataService.nierob.presentation.hibernate cds-producer-
nierob.presentation.hibernate-null New DataManager 
destination='nierob.presentation.hibernate'
21:05:20.453 [INFO] mx.messaging.Producer '69913E97-DD9F-CC37-4E1D-
37072845AD48' producer set destination 
to 'nierob.presentation.hibernate'.
21:05:20.468 [DEBUG] 
mx.data.DataService.nierob.presentation.hibernate cds-producer-
nierob.presentation.hibernate-null DataService.fill() called with 2 
arguments. 
(Array)#0
[0] "all.presentations"
[1] (Array)#1

21:05:20.484 [WARN] mx.messaging.Consumer Client ID specified in 
subscribe is ignored when a session is assigned.
21:05:20.500 [INFO] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer subscribe.
21:05:20.500 [INFO] mx.messaging.Channel 'my-rtmp' channel endpoint 
set to rtmp://localhost:2038  
21:05:20.515 [INFO] mx.messaging.Channel 'my-rtmp' channel settings 
are:




21:05:20.531 [INFO] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer sending 
message 'BB82D24D-D143-5130-7A6F-3707289326D7'
21:05:21.578 [DEBUG] mx.messaging.Channel 'my-rtmp' channel got 
status. (Object)#0
code = "NetConnection.Connect.Failed"
level = "error"
21:05:21.625 [INFO] mx.messaging.Channel 'my-rtmp' channel polling 
stopped.
21:05:21.640 [ERROR] mx.messaging.Channel 'my-rtmp' channel connect 
failed.
21:05:21.656 [WARN] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer channel faulted with 
Channel.Connect.Failed null
21:05:21.671 [DEBUG] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer starting resubscribe 
timer.
21:05:21.687 [WARN] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer channel faulted with 
Channel.Connect.Failed null
21:05:21.687 [ERROR] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer fault for 'BB82D24D-
D143-5130-7A6F-3707289326D7'.
[RPC Fault faultString="Send failed" 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Connect.Failed error null"]
at 
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/intern
 
al::dispatchFaultEvent()
at ::DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.event

[flexcoders] New Component Released - Animated Gif Loader

2007-01-18 Thread dougmccune
[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50. 

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/2007/01/17/animatedgifloader/

Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#view=sn611&viewName=Flex%20Extension&loc=en_us&authorid=61303741&page=0&scrollPos=0&subcatid=0&snid=sn611&itemnumber=0&extid=1103970&catid=0

Feedback is always appreciated! 

Thanks,
Doug McCune



[flexcoders] FDS Application takes a while to load

2007-01-18 Thread Alexander Tsoukias
I am using this example to test out the whole FDS idea:

http://coenraets.org/blog/2006/10/building-collaborative-applications-with-flex-data-services-and-flash-media-server/

When I run the application from the URL, it takes up to 4 minutes to
load the application.

Any idea why this would be happening?

Thanks,
Alexander



RE: [flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-18 Thread Sho Kuwamoto
One word of warning about turning off flashType. The difference in the
quality of the embedded fonts is night and day with flashType. It's fine
to turn this off during development, but you should really turn it back
on when you finally go into production.
 
-Sho
 
 


[flexcoders] Re: Populating List with Data From Web Service

2007-01-18 Thread Lisa Lee
Tracy, as always, you rock.  Thanks for the help.  Can you point me 
in the right direction as to where to find information on how to use 
a labelFunction()?  Sorry to be so thick.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> "...as the data provider for a grid, and it works perfectly...it's 
just
> when I try to use it as a data provider for a list, it doesn't 
work ..."
> 
> Sounds like you should verify your labelField property or use a
> labelFunction().  A labelFunction will let you debug the actual item
> object.
> 
>  
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Lisa Lee
> Sent: Thursday, January 18, 2007 3:45 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Populating List with Data From Web Service
> 
>  
> 
> Thanks very much for the info, Clint. If I return a query instead 
of 
> an array, do I still cast it as an ArrayCollection? It doesn't seem 
> to be working for me. The other puzzling thing is that I can use my 
> current code and use the result as the data provider for a grid, 
and 
> it works perfectly...it's just when I try to use it as a data 
> provider for a list, it doesn't work.
> 
> --- In flexcoders@yahoogroups.com 
> , "Clint Tredway"  
> wrote:
> >
> > Web services are not returned liked that. My advice is to use 
> remoting with
> > CF and your code will work the way it is now.. also, you can 
return 
> the
> > query itself without making an array to send back.
> > 
> > On 1/17/07, Lisa Lee  wrote:
> > >
> > > Hi,
> > >
> > > I have a list that I want to populate with data from a CFC, but 
> all I
> > > get with my current code is a list with every row 
reading '[object
> > > Object]' instead of actual data from my web service. The web 
> service
> > > should just be returning an array (also, is an array the best 
way 
> to
> > > return data for a list?).
> > >
> > > Main code of CFC that returns data:
> > >
> > > 
> > > SELECT
> > > pkServiceTypeID,
> > > Description
> > > FROM tblSYS_ServiceTypes WITH (NOLOCK)
> > > ORDER BY Description
> > > 
> > >
> > > 
> > >
> > > 
> > > 
> > >  > > pkServiceTypeID>
> > > 
> > > 
> > >
> > > 
> > >
> > > Main elements of MXML that pertain to the list:
> > >
> > > 
> > > http://www.adobe.com/2006/mxml
>  "
> > > layout="absolute"
> > > creationComplete="perfManWS.GetServiceTypes.send();">
> > > 
> > > 
> > > 
> > >
> > >  > >
> > > wsdl="http://development/dev1/workspaces/lisa/components/perfo
>  
> > > rmancemanagement.cfc?wsdl">
> > >  > > result="serviceTypeHandler(event)">
> > > 
> > > xxx
> > > xxx
> > > 
> > > 
> > > 
> > >
> > >  > >
> > > dataProvider="{serviceTypeDP}"
> > >
> > > labelField="description"
> > >
> > > allowMultipleSelection="true"/>
> > >
> > > 
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > http://indeegrumpee.spaces.live.com/
>  
> >
>




RE: [flexcoders] a [SIMPLE] resize demo ? anyone ?

2007-01-18 Thread Tracy Spratt
There is a commercial component on Flex Exchange:

http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#loc=en_us&vie
w=sn610&viewName=Adobe%20Exchange&avm=1

 

If you don't want to play with your own solution.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oneproofdk
Sent: Thursday, January 18, 2007 3:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] a [SIMPLE] resize demo ? anyone ?

 

HI all.
I am trying to make a resize function for a Flex2 app.

On a canvas, I load 2 (large) images from a HTTP source.
I have a slider and I want the images to resize to "fit canvas", and
the use the slider to resize the images.

Does anyone have a demo of how to do this - it's making my head spin -
simply can't figure out how to do this!

So if anyone has a demo app that can do this, maybe even one with some
notes on the do's and dont's (and why's) - it would rock my weekend.

Best wishes,
Mark

 



RE: [flexcoders] Re: Populating List with Data From Web Service

2007-01-18 Thread Tracy Spratt
"...as the data provider for a grid, and it works perfectly...it's just
when I try to use it as a data provider for a list, it doesn't work ..."

Sounds like you should verify your labelField property or use a
labelFunction().  A labelFunction will let you debug the actual item
object.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Lee
Sent: Thursday, January 18, 2007 3:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Populating List with Data From Web Service

 

Thanks very much for the info, Clint. If I return a query instead of 
an array, do I still cast it as an ArrayCollection? It doesn't seem 
to be working for me. The other puzzling thing is that I can use my 
current code and use the result as the data provider for a grid, and 
it works perfectly...it's just when I try to use it as a data 
provider for a list, it doesn't work.

--- In flexcoders@yahoogroups.com 
, "Clint Tredway" <[EMAIL PROTECTED]> 
wrote:
>
> Web services are not returned liked that. My advice is to use 
remoting with
> CF and your code will work the way it is now.. also, you can return 
the
> query itself without making an array to send back.
> 
> On 1/17/07, Lisa Lee <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a list that I want to populate with data from a CFC, but 
all I
> > get with my current code is a list with every row reading '[object
> > Object]' instead of actual data from my web service. The web 
service
> > should just be returning an array (also, is an array the best way 
to
> > return data for a list?).
> >
> > Main code of CFC that returns data:
> >
> > 
> > SELECT
> > pkServiceTypeID,
> > Description
> > FROM tblSYS_ServiceTypes WITH (NOLOCK)
> > ORDER BY Description
> > 
> >
> > 
> >
> > 
> > 
> >  > pkServiceTypeID>
> > 
> > 
> >
> > 
> >
> > Main elements of MXML that pertain to the list:
> >
> > 
> > http://www.adobe.com/2006/mxml
 "
> > layout="absolute"
> > creationComplete="perfManWS.GetServiceTypes.send();">
> > 
> > 
> > 
> >
> >  >
> > wsdl="http://development/dev1/workspaces/lisa/components/perfo
 
> > rmancemanagement.cfc?wsdl">
> >  > result="serviceTypeHandler(event)">
> > 
> > xxx
> > xxx
> > 
> > 
> > 
> >
> >  >
> > dataProvider="{serviceTypeDP}"
> >
> > labelField="description"
> >
> > allowMultipleSelection="true"/>
> >
> > 
> >
> > 
> >
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
 
>

 



[flexcoders] 6 jobs in Chicago

2007-01-18 Thread vgriffith1968
Hi - are there any flex coders in the Chicago area???  W have six 
openings in Chicago for Flex developers (all levels).  We will even 
take someone with lite Flex experience as long as you have strong 
interactive development experience.

Email resumes to me at my home email address if you want to know more:
vgriffith at gmail dot com - I've heard typing it like this avoide 
spam :-) 

This is full time but we might consider a contractor.  Must be a US 
Citizen becuase this is a government contract.  





RE: [flexcoders] HDivideBox

2007-01-18 Thread Robert Chyko
thanks for posting the example.. this is something that is on my to-do list so 
I will be checking it out
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Jason Hawryluk
Sent: Thursday, January 18, 2007 3:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] HDivideBox




Posted on http://flexibleexperiments.wordpress.com/ 
 
 
should give anyone wanting to get into this control a head start.
 
Jason
 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la 
part de Jason Hawryluk
Envoyé : jeudi 18 janvier 2007 14:45
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] HDivideBox




I have something you'll be interested in, If your still 
looking? If nothing else it'll give you a really good start toward a solution 
*nice*.



Post back here, and I'll take the time to post it on my blog in 
the next hour or so.



Jason
 
 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL 
PROTECTED] la part de Pablo
Envoyé : jeudi 18 janvier 2007 12:46
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] HDivideBox



Probably nobody occures this task :( among you and me. 
I guess that need to write fully custom layout for this.


On 1/15/07, Lieven Cardoen < [EMAIL PROTECTED] 
 > wrote: 



Hi guys,

 

Is there a way to have a HdivideBox, but where 
the right part can be opened and closed. I need a property kind of thing on the 
right which the user can open and close + resize so that properties width gets 
bigger/smaller.

 

Thx, Lieven Cardoen

 

Lieven Cardoen
Application developer

indie group
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 












 



[flexcoders] no rtmp connection on win xp ?

2007-01-18 Thread chrisnoeflex
Hello

I have a simple web app that populates a data grid with records from 
an oracle DB. I use tomcat (but also tried 3 different releases from 
oc4j, and JRUN).
When i come to the following line : dsPresentation.fill
(presentations, "all.presentations", []); (using Hibernate), keep 
getting following error : [RPC Fault faultString="Send failed" 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Connect.Failed error null"]
at 
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/intern
al::dispatchFaultEvent()
at ::DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed
()
at 
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCh
annel::connectFailed()
at 
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel:
:statusHandler()

looking in the flexlog.txt it says :

21:05:20.406 [INFO] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer set destination 
to 'nierob.presentation.hibernate'.
21:05:20.406 [INFO] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer set destination 
to 'nierob.presentation.hibernate'.
21:05:20.421 [DEBUG] 
mx.data.DataService.nierob.presentation.hibernate Configuration for 
destination='nierob.presentation.hibernate':

 
  

  
  

  

21:05:20.453 [DEBUG] 
mx.data.DataService.nierob.presentation.hibernate cds-producer-
nierob.presentation.hibernate-null New DataManager 
destination='nierob.presentation.hibernate'
21:05:20.453 [INFO] mx.messaging.Producer '69913E97-DD9F-CC37-4E1D-
37072845AD48' producer set destination 
to 'nierob.presentation.hibernate'.
21:05:20.468 [DEBUG] 
mx.data.DataService.nierob.presentation.hibernate cds-producer-
nierob.presentation.hibernate-null DataService.fill() called with 2 
arguments. 
(Array)#0
  [0] "all.presentations"
  [1] (Array)#1

21:05:20.484 [WARN] mx.messaging.Consumer Client ID specified in 
subscribe is ignored when a session is assigned.
21:05:20.500 [INFO] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer subscribe.
21:05:20.500 [INFO] mx.messaging.Channel 'my-rtmp' channel endpoint 
set to rtmp://localhost:2038
21:05:20.515 [INFO] mx.messaging.Channel 'my-rtmp' channel settings 
are:

  
  

21:05:20.531 [INFO] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer sending 
message 'BB82D24D-D143-5130-7A6F-3707289326D7'
21:05:21.578 [DEBUG] mx.messaging.Channel 'my-rtmp' channel got 
status. (Object)#0
  code = "NetConnection.Connect.Failed"
  level = "error"
21:05:21.625 [INFO] mx.messaging.Channel 'my-rtmp' channel polling 
stopped.
21:05:21.640 [ERROR] mx.messaging.Channel 'my-rtmp' channel connect 
failed.
21:05:21.656 [WARN] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer channel faulted with 
Channel.Connect.Failed null
21:05:21.671 [DEBUG] mx.messaging.Consumer 'cds-consumer-
nierob.presentation.hibernate-null' consumer starting resubscribe 
timer.
21:05:21.687 [WARN] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer channel faulted with 
Channel.Connect.Failed null
21:05:21.687 [ERROR] mx.messaging.Producer 'cds-producer-
nierob.presentation.hibernate-null' producer fault for 'BB82D24D-
D143-5130-7A6F-3707289326D7'.
[RPC Fault faultString="Send failed" 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Connect.Failed error null"]
at 
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/intern
al::dispatchFaultEvent()
at ::DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed
()
at 
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCh
annel::connectFailed()
at 
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel:
:statusHandler()

I already switched ports , etc... but i can't seem to get any Flex 
data service setup working on my pc. Strangely the CRM on jrun works 
fine. What am i doing wrong here ? I think , for some reason, the 
flash in the browser is not able to connect to the webserver.

Sorry i dumped all the log in this post, as i don't know what is 
important here. (yes, i'm a newbie :-) )



RE: [flexcoders] Canvas ScrollBars problems...

2007-01-18 Thread Lieven Cardoen
Nobody a clue???

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: donderdag 18 januari 2007 18:17
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Canvas ScrollBars problems...

 

I have a component wich extends Canvas (FloorPlan). I add a component
extending Container to this Canvas.

 

Now, in this Container, I draw a lot of things and I set the width and
height myself so the Canvas show ScrollBars where needed.

 

The problem now is following : 

 

If I redraw something and reset the width and height of the Container,
strange things start to happen when previously the horizontal scrollbar
for instance was at its maximum.

 

If I click the horizontal scrollbar, somehow the Canvas changes its
scrollbars to correctly. 

 

I tried all of these, and nothing seems to work.

 

In the Container : 

   

   //paints things and sets width and
height of Container

this.paint();

  

 

this.validateNow();

  this.validateDisplayList();

  this.validateSize()

  this.validateNow();

  (this.parent as FloorPlan).validateNow();

  (this.parent as FloorPlan).validateDisplayList();

  (this.parent as FloorPlan).validateSize();

  (this.parent as FloorPlan).validateNow();

 

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 

 



RE: [flexcoders] HDivideBox

2007-01-18 Thread Jason Hawryluk
Posted on http://flexibleexperiments.wordpress.com/

should give anyone wanting to get into this control a head start.

Jason

  -Message d'origine-
  De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la
part de Jason Hawryluk
  Envoyé : jeudi 18 janvier 2007 14:45
  À : flexcoders@yahoogroups.com
  Objet : RE: [flexcoders] HDivideBox



  I have something you'll be interested in, If your still looking? If
nothing else it'll give you a really good start toward a solution *nice*.



  Post back here, and I’ll take the time to post it on my blog in the next
hour or so.



  Jason


-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la
part de Pablo
Envoyé : jeudi 18 janvier 2007 12:46
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] HDivideBox


Probably nobody occures this task :( among you and me. I guess that need
to write fully custom layout for this.



On 1/15/07, Lieven Cardoen < [EMAIL PROTECTED]> wrote:

  Hi guys,



  Is there a way to have a HdivideBox, but where the right part can be
opened and closed. I need a property kind of thing on the right which the
user can open and close + resize so that properties width gets
bigger/smaller.



  Thx, Lieven Cardoen



  Lieven Cardoen
  Application developer

  indie group
  interactive digital experience
  engelse wandeling 2 k18
  b8500 kortrijk










  


[flexcoders] Re: Populating List with Data From Web Service

2007-01-18 Thread Lisa Lee
Thanks very much for the info, Clint.  If I return a query instead of 
an array, do I still cast it as an ArrayCollection?  It doesn't seem 
to be working for me.  The other puzzling thing is that I can use my 
current code and use the result as the data provider for a grid, and 
it works perfectly...it's just when I try to use it as a data 
provider for a list, it doesn't work.

--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> 
wrote:
>
> Web services are not returned liked that. My advice is to use 
remoting with
> CF and your code will work the way it is now.. also, you can return 
the
> query itself without making an array to send back.
> 
> On 1/17/07, Lisa Lee <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > I have a list that I want to populate with data from a CFC, but 
all I
> > get with my current code is a list with every row reading '[object
> > Object]' instead of actual data from my web service. The web 
service
> > should just be returning an array (also, is an array the best way 
to
> > return data for a list?).
> >
> > Main code of CFC that returns data:
> >
> > 
> > SELECT
> > pkServiceTypeID,
> > Description
> > FROM tblSYS_ServiceTypes WITH (NOLOCK)
> > ORDER BY Description
> > 
> >
> > 
> >
> > 
> > 
> >  > pkServiceTypeID>
> > 
> > 
> >
> > 
> >
> > Main elements of MXML that pertain to the list:
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute"
> > creationComplete="perfManWS.GetServiceTypes.send();">
> > 
> > 
> > 
> >
> >  >
> > wsdl="http://development/dev1/workspaces/lisa/components/perfo
> > rmancemanagement.cfc?wsdl">
> >  > result="serviceTypeHandler(event)">
> > 
> > xxx
> > xxx
> > 
> > 
> > 
> >
> >  >
> > dataProvider="{serviceTypeDP}"
> >
> > labelField="description"
> >
> > allowMultipleSelection="true"/>
> >
> > 
> >
> >  
> >
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
>




[flexcoders] a [SIMPLE] resize demo ? anyone ?

2007-01-18 Thread oneproofdk
HI all.
I am trying to make a resize function for a Flex2 app.

On a canvas, I load 2 (large) images from a HTTP source.
I have a slider and I want the images to resize to "fit canvas", and
the use the slider to resize the images.

Does anyone have a demo of how to do this - it's making my head spin -
simply can't figure out how to do this!

So if anyone has a demo app that can do this, maybe even one with some
notes on the do's and dont's (and why's) - it would rock my weekend.

Best wishes,
Mark



[flexcoders] Re: player 9 & security, crossdomain, permissions, local/network files, etc

2007-01-18 Thread jerome_cordiez
Thanks a lot for the reply tom :)

So... I gave another look to the docs at the "trusted" folder part...
And I must admit I don't understand much of it :)... Besides that,
"normally", it's not really supposed to be much of our (as developers)
concern (huhuhu, crossing fingers here)... Anyway, I gave a try at
creating *.cfg file for the concerned folder, without any success.

But, the good news, is that i solved part of my problem, by allowing
the loaded (local) swf (which in turn load other swf, external this
time) to be put inside the "network access" sandbox.
Using that setting enables me to load external images.

But, it's still impossible for me to load swf's from an external 
domain, even if i have a crossdomain policy file at the root of that
domain that should normally allow everyone to download that swf.
My main application can load that swf, but the loaded local swf file
can't.

I really don't have any clue of how to solve this.
When deploying, everything will be on the same server, so i guess
(hope ^^) that everything will be fine, but meanwhile, I would really
love to find a way that would help me develop in correct conditions :).

So, once again, if someone has an idea of how to get around these
pretty funky limitations, i'd be more than willing to hear it :)

cheers,
J.



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Wednesday 17 January 2007 15:39, jerome_cordiez wrote:
> > Basically, in my case, I have a main SWF application, that loads local
> > (flash 9) SWFs, that in turn load stuff externally :  swf's, images,
> > probably text and/or xml data later on, etc...
> 
> Mixing local and remote access ? I think you need a 'trust' file, if
that 
> helps you local the right section of the PDF.
> I agree it's daunting :-)
> 
> -- 
> Tom Chiverton
> Helping to widespreadedly create professional infomediaries
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




Re: [flexcoders] flex and j2ee session

2007-01-18 Thread Douglas Knudsen

I'm still stuck in the water with regards to roles under Tomcat and FDS
(java).
FlexContext.getFlexSession().getUserPrincipal().getName()
works a treat but
FlexContext.getFlexSession().isUserInRole('foo') is bombing.

a test jsp page can access
request.isUserInRole('foo') as expected, but not a Java POJO called via flex

any suggestions?

DK

On 1/5/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote:


Carson, yes, I verified this is being sent in the headers for calls made
to the messagebroker.

What I have found:  If I remove the security node from within the
destination node in my remoting-config.xml file, I can get
FlexContext.getFlexSession().getUserPrincipal().getName()
But I can not access any roles the user is in via
FlexContext.getFlexSession().isUserInRole("reader")

If I add the security node back within the destination node in my
remoting-config.xml file, I get nothgin but a 'server.processing' error.
Below is the security node.  Note, I have confirmed these roles are in use
via a JSP.

So, must be a config mishap somewhere, eh?



Custom

editor
reader




On 1/5/07, Carson Hager <[EMAIL PROTECTED]> wrote:
>
>  I would take a look at the http request contents to make sure that the
> same jsessionid is being passed for your remoteobject calls and other http
> calls from your browser such as JSPs, Servlets, etc. You can do this with
> any number of tools/browser plugins. This is the best way to make sure that
> the communication is working as it should before digging any further.
>
>
> Carson
>
> 
>
> Carson Hager
> Cynergy Systems, Inc.
> http://www.cynergysystems.com
>
> Email:  [EMAIL PROTECTED]
> Office:  866-CYNERGY
> Mobile: 1.703.489.6466
>
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Douglas Knudsen
> *Sent:* Friday, January 05, 2007 5:57 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] flex and j2ee session
>
>  nope same context.  I can drop a jsp page in and retrieve the
> userprincipal object too.
>
> DK
>
> On 1/4/07, Dimitrios Gianninas < [EMAIL PROTECTED]>
> wrote:
> >
> >
> > When the user logs in, is it under a diff context than where the flex
> > apps resides?
> >
> > Dimitrios Gianninas
> > Optimal Payments Inc.
> >
> >
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com on behalf of Douglas Knudsen
> > Sent: Thu 1/4/2007 5:45 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] flex and j2ee session
> >
> > ok, a oft beat about topic I know.  Porting a Flex 1.5 app over to 2.0
> > .
> > Using Tomcat.  Under 1.5 I got the session in a remoteobject POJO like
> > this
> >
> > flashgateway.Gateway.getHttpRequest().getUserPrincipal().getName();
> >
> > For the new Flex 2 version I'm using
> >
> > FlexContext.getFlexSession().getUserPrincipal().getName();
> >
> > but this is bombing out.   I'm using container based security with
> > BASIC
> > auth for development.  I'm not trying to log a user in with a Flex UI,
> > user
> > is already logged in before the Flex UI comes up.
> >
> > Something I'm missing somewhere?
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> > --
> > 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égau

[flexcoders] Application exit handler

2007-01-18 Thread ajitparthan
Is there a standard way to setup an exit handler for Flex applications?
In the project I am working on, we login to a remote webservice at
startup. I would also like to gracefully logout when the user is
"done" with application. 

The application has a "logout" action which the user can use but I am
guessing most of the time the user is either a) going to just close
the browser tab/window or b) navigate out by going to homepage or some
other URL. I am trying to find a way to register an exit handler that
will be called in these cases.

One option is to use the FABridge mechanism and invoke a function on
"onbeforeunload" at the Javascript level. But I could not get it to
work for the case where user just closes tab or browser window.

Any ideas/suggestions/pointers on this will be greatly appreciated.

--ajit



Re: [flexcoders] It shouldn't be this hard.

2007-01-18 Thread Russell Sprague

well that is what I thought, but I couldn't get it to work.

Shannon Hicks wrote:


You could always set the x/y by hand when you load the image. 
Something like this:


loadImage():void {
image.source = mynewimage.jpg
callLater(centerImage);
}

centerImage():void {
image.x = (wrapper.width / 2) - (image.width / 2);
image.y = (wrapper.height/ 2) - (image.height/ 2);
}

Shan

Russell Sprague wrote:


@Matt
yea I don't really hate the docs, I was just a little frustrated, 
because most of the examples are Actionscript examples, and if I am 
looking for an example of how to do something in mxml, I don't know 
enough to translate the AS to mxml.


@roman
I tried the horizontal and verticalCenter, and it didn't work
I think part of the problem is there is nothing in the component 
until I load the image, so there is nothing to measure to.


Russ
Matt Horn wrote:


> I hate the flex documentation...

Also, if there are specific problems with the documentation, please let
the doc team know by either posting to this list, adding a comment to
livedocs, or filing a bug at http://www.adobe.com/go/wish. 
 Thanks,


matt horn
flex docs

> -Original Message-
> From: flexcoders@yahoogroups.com 

> [mailto:flexcoders@yahoogroups.com 
] On Behalf Of Roman Protsiuk

> Sent: Thursday, January 18, 2007 7:51 AM
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] It shouldn't be this hard.
>
> The first thought is:
>
> 
>  verticalCenter="0" /> 
>
> To scale, dunno, but maybe something like:
>
> 
>  source="{yourSource}"
> width="{imageContainer.width < image.width ?
> imageContainer.width : image.width}"
> height="{imageContainer.height < image.height ?
> imageContainer.height : image.height}"
> scaleContent="true"
> horizontalCenter="0"
> verticalCenter="0" />
> 
>
> This one probably won't work, it's very dirty, however might
> give you a clue... ;)
>
> And the easiest way to scale, but still, not so nice from the
> point of ui (it scales both way) is just:
>
>  width="100%" height="100%" />
>
> Have fun,
> R.
>
>
>
> On 1/18/07, Russell Sprague <[EMAIL PROTECTED] 

> > > wrote:

>
> I hate the flex documentation...
>
> All I want to do is dynamically center an image on my stage.
>
> I have a VDividedBox with an image in the top, and text
> in the bottom.
> I loading in images by setting the source of an image
> tag(probably not
> the best way to do it, but again I hate the Flex docs...).
> So when the image loads I am trying to set it to center
> in the upper
> pane of the vdividedbox, but all my attemps have failed.
>
> It would be nice to also resize the image as the
> divideBar is dragged,
> but only to the original size of the image, then it
> just centers.
>
> Thanks
> Russ
>
>
>
>
>
>
>
>





 




RE: [flexcoders] Re: QTP plug in requires FDS?! That's crazy

2007-01-18 Thread Matt Chotin
There is no technical requirement for FDS, we primarily thought we
weren't going to charge FDS customers *more* to add testing support for
now.  I admit it's possible we misjudged the size of the potential
audience and we are investigating future alternatives.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, January 18, 2007 4:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: QTP plug in requires FDS?! That's crazy

 

On Wednesday 17 January 2007 19:20, Tariq Ahmed wrote:
> I know FDS being required wasn't done for the hell of it, but
> architecturally it should have been an option that provides extra
benefits,

You'd have thought so.

> those who know me, I'm Flex's biggest fan. It feels like the Flex
> management/marketing team's nature is to assume that most companies
are
> mega enterprises with monster budgets. In the land of Flex, any new

That was certainly the way Flex was sold initaly remember. I think
things have 
changed, and Adobe probably have a fairly sound reason for requiring FDS

(async command push to the and pull from player maybe).

-- 
Tom Chiverton
Helping to administratively benchmark best-of-breed e-tailers



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF. A list of
members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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

 



Re: [flexcoders] Re: Colspans in Datagrid

2007-01-18 Thread Michael Schmalle

Hi,

Well, you could look into itemRenderers for the dataGrid.

Honestly, I haven't tinkered much with extending the DataGrid so I can't
really tell you from 'my' experience.

But, from my experience with the Tree's itemRenderer, you might beable to
simulate colspan in the data grid itmeRenderer using a property from your
dataProvider. It's complicated so, I won't confuse you any further. :) But
this is a possibility

Peace, Mike

On 1/18/07, missgiggygirl <[EMAIL PROTECTED]> wrote:


  > I could see creating a middle man
> transformer/interpreter for the data that would make creating grids
> as easy as the DataGrid allows for.

Are you suggesting I create my own "control" that extends the
DataGrid, but is customized more to my requirements?

-- Ann

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Making a "Hover menu" with Flex

2007-01-18 Thread Michael Schmalle

Hi,

For instance;

private var hoverMenu:Menu;

hoverMenu = Menu(PopUpManager.createPopUp(this, Menu));

hoverMenu.x = calcXCoord;
hoverMenu.y = calcYCoord;

hoverMenu.dataProvider = hoverMenuDP;

You have complete control over the popup once it is created. All the popup
manager does is stick it into the systemManager as a child which then
becomes parented by the systemManager not the Application.

Peace, Mike

On 1/18/07, missgiggygirl <[EMAIL PROTECTED]> wrote:


  --- In flexcoders@yahoogroups.com ,
"Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I would construct your custom 'menu' in whatever component you like that
> fits your requirements.
>
> Create an interface to it if it extends anything core.
>
> Then use the PopUpManager.addPopUp() to create the hover you speak of.
>
> You could then listen for events from the systemManager mouse down
to remove
> it. This all depends on what you are doing with the menu.
>
> Basically, the PopUpManager will give you the power to be 'above' and
> position things 'outside' of the Application layout.
>

Thank you for the response... I looked into the PopUpManager, but I do
not see anything that allows me to position where the popup is
(besides centering it). I will keep looking into this, as I need to
have it "pop" right to the side and underneath button that is clicked.

-- Ann

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


RE: [flexcoders] Accessibility - JAWS issue

2007-01-18 Thread Andrew Kirkpatrick
This is an issue with the HTML file that FlexBuilder creates.  If you
use SWFObject you won't have this extra information voiced.

Inspect32 and AccExplorer32 both work with Flex content to expose the
MSAA data.

Hope this helps,
AWK 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jason Goodwin
> Sent: Thursday, January 18, 2007 10:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Accessibility - JAWS issue
> 
> JAWS is doing some funny things while reading my Flex app. It 
> is finding the movie - then it reads 'greater, greater, 
> greater, greater, greater' then reads the label text then 
> ends. Its just a test file, so there's not much going on two 
> Labels and a Button. Just wondering if anyone has run into this.
> 
> Also, does anyone know of a tool similar to AccExplorer that 
> works with Flex? Thanks.
> 
> - Jason
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 


[flexcoders] How to deal with icons in a custom button skin ?

2007-01-18 Thread Laurent Vitalis
Hi, i've started working in Flex 2 last month. I am unable to achieve
something I consider simple even after googling a lot and reading my 3 books
(as3 cookbook, flex2 training and as3 design patts.).

 

I want to code a button skin which will display a highlight OVER the button
icon and text.

 

I want my updateDisplayList to do the following :

 

-  draw the button background (drawRoundRect)

-  draw the icon

-  draw the text

-  draw the highlight (another drawRoundRect)

-  draw a shadow (RectangularDropShadow)

 

After looking at Button.as, I'm afraid that the component is not flexible
enough for this.

 

Thanks for your help.

Laurent.



[flexcoders] Re: AMFPHP & Security

2007-01-18 Thread Mark Piller
Zoli is right. Usage of a specific object type in a method signature
is irrelevant to security. In fact, you do not even need to know AMF
to do it. One could easily use something like ServiceCapture to
understand the structure of the argument type then construct a similar
object and run it a local Flex/Flash movie with unrestricted security.
Essentially it means that a gateway must safeguard against such
malicious attacks. Our implementation (weborb) does it quite well.

Cheers,
Mark

--- In flexcoders@yahoogroups.com, "Zoltan Csibi" <[EMAIL PROTECTED]>
wrote:
>
> 
> What I mean is: if I can sniff what typed VO an application is
receiving, I
> can "craft" an AMF packet with:
> - call to "deleteUser"
> - the same VO "type" (simplified: as we know that this is just a
string of
> the class name followed by other strings describing property names
and other
> binary data with property values etc etc etc)
> 
> The gateway (fluorine, openamf, fds ... anything) will see a "valid"
> object/type. There is no type-coercion error here.
> 
> This is an easy task to do with AMF knowledge. 
> 
> 
> Bottom line: I don't think that passing simple types, untyped VOs or
typed
> VOs makes any difference from security point of view.
> 
> 
> Mit freundlichem Gruß,
> Zoli
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Patrick Mineault
> Sent: Thursday, January 18, 2007 6:29 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] AMFPHP & Security
> 
> 
> 
> Wouldn't Fluorine and OpenAMF throw a type-coercion error, given that 
> the first argument is typed? Of course, the code in the constructor 
> would be called anyways.
> 
> Patrick
>




[flexcoders] Re: Flash 8 and Flex ocx error

2007-01-18 Thread Oscar

   I wonder if someone else has have this problem. I have a Flex 2 
application with a SWFLoader that loads Flash MX 2004 movies. While 
switching movies I get this same error:

> AppName: iexplore.exe  AppVer: 6.0.2800.1106   ModName: fldbg9.ocx

  It is not consistent. It does not happen all the time. 

  Most of the movies have other children movies. When I debug I see 
in the console how some of the children movies are unloaded, and then 
the new movie is loaded. I suspect some of the children movies are 
not unloaded and remain some place in memory and probably intefere 
with the new movie being loaded. 

  I guess the Flash movies are throwing some kind of error when this 
happens and then makes the broswer to crash. 

   So I guess my question is, How can I wait for all the children 
movies of a Flash movie loaded in a SWFLoader to be unloaded before I 
load the next movie? I know there is an 'unload' event in the 
SWFLoader but this one gets fired before the children movies in the 
parent Flash movie start unloading. It seems that it only detects 
when the parent movie has been unloaded. 
 And  Is there any way to catch the errors that happen in the Flash 
movie in Flex? I am thinking that in that way I can prevent the 
browser from crashing if I can catch them and do something then. 

  Thanks,



--- In flexcoders@yahoogroups.com, "flexnewbie06" <[EMAIL PROTECTED]> 
wrote:
>
> I have an error, that I hope I can get some help with.
> 
> I am developing a Flex project and found that it would randomly 
throw 
> an error in IE6 
> AppName: iexplore.exe  AppVer: 6.0.2800.1106   ModName: fldbg9.ocx
> ModVer: 9.0.16.0   Offset: 00082321
> 
> I was able to find what was throwing the error so I created a 
simple 
> app to recereate it.
> 
> The app has:
> SWFLoader
> List - List items are Flash 8 created swf's (no code executing in 
> them)
> 
> When an item is selected on the list the SWFLoader.source is 
changed 
> to the item.  before the item is changed it throws the above 
> error...This occured on a seperate machine i tested it on, instead 
of 
> fldbg9.ocx it just said flash9.ocx 
> 
> Is this a bug that i cannot avoid because i'm trying to run flash 8 
> in flex?? or could anyone lend any suggestions as to how maybe i 
can 
> avoid this error.
> 
> My only other option is to re-develop my app in Flash 8..
> 
> Thanks! Jenn
>




[flexcoders] Re: Application without FDS?

2007-01-18 Thread whitelines81
Hi Sanjay (and group),
I've just started using Flex with Java and did not want to start using
FDS, simply because clustering is something we require and currently
cannot take the 20K+ licensing fees. We've developed a solution with
actionscript and a servlet that does compressed xml back and forth
(binary over the wire) and was wondering what the community's interest
would be? We are looking at creating a more robust version and
releasing it possibly open source.

Any ideas?

Many thanks,
Benjamin

Benjamin Ranck
Senior Technologist

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> "...flex without FDS..." reduced cost and complexity.
> 
>  
> 
> "..create XMLs at the runtime..." this will take some server side code.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sanjaypmg
> Sent: Thursday, January 18, 2007 1:38 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Application without FDS?
> 
>  
> 
> Thanks David,
> 
> We have existing application developed in Struts and UI is in JSP...
> 
> Client just wants to change the UI of a few screens only without 
> using FDS.
> 
> Is there only way to create XMLs at the runtime? as you have 
> suggested...
> 
> What are the advantages and disadvantages of creating application in 
> flex without FDS?
> 
> Thanks in advance..
> Sanjay Sharma
> 
> --- In flexcoders@yahoogroups.com 
> , "David Mendels"  
> wrote:
> >
> > Hello,
> > 
> > FDS is not required. Use the SDK and/or Flex Builder and go for 
> it! 
> > 
> > Connect to your back end using just XML over HTTP. This is a fine
> > approach for many use cases.
> > 
> > FDS offers additional value in a number of areas, in particular: 
> > * Remoting--simplifies programming model and higher performance
> > protocal for connecting to Java obects on server (performance 
> benefit it
> > material for larger data sets, immaterial for trivial amounts of 
> data.)
> > * Messaging--connect to JMS or other messaging service, push 
> and
> > real time data to client
> > * Data Service--page data, synch data
> > More info on FDS available on www.adobe.com
> > 
> > HTH,
> > David
> > Adobe
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of sanjaypmg
> > Sent: Thursday, January 18, 2007 12:39 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Application without FDS?
> > 
> > 
> > 
> > Hi,
> > 
> > I have a general question for all
> > 
> > Can I make application with FDS?
> > 
> > If yes, How can I call my java's remote object?
> > 
> > If No, Can you please tell me? Why cannt I make application in 
> flex 
> > without FDS?
> > 
> > Thanks,
> > Sanjay Sharma
> >
>




[flexcoders] Re: Making a "Hover menu" with Flex

2007-01-18 Thread missgiggygirl
--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I would construct your custom 'menu' in whatever component you like that
> fits your requirements.
> 
> Create an interface to it if it extends anything core.
> 
> Then use the PopUpManager.addPopUp() to create the hover you speak of.
> 
> You could then listen for events from the systemManager mouse down
to remove
> it. This all depends on what you are doing with the menu.
> 
> Basically, the PopUpManager will give you the power to be 'above' and
> position things 'outside' of the Application layout.
> 

Thank you for the response... I looked into the PopUpManager, but I do
not see anything that allows me to position where the popup is
(besides centering it).  I will keep looking into this, as I need to
have it "pop" right to the side and underneath button that is clicked.

-- Ann



RE: [flexcoders] XML and pie charts

2007-01-18 Thread Ely Greenfield
 
 
Hi Chris. It sounds like what you're trying to do, in SQL metaphors, is
essentially select a COUNT() with a GROUP BY region, and put the result
into a pie chart.  This kind of data manipulation is not part of the
charts...we assume you're using some other solution higher in the chain
(i.e., either doing it explicitly in the query, or building it by hand
from actionscript), and focus purely on the rendering of the data.  So
yes, assuming you've got your data local and it's not an obscene amount
of data, it should require only a minor bit of actionsctript to
sythesize a grouped, counted dataset from the one you have:
 
var groupedDataMap:Object = {};
var offices:XMLList = myData.office;
for(var i:int = 0;imailto:[EMAIL PROTECTED] On
Behalf Of Chris MacGregor
Sent: Thursday, January 18, 2007 10:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML and pie charts



Hello,

I'm building a data visualizer for a company based on it's sales
fleet. I've got a few questions about XML and pie charts and I'm
hoping someone can point me in the right direction to figure this one
out.

So, I've got this XML document that I'm importing into FLEX that looks
a bit like this (simplified):



Office A
Texas
10


Office B
Texas
15


Office C
Iowa
8


Office D
Maine
11



I've got some datagrids set up to explore the XML just fine, but I'd
also like to make pie charts that provide visuals for the client. For
example, I'd like a pie chart that shows where the offices are located
by region (so 50% texas, 25% Iowa and 25% Maine) and a second pie
chart that displays revenue by state (57% Texas, 18% Iowa and 25%
Maine).

I'm finding that there isn't a simple way to collect this information
using something like
dataProvider="{service.lastResult.salesforce.office[region]}" for the
pie chart. I think I am going to have to step through the XML and
build this information dynamically, or am I wrong? Can FLEX handle this?

How would you go about setting these types of pie charts up to display
from the XML referenced above?

CHris



 


[flexcoders] Re: Colspans in Datagrid

2007-01-18 Thread missgiggygirl
> I could see creating a middle man
> transformer/interpreter for the data that would make creating grids 
> as easy as the DataGrid allows for.

Are you suggesting I create my own "control" that extends the
DataGrid, but is customized more to my requirements?

-- Ann



[flexcoders] XML and pie charts

2007-01-18 Thread Chris MacGregor
Hello,

I'm building a data visualizer for a company based on it's sales
fleet. I've got a few questions about XML and pie charts and I'm
hoping someone can point me in the right direction to figure this one out.

So, I've got this XML document that I'm importing into FLEX that looks
a bit like this (simplified):


   
  Office A
  Texas
  10
   
   
  Office B
  Texas
  15
   
   
  Office C
  Iowa
  8
   
   
  Office D
  Maine
  11
   


I've got some datagrids set up to explore the XML just fine, but I'd
also like to make pie charts that provide visuals for the client. For
example, I'd like a pie chart that shows where the offices are located
by region (so 50% texas, 25% Iowa and 25% Maine) and a second pie
chart that displays revenue by state (57% Texas, 18% Iowa and 25% Maine).

I'm finding that there isn't a simple way to collect this information
using something like
dataProvider="{service.lastResult.salesforce.office[region]}" for the
pie chart. I think I am going to have to step through the XML and
build this information dynamically, or am I wrong? Can FLEX handle this?

How would you go about setting these types of pie charts up to display
from the XML referenced above?

CHris



[flexcoders] Popup TitleWindow with Cairngorm 2

2007-01-18 Thread Steve House
Does anyone have any advice/examples of passing data between a view
and a TitleWindow launched with the PopupManager specifically using
Cairngorm 2?

Thanks,

Steve House


RE: [flexcoders] AMFPHP & Security

2007-01-18 Thread Zoltan Csibi

What I mean is: if I can sniff what typed VO an application is receiving, I
can "craft" an AMF packet with:
- call to "deleteUser"
- the same VO "type" (simplified: as we know that this is just a string of
the class name followed by other strings describing property names and other
binary data with property values etc etc etc)

The gateway (fluorine, openamf, fds ... anything) will see a "valid"
object/type. There is no type-coercion error here.

This is an easy task to do with AMF knowledge. 


Bottom line: I don't think that passing simple types, untyped VOs or typed
VOs makes any difference from security point of view.


Mit freundlichem Gruß,
Zoli

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Patrick Mineault
Sent: Thursday, January 18, 2007 6:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AMFPHP & Security



Wouldn't Fluorine and OpenAMF throw a type-coercion error, given that 
the first argument is typed? Of course, the code in the constructor 
would be called anyways.

Patrick



[flexcoders] Re: Blog post on Flex 2 Developer Certification exam

2007-01-18 Thread lar.drolet
Here is another link I found last night regarding the Flex
certification exam: http://www.igorcosta.org/?p=12

On this page is also a link to a PDF with information about the exam.
http://www.igorcosta.com/blog/wp-content/uploads/2007/01/Exam_Guide_Flex2.pdf

Is this is accurate this exam will follow the likes of the CF exam and
those who score 80% or better will acquire the 'Expert' Certified
status while the others [who pass] will get the Certified status. 
Guess that means hitting a book or two to find the obscure information
you know Adobe will ask about Flex.

I looked at Pearson's site and they do not have a listing for the exam
although Thomson Prometric does ($150).  How about a discount for
those people attending the 360Flex conference or FlexManiacs; Vue and
Thomson are you listening?

LD


--- In flexcoders@yahoogroups.com, "lar.drolet" <[EMAIL PROTECTED]> wrote:
>
> Saw this and thought it would be of interest to the group.
> 
> http://casario.blogs.com/mmworld/2007/01/flex_2_develope.html
>




[flexcoders] Re: Does DataGrid properly support ItemPendingError?

2007-01-18 Thread roman_dolgov
Just in case:
Found a good article on similar subject:
http://weblogs.macromedia.com/mchotin/archives/2004/03/large_data_sets.cfm

it's about Flex 1.5, but the same idea can be applied to the Flex 2.0.


--- In flexcoders@yahoogroups.com, "roman_dolgov" <[EMAIL PROTECTED]>
wrote:
>
> I am trying to implement a collection that supports remote lazy
> loading. I've extended IList interface and added the following code
> for getItemAt():
> 
> public function getItemAt(index:int, prefetch:int=0.0):Object
> {
>   if (needsToBeFetched(index))
>   {
>  fetchDataFromRemoteLocation(); // using web services
> 
>  throw new ItemPendingError("Wait...");   
> 
>   } else 
>   {
>  return prefetchedData();
>   }   
> }
> 
> It's kinda pseudocode, but the main idea is to throw an
> ItemPendingError and hope that DataGrid would retry to get the data
> again and hopefully by next time the data would be fetched.
> Is it too much to hope for?
> 
> The code I tried didn't work - after throwing ItemPendingError the
> table data disappears. 
> 
> Should it work or it's not supported at all?
> What is the best way to do it? 
> (I cannot use FDS)
> 
> Thanks
> RD
>




RE: [flexcoders] Re: Application without FDS?

2007-01-18 Thread Tracy Spratt
"...flex without FDS..." reduced cost and complexity.

 

"..create XMLs at the runtime..." this will take some server side code.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Thursday, January 18, 2007 1:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Application without FDS?

 

Thanks David,

We have existing application developed in Struts and UI is in JSP...

Client just wants to change the UI of a few screens only without 
using FDS.

Is there only way to create XMLs at the runtime? as you have 
suggested...

What are the advantages and disadvantages of creating application in 
flex without FDS?

Thanks in advance..
Sanjay Sharma

--- In flexcoders@yahoogroups.com 
, "David Mendels" <[EMAIL PROTECTED]> 
wrote:
>
> Hello,
> 
> FDS is not required. Use the SDK and/or Flex Builder and go for 
it! 
> 
> Connect to your back end using just XML over HTTP. This is a fine
> approach for many use cases.
> 
> FDS offers additional value in a number of areas, in particular: 
> * Remoting--simplifies programming model and higher performance
> protocal for connecting to Java obects on server (performance 
benefit it
> material for larger data sets, immaterial for trivial amounts of 
data.)
> * Messaging--connect to JMS or other messaging service, push 
and
> real time data to client
> * Data Service--page data, synch data
> More info on FDS available on www.adobe.com
> 
> HTH,
> David
> Adobe
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of sanjaypmg
> Sent: Thursday, January 18, 2007 12:39 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Application without FDS?
> 
> 
> 
> Hi,
> 
> I have a general question for all
> 
> Can I make application with FDS?
> 
> If yes, How can I call my java's remote object?
> 
> If No, Can you please tell me? Why cannt I make application in 
flex 
> without FDS?
> 
> Thanks,
> Sanjay Sharma
>

 



[flexcoders] Re: Application without FDS?

2007-01-18 Thread sanjaypmg
Thanks everybody thanks for your support...

If you have more to say, your most welcome...:)

Thanks to all
Sanjay

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 18 January 2007 05:38, sanjaypmg wrote:
> > If yes, How can I call my java's remote object?
> 
> Yes, as a web service.
> 
> 
> -- 
> Tom Chiverton
> Helping to evangelistically seize eligible m-commerce
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the 
registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




RE: [flexcoders] Probably dead simple but......

2007-01-18 Thread Tracy Spratt
Debug this by breaking the issue into parts.  Make sure you have the
values in the component first.  There are several ways to do this, try a
few.

 

One alternative to the declaritive style is to set the request object
and invoke send() in AS.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanyobn2
Sent: Thursday, January 18, 2007 9:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Probably dead simple but..

 

HI,

Been thrashing about all morning with this.

I cant get two variables that I have passed in as 'flashVars' to act
as  options for accessing a web service, I can use them as
on everything else (text etc) but when i call the webservice nothing
is passed. Sure it must be easy but cant see the wood from the trees.

Thanks in advance.

example code - 

This returns nothing




{Application.application.parameters.SESSION_ID.value}
{Application.application.parameters.SERVER_URL.value}



This returns the session_Id correctly
-



They are directly under each other

Help !!

 



[flexcoders] Canvas ScrollBars problems...

2007-01-18 Thread Lieven Cardoen
I have a component wich extends Canvas (FloorPlan). I add a component
extending Container to this Canvas.

 

Now, in this Container, I draw a lot of things and I set the width and
height myself so the Canvas show ScrollBars where needed.

 

The problem now is following : 

 

If I redraw something and reset the width and height of the Container,
strange things start to happen when previously the horizontal scrollbar
for instance was at its maximum.

 

If I click the horizontal scrollbar, somehow the Canvas changes its
scrollbars to correctly. 

 

I tried all of these, and nothing seems to work.

 

In the Container : 

   

   //paints things and sets width and
height of Container

this.paint();

  

 

this.validateNow();

  this.validateDisplayList();

  this.validateSize()

  this.validateNow();

  (this.parent as FloorPlan).validateNow();

  (this.parent as FloorPlan).validateDisplayList();

  (this.parent as FloorPlan).validateSize();

  (this.parent as FloorPlan).validateNow();

 

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 



[flexcoders] multiple Selection in DataGrid?

2007-01-18 Thread sanjaypmg
Hi Dude..

Is it possible to selected multiple rows in DataGrid?

How can I do that?

Regards,
Sanjay Sharma



RE: [flexcoders] Slightly OT - The Limitations of CFMX 7.02

2007-01-18 Thread João Fernandes
Jeff,

I don’t think that conversion of CF arrays to ArrayCollection will be
supported. I think that CF Arrays will always be Arrays in Flex. 

 

For FDS you can define your Products as ArrayCollection because when you
return the Catalog object, basically you’re telling to Fill Products
ArrayCollection property with a CF product array as the source.

 

BTW, I never had to use ArrayUtil.toArray when I know that my object is an
Array in CF.

 

João Fernandes

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: 18 January 2007 16:34
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Slightly OT - The Limitations of CFMX 7.02

 

The type="Product[]" is a way to make the array returned to be an array of
CFC objects. This is a johnny-come-lately syntax addition and I'm not sure
where it is documented. Allows you to write code like:













And in your delegate class:

public function result(obj:Object):void
{
var event:ResultEvent = ResultEvent(obj);
ModelLocator.getInstance().products = new
ArrayCollection(ArrayUtil.toArray(event.result));
}

Now your ArrayCollection will contain a collection of AS Product objects -
directly translated from CFCs. That works and works great and requires that
you have created a matching AS object to your Product CFC, the how-to of
which has been written up in numerous places.

What is at issue is specifically the ability to have the ArrayCollection
exist as a PROPERTY of your ActionScript PARENT object. Like









[RemoteClass(alias="com.mycompany.model.Catalog")]

[Bindable]
public class Catalog
{
import mx.collections.ArrayCollection;

public function Catalog()
{

}

public var catalog_id:Number;
public var catalog_name:String;
public var products:ArrayCollection;
}

If you passing back a Catalog.cfc instance with the products array
populated, that product array will not be translated over the wire - that's
what I'm seeing and it just may not be supported yet. What I'm doing
currently is to populate my Catalog object in two passes - one to get the
catalog metadata and the other to get the product ArrayCollection. 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Adam Dorritie
Sent: Thursday, January 18, 2007 8:22 AM
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Slightly OT - The Limitations of CFMX 7.02

On 1/17/07, Battershall, Jeff <[EMAIL PROTECTED]
 > wrote:
> I've been using CFMX 7.02's ability translate CFCs to AS objects but 
> have noticed the following limitation:
>
> If I have an array of objects (like CFCs) in my CFC/AS class def - 
> these will not translate over the wire and I'm forced to pull over 
> the array as a separate remoting request.
>
> Example:
> Catalog.cfc has an attribute products of type Product.cfc array. 
>  Catalog.as has an 
> ArrayCollection of Product objects, i.e., public var 
> Products:ArrayCollection.

I'm confused about the syntax of the  tag you used above. I may
be wrong, but my understanding is that you would specify that Products is an
array like this: . IIRC CF isn't
concerned about the type of an array's content. I would also echo João's
advice to define Products as an Array in your AS class.

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

 



Re: [flexcoders] AMFPHP & Security

2007-01-18 Thread Patrick Mineault
Wouldn't Fluorine and OpenAMF throw a type-coercion error, given that 
the first argument is typed? Of course, the code in the constructor 
would be called anyways.

Patrick

Zoltan Csibi a écrit :
>
> Hi,
>  
> I would like to underline that somebody with good AMF knowledge can 
> craft strongly typed objects and send them to the server-side. If the 
> "deleteUser" doesn't require authentication and authorization it can 
> be hacked in any language.
>  
>  
> function deleteUser($ userVO)
> {
> $userVO->delete( );
> }
>
> Well, you might expect that $userVO is a "com.myPackage. UserVO", but it
> could also be a "com.myPackage. PhotoVO", or a "com.myPackage. AdminVO",
> or whatever. So you either have to make sure you do receive the VO type
> you expect, using instanceof or is_a, or you should only use "dumb" VOs
> which don't have any methods
>  
>  
>
> Mit freundlichem Gruß ,
>
> Zoli
>
>  
>  



Re: [flexcoders] It shouldn't be this hard.

2007-01-18 Thread Shannon Hicks
You could always set the x/y by hand when you load the image. Something 
like this:


loadImage():void {
   image.source = mynewimage.jpg
   callLater(centerImage);
}

centerImage():void {
   image.x = (wrapper.width / 2) - (image.width / 2);
   image.y = (wrapper.height/ 2) - (image.height/ 2);
}

Shan

Russell Sprague wrote:


@Matt
yea I don't really hate the docs, I was just a little frustrated, 
because most of the examples are Actionscript examples, and if I am 
looking for an example of how to do something in mxml, I don't know 
enough to translate the AS to mxml.


@roman
I tried the horizontal and verticalCenter, and it didn't work
I think part of the problem is there is nothing in the component until 
I load the image, so there is nothing to measure to.


Russ
Matt Horn wrote:


> I hate the flex documentation...

Also, if there are specific problems with the documentation, please let
the doc team know by either posting to this list, adding a comment to
livedocs, or filing a bug at http://www.adobe.com/go/wish. 
 Thanks,


matt horn
flex docs

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
] On Behalf Of Roman Protsiuk

> Sent: Thursday, January 18, 2007 7:51 AM
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] It shouldn't be this hard.
>
> The first thought is:
>
> 
>  verticalCenter="0" /> 
>
> To scale, dunno, but maybe something like:
>
> 
>  source="{yourSource}"
> width="{imageContainer.width < image.width ?
> imageContainer.width : image.width}"
> height="{imageContainer.height < image.height ?
> imageContainer.height : image.height}"
> scaleContent="true"
> horizontalCenter="0"
> verticalCenter="0" />
> 
>
> This one probably won't work, it's very dirty, however might
> give you a clue... ;)
>
> And the easiest way to scale, but still, not so nice from the
> point of ui (it scales both way) is just:
>
>  width="100%" height="100%" />
>
> Have fun,
> R.
>
>
>
> On 1/18/07, Russell Sprague <[EMAIL PROTECTED] 

> > > wrote:

>
> I hate the flex documentation...
>
> All I want to do is dynamically center an image on my stage.
>
> I have a VDividedBox with an image in the top, and text
> in the bottom.
> I loading in images by setting the source of an image
> tag(probably not
> the best way to do it, but again I hate the Flex docs...).
> So when the image loads I am trying to set it to center
> in the upper
> pane of the vdividedbox, but all my attemps have failed.
>
> It would be nice to also resize the image as the
> divideBar is dragged,
> but only to the original size of the image, then it
> just centers.
>
> Thanks
> Russ
>
>
>
>
>
>
>
>



 




[flexcoders] An internal build error has occurred. Please check the Error Log.

2007-01-18 Thread chrislpigg
Does anyone know how to fix this error message in Flex 2.0?



RE: [flexcoders] Re: Annoying problem - urgent!!!

2007-01-18 Thread Lieven Cardoen
Thx, guys, tried all the things, and apperently there were some errors
which wouldn't go away (even though they were solved)...

 

Now it works again...

 

Lieven

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Allen Riddle
Sent: donderdag 18 januari 2007 17:37
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Annoying problem - urgent!!!

 

If you're web project that the flex app is running in, is in Eclipse,
try hitting Refresh (F5) on your web project in Eclipse.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey Williams
Sent: Thursday, January 18, 2007 10:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Annoying problem - urgent!!!

 

Did you try a Project > Clean...?

--- In flexcoders@yahoogroups.com 
, "Lieven Cardoen" 
<[EMAIL PROTECTED]> wrote:
>
> I have a really annoying problem. If I run or debug my flex 
application,
> it keeps on giving me a version of yesterday. Flex won't compile a 
new
> swf...
> 
> 
> 
> Lieven Cardoen
> 
> 
> 
> Lieven Cardoen
> Application developer
> 
> indiegroup
> interactive digital experience
> engelse wandeling 2 k18 
> b8500 kortrijk
>

 



[flexcoders] setting Alert.buttonWidth is a pain

2007-01-18 Thread Pan Troglodytes

The Alert class works fairly well, with one big exception - buttonWidth.
The buttons should auto-size to fit the width of their labels by default.
It shouldn't be up to the programmer to set the buttonWidth every time.
Regular buttons auto-size, so why shouldn't Alert ones?

In the meantime, has anyone written any code to get around this?  Anyone
have a nice Alert class rewrite/replacement they'd like to share?

--
Jason


  1   2   >