[flexcoders] How can an SWF read its own metadata tags?

2009-01-31 Thread Mark Carter

How to read SWF metadata tags (like "title", "publisher" etc) at runtime from
within that SWF?

I use ANT to build the SWF. I manually define metadata like "project name"
etc in a build.properties file. I use these values in ANT to name the SWF
and installer etc and also I can use them to set the metadata tags of the
SWF I'm compiling to.

But when this SWF is running, how can that metadata be accessed?

Or is it better to embed the build.properties in the SWF?

I need this for an About dialog box.
-- 
View this message in context: 
http://www.nabble.com/How-can-an-SWF-read-its-own-metadata-tags--tp21760968p21760968.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Conditional compilation for variable declarations

2009-01-31 Thread Johannes Nel
abstract factory would also solve this, unless you compile to swc that is.

On Fri, Jan 30, 2009 at 6:46 PM, jimmy5804  wrote:

>
> I'm able to use conditional compilation for functions by prefacing
> them with CONFIG::xxx and other blocks by wrapping them in
> if(CONFIG::xxx), but I'm not sure how to do conditional declaration of
> class variables without making the whole class conditional.
>
> If, for example, I have a single SQL class variable in a class that's
> otherwise portable between Flex and AIR, do I need to create separate
> classes for the two frameworks, or is there a convenient way to
> conditionally declare the SQL variable?
>
> TIA
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] transition effect

2009-01-31 Thread stinasius
hi how can i achieve the transition effect used in this case study
when some click's to view details of product and a title window popups
and the it moves and resizes so smoothly to show the email form? here
is the url to what am talking abt. "http://www.relogiosopala.com/";



[flexcoders] Piechart slice color changes on rollover/select ?? How do change this?

2009-01-31 Thread anthony_morsey
In picharts when selectionmode="single" is set the color of the rolled
over pie wedge changes to a darker version of the same color.  This
new color stays darker when I explode the slice.  

What controls the effect of the colors changing on rollover and
itemclick on this pie chart? Is there a way to turn this effect off
and only show the true/defined color of the pie slice?

Here is a simple example of a piechart with this issue. 

http://blog.flexexamples.com/2007/11/06/exploding-wedges-in-a-flex-piechart-control/


Any help would be appreciated

Thanks!!



Re: [flexcoders] Reducing white space in charts

2009-01-31 Thread Vik
Hie
Thankx a lot!!! This worked


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Sat, Jan 31, 2009 at 11:30 AM, Sam Lai  wrote:

> Oh, you mean the gaps causing the scrollbars to appear?
>
> Change your HBox line to this -
> 
>
>
>
> 2009/1/31 Vik :
> >
> > Thankx and Regards
> >
> > Vik
> > Founder
> > www.sakshum.com
> > www.sakshum.blogspot.com
> > Hie
> > Thankx for the response..
> > I am still pretty new so could you tell me where exactly to write all
> this?
> > Vik
> >
> > On Fri, Jan 30, 2009 at 7:48 PM, Sam Lai  wrote:
> >>
> >> I had the same problem, and wasn't about to get it completely
> >> eliminated. I used the following styles on my AxisRenderer for both
> >> the horizontal and vertical axes:
> >>
> >> showLabels: false;
> >> showLine: false;
> >> tickPlacement: none;
> >> minorTickPlacement: none;
> >> axisStroke: ClassReference(Stroke);
> >>
> >> I did this in code, but it should be possible via CSS too, although my
> >> experience with CSS is that it isn't very reliable.
> >>
> >> Note that I didn't want the axis appearing at all - if you do, you
> >> will have to adjust the styles.
> >>
> >> If you're still stuck, I suggest you look in the Flex source code, at
> >> the AxisRenderer.as file to see how it renders the axisrenderer, and
> >> then change it. The chart classes might help too.
> >>
> >> 2009/1/30 Vik S. Kumar :
> >>
> >> > Hie
> >> >
> >> > any idea on
> >> > http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?
> >> > forumid=60&catid=585&threadid=1419947&enterthread=y
> >> >
> >> > i m not able to reduce un-necessary space in right and bottom side of
> >> > chart components
> >> >
> >> >
> >> > 
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Alternative FAQ location:
> >> >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> >> > Search Archives:
> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> >> >
> >> >
> >> >
> >> >
> >>
> >> 
> >
>


Re: [flexcoders] How can an SWF read its own metadata tags?

2009-01-31 Thread Igor Costa
Mark

Take a look at here. It maybe help you to figure out

http://www.igorcosta.org/?p=220


Regards
Igor Costa




On Sat, Jan 31, 2009 at 6:29 AM, Mark Carter  wrote:

>
> How to read SWF metadata tags (like "title", "publisher" etc) at runtime
> from
> within that SWF?
>
> I use ANT to build the SWF. I manually define metadata like "project name"
> etc in a build.properties file. I use these values in ANT to name the SWF
> and installer etc and also I can use them to set the metadata tags of the
> SWF I'm compiling to.
>
> But when this SWF is running, how can that metadata be accessed?
>
> Or is it better to embed the build.properties in the SWF?
>
> I need this for an About dialog box.
> --
> View this message in context:
> http://www.nabble.com/How-can-an-SWF-read-its-own-metadata-tags--tp21760968p21760968.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Rich text editor customization

2009-01-31 Thread Igor Costa
Mayank

You can read it from here a solution, don't know if fits on your needs.


http://www.igorcosta.org/?p=217


Regards
Igor Costa


On Thu, Dec 18, 2008 at 2:35 AM, Mayank Vora  wrote:

>
> Hi,
>
> I wanted to know if there is a way to embed images using Rich Text
> Editor. Has anyone tried customizing RTE to embed html images.
>
> Regards,
>
> Mayank
>
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Tables in Rich Text Editor

2009-01-31 Thread Igor Costa
Jeroen

Open a feature request at Flex Bug Base. So far doesn't have any.


Regards
Igor Costa
www.igorcosta.org


2008/12/18 Jeroen De Vos 

>Hi,
>
> Perhaps one of the most asked questions on the list: when will the Rich
> Text Editor support tables?
>
> I had high hopes with Flash Player 10 and the Text Layout Framework, but
> alas, no tables.
>
> Anyone has any luck extending the RTE to support tables?
>
> Thanks,
> Jeroen.
>
> *Jeroen De Vos*
> *C/ICT - Amaris*
>
>
>  *    *
> Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het
> Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke
> informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of
> telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen
> en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te
> verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf
> Antwerpen is op geen enkele manier verantwoordelijk voor fouten of
> onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk
> Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of
> indirecte schade, verlies of ongemak veroorzaakt als gevolg van een
> onnauwkeurigheid of fout in deze
> e-mail.
>
> English Translation: This e-mail and all attached files are official
> documents of Antwerp Port Authority and may contain confidential or personal
> information. If you have received this e-mail in error, you are asked to
> inform the sender by e-mail or telephone immediately, and to remove it from
> your system without reading or reproducing it or passing it on to other
> parties. Antwerp Port Authority is in no way responsible for any errors or
> inaccuracies in the contents of this e-mail, nor can it be held liable for
> any direct or indirect loss, damage or inconvenience arising from any such
> errors or inaccuracies.
>   
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Re: Flex Feedback for the Future

2009-01-31 Thread Igor Costa
Derrick

Actually you can hack it. Built-in is not good right now because there's a
lot of implementation in Flash Player 10 and Text Layout and RTE hope will
rewritten completely
 But, hold your breath here's a solution http://www.igorcosta.org/?p=217


Regards
Igor Costa


On Tue, Feb 12, 2008 at 5:17 PM, Don Kerr  wrote:

>   I also vote for RTE enhancements, in general. Better output is key,
> but I'd also like to see it move more toward a WYSIWYG-like editor
> like ColdFusion offers. FCK for Flex...basically. And on the display
> side, something like the AIR HTML component for Flex web appa would be
> nice.
> In short, better support for capturing HTML content (authoring,
> copy/paste, insert images,tables),storing it, and displaying it. Or
> something equivalent to HTML-like authoring for Content Management apps.
>
> A basic simple one would be to automatically convert typed urls to
> clickable colored links. Right now, my users have to re-highlight the
> text and set the color. You can't set the url and the color at the
> same time.
>
> Don Kerr
>
> "It is true that I said it, but it doesn't have to be truth to you."
>
> --- In flexcoders@yahoogroups.com , "Derrick
> Anderson"
>
>  wrote:
> >
> > one of my personal gripes, an RTE that can output valid xhtml.
> >
> > i have had to create my own which is a pain- i think it should be
> built in.
> >
> > thanks,
> > d.
> >
> > On Feb 11, 2008 12:50 PM, Joan Lafferty  wrote:
> >
> > > As we close up Flex 3 development, the team is evaluating
> existing Flex
> > > feedback to figure out what bugs to fix and features to add for
> the future.
> > > If you could briefly list some of the key enhancements or bug
> fixes that you
> > > would like in the future, please send them along. Also, be sure
> to vote on
> > > deferred bugs and feature requests in the public bugbase as we will be
> > > evaluating those too.
> > >
> > >
> > >
> > > http://bugs.adobe.com/flex
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Joan Lafferty
> > >
> > > Flex SDK QA
> > >
> > >
> >
>
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] the flex RTE and xhtml

2009-01-31 Thread Igor Costa
Derrick

A solution, hope fits on your needs.   http://www.igorcosta.org/?p=217


Regards
Igor Costa


On Mon, Feb 4, 2008 at 7:40 PM, Derrick Anderson <
no.way.this.is.in@gmail.com> wrote:

>   anybody out there have anything that will take the html generated by the
> flex richtexteditor and have it output valid XHTML (and back again)?  i've
> found a few things googling but i have not found a good implementation yet.
>
> thanks,
> d.
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Re: Silent Print from Flex on Kiosk

2009-01-31 Thread Igor Costa
As our friend suggest before,

You can communicate with Javascript and pass the job to js and you will
print silence, dispatch the print silent to the js as you wish.

Two interesting sites to read it
http://stackoverflow.com/questions/21908/silent-printing-in-a-web-application
http://www.actionscript.org/forums/archive/index.php3/t-102128.html

Regards
Igor Costa
www.igorcosta.org



On Fri, Jan 30, 2009 at 6:51 PM, Jeremi Bergman  wrote:

>   Thanks for the info.
>
> It would be nice to be able to add an app as a "Trusted" application,
> so that the application would have the option to print silently.
>
> --- In flexcoders@yahoogroups.com , "Gregor
> Kiddie"  wrote:
> >
> > Yeah, The Flash Player doesn’t allow silent printing, as some wag
>
> would write an advertising swf which printed out their entire
> promotional literature of 2000 pages on your printer every time you
> checked your email…
> >
> > Nate is right, if you have JS code that works, call out to that, or
> use some other means of interacting with the printer (we have a client
> side DotNet component to handle our printing needs).
> >
> >
> >
> > Gk.
> >
> > Gregor Kiddie
> > Senior Developer
> > INPS
> >
> > Tel: 01382 564343
> >
> > Registered address: The Bread Factory, 1a Broughton Street, London
> SW8 3QJ
> >
> > Registered Number: 1788577
> >
> > Registered in the UK
> >
> > Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/>
> >
> > The information in this internet email is confidential and is
> intended solely for the addressee. Access, copying or re-use of
> information in it by anyone else is not authorised. Any views or
> opinions presented are solely those of the author and do not
> necessarily represent those of INPS or any of its affiliates. If you
> are not the intended recipient please contact is.helpd...@...
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ]
> On Behalf Of Nate Beck
> > Sent: 29 January 2009 17:18
> > To: flexcoders@yahoogroups.com 
> > Subject: Re: [flexcoders] Silent Print from Flex on Kiosk
> >
> >
> >
> > Just a theory... but you might be able to use ExternalInterface to
> call the same methods within user.js, and pass the content. Since
> you're already got it working within Javascript.
> >
> >
> >
> > I wish I knew more about FlexPrintJob.
> >
> > On Thu, Jan 29, 2009 at 8:41 AM, Jeremi Bergman   > wrote:
> >
> > I have a flex app that I need to print an image. I have Firefox Setup
> > running the app.
> >
> > in user.js for FF i have:
> > user_pref(†print.always_print_silent†,true);
> > user_pref(†print.show_print_progress†,false);
> >
> > This works perfectly when using firefox's print functionality on any
> > standard site. It prints directly to the default printer without any
> > user interaction.
> >
> > Within my App I have:
> >
> > public static function printCoupon(obj:UIComponent):void {
> > // Create an instance of the FlexPrintJob class.
> > var printJob:FlexPrintJob = new FlexPrintJob();
> >
> > // Start the print job.
> > if (printJob.start() != true) return;
> >
> > // Add the object to print. Do not scale it.
> > printJob.addObject(obj, FlexPrintJobScaleType.NONE);
> >
> > // Send the job to the printer.
> > printJob.send();
> > }
> >
> > The UIComponent passed in is an Image.
> >
> > It prints the image, but it prompts me with the print diologe box.
> >
> > Any thoughts? Thanks.
> >
> >
> >
> >
> > --
> >
> > Cheers,
> > Nate
> > 
> > http://blog.natebeck.net 
> >
>
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-01-31 Thread Tracy Spratt
Yeah that is not pretty xml.  Since your data is not really a list, but
more properties of an object, here is what I would do:

 

var oLoginInfo:Object = new Object();

var xmlResult = XML(event.result)

var xlNames:XMLList = xmlResult..columnList.string;

var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;

for (var i:int=0;imailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Friday, January 30, 2009 9:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)?

 

This is what get from E4X. I have no idea on how to this to an easier
format to use like what I get from an ArrayCollection with a
RemoteObject. 

Do I use XMLListCollection? Any hint on how? If I declare my userData
variable as public var userData:XMLListCollection = new
XMLListCollection(); What do I set it to?

Thanks!

Result

http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um
ich/security" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  
http://www.newatlanta.com/bluedragon";>
  uniqname
  password
  lastName
  firstName
  position
  department
  role
  isActive

http://www.newatlanta.com/bluedragon";>
  
wkolcz
2113
Kolcz
Wally
ColdFusion / Flex
Developer
PRMC
admin
1
  

  




From: "Tracy Spratt" 
Sent: Thursday, January 29, 2009 8:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)? 

Better set resultFormat="e4x" and look at ther real xml data instead of
the converted object tree. 

  

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)? 

  

I have 2 mirrored environments. One on my laptop running Adobe CF8 and
one at the University running Blue Dragon 7. I have the same  CFCs set
to remote, the same database stucture, and the same  on
both. I am just switching the wsdl location between the 2 and I am
getting COMPLETELY diffferent responses. The only difference is the
actual Servers.

When I return a query via web service with Adobe and render it out with
Alert.show(ObjectUtil.toString(e.result),'Result');, I get this:

(mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 1
  list = (mx.collections::ArrayList)#1
length = 1
source = (Array)#2
  [0] (Object)#3
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"
uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"
  sort = (null)
  source = (Array)#2

With Blue Dragon I get this:

(Object)#0
  columnList = (mx.collections::ArrayCollection)#1
filterFunction = (null)
length = 8
list = (mx.collections::ArrayList)#2
  length = 8
  source = (Array)#3
[0] "uniqname"
[1] "lastName"
[2] "firstName"
[3] "position"
[4] "department"
[5] "role"
[6] "isActive"
  uid = "A8A6C52F-5FDD-35DA-8364-22A4F7846DEB"
sort = (null)
source = (Array)#3
  data = (mx.collections::ArrayCollection)#4
filterFunction = (null)
length = 1
list = (mx.collections::ArrayList)#5
  length = 1
  source = (Array)#6
[0] (mx.collections::ArrayCollection)#7
  filterFunction = (null)
  length = 8
  list = (mx.collections::ArrayList)#8
length = 8
source = (Array)#9
  [0] "wkolcz"
  [1] "Kolcz"
  [2] "Wally"
  [3] "ColdFusion / Flex Developer"
  [4] "PRMC"
  [5] "admin"
  [6] 1
uid = "1226A691-AB75-70F7-DA33-22A4F7A30F01"
  sort = (null)
  source = (Array)#9
  uid = "2A52253B-DDF8-716E-0A74-22A4F7A38643"
sort = (null)
source = (Array)#6

I then added
Alert.show(ObjectUtil.toString(e.result.list.source),'source'); and got
this with Adobe:

(Array)#0
  [0] (Object)#1
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
PASSWORD = "2113"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"

And this with Blue Dragon:

TypeError: Error #1010: A term is undefined and has no properties.

Anyone know a work around to get the same results? I was able to get my
'uniqname' with Adobe by using userData.getItemArt(0).UNIQNAME but it
fails in BD.

Thanks for ANY h

[flexcoders] Re: Accessing XML child nodes in a LineChart

2009-01-31 Thread Amy
--- In flexcoders@yahoogroups.com, "Greg Groves"  
wrote:
>
> Thanks, I'll look at that. I was hoping for an MXML solution (mainly
> so I don't have to explain it as much ;-) ) but if ActionScript is
> necessary, so be it.

The dataFunction has to be done in AS.  I think most of the rest you 
can translate to MXML.  I just did the example that way because people 
were complaining there wasn't a good example of doing it in as only.

HTH;

Amy



[flexcoders] Re: Line chart: how to materialize data points with dots?

2009-01-31 Thread Amy
--- In flexcoders@yahoogroups.com, "flexindesign"  wrote:
>
> Is there any way to have dots marking data points on a line chart? 
> 
> Basically, I would like to avoid a blank chart when only one data
> point exists and also would like to visually materialize data points
> in a  chart with date axis, so a line joining two data points days
> apart do not look like it is linking data point on days in between, I
> find it misleading.
>

It's called an itemRenderer.



[flexcoders] SDK 3.2 compiler error messages not in english

2009-01-31 Thread Stefaan_Nachtergaele
I upgrade from sdk3.0 to 3.2. Now all compiler messages are not
enlgish anymore, but in dutch. Related bugs can be found at:

https://bugs.adobe.com/jira/browse/FP-1107
https://bugs.adobe.com/jira/browse/SDK-18241

No solution or work around is offered.
Does anyone now a work around? I'm thinking of just hacking the jar
which contains the dutch and replacing it with english. Anyone know
which jar this is.
Thanks,
Stefaan




RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-01-31 Thread Wally Kolcz
I tried this (slight modification) and it came up blank. In your loop, you have 
xlColumns[i] but you declared 'xlNames'. Are they the same? Did I miss 
something?

public function loginHandler(e:ResultEvent):void {
var oLoginInfo:Object = new Object();
var xmlResult = XML(e.result)
var xlNames:XMLList = xmlResult..columnList.string;
var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;
for (var i:int=0;i
Sent: Saturday, January 31, 2009 7:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster 
(I mean Dragon)? 

Yeah that is not pretty xml.  Since
your data is not really a list, but more properties of an object, here is what I
would do:   var oLoginInfo:Object = new Object(); var xmlResult = 
XML(event.result) var xlNames:XMLList = xmlResult..columnList.string; var 
xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var 
i:int=0;imailto:flexcod...@yahoogroups.com] On Behalf Of 
Wally Kolcz
Sent: Friday, January 30, 2009
9:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)?   

This is what get from E4X. I have no idea on how to
this to an easier format to use like what I get from an ArrayCollection with a
RemoteObject. 

Do I use XMLListCollection? Any hint on how? If I declare my userData variable
as public var userData:XMLListCollection = new XMLListCollection();
What do I set it to?

Thanks!

Result

http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

  

http://www.newatlanta.com/bluedragon";>

  uniqname

  password

  lastName

  firstName

  position

  department

  role

  isActive



http://www.newatlanta.com/bluedragon";>

  

wkolcz

2113

Kolcz

Wally

ColdFusion
/ Flex Developer

PRMC

admin

1

  



  

  

 From :
"Tracy Spratt" 
Sent: Thursday, January 29, 2009
8:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)? Better set 
resultFormat="e4x" and look at ther real
xml data instead of the converted object tree.   

Tracy Spratt  
 Lariat Services  

Flex development bandwidth available  

 From:  flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009
9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web
Services: Anyone work with Blue Disaster (I mean Dragon)?

I have 2
mirrored environments. One on my laptop running Adobe CF8 and one at the
University running Blue Dragon 7. I have the same  CFCs set to remote, the
same database stucture, and the same  on both. I am just
switching the wsdl location between the 2 and I am getting COMPLETELY
diffferent responses. The only difference is the actual Servers.

When I return a query via web service with Adobe and render it out with 
Alert.show(ObjectUtil.toString(e.result),'Result');,
I get this:

(mx.collections::ArrayCollection)#0

  filterFunction = (null)

  length = 1

  list = (mx.collections::ArrayList)#1

length = 1

source = (Array)#2

  [0] (Object)#3

DEPARTMENT = "PRMC"

FIRSTNAME = "Wally"

ISACTIVE = 1

LASTNAME = "Kolcz"

POSITION = "Senior ColdFusion
Architect"

ROLE = "admin"

UNIQNAME = "wkolcz"

uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"

  sort = (null)

  source = (Array)#2

With Blue Dragon I get this:

(Object)#0

  columnList = (mx.collections::ArrayCollection)#1

filterFunction = (null)

length = 8

list = (mx.collections::ArrayList)#2

  length = 8

  source = (Array)#3

[0] "uniqname"

[1] "lastName"

[2] "firstName"

[3] "position"

[4] "department"

[5] "role"

[6] "isActive"

  uid = "A8A6C52F-5FDD-35DA-8364-22A4F7846DEB"

sort = (null)

source = (Array)#3

  data = (mx.collections::ArrayCollection)#4

filterFunction = (null)

length = 1

list = (mx.collections::ArrayList)#5

  length = 1

  source = (Array)#6

[0] (mx.collections::ArrayCollection)#7

  filterFunction = (null)

  length = 8

  list = (mx.collections::ArrayList)#8

length = 8

source =
(Array)#9

[0] "wkolcz"

[1] "Kolcz"

[2] "Wally"

[3] "ColdFusion / Flex Developer"

[4] "PRMC"

[5] "admin"

[6] 1

uid =
"1226A691-AB75-70F7-DA33-22A4F7A30F01"

  sort = (null)

  source = (Array)#9

  uid = "2A52253B-DDF8-716E-0A74-22A4F7A38643"

RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-01-31 Thread Tracy Spratt
No, that was a typo.  Change columns to names.

 

Why is it blank?  What is not working?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Saturday, January 31, 2009 12:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)?

 

I tried this (slight modification) and it came up blank. In your loop,
you have xlColumns[i] but you declared 'xlNames'. Are they the same? Did
I miss something?

public function loginHandler(e:ResultEvent):void {
var oLoginInfo:Object = new Object();
var xmlResult = XML(e.result)
var xlNames:XMLList = xmlResult..columnList.string;
var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;
for (var i:int=0;i
Sent: Saturday, January 31, 2009 7:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)?

Yeah that is not pretty xml.  Since your data is not really a list, but
more properties of an object, here is what I would do:

 

var oLoginInfo:Object = new Object();

var xmlResult = XML(event.result)

var xlNames:XMLList = xmlResult..columnList.string;

var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;

for (var i:int=0;imailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Friday, January 30, 2009 9:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)?

 

This is what get from E4X. I have no idea on how to this to an easier
format to use like what I get from an ArrayCollection with a
RemoteObject. 

Do I use XMLListCollection? Any hint on how? If I declare my userData
variable as public var userData:XMLListCollection = new
XMLListCollection(); What do I set it to?

Thanks!

Result

http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um
ich/security" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  
http://www.newatlanta.com/bluedragon";>
  uniqname
  password
  lastName
  firstName
  position
  department
  role
  isActive

http://www.newatlanta.com/bluedragon";>
  
wkolcz
2113
Kolcz
Wally
ColdFusion / Flex
Developer
PRMC
admin
1
  

  




From: "Tracy Spratt" 
Sent: Thursday, January 29, 2009 8:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)?

Better set resultFormat="e4x" and look at ther real xml data instead of
the converted object tree.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)? 

 

I have 2 mirrored environments. One on my laptop running Adobe CF8 and
one at the University running Blue Dragon 7. I have the same  CFCs set
to remote, the same database stucture, and the same  on
both. I am just switching the wsdl location between the 2 and I am
getting COMPLETELY diffferent responses. The only difference is the
actual Servers.

When I return a query via web service with Adobe and render it out with
Alert.show(ObjectUtil.toString(e.result),'Result');, I get this:

(mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 1
  list = (mx.collections::ArrayList)#1
length = 1
source = (Array)#2
  [0] (Object)#3
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"
uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"
  sort = (null)
  source = (Array)#2

With Blue Dragon I get this:

(Object)#0
  columnList = (mx.collections::ArrayCollection)#1
filterFunction = (null)
length = 8
list = (mx.collections::ArrayList)#2
  length = 8
  source = (Array)#3
[0] "uniqname"
[1] "lastName"
[2] "firstName"
[3] "position"
[4] "department"
[5] "role"
[6] "isActive"
  uid = "A8A6C52F-5FDD-35DA-8364-22A4F7846DEB"
sort = (null)
source = (Array)#3
  data = (mx.collections::ArrayCollection)#4
filterFunction = (null)
length = 1
list = (mx.collections::ArrayList)#5
  length = 1
  source = (Array)#6
[0] (mx.collections::ArrayCollection)#7
  filterFunction = (null)
  length =

[flexcoders] Re: checkbox itemEditor in DataGrid

2009-01-31 Thread markflex2007
how to keep many rows highlighted in datagrid with AS code?

Thanks

Mark



[flexcoders] Re: Conditional compilation for variable declarations

2009-01-31 Thread jimmy5804
Thanks for the idea. I'm just declaring it as untyped for now and
assigning it in a conditionally compiled block.

--- In flexcoders@yahoogroups.com, Johannes Nel  wrote:
>
> abstract factory would also solve this, unless you compile to swc
that is.
> 
> On Fri, Jan 30, 2009 at 6:46 PM, jimmy5804  wrote:
> 
> >
> > I'm able to use conditional compilation for functions by prefacing
> > them with CONFIG::xxx and other blocks by wrapping them in
> > if(CONFIG::xxx), but I'm not sure how to do conditional declaration of
> > class variables without making the whole class conditional.
> >
> > If, for example, I have a single SQL class variable in a class that's
> > otherwise portable between Flex and AIR, do I need to create separate
> > classes for the two frameworks, or is there a convenient way to
> > conditionally declare the SQL variable?
> >
> > TIA
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-01-31 Thread Wally Kolcz
I dunno. I pasted the code I have below and when I try to either trace it or 
pop up and Alert, it comes up blank.

public function loginHandler(e:ResultEvent):void {

var oLoginInfo:Object
= new Object();

var xmlResult =
XML(e.result)

var xlNames:XMLList =
xmlResult..columnList.string;

var xlValues:XMLList =
xmlResult..ArrayOfAnyType.anyType;

for (var
i:int=0;i
Sent: Saturday, January 31, 2009 10:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster 
(I mean Dragon)? 

No, that was a typo.  Change columns to
names.   Why is it blank?  What is not working?   

Tracy Spratt 
 Lariat Services  

Flex development bandwidth available  

 From: 
flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of 
Wally Kolcz
Sent: Saturday, January 31, 2009
12:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)?   

I tried this (slight modification) and it came up
blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they
the same? Did I miss something?

public function loginHandler(e:ResultEvent):void {

var oLoginInfo:Object
= new Object();

var xmlResult =
XML(e.result)

var xlNames:XMLList =
xmlResult..columnList.string;

var xlValues:XMLList =
xmlResult..ArrayOfAnyType.anyType;

for (var
i:int=0;i
Sent: Saturday, January 31, 2009
7:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)? Yeah that is not 
pretty xml.  Since your data is not really a
list, but more properties of an object, here is what I would do:   var 
oLoginInfo:Object = new Object(); var xmlResult = XML(event.result) var 
xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = 
xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;imailto:flexcod...@yahoogroups.com]
On Behalf Of Wally Kolcz
Sent: Friday, January 30, 2009
9:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)?   

This
is what get from E4X. I have no idea on how to this to an easier format to use
like what I get from an ArrayCollection with a RemoteObject. 

Do I use XMLListCollection? Any hint on how? If I declare my userData variable
as public var userData:XMLListCollection = new XMLListCollection();
What do I set it to?

Thanks!

Result

http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

  

http://www.newatlanta.com/bluedragon";>

  uniqname

  password

  lastName

  firstName

  position

  department

  role

  isActive



http://www.newatlanta.com/bluedragon";>

  

wkolcz

2113

Kolcz

Wally

ColdFusion
/ Flex Developer

PRMC

admin

1

  



  

 

 From : "Tracy Spratt" 
Sent: Thursday, January 29, 2009
8:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF?
Web Services: Anyone work with Blue Disaster (I mean Dragon)? Better set 
resultFormat="e4x" and look at ther real
xml data instead of the converted object tree.   

Tracy Spratt  
 Lariat Services  

Flex development bandwidth available  

 From:  flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009
9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web
Services: Anyone work with Blue Disaster (I mean Dragon)?

I have 2
mirrored environments. One on my laptop running Adobe CF8 and one at the
University running Blue Dragon 7. I have the same  CFCs set to remote, the
same database stucture, and the same  on both. I am just
switching the wsdl location between the 2 and I am getting COMPLETELY diffferent
responses. The only difference is the actual Servers.

When I return a query via web service with Adobe and render it out with 
Alert.show(ObjectUtil.toString(e.result),'Result');,
I get this:

(mx.collections::ArrayCollection)#0

  filterFunction = (null)

  length = 1

  list = (mx.collections::ArrayList)#1

length = 1

source = (Array)#2

  [0] (Object)#3

DEPARTMENT = "PRMC"

FIRSTNAME = "Wally"

ISACTIVE = 1

LASTNAME = "Kolcz"

POSITION = "Senior ColdFusion
Architect"

ROLE = "admin"

UNIQNAME = "wkolcz"

uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"

  sort = (null)

  source = (Array)#2

With Blue Dragon I get this:

(Object)#0

  columnList = (mx.coll

[flexcoders] DragManager Zoom

2009-01-31 Thread cuttenv
Is there a way to disable the zoom when you drop something using the drag 
manager?



Re: [flexcoders] Re: Silent Print from Flex on Kiosk

2009-01-31 Thread Anatole Tartakovsky
Well, that was really old way to do it in IE5. You can use more reliable way
with our HTMLPrinting.com control we released for IE about 8 years ago (
yep, still works ) - at least you will get templates and control of what and
how you will print - suppression of the dialog is 20% of the task, real
control of the paper size/orientation, margins, trays, duplex,  etc are
really necessary - not to mention printer queue management.
Regards,
Anatole Tartakovsky
Farata Systems

On Sat, Jan 31, 2009 at 10:36 AM, Igor Costa  wrote:

>   As our friend suggest before,
>
> You can communicate with Javascript and pass the job to js and you will
> print silence, dispatch the print silent to the js as you wish.
>
> Two interesting sites to read it
>
> http://stackoverflow.com/questions/21908/silent-printing-in-a-web-application
> http://www.actionscript.org/forums/archive/index.php3/t-102128.html
>
> Regards
> Igor Costa
> www.igorcosta.org
>
>
>
>
> On Fri, Jan 30, 2009 at 6:51 PM, Jeremi Bergman  wrote:
>
>>   Thanks for the info.
>>
>> It would be nice to be able to add an app as a "Trusted" application,
>> so that the application would have the option to print silently.
>>
>> --- In flexcoders@yahoogroups.com , "Gregor
>> Kiddie"  wrote:
>> >
>> > Yeah, The Flash Player doesn’t allow silent printing, as some wag
>>
>> would write an advertising swf which printed out their entire
>> promotional literature of 2000 pages on your printer every time you
>> checked your email…
>> >
>> > Nate is right, if you have JS code that works, call out to that, or
>> use some other means of interacting with the printer (we have a client
>> side DotNet component to handle our printing needs).
>> >
>> >
>> >
>> > Gk.
>> >
>> > Gregor Kiddie
>> > Senior Developer
>> > INPS
>> >
>> > Tel: 01382 564343
>> >
>> > Registered address: The Bread Factory, 1a Broughton Street, London
>> SW8 3QJ
>> >
>> > Registered Number: 1788577
>> >
>> > Registered in the UK
>> >
>> > Visit our Internet Web site at www.inps.co.uk
>> http://www.inps.co.uk/>
>> >
>> > The information in this internet email is confidential and is
>> intended solely for the addressee. Access, copying or re-use of
>> information in it by anyone else is not authorised. Any views or
>> opinions presented are solely those of the author and do not
>> necessarily represent those of INPS or any of its affiliates. If you
>> are not the intended recipient please contact is.helpd...@...
>> >
>> > 
>> >
>> > From: flexcoders@yahoogroups.com [mailto:
>> flexcoders@yahoogroups.com ]
>> On Behalf Of Nate Beck
>> > Sent: 29 January 2009 17:18
>> > To: flexcoders@yahoogroups.com 
>> > Subject: Re: [flexcoders] Silent Print from Flex on Kiosk
>> >
>> >
>> >
>> > Just a theory... but you might be able to use ExternalInterface to
>> call the same methods within user.js, and pass the content. Since
>> you're already got it working within Javascript.
>> >
>> >
>> >
>> > I wish I knew more about FlexPrintJob.
>> >
>> > On Thu, Jan 29, 2009 at 8:41 AM, Jeremi Bergman >  > wrote:
>> >
>> > I have a flex app that I need to print an image. I have Firefox Setup
>> > running the app.
>> >
>> > in user.js for FF i have:
>> > user_pref(†print.always_print_silent†,true);
>> > user_pref(†print.show_print_progress†,false);
>> >
>> > This works perfectly when using firefox's print functionality on any
>> > standard site. It prints directly to the default printer without any
>> > user interaction.
>> >
>> > Within my App I have:
>> >
>> > public static function printCoupon(obj:UIComponent):void {
>> > // Create an instance of the FlexPrintJob class.
>> > var printJob:FlexPrintJob = new FlexPrintJob();
>> >
>> > // Start the print job.
>> > if (printJob.start() != true) return;
>> >
>> > // Add the object to print. Do not scale it.
>> > printJob.addObject(obj, FlexPrintJobScaleType.NONE);
>> >
>> > // Send the job to the printer.
>> > printJob.send();
>> > }
>> >
>> > The UIComponent passed in is an Image.
>> >
>> > It prints the image, but it prompts me with the print diologe box.
>> >
>> > Any thoughts? Thanks.
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Cheers,
>> > Nate
>> > 
>> > http://blog.natebeck.net 
>> >
>>
>>
>
>
> --
> 
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>
>  
>


[flexcoders] Manning Publishing 50% discount

2009-01-31 Thread Howard Fore
Just saw this on dzone:

> Through February 3, 2009, you can save 50% in any purchase at Manning. Just
> use coupon code refcardz50 when you check out at www.manning.com.


http://java.dzone.com/announcements/limited-time-50-all-manning-bo

Note that this is 50% off the total purchase.

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


[flexcoders] using an event to trigger an action in a sibling component

2009-01-31 Thread weezee49
I have the following structure:

Application
   |___ViewStack
  |SplashBox
   |VBox
  |___Accordion
  |Login
  |CreateAccount
  |MainBox
  

In MainBox I dispatch a logoutEvent.  Among other things as a result
of this event, I want to clear the fields in the Login component.  The
only way I have been successful so far is to call an init() function
from creationComplete in Login that looks like this:

private function init():void{
   parent.parent.parent.parent.parent.addEventListener("logoutEvent",
clearFields)
}

As I understand events, the logoutEvent in MainBox bubbles up to the
ViewStack, and then to the Application.  Is there a better way to
force the event down to Login?  Repeatedly using parent in this
fashion seems so inelegant.  And if I change my structure at all, I'll
also have to remember to go into the code and change the number of
parents in the init() function.  

TIA!
LG



[flexcoders] passing events to sibling components

2009-01-31 Thread weezee49
In my Application I have a ViewStack.  The ViewStack has 2 children:
SplashBox and MainBox.  SplashBox has a VBox, which has an Accordion,
which has two children, LoginBox and AccountCreateBox.

In MainBox I trigger a logoutEvent by clicking a button.  Among other
things, I want to clear the fields in LoginBox as a result of this
event.  The only way that I have found to do this is to have an init()
function in LoginBox that is called on creationComplete and looks like
this:

private function init():void{
parent.parent.parent.parent.parent.addEventListener("logoutEvent",clearFields);
}

This seems inelegant and awkward.  If I make any changes in my
structure, I'm going to have to remember to change the init function
as well.  

Is there a better way?

TIA!
LG



Re: [flexcoders] using an event to trigger an action in a sibling component

2009-01-31 Thread Mark Doberenz
I tend to create a public method on my Login screen called reset() or
something like that.Then, I can easily call it to reset that form.

Mark

On Sat, Jan 31, 2009 at 8:58 PM, weezee49  wrote:

>   I have the following structure:
>
> Application
> |___ViewStack
> |SplashBox
> |VBox
> |___Accordion
> |Login
> |CreateAccount
> |MainBox
>
>
> In MainBox I dispatch a logoutEvent. Among other things as a result
> of this event, I want to clear the fields in the Login component. The
> only way I have been successful so far is to call an init() function
> from creationComplete in Login that looks like this:
>
> private function init():void{
> parent.parent.parent.parent.parent.addEventListener("logoutEvent",
> clearFields)
> }
>
> As I understand events, the logoutEvent in MainBox bubbles up to the
> ViewStack, and then to the Application. Is there a better way to
> force the event down to Login? Repeatedly using parent in this
> fashion seems so inelegant. And if I change my structure at all, I'll
> also have to remember to go into the code and change the number of
> parents in the init() function.
>
> TIA!
> LG
>
>  
>


[flexcoders] Re: using an event to trigger an action in a sibling component

2009-01-31 Thread weezee49
But I still have a problem calling a public method in Login from 
MainBox.  Because MainBox is in a different branch of the tree, it 
can't see Login without some convoluted getChildAt().getChildAt(), 
and so on.  

Just to clarify, my diagram didn't come through.  Application has a 
ViewStack, which has SplashBox and MainBox.  SplashBox has a VBox 
which has an Accordion, which has LoginBox and CreateAccountBox.  

This code worked in the Application:

var vbox:UIComponent = splashBox.getChildAt(0) as UIComponent;
var accord:UIComponent = vbox.getChildAt(3) as UIComponent;
var loginBox = accord.getChildAt(0);
loginBox.clearFields(e);

But again, it seems inelegant, and not very robust if I have to 
change the structure later.

Thanks,
LG


--- In flexcoders@yahoogroups.com, Mark Doberenz  
wrote:
>
> I tend to create a public method on my Login screen called reset() 
or
> something like that.Then, I can easily call it to reset that form.
> 
> Mark
> 
> On Sat, Jan 31, 2009 at 8:58 PM, weezee49  wrote:
> 
> >   I have the following structure:
> >
> > Application
> > |___ViewStack
> > |SplashBox
> > |VBox
> > |___Accordion
> > |Login
> > |CreateAccount
> > |MainBox
> >
> >
> > In MainBox I dispatch a logoutEvent. Among other things as a 
result
> > of this event, I want to clear the fields in the Login 
component. The
> > only way I have been successful so far is to call an init() 
function
> > from creationComplete in Login that looks like this:
> >
> > private function init():void{
> > parent.parent.parent.parent.parent.addEventListener
("logoutEvent",
> > clearFields)
> > }
> >
> > As I understand events, the logoutEvent in MainBox bubbles up to 
the
> > ViewStack, and then to the Application. Is there a better way to
> > force the event down to Login? Repeatedly using parent in this
> > fashion seems so inelegant. And if I change my structure at all, 
I'll
> > also have to remember to go into the code and change the number 
of
> > parents in the init() function.
> >
> > TIA!
> > LG
> >
> >  
> >
>




RE: [flexcoders] passing events to sibling components

2009-01-31 Thread Alex Harui
Singletons Data Models.  An interaction in Mainbox sets a property in the model 
that other views like LoginBox are listening to.

You'll also be happier the day you try to wire up the BrowserManager to handle 
backbutton and deep linking if you have a central data model.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of weezee49
Sent: Saturday, January 31, 2009 7:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing events to sibling components


In my Application I have a ViewStack. The ViewStack has 2 children:
SplashBox and MainBox. SplashBox has a VBox, which has an Accordion,
which has two children, LoginBox and AccountCreateBox.

In MainBox I trigger a logoutEvent by clicking a button. Among other
things, I want to clear the fields in LoginBox as a result of this
event. The only way that I have found to do this is to have an init()
function in LoginBox that is called on creationComplete and looks like
this:

private function init():void{
parent.parent.parent.parent.parent.addEventListener("logoutEvent",clearFields);
}

This seems inelegant and awkward. If I make any changes in my
structure, I'm going to have to remember to change the init function
as well.

Is there a better way?

TIA!
LG



RE: [flexcoders] DragManager Zoom

2009-01-31 Thread Alex Harui
No official way.  Check the archives, I think someone posted a way.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of cuttenv
Sent: Saturday, January 31, 2009 5:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DragManager Zoom


Is there a way to disable the zoom when you drop something using the drag 
manager?



[flexcoders] Re: DragManager Zoom

2009-01-31 Thread cuttenv
I guess I'll just extend the DragProxy class and override the mouse up
handler 

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> No official way.  Check the archives, I think someone posted a way.
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of cuttenv
> Sent: Saturday, January 31, 2009 5:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DragManager Zoom
> 
> 
> Is there a way to disable the zoom when you drop something using the
drag manager?
>