Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-05 Thread Flap Flap
Thanks guys for all that clues.

I will give a try and send feedback.
For info, I've just used TextArra for a multiline text item, I don't need
any editable behavior on it.

Thx
Benoit aka Flapflap


[flexcoders] Re: Adding container references to an array

2009-02-05 Thread Hyder
Nah! Doesn't work.
I needed a simple way to allow users of a component to easily add 
container references in MXML. Guess it'll have to AS then

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 It is just that you want to do it with MXML.  I'd really need to 
test
 this but try:
 
 mx:Array id=containerList
  home /
 
  portfolio /
 
 ...
 /mx:Array
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
 Behalf Of Hyder
 Sent: Monday, February 02, 2009 7:43 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Adding container references to an array
 
  
 
 C'mon, can't be THAT hard!
 
 --- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com
 , Hyder Hyder_m29@ wrote:
 
  How do I add container references to an array.
  For example, I have these 4 containers
  
  mx:Panel id=home title=Home /
  mx:Panel id=portfolio title=Portfolio /
  mx:Panel id=skills title=Skills /
  mx:Panel id=contact title=Get in touch /
  
  How do I add their references to an array in MXML
  
  mx:Array id=containerList
  !-- CONTAINER REFERENCES GOES HERE --
  /mx:Array
 






[flexcoders] Upload images

2009-02-05 Thread christophe_jacquelin
Hello, 

I want to Upload images from the user computer into my flex 
application. 

Which instruction to use to upload images ? 

Thank you,
Christophe, 



[flexcoders] Navigate in Flex application

2009-02-05 Thread christophe_jacquelin
Hello,

I am a new developper in Flex.

How to navigate between pages of an application in flex, as we can do 
in html ? 

Thank you,
Christophe, 




[flexcoders] Login / Password Form

2009-02-05 Thread christophe_jacquelin
Hello, 

I am searching a code source exemple for a classical login / password 
form in a flex application.

Did I need absolutely a database to store Passwords ? 

Thank you, 
Christophe, 



[flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?

2009-02-05 Thread tiend...@ezweb.ne.jp
Hi Sajid Hussain

I think you are wrong in setting Gateway file,
Do you have set path for Zendamf library, you can setting Zendamf
library in php.ini file as below

include_path = C:\library

or setting in you gateway file as below

?

define('APPLICATION_PATH', realpath(dirname(__FILE__) .
'/../application/'));

set_include_path(
   get_include_path()
   . PATH_SEPARATOR . APPLICATION_PATH . '/../library/'
   . PATH_SEPARATOR . APPLICATION_PATH . '/models/'
   . PATH_SEPARATOR . APPLICATION_PATH . '/services/com/'
);

require_once Zend/Loader.php;

?

When you browser gateway file (index.php) and it comes up for download
. Dont borther it, it right. At time, you can start Flex app and test.

Best regard
http://blog.flextip.net


--- In flexcoders@yahoogroups.com, Sajid Hussain enchanter_...@...
wrote:

 
 
 
 Hello Gurus , 
 
 I am facing one issue where i am attempting to use Zend_amf but that
code exactly work well with Amfphp,
 I have seen all internet resources for zend and I am very courios on
thier machine same code is working why not at mine :(
 if I am trying to access gateway(Zend File) it work well but its not
working from Flex App .
 I have follwoing code and structure 
 
 Gateway File :
 ?php
 require_once 'Zend/Amf/Server. php';
 require_once 'include/services/ BListsService. php';
 require_once 'include/services/ UserService. php';
 // Instantiate the server
 $server = new Zend_Amf_Server( );
 $server-setClass('BListsSer vice');
 $server-setClassMap( 'BListsVO' , 'BLists');
 $server-setClass('UserServi ce');
 $server-setClassMap( 'UserVO', 'User');
 $server-setProduction( false);
 $server-handle(); // if I am echoing this its not execute and
instead it comes up for download 
 ?
 
 Services-xml :
 ?xml version=1.0 encoding=UTF- 8?
 services-config
 services
 service id=amfphp-flashrem oting-service
 class=flex. messaging. services. RemotingService
 messageTypes= flex.messaging. messages. RemotingMessage
 destination id=zend
 channels
 channel ref=my-zend /
 /channels
 properties
 source*/source
 /properties
 /destination
 /service
 /services
 channels
 channel-definition id=my-zend class=mx.messaging .channels.
AMFChannel
 endpoint uri=http:// localhost/ gateway.php class=flex.
messaging. endpoints. AMFEndpoint /
 /channel-definition
 /channels
 /services-config
 
 Remote Services :
 
 mx:RemoteObject
 id=BListsService 
 source=BListsServi ce destination= zend endpoint=http:
//localhost/ gateway.php
 showBusyCursor= true
 /mx:RemoteObject
 
 Please Reple
 -Saj





[flexcoders] C and ActionScript

2009-02-05 Thread christophe_jacquelin
Hello, 

How to call a function of a library in C, from a line code in a flex 
application ? 

Thank you,
Christophe, 




Re: [flexcoders] C and ActionScript

2009-02-05 Thread Sam Lai
You can't, without a whole lot of plumbing in between, or possibly
using the experimental Alchemy set of tools (labs.adobe.com).

2009/2/5 christophe_jacquelin christophe_jacque...@yahoo.fr:
 Hello,

 How to call a function of a library in C, from a line code in a flex
 application ?

 Thank you,
 Christophe,




 

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






[flexcoders] Array Collection

2009-02-05 Thread thelordsince1984
Hi, 

i've have an array collection of objects...every object is like this one:

- id:path

private function create(id:String, path:String):void {
var arrayCollection:ArrayCollection = new ArrayCollection();
var o:Object = {id:path};
arrayCollection.addItem(o);
}

i would create a function that has a parameter, the id, and check if
there is a correspondence between the parameter id function and that
one into the array collection. In this case i would also trace the
path value...



can you help me?

thanks 
Regards
Lorenzo



[flexcoders] Re: Login / Password Form

2009-02-05 Thread ursprakash6

Code Source??

Thats not necessary.
You can code it by own,thats easy only.
just put two TextField,and one button control.
In button click event call one actionscript method ,in that get the
values in textFields and send the values to backend using either
HttpService or  RemoteObject



Gnanz.../
http://gnanz-flexworld.blogspot.com

--- In flexcoders@yahoogroups.com, christophe_jacquelin
christophe_jacque...@... wrote:

 Hello, 
 
 I am searching a code source exemple for a classical login / password 
 form in a flex application.
 
 Did I need absolutely a database to store Passwords ? 
 
 Thank you, 
 Christophe,





[flexcoders] Re: Array Collection

2009-02-05 Thread thelordsince1984
--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote:

 Hi, 
 
 i've have an array collection of objects...every object is like this
one:
 
 - id:path
 
 private function create(id:String, path:String):void {
 var arrayCollection:ArrayCollection = new ArrayCollection();
 var o:Object = {id:path};
 arrayCollection.addItem(o);
 }
 
 i would create a function that has a parameter, the id, and check if
 there is a correspondence between the parameter id function and that
 one into the array collection. In this case i would also trace the
 path value...
 
 
 
 can you help me?
 
 thanks 
 Regards
 Lorenzo


it's ok..

instead if i would parse an object that contains strings?

for example i've an object that has three strings like this

- test1, test2, test3 

so i would trace strings separately..how can i do this?



[flexcoders] Memory leak in mx:HTML

2009-02-05 Thread Tom Chiverton
I seem to be able to reproduce a leak in mx:HTML by just placing it on the 
main application, as per https://bugs.adobe.com/jira/browse/SDK-19119

Has anyone else seen this ?

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Adjusting Linear Axis minimum and maximum dynamically

2009-02-05 Thread omkarjoe
Hi,

Any idea, how can I center a '0' on Linear Axis? I can't set minimum
and maximum values at the design time. As it may change according to
the data coming from server.

For Example, if I get data between range of 25 to -70. I want to set
min as -70 and max as +70 so that 0 will come in to center.

Thanks in advance.



[flexcoders] Displaying UIComponents vertically

2009-02-05 Thread annelie2008
Hi,

I'm having trouble with the layout of the musical score I'm 
displaying. It's generated from an xml file and I want the staves to 
be placed on top of each other but I can't make it work. I have a 
class which draws out the lines and the notes on it, so I instantiate 
that class, create the lines and notes, then create a UIComponent to 
add it to. There's three staves, so I do this for all three, then I 
add them all to a VBox which I display. I thought this would mean 
they'd be stacked on top of each other, but they're horizontally 
placed (the second two a little bit lower than the first for some 
reason). I'm assuming I'm missing something really obvious, so I'd be 
grateful if anyone could point me in the right direction.

Here's the code:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical
initialize=initializeHandler()
horizontalAlign=left

mx:Script
![CDATA[
import mx.containers.HBox;
import mx.containers.VBox;
import mx.containers.Canvas;
import mx.core.UIComponent;
import test.DrawNotes;

public var myXmlList:XMLList;

private function initializeHandler():void
{
//myXmlList = scoreXml.children();
// loop through this xml to get the 
attributes for the lines and fonts, but for now just hardcode it

// MEASURE 1
var measure1:DrawNotes = new DrawNotes
();

measure1.createLine(0, 0, 0, 
20, Black, 0.3, );
measure1.createLine(350, 0, 350, 
20, Black, 0.3, );

measure1.createLine(0, 0, 350, 
0, Black, 0.3, );
measure1.createLine(0, 5, 350, 
5, Black, 0.3, );
measure1.createLine(0, 10, 350, 
10, Black, 0.3, );
measure1.createLine(0, 15, 350, 
15, Black, 0.3, );
measure1.createLine(0, 20, 350, 
20, Black, 0.3, );
measure1.createGlyph(1Et, 14, 
55.5, #FF00, 14, q, , 58, 10, );
measure1.createGlyph(1Et, 14, 
55.5, #FF00, 14, q, , 116, -2.5, );
measure1.createGlyph(1Et, 14, 
55.5, #FF00, 14, h, , 174, 2.5, );

// MEASURE 2
var measure2:DrawNotes = new DrawNotes
();
measure2.createLine(350, 0, 350, 
20, Black, 0.3, );
measure2.createLine(700, 0, 700, 
20, Black, 0.3, );
measure2.createLine(350, 0, 700, 
0, Black, 0.3, );
measure2.createLine(350, 5, 700, 
5, Black, 0.3, );
measure2.createLine(350, 10, 700, 
10, Black, 0.3, );
measure2.createLine(350, 15, 700, 
15, Black, 0.3, );
measure2.createLine(350, 20, 700, 
20, Black, 0.3, );
measure2.createGlyph(1Et, 14, 
55.5, #FF00, 14, w, , 408, 2, );

// MEASURE 3
var measure3:DrawNotes = new DrawNotes
();
measure3.createLine(700, 0, 700, 
20, Black, 0.3, );
measure3.createLine(1050, 0, 1050, 
20, Black, 0.3, );
measure3.createLine(700, 0, 1050, 
0, Black, 0.3, );
measure3.createLine(700, 5, 1050, 
5, Black, 0.3, );
measure3.createLine(700, 10, 1050, 
10, Black, 0.3, );
measure3.createLine(700, 15, 1050, 
15, Black, 0.3, );
measure3.createLine(700, 20, 1050, 
20, Black, 0.3, );
measure3.createGlyph(1Et, 14, 
55.5, #FF00, 14, h, , 758, 0, );
measure3.createGlyph(1Et, 14, 
55.5, #FF00, 14, h, , 874, 0, ); 

var uic1:UIComponent = new UIComponent
();
uic1.addChild(measure1);

var uic2:UIComponent = new UIComponent
();
uic2.addChild(measure2);

var uic3:UIComponent = new UIComponent
();

Re: [flexcoders] Re: mx:Text maxWidth

2009-02-05 Thread Josh McDonald
Ack, I've just this minute come up on the same thing. This is annoying as
hell, I've used maxwidth all over the place without noticing it wasn't
working until now. What I want is to have my text centered if it's narrow,
and left justified (+ wrapped of course) if it exceeds maxWidth.

I need this, so I've created a bug:

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

I should have it fixed in a short while, and you can monkey-patch my changes
or extend Text to do it, email me off-list if you want me to send you the
fix so you can monkey-patch it in.

-Josh

On Thu, Feb 5, 2009 at 12:53 PM, Sam Lai samuel@gmail.com wrote:

   Don't have a solution, but you could wrap the Text control in a
 container, and set the maxWidth on the container instead.

 2009/2/5 tchredeemed apth...@liberty.edu apthorp%40liberty.edu:

  What I want it to do is to allow it to grow to the maxWidth, and wrap
  the text if it hits the max, right now it just cuts off the text after
  the maxWidth...
 
  halp! :)
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 tchredeemed apth...@... wrote:
 
  Question:
 
  When I set the maxWidth on a text, it does not force to a new line
  (like when you explicitly set the width). Is there any way to set it
  so that it will force it to a new line if it exceeds the maxWidth,
  without having to reserve the space using width?
 
 
 
 
  
 
  --
  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
 
 
 
 
  




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

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread Josh McDonald
UIComponent doesn't have any code for drawing background images. If you want
a background image without the overhead of using a Container such as Box,
you'll have to build a subclass of UIComponent that does. Or simply add an
Image as the first child of your UIComponent. Are you extending UIComponent,
or just instantiating them because you want someplace to put an image?

-Josh

On Thu, Feb 5, 2009 at 5:13 PM, superbokbok superbok...@yahoo.com wrote:


  http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
 
  There's no reason you can't call your style backgroundImage.
 
 Nice link :) I tried to implement code as per the examples in the link
 page, but the problem is I can never get an image to show as the
 background of a UIComponent! This would let me alter the image based
 on different stylesheets which are loaded at runtime.

 The way I do it now, I add an HBox to a UIComponent and set that as
 the bkg and add the styleName to that. I must be missing something
 somewhere to enable a background image on a UIComponent. Again the
 reason for using a UIComponent is that it's lighter.

 sorry for the rant :(
 cheers
 erick

  




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

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Java enum in Flex3

2009-02-05 Thread Josh McDonald
I'm kicking off a blaze-ds project this weekend, and I'll be doing typesafe
java-flex enums, when I figure it out I'll blog about it and post it here
:) It'll probably just require a small amount of custom unmarshalling code,
there's a lot of undocumented flexibility in mx.rpc.*

-Josh

Thu, Feb 5, 2009 at 11:37 AM, Maciek Sakrejda msakre...@truviso.com wrote:

   Interesting. Any thoughts on Granite Data Services' approach? There is a
 custom externalization process for Java Enum objects, and a granite Enum
 class in ActionScript that all your (generated) Enums extend. The enum
 class takes care of reading/writing. The writeExternal() method just
 writes the name of the Enum; readExternal() tries to find the name of
 the object in the constants defined by the Enum. The RemoteAlias
 metadata is set up as for a standard Java class.

 Are we asking for trouble in using this method? Is there something
 inherently dangerous here?
 --
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com


 -Original Message-
 From: Seth Hodgson shodg...@adobe.com shodgson%40adobe.com
 Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: RE: [flexcoders] Java enum in Flex3
 Date: Wed, 4 Feb 2009 16:20:33 -0800

 BlazeDS and LCDS roundtrip Java enums to the client and back as Strings.
 That's the only good option at present, and here's an in-depth
 explanation: http://greetingsfromoakland.blogspot.com/2009/02/enums.html

 Best,
 Seth

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of sunmoorthy1
 Sent: Monday, December 29, 2008 1:18 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Java enum in Flex3

 How to convert java enum values into Flex3 object.
 Any one went thru this problem?
 Please give your experties?

 Sundar

  




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

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] Re: Upload images

2009-02-05 Thread ursprakash6
Use FileReference class.
detailes sample application is given in the below url
you can refer with that.

http://kennethteo.com/2007/10/08/uploading-images-using-flex-the-search-finally-done/

Gnanz...
http://gnanz-flexworld.blogspot.com


--- In flexcoders@yahoogroups.com, christophe_jacquelin
christophe_jacque...@... wrote:

 Hello, 
 
 I want to Upload images from the user computer into my flex 
 application. 
 
 Which instruction to use to upload images ? 
 
 Thank you,
 Christophe,





[flexcoders] Re: Navigate in Flex application

2009-02-05 Thread ursprakash6
In Flex you can directly do multipage applications like we do with Html.
In Flex multipage applcaitions can be constructed by using
states,Viewstack.

Viewstack component is the most helpful one in achieving multipage
applications.
try search for viewstack,you will get more examples from net.

Gnanz../
http://gnanz-flexworld.blogspot.com


--- In flexcoders@yahoogroups.com, christophe_jacquelin
christophe_jacque...@... wrote:

 Hello,
 
 I am a new developper in Flex.
 
 How to navigate between pages of an application in flex, as we can do 
 in html ? 
 
 Thank you,
 Christophe,





[flexcoders] Problem in Streaming Live data using Flash Media Server

2009-02-05 Thread akila_ksri
I have the client application and the FMS running on the same machine,
the client app connects to the server successfully but fails to play 
any content(Pre-recorded flv/swf) which is also present in the same 
directory using NetStream.play(contentPath); and i always get 
NetStream.Play.StreamNotFound
Could anyone tell me if i am doing anything wrong?

Any help would be greatly appreciated.

Thanks in advance,
Akila



RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread Grant Davies
I've blogged how to get the 3dWall working as flex component using the
Flex Component kit for flash - here :

 

http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall
-working-in-flex-as-flex-component.html

 

Cheers

Grant

 

 

...

 b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

 gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Wednesday, February 04, 2009 8:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
component ?

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Grant Davies gr...@... wrote:

 Thanks Amy,
 
 
 
 I actually managed to get it to work as a Flex component in the 
end, it
 was pretty fiddly but once figure out its simple, I can create the
 3dwall instance and add it to a view state or container and don't 
have
 ANY code in flash at all. But I still have complete code 
completion in
 flex from the generated swc. 

I chose to put some code in Flash to clean up the interface and 
make it more compatible with Flex.

 Basically my fla has the 3dwall in the library and I export a swc, 
pull
 into flex and wrap it in a UIComponent and I'm done.
 
 
 
 I'm going to blog about how to set it up if you're interested I 
can let
 you know once I post.

That would be great. There's a user group I was supposed to speak to 
about this process, but it turns out that there are very few free 
Flash components that will accept any kind of a data source except 
the path to an XML file. Since I wasn't able to give them the 3D 
wall (obviously) and I couldn't find a free component that I could 
let them use for hands-on practice, I'm in the process of writing an 
example component I can use to demo.

The problem is that I can't stop myself from building it right for 
Flex in the first place, so I won't be able to demo all the things 
you have to overcome to work with a component that's not very robust.

I can point them to your blog post to get more info on that.

Thanks!

-Amy



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
2/3/2009 5:48 PM

image001.png

[flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread Amy
--- In flexcoders@yahoogroups.com, superbokbok superbok...@... 
wrote:

 
  http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
  
  There's no reason you can't call your style backgroundImage.
 
 Nice link :) I tried to implement code as per the examples in the link
 page, but the problem is I can never get an image to show as the
 background of a UIComponent! This would let me alter the image based
 on different stylesheets which are loaded at runtime. 
 
 The way I do it now, I add an HBox to a UIComponent and set that as
 the bkg and add the styleName to that. I must be missing something
 somewhere to enable a background image on a UIComponent. Again the
 reason for using a UIComponent is that it's lighter.

Yes, there's no advantage to wrapping an HBox in a UIComponent.  If 
you're up for some code, you could pull in HaloBorder and use that.  It 
simplifies adding container-like styles to a UIcomponent.

You could also just use a Loader and load the image into that, based on 
the style.

That example was just the tip of the iceberg of what's possible to do--
you need to use your creativity and research skills to figure out how 
to make the specific thing you're aiming for happen.

If you don't feel you're ready for that, I'd use a Canvas with 
constraint based layouts.  That's at least lighter than HBox.
-Amy



[flexcoders] Invoking other module's actions

2009-02-05 Thread Wally Kolcz

Sorry if that was a little confusing...Here is the scenario.

I have a module (myProjects) that has a viewstack (projectsVS) that allows me 
to switch between a 2 different sections (indexes). I want to, when the use 
logs out, make sure that the module's viewstack is set to selectedIndex=0, so 
when the user logs back in, its back on the first view in the stack...does that 
make sense.

So, in my main application I imported the module (import 
edu.umich.mods.myProjects;) and in the  logout function I tried to use: 
myProjects.projectsVS.selectedIndex=0;

Funny thing is that Flex Builder's code hinting showed each piece as I typed 
it, but when I went to run it I get this error:

1119: Access of possibly undefined property projectsVS through a reference with 
static type Class.

Any ideas? Better way to do this? Thanks. 




[flexcoders] Re: Simplest way to create a webservice and deploy

2009-02-05 Thread valdhor
Tracy

I have been told before that I take things a little too literally.

I should have thought through just what Vik really wanted rather than
just answer the question.

Well done for coming to the right conclusion.



--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Yes, Web Services can be difficult.
 
  
 
 But, we need to be clear on our language.  Vik, when you use the words
 web service are you using them in the specific, Flex sense, meaning
 using the SOAP xml protocol?
 
  
 
 Or are you using the words web service in the more general sense of
 accessing data over the internet?
 
  
 
 SOAP based WebService is compicated because the format provides for
 anonymous third parties to use the service with only the wsdl as
 documentation.  If you ae not planning to make your back-end business
 logic tier available to anonymous third parties, then you do not nead
 SOAP.
 
  
 
 The easiest way to deliver data over the internet is to use HTTPService,
 which is XML over HTTP.  This is what AJAX apps often use.
 
  
 
 You would simply build xml (as an object or string) and pass it back to
 Flex.  You will get exactly the xml you build, unlike SOAP, that wraps
 your data in a bunch of other stuff.  Of course you wont get any data
 type information, but since you wrote the service you will know the data
 types.
 
  
 
 I have not done this with java, but have done it using a JSP page.
 
 http://www.cflex.net/showFileDetails.cfm?ObjectID=556
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of valdhor
 Sent: Wednesday, February 04, 2009 9:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Simplest way to create a webservice and deploy
 
  
 
 As far as I know there is no simple way to create a web service. I
 thought the easiest way would be to use the built-in functionality of
 PHP (Should only take a few lines). I found out the hard way that it
 is not that simple. It took me months of research and a lot of
 tinkering (Not to mention a few leaps of faith) on my part to figure
 it out.
 
 When I started learning Java a few months ago, I used that tutorial to
 jump start my understanding of Web Services in Java.
 
 If you are an absolute beginner, I would suggest reading up on WSDL
 files. Once you know enough, try to create a WSDL file for your Web
 Service (You are going to need one when you deploy your service). Once
 you can create a WSDL, you are well on your way to understanding how
 to build a web service and deploy it.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Vik vik.ceo@ wrote:
 
  Hmm
  I think this is not at least the simplest way to start with
 especially for a
  beginner. Any other ideas?
  Thankx and Regards
  
  Vik
  Founder
  www.sakshum.com
  www.sakshum.blogspot.com
  
  
  On Wed, Feb 4, 2009 at 12:51 AM, valdhor valdhorlists@wrote:
  
   http://java.sun.com/webservices/docs/1.6/tutorial/doc/
 http://java.sun.com/webservices/docs/1.6/tutorial/doc/  ?
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com,
 Vik
   vik.ceo@ wrote:
   
Hie
I am very new to web services. My very simple requirement is to
return the records from a db table as an xml when i invoke a ws
 from
   my flex
application.
   
I have already code ready which is having a java method fetchRow()
   which
returns a List of objects (rows).
   
Any idea how to about creating and deploying it as a web service
   
Thankx and Regards
   
Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com
   
  
   
  
 





[flexcoders] Re: Simplest way to create a webservice and deploy

2009-02-05 Thread johnlukemills
If what you want to do is deploy a web service on your server,  the
simplest way by far is to use ColdFusion.  The Cfcomponent from the
ColdFusion 8 developers guide is all you need.



cfcomponent
cffunction
name = echoString
returnType = string
output = no
access = remote
cfargument name = input type = string
cfreturn #arguments.input#
/cffunction
/cfcomponent



[flexcoders] Re: Passing values using mx:WebService

2009-02-05 Thread valdhor
Well, that's something I could do (I pored over lots of WSDL files
whilst learning Web Service clients and servers). I have become
somewhat of an expert on building clients based just on a WSDL file.
Post the link to the WSDL.



--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Well, what arguments does the Assess operation/method require?  Don't
 send more or less.
 
  
 
 I have been able to work with WebService because I do both ends, but I
 am not good enough to offer to intrepret your wsdl for you.  Maybe
 someone else here could.
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of m_ollman
 Sent: Wednesday, February 04, 2009 6:33 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Passing values using mx:WebService
 
  
 
 FYI ws call
 
 private function button_click():void { 
 var wsOperation:Operation = ws.Assess;
 wsOperation.resultFormat = e4x; 
 var atCall:AsyncToken; 
 var sQ2:String = Q2.selectedItem.data;
 trace (sQ2); 
 var sQ5:String = Q5.selectedItem.data; 
 trace (sQ5); 
 var oRequest:Object = {Q2: sQ2, Q5: sQ5}; 
 atCall = wsOperation.send(oRequest); 
 atCall.callId = sCallId; 
 }





[flexcoders] Re: Custom Event and bubbling phase

2009-02-05 Thread valdhor
You can listen to any event in the event flow chain - you just need to
make sure which chain you are listening to.

You are using the popupmanager so you need to use the chain that is
based on systemmanager.

Is there any particular reason the popup panel cannot handle the
event itself?



--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote:

 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  I assume he means that the event never makes it to the loadThisModule
  function.
  
  Also, I assume he means that he uses the popupmanager to create a
  popup panel.
  
  With that said, IIRC, the application is not in the bubbling chain and
  will never receive an event from a popup. Again, IIRC, you would need
  the eventlistener on the systemmanager as that is the base of a popup.
  
  Please correct me if I am wrong.
  
  
  --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
  
   First, tell us what you mean by it doesn't work.
   

   
   Then:  That looks ok, does it work with a base Event? (a side
note, in
   the handler, you can access any public property of the panel via the
   event.target reference, so you do not *have* to use a custom
event. )
   

   
   What part of the above do I need to explain further?
   
   Tracy Spratt 
   Lariat Services 
   
   Flex development bandwidth available 
   
   
   
   From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On
   Behalf Of thelordsince1984
   Sent: Tuesday, February 03, 2009 3:27 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Custom Event and bubbling phase
   

   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
   , Tracy Spratt tspratt@ wrote:
   
That looks ok, does it work with a base Event? (a side note,
in the
handler, you can access any public property of the panel via the
event.target reference, os you do not have to use a custom
event. )



Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
   ] On
Behalf Of thelordsince1984
Sent: Tuesday, February 03, 2009 11:38 AM
To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Custom Event and bubbling phase



Hi,

i have a main application and there i create a popup panel...

from the popup panel i dispacth a custom event like this

var e1:CustomLoadEvent = new CustomLoadEvent(loadModule, true);
dispatchEvent(e1);

where loadModule is the type and the value true stands for
bubbles..

then at the creationcomplete event within the main application i
create an eventlisteners for the event

addEventListener(loadModule, loadThisModule);

the loadThisModule function simple trace a string..

but it doesn't work!!Why?

Thanks in advance

Regards Lorenzo
   
   thanks for the reply..
   
   CustomLoadEvent is a custom event, it extends Event class...but
   doesn't work..i don't know why...
   in this class i also override the clone method...
   
   the CustomLoadEvent class has a public properties...i omit it in
   dispatchevent function for simplicity..
   
   the function loadThisModule catchs the event in this manner
   
   private function loadThisModule(event:CustomLoadEvent):void{
   trace(event.identification);
   }
   where identification is the public property of customloadevent
class.
   
   thanks in advance
   
   Regards Lorenzo
  
 
 the first two assumptions are correct...
 
 so when i use popmanager i cann't listen to popup event in the event
 flow chain, is it correct?
 
 thanks again
 
 Regrads 
 Lorenzo





Re: [flexcoders] Re: Simplest way to create a webservice and deploy

2009-02-05 Thread Vik
Big Thankx to all you guys...especially to Tracy  Nate

Yes I really did not need a webservice to achieve what I was looking for. I
was just in need of a xml response which I could achieve by simply creating
a servlet which sends me a response as an XML.

Thanks again!!!

Thankx and Regards

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


On Thu, Feb 5, 2009 at 7:23 PM, johnlukemills j...@pobox.com wrote:

   If what you want to do is deploy a web service on your server, the
 simplest way by far is to use ColdFusion. The Cfcomponent from the
 ColdFusion 8 developers guide is all you need.

 cfcomponent
 cffunction
 name = echoString
 returnType = string
 output = no
 access = remote
 cfargument name = input type = string
 cfreturn #arguments.input#
 /cffunction
 /cfcomponent

  



[flexcoders] Re: Login / Password Form

2009-02-05 Thread valdhor
These threads should get you started:

http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.html
http://www.nabble.com/flex-login-popup-help-needed-please-tp20772482p20833766.html


HTH



Steve


--- In flexcoders@yahoogroups.com, christophe_jacquelin
christophe_jacque...@... wrote:

 Hello, 
 
 I am searching a code source exemple for a classical login / password 
 form in a flex application.
 
 Did I need absolutely a database to store Passwords ? 
 
 Thank you, 
 Christophe,





Re: [flexcoders] Navigate in Flex application

2009-02-05 Thread Howard Fore
What I did is largely what's described at the bottom of
http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_3.html.
Each of my views in the viewStack is a different .MXML file/component. The
main file has the viewstack filling the screen, instead of the small area of
the screen shown in the example.

On Thu, Feb 5, 2009 at 4:49 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:

 How to navigate between pages of an application in flex, as we can do
 in html ?




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


[flexcoders] Re:Adjusting Linear Axis minimum and maximum dynamically

2009-02-05 Thread Gilbert Mizrahi
Check the range you get when getting data from the server.

I am assuming -70 to 25 are values for the X axis.

Since your min value is -70 and your max value is 25 set a dummy point at 70
with Y value =  (empty). 

Hence the dummy value will not be plotted, but the X Axis will go from -70
to 70.


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.


re: [flexcoders] Re: Login / Password Form

2009-02-05 Thread Wally Kolcz
I used a database and RemoteObject/Web Services to check a CFC with the query 
to see if the username and password matches and returns any info I need then I 
have something like this:

public function loginHandler(e:ResultEvent):void {
userData = e.result as ArrayCollection;
if (userData.length == 1){
 //Whatever you want to do.
}else{
username_txt.text = ;
password_txt.text = ;
Alert.show(Incorrect username and/or password. Please try 
again.,Login Error);
}

}

I hide the login box and show the rest of the app which I have wrapped in a 
canvas which visible is set to false.

If you dont want to have a database you could use an Array or Object to store 
username and passwords hardcoded and check against them. Or if you have just 
one username/password you could just use something like:

public function login(username:String, password:String):void {

if (username == someusername || password = somepassword){

  //Your code to do whatever you want.

}else{

username_txt.text = ;

password_txt.text = ;

Alert.show(Incorrect username and/or password. Please try 
again.,Login Error);

}

}


From: valdhor valdhorli...@embarqmail.com
Sent: Thursday, February 05, 2009 6:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Login / Password Form 

These threads should get you started:

http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.html
http://www.nabble.com/flex-login-popup-help-needed-please-tp20772482p20833766.html

HTH

Steve

--- In flexcoders@yahoogroups.com, christophe_jacquelin

christophe_jacque...@... wrote:



 Hello, 

 

 I am searching a code source exemple for a classical login / password 

 form in a flex application.

 

 Did I need absolutely a database to store Passwords ? 

 

 Thank you, 

 Christophe,







[flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread sailorsea21
Hi everyone, I have the following:

mx:XML id=testID format=e4x source=xml/test.xml/
mx:Text text={testID.result.(@now=='today').date}/

What var type can I use for testID.result.(@now=='today') to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result.(@now=='today');

mx:Text text={xmlvar.date}/

Thanks.

David



Re: [flexcoders] C and ActionScript

2009-02-05 Thread Nate Beck
Convert your C code into AS3 bytecode using Alchemy.  Alchemy will generate
a SWC file which you can use within Flex / ActionScript

On Thu, Feb 5, 2009 at 2:05 AM, Sam Lai samuel@gmail.com wrote:

   You can't, without a whole lot of plumbing in between, or possibly
 using the experimental Alchemy set of tools (labs.adobe.com).

 2009/2/5 christophe_jacquelin 
 christophe_jacque...@yahoo.frchristophe_jacquelin%40yahoo.fr
 :

  Hello,
 
  How to call a function of a library in C, from a line code in a flex
  application ?
 
  Thank you,
  Christophe,
 
 
 
 
  
 
  --
  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
 
 
 
 

  




-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] Memory leak in mx:HTML

2009-02-05 Thread Nate Beck
I just started with with the Adobe AIR HTML component this week.  I hadn't
noticed the memory leak, but of course I'm actively in development.  I'll
have a look at it today to see if it's happening to me as well.
Also, mx:HTML is a Flex wrapper for HTMLLoader, I wonder if the same memory
leak occurs when you just a straight HTMLLoader?

I also voted on the bug, since this is something that should be looked at.

Cheers

On Thu, Feb 5, 2009 at 3:25 AM, Tom Chiverton
tom.chiver...@halliwells.comwrote:

I seem to be able to reproduce a leak in mx:HTML by just placing it on
 the
 main application, as per https://bugs.adobe.com/jira/browse/SDK-19119

 Has anyone else seen this ?

 --
 Tom Chiverton

 

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

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word partner to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

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

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

  




-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] Problem in Streaming Live data using Flash Media Server

2009-02-05 Thread Nate Beck
When you say... present in the same directory.. which directory are you
referring to?  The FLV file resides in the same directory as your
application?
It's been a while since I've used FMS... but in Wowza Media Server there is
an audio folder where all of the stream FLV files are located.

On Thu, Feb 5, 2009 at 4:47 AM, akila_ksri akila_k...@yahoo.co.in wrote:

   I have the client application and the FMS running on the same machine,
 the client app connects to the server successfully but fails to play
 any content(Pre-recorded flv/swf) which is also present in the same
 directory using NetStream.play(contentPath); and i always get
 NetStream.Play.StreamNotFound
 Could anyone tell me if i am doing anything wrong?

 Any help would be greatly appreciated.

 Thanks in advance,
 Akila

  




-- 

Cheers,
Nate

http://blog.natebeck.net


RE: [flexcoders] Java enum in Flex3

2009-02-05 Thread Maciek Sakrejda
Thanks, Seth. I'd read the article, but your e-mail clarifies the
issues. I've looked over our usage and I think we're safe for now, but
this is sort of a time bomb, and it might make sense to fall back to
just Strings. The only alternative I see is ensuring to use .equals()
everywhere, which is tricky, especially when dealing with collections
and other data structures (since they'll already be using the standard
'==' equality checks).
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Seth Hodgson shodg...@adobe.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Java enum in Flex3
Date: Wed, 4 Feb 2009 21:14:29 -0800

Hi Maciek,

I don't know anything about Granite Data Services but a quick google
search returns this: http://www.graniteds.org/jira/browse/GDS-228

The reason why they're getting multiple instances of their enum AS
classes during deserialization is layed out in the post I linked to
below - without a readResolve() hook in the Player there's no way to
support reading singletons out of the AMF stream.

This means that you have potentially many duplicate instances of each
enum value floating around in the AVM. It looks like they've defined an
equals() method as an attempt to work around this, but while that's a
standard method defined on Java's base Object class there is no equals()
method defined in the core ECMAScript/ActionScript libraries. If I were
using client side enums in ActionScript, I'd expect simple equality
checks to work correctly and they won't with this approach.

Each of these classes will also add a bit to your swf size, but that's a
minor concern unless you're using tons of enums :)

I don't know what other value these classes may provide, perhaps some
help with data validation, but be careful in your code anywhere you're
expecting them to actually be singletons because they generally won't
be.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Maciek Sakrejda
Sent: Wednesday, February 04, 2009 5:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Java enum in Flex3

Interesting. Any thoughts on Granite Data Services' approach? There is a
custom externalization process for Java Enum objects, and a granite Enum
class in ActionScript that all your (generated) Enums extend. The enum
class takes care of reading/writing. The writeExternal() method just
writes the name of the Enum; readExternal() tries to find the name of
the object in the constants defined by the Enum. The RemoteAlias
metadata is set up as for a standard Java class.

Are we asking for trouble in using this method? Is there something
inherently dangerous here?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Seth Hodgson shodg...@adobe.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Java enum in Flex3
Date: Wed, 4 Feb 2009 16:20:33 -0800

BlazeDS and LCDS roundtrip Java enums to the client and back as Strings.
That's the only good option at present, and here's an in-depth
explanation: http://greetingsfromoakland.blogspot.com/2009/02/enums.html

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sunmoorthy1
Sent: Monday, December 29, 2008 1:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Java enum in Flex3

How to convert java enum values into Flex3 object.
Any one went thru this problem?
Please give your experties?

Sundar 









[flexcoders] Multiple tool tip styles

2009-02-05 Thread djhatrick
How do i apply multiple tooltip styles to a flex app? 

Thanks,
patrick



By the way: YahooGroups search sucks, ugh, i hate it, always busy, why
do we have to have this here?



[flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Tim Hoff

Yes, you'd have to extend DataGrid and override the mouseDownHandler and
mouseUpHandler functions.  if ( event.target is Button ) return;

-TH

--- In flexcoders@yahoogroups.com, Dennis Falling dfall...@... wrote:

 That's what I was trying- stopping propagation and preventing default.
 Apparently the datagrid gets the event first.

 On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@... wrote:

  Can you have the items catch the click event of the button and
prevent
  propagation?
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Dennis
  Falling dfalling@ wrote:
  
   I'm using a DataGrid. But the problem is that I want the selection
  behavior
   to behave normally, except for when the buttons are clicked.
   Thanks
  
   On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos 
   fotis.chatzinikos@ wrote:
  
if you are using a list or tile list there is a property
selectable
which you can make false.
   
   
   
On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfalling@ wrote:
   
Is there one involving item renderers? I believe I scoured
  your site
pretty thoroughly, but the only time I see selection behavior
being
overriden is inside an extended list or DataGrid. Is it
possible
  to pull
this off with only an item renderer?
   
Thanks
   
On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aharui@ wrote:
   
There a example on preventing list selection on my blog
   
   
   
*From:* flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
*On
Behalf Of *Dennis Falling
*Sent:* Tuesday, February 03, 2009 5:30 PM
*To:* flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com
*Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click
from
selecting row?
   
   
   
That would work for invalidating my selection, but I simply
want the
selection to never occur. That way if something was previously
  selected, it
isn't altered.
   
On Tue, Feb 3, 2009 at 5:08 PM, fourctv fourctv@ wrote:
   
have you tried datagrid.selectedItems=null?
   
   
   
--- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com
  flexcoders%40yahoogroups.com, Dennis
Falling dfalling@ wrote:

 I have an ItemRenderer with buttons in it. In the click
listener
functions
 for these buttons, I call event.stopImmediatePropagation
(and
 preventDefault, though that doesn't seem relevant), but the
row is
still
 selected. How can I prevent it from receiving the click and
highlighting
 itself?
 Thanks.

   
   
   
   
   
   
   
--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
Fotis.Chatzinikos@,
   
   
   
  
 
 
 






RE: [flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread Tracy Spratt
[Bindable]public var _xmlVar:XML;

 

private function init():void{

 _xmlVa = testID.result.(@now=='today')[0]; //NOTE the array[0]
brackets. 

...

 

All e4x expessions return an XMLList, even if there is only one node, so
you must specify that node toput it in an XML variable.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML - What var type can I use for my XML nodes?

 

Hi everyone, I have the following:

mx:XML id=testID format=e4x source=xml/test.xml/
mx:Text text={testID.result.(@now=='today').date}/

What var type can I use for testID.result.(@now=='today') to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result.(@now=='today');

mx:Text text={xmlvar.date}/

Thanks.

David





[flexcoders] Re: Hand Cursor and datagrid

2009-02-05 Thread Tim Hoff

Hi Alex,

The only problems with setting it on the renderers, is the vertical gap
between the renderer and the row.  The cursor will flicker back and
forth between the hand and pointer as you move it up and down the list. 
Perhaps the highlight indicator is a possible place to try.

-TH

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Set it on the renderers

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of shafram
 Sent: Tuesday, February 03, 2009 7:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Hand Cursor and datagrid


 I have a datagrid and for each row I would like to show the hand
 cursor (to indicate to users that it is clickable). I've tried setting
 useHandCursor and buttonMode to true on the datagrid but that makes
 the entire datagrid show the hand cursor. Has anyone done this before?
 Is there a way to do this?






RE: [flexcoders] Invoking other module's actions

2009-02-05 Thread Alex Harui
I'm still confused.  Importing and using a module in the main app links the 
module into the main app defeating the point of modules.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Wally Kolcz
Sent: Thursday, February 05, 2009 5:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Invoking other module's actions


Sorry if that was a little confusing...Here is the scenario.

I have a module (myProjects) that has a viewstack (projectsVS) that allows me 
to switch between a 2 different sections (indexes). I want to, when the use 
logs out, make sure that the module's viewstack is set to selectedIndex=0, so 
when the user logs back in, its back on the first view in the stack...does that 
make sense.

So, in my main application I imported the module (import 
edu.umich.mods.myProjects;) and in the  logout function I tried to use: 
myProjects.projectsVS.selectedIndex=0;

Funny thing is that Flex Builder's code hinting showed each piece as I typed 
it, but when I went to run it I get this error:

1119: Access of possibly undefined property projectsVS through a reference with 
static type Class.

Any ideas? Better way to do this? Thanks.



RE: [flexcoders] Re: Login / Password Form

2009-02-05 Thread Tracy Spratt
You could also store your authentication credentials in a file(xml?) on
the server.

 

The starting place is to choose your back-end platform/language(Java,
php, CF,.net, etc).  Then choose the RPC protocol(RemoteObject,
HTTPService, WebService) you will use between flex and that platform.
Then choose your Flex client UI style( ViewStack, pop-up, etc.)

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, February 05, 2009 9:53 AM
To: flexcoders@yahoogroups.com
Subject: re: [flexcoders] Re: Login / Password Form

 

I used a database and RemoteObject/Web Services to check a CFC with the
query to see if the username and password matches and returns any info I
need then I have something like this:

public function loginHandler(e:ResultEvent):void {
userData = e.result as ArrayCollection;
if (userData.length == 1){
 //Whatever you want to do.
}else{
username_txt.text = ;
password_txt.text = ;
Alert.show(Incorrect username and/or password.
Please try again.,Login Error);
}

}

I hide the login box and show the rest of the app which I have wrapped
in a canvas which visible is set to false.

If you dont want to have a database you could use an Array or Object to
store username and passwords hardcoded and check against them. Or if you
have just one username/password you could just use something like:

public function login(username:String, password:String):void {
if (username == someusername || password =
somepassword){
  //Your code to do whatever you want.
}else{
username_txt.text = ;
password_txt.text = ;
Alert.show(Incorrect username and/or password.
Please try again.,Login Error);
}

}



From: valdhor valdhorli...@embarqmail.com
Sent: Thursday, February 05, 2009 6:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Login / Password Form

These threads should get you started:

http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.html
http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.htm
l 
http://www.nabble.com/flex-login-popup-help-needed-please-tp2077
2482p20833766.html
http://www.nabble.com/flex-login-popup-help-needed-please-tp207
72482p20833766.html 

HTH

Steve

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, christophe_jacquelin
christophe_jacque...@... wrote:

 Hello, 
 
 I am searching a code source exemple for a classical login / password 
 form in a flex application.
 
 Did I need absolutely a database to store Passwords ? 
 
 Thank you, 
 Christophe,





 





RE: [flexcoders] Displaying UIComponents vertically

2009-02-05 Thread Alex Harui
Each child of VBox must report have either its measuredWidth/Height or 
explicitWidth/Height set, otherwise the VBox doesn't know how big they are

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of annelie2008
Sent: Thursday, February 05, 2009 4:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Displaying UIComponents vertically


Hi,

I'm having trouble with the layout of the musical score I'm
displaying. It's generated from an xml file and I want the staves to
be placed on top of each other but I can't make it work. I have a
class which draws out the lines and the notes on it, so I instantiate
that class, create the lines and notes, then create a UIComponent to
add it to. There's three staves, so I do this for all three, then I
add them all to a VBox which I display. I thought this would mean
they'd be stacked on top of each other, but they're horizontally
placed (the second two a little bit lower than the first for some
reason). I'm assuming I'm missing something really obvious, so I'd be
grateful if anyone could point me in the right direction.

Here's the code:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
initialize=initializeHandler()
horizontalAlign=left

mx:Script
![CDATA[
import mx.containers.HBox;
import mx.containers.VBox;
import mx.containers.Canvas;
import mx.core.UIComponent;
import test.DrawNotes;

public var myXmlList:XMLList;

private function initializeHandler():void
{
//myXmlList = scoreXml.children();
// loop through this xml to get the
attributes for the lines and fonts, but for now just hardcode it

// MEASURE 1
var measure1:DrawNotes = new DrawNotes
();

measure1.createLine(0, 0, 0,
20, Black, 0.3, );
measure1.createLine(350, 0, 350,
20, Black, 0.3, );

measure1.createLine(0, 0, 350,
0, Black, 0.3, );
measure1.createLine(0, 5, 350,
5, Black, 0.3, );
measure1.createLine(0, 10, 350,
10, Black, 0.3, );
measure1.createLine(0, 15, 350,
15, Black, 0.3, );
measure1.createLine(0, 20, 350,
20, Black, 0.3, );
measure1.createGlyph(1Et, 14,
55.5, #FF00, 14, q, , 58, 10, );
measure1.createGlyph(1Et, 14,
55.5, #FF00, 14, q, , 116, -2.5, );
measure1.createGlyph(1Et, 14,
55.5, #FF00, 14, h, , 174, 2.5, );

// MEASURE 2
var measure2:DrawNotes = new DrawNotes
();
measure2.createLine(350, 0, 350,
20, Black, 0.3, );
measure2.createLine(700, 0, 700,
20, Black, 0.3, );
measure2.createLine(350, 0, 700,
0, Black, 0.3, );
measure2.createLine(350, 5, 700,
5, Black, 0.3, );
measure2.createLine(350, 10, 700,
10, Black, 0.3, );
measure2.createLine(350, 15, 700,
15, Black, 0.3, );
measure2.createLine(350, 20, 700,
20, Black, 0.3, );
measure2.createGlyph(1Et, 14,
55.5, #FF00, 14, w, , 408, 2, );

// MEASURE 3
var measure3:DrawNotes = new DrawNotes
();
measure3.createLine(700, 0, 700,
20, Black, 0.3, );
measure3.createLine(1050, 0, 1050,
20, Black, 0.3, );
measure3.createLine(700, 0, 1050,
0, Black, 0.3, );
measure3.createLine(700, 5, 1050,
5, Black, 0.3, );
measure3.createLine(700, 10, 1050,
10, Black, 0.3, );
measure3.createLine(700, 15, 1050,
15, Black, 0.3, );
measure3.createLine(700, 20, 1050,
20, Black, 0.3, );
measure3.createGlyph(1Et, 14,
55.5, #FF00, 14, h, , 758, 0, );
measure3.createGlyph(1Et, 14,
55.5, #FF00, 14, h, , 874, 0, );

var uic1:UIComponent = new UIComponent
();
uic1.addChild(measure1);

var uic2:UIComponent = new UIComponent
();
uic2.addChild(measure2);

var uic3:UIComponent = new UIComponent
();
uic3.addChild(measure3);

var verticalBox:VBox = new VBox();
verticalBox.addChild(uic1);
verticalBox.addChild(uic2);
verticalBox.addChild(uic3);
addChild(verticalBox);
}
]]
/mx:Script

mx:XML id=scoreXml source=scoreCanvas.xml /

/mx:Application

Thanks,

Annelie



RE: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-05 Thread Alex Harui
TextArea defaults to editable.  Use Text, or just set wordWrap=true and use the 
default renderer.  It knows how to do multiline

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flap Flap
Sent: Thursday, February 05, 2009 1:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom List Item Render to have multiline (so 
variable Height)


Thanks guys for all that clues.

I will give a try and send feedback.
For info, I've just used TextArra for a multiline text item, I don't need any 
editable behavior on it.

Thx
Benoit aka Flapflap



RE: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Alex Harui
Sure, because it set up its listener first.  You can set your listener at a 
higher priority.  I'd still start with my list selection example on my blog.  
You should be able to tweak it to just not allow selection if the event.target 
is a button.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dennis Falling
Sent: Wednesday, February 04, 2009 10:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?


That's what I was trying- stopping propagation and preventing default.  
Apparently the datagrid gets the event first.
On Wed, Feb 4, 2009 at 10:26 PM, arieljake 
arielj...@yahoo.commailto:arielj...@yahoo.com wrote:

Can you have the items catch the click event of the button and prevent
propagation?


--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Dennis 
Falling dfall...@... wrote:

 I'm using a DataGrid. But the problem is that I want the selection
behavior
 to behave normally, except for when the buttons are clicked.
 Thanks

 On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos 
 fotis.chatzini...@... wrote:

  if you are using a list or tile list there is a property selectable
  which you can make false.
 
 
 
  On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@... wrote:
 
  Is there one involving item renderers? I believe I scoured
your site
  pretty thoroughly, but the only time I see selection behavior being
  overriden is inside an extended list or DataGrid. Is it possible
to pull
  this off with only an item renderer?
 
  Thanks
 
  On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@... wrote:
 
  There a example on preventing list selection on my blog
 
 
 
  *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] *On
  Behalf Of *Dennis Falling
  *Sent:* Tuesday, February 03, 2009 5:30 PM
  *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
  selecting row?
 
 
 
  That would work for invalidating my selection, but I simply want the
  selection to never occur. That way if something was previously
selected, it
  isn't altered.
 
  On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@... wrote:
 
  have you tried datagrid.selectedItems=null?
 
 
 
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
flexcoders%40yahoogroups.comhttp://40yahoogroups.com, Dennis

  Falling dfalling@ wrote:
  
   I have an ItemRenderer with buttons in it. In the click listener
  functions
   for these buttons, I call event.stopImmediatePropagation (and
   preventDefault, though that doesn't seem relevant), but the row is
  still
   selected. How can I prevent it from receiving the click and
  highlighting
   itself?
   Thanks.
  
 
 
 
 
 
 
 
  --
  Fotis Chatzinikos, Ph.D.
  Founder,
  Phinnovation
  fotis.chatzini...@...,
 
 
 





RE: [flexcoders] Re: Array Collection

2009-02-05 Thread Tracy Spratt
If it is a dynamic object, you can use for..in or for..each loops to
enumerate all of the properties.

 

Note, If you have an object, like: var oLookup:Object =  {p1:v1,
p2:v2, pa:va, pb:vb};

You can randomly access the properties like this:

var sPropertyName:String = pa;

var sPropertyValue:String = oLookup[sPropertyName];

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: Thursday, February 05, 2009 6:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Array Collection

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, thelordsince1984 lore...@... wrote:

 Hi, 
 
 i've have an array collection of objects...every object is like this
one:
 
 - id:path
 
 private function create(id:String, path:String):void {
 var arrayCollection:ArrayCollection = new ArrayCollection();
 var o:Object = {id:path};
 arrayCollection.addItem(o);
 }
 
 i would create a function that has a parameter, the id, and check if
 there is a correspondence between the parameter id function and that
 one into the array collection. In this case i would also trace the
 path value...
 
 
 
 can you help me?
 
 thanks 
 Regards
 Lorenzo


it's ok..

instead if i would parse an object that contains strings?

for example i've an object that has three strings like this

- test1, test2, test3 

so i would trace strings separately..how can i do this?





[flexcoders] ColorPicker - without the picker!

2009-02-05 Thread tchredeemed
I was wondering if I could build a flex app that has the SwatchPanel
by default, instead of having to click on the icon to have it drop down.

Yes/No?



[flexcoders] How to increase datagrid Last Column WIDTH

2009-02-05 Thread Dharmendra Chauhan
HI All,
I am struggling with last column of flex2 dataGrid.
I have set HS policy to auto, all column are resizable except last.
I can decrease its width but It does not allow me increase it.

Does anybody know how STRECH last column widht to increase at at right 
of the DG

Thanks,
Dharmendra  

   



RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread David Kramer
 I read on their site that licensing is for 1 workstation and unlimited
websiteshow does that work when your in the AIR environment?

  - Original Message -
  From: Grant Davies
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex
  component ?
  Date: Thu, 5 Feb 2009 08:38:07 -0500

  I’ve blogged how to get the 3dWall working as flex component using
  the Flex Component kit for flash - here :

  
http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall-working-in-flex-as-flex-component.html

  Cheers

  Grant

  [IMAGE]

  ...

  › b l u e t u b e i n t e r a c t i v e.

  .: Development solutions for creatives :.

  .: grant davies

  .: 404.428.6839 (c)

  .: 404.921.9550 (F)

  › gr...@bluetubeinteractive.com

  http://www.bluetubeinteractive.com

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
  On Behalf Of Amy
  Sent: Wednesday, February 04, 2009 8:28 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
  component ?

  --- In flexcoders@yahoogroups.com, Grant Davies gr...@... wrote:
  
   Thanks Amy,
  
  
  
   I actually managed to get it to work as a Flex component in the
  end, it
   was pretty fiddly but once figure out its simple, I can create the
   3dwall instance and add it to a view state or container and don't
  have
   ANY code in flash at all. But I still have complete code
  completion in
   flex from the generated swc.

  I chose to put some code in Flash to clean up the interface and
  make it more compatible with Flex.

   Basically my fla has the 3dwall in the library and I export a swc,
  pull
   into flex and wrap it in a UIComponent and I'm done.
  
  
  
   I'm going to blog about how to set it up if you're interested I
  can let
   you know once I post.

  That would be great. There's a user group I was supposed to speak to
  about this process, but it turns out that there are very few free
  Flash components that will accept any kind of a data source except
  the path to an XML file. Since I wasn't able to give them the 3D
  wall (obviously) and I couldn't find a free component that I could
  let them use for hands-on practice, I'm in the process of writing an
  example component I can use to demo.

  The problem is that I can't stop myself from building it right for
  Flex in the first place, so I won't be able to demo all the things
  you have to overcome to work with a component that's not very robust.

  I can point them to your blog post to get more info on that.

  Thanks!

  -Amy

  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
  2/3/2009 5:48 PM

image001.png 



David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com


RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread Wally Kolcz
It would probably be best for you to contact them regarding that issue. Most 
companies that make Flash widgets don't think about AIR.


From: David Kramer davidkra...@consultant.com
Sent: Thursday, February 05, 2009 10:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ? 

I read on their site that licensing is for 1 workstation and unlimited 
websiteshow does that work when your in the AIR environment?

- Original Message -

From: Grant Davies 

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

Date: Thu, 5 Feb 2009 08:38:07 -0500

I've blogged how to get the 3dWall working as flex component using
the Flex Component kit for flash - here : 
http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall-working-in-flex-as-flex-component.html
 CheersGrant ... b l u e t u b e i n t 
e r a
c t i v e..: Development solutions for
creatives :..: grant davies.: 404.428.6839 (c).: 404.921.9550 (F)
gr...@bluetubeinteractive.comhttp://www.bluetubeinteractive.com From:
flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Amy
Sent: Wednesday, February 04, 2009 8:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
component ? 

--- In flexcoders@yahoogroups.com,
Grant Davies gr...@... wrote:



 Thanks Amy,

 

 

 

 I actually managed to get it to work as a Flex component in the 

end, it

 was pretty fiddly but once figure out its simple, I can create the

 3dwall instance and add it to a view state or container and don't 

have

 ANY code in flash at all. But I still have complete code 

completion in

 flex from the generated swc. 

I chose to put some code in Flash to clean up the interface and 

make it more compatible with Flex.

 Basically my fla has the 3dwall in the library and I export a swc, 

pull

 into flex and wrap it in a UIComponent and I'm done.

 

 

 

 I'm going to blog about how to set it up if you're interested I 

can let

 you know once I post.

That would be great. There's a user group I was supposed to speak to 

about this process, but it turns out that there are very few free 

Flash components that will accept any kind of a data source except 

the path to an XML file. Since I wasn't able to give them the 3D 

wall (obviously) and I couldn't find a free component that I could 

let them use for hands-on practice, I'm in the process of writing an 

example component I can use to demo.

The problem is that I can't stop myself from building it right for 

Flex in the first place, so I won't be able to demo all the things 

you have to overcome to work with a component that's not very robust.

I can point them to your blog post to get more info on that.

Thanks!

-Amy

No virus
found in this incoming message.

Checked by AVG - http://www.avg.com

Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date: 2/3/2009 5:48
PM

 image001.png 

David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com





[flexcoders] Using FABridge with SWFObject 2?

2009-02-05 Thread Keith Hughitt
Hi all,

I was wondering if anyone has been able to successful use SWFObject with
the Flex-Ajax Bridge (FABridge)?

The SWFObject wiki offers a modified version of FABridge.js is supposed
to resolve issues with supporting the FABridge, but I have not had any
luck with it. I have a simple Flex application with a function that
calls alert:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical width=640 height=480
 fab:FABridge xmlns:fab=bridge.* /
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 public function test():void {
 Alert.show(You called?);
 }
 ]]
 /mx:Script
/mx:Application

And here is what I have on the JavaScript side:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;
html
 head
 titleFABridge Test/title
 meta http-equiv=Content-Type content=text/html;
charset=utf-8 /
 script src=bridge/FABridge.js type=text/javascript /
 script src=swfobject.js type=text/javascript /
 script type=text/javascript
 swfobject.registerObject(myFlashContent, 9.0.0,
expressInstall.swf);
 /script
 /head
 body
 div
 object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
width=640 height=480 id=myFlashContent
 param name=movie value=out.swf /
 !--[if !IE]--
 object type=application/x-shockwave-flash
data=out.swf width=640 height=480
 !--![endif]--
 a href=http://www.adobe.com/go/getflashplayer;
 img
src=http://www.adobe.com/images/shared/download_buttons/get_flash_playe\
r.gif alt=Get Adobe Flash player /
 /a
 !--[if !IE]--
 /object
 !--![endif]--
 /object
 /div
 input type=button id=bridgeBtn value=Talk to Flex
click=var flexApp = FABridge.flash.root(); flexApp.test(); /
 /body
/html
I've tried a lot of different things with no success. Initially I
thought the problem was related to compatability issues jQuery, although
even by doing things manually It does not want to work. I also tried
manually setting the bridge to use via flashvars:

param name=flashvars value=bridgeName=testBridge /
FABridge.testBridge.root();

But that did not do the trick either.

Finally, I noticed that with the above code, it seems like only one
external script, either FABridge.js or swfobject.js is loaded, depending
on which one comes first, according to Firebug. I.e. when swfobject.js
is loaded first, Firebug only sees it. When FABridge.js is loaded first,
Firebug only sees that.


Any ideas? Any advice would be greatly appreciated.

Thanks!
Keith





Re: [flexcoders] How to increase datagrid Last Column WIDTH

2009-02-05 Thread Jeffry Houser

 Columns are only resizable within DataGrid, and clicking / dragging 
columns does not change the width of the DataGrid. 

 If I understand correctly you want to be able to expand the DataGrid by 
clicking and dragging the last column; is that correct? 

 Off the top of my head, I don't know of any default way to do that. 

Dharmendra Chauhan wrote:
 HI All,
 I am struggling with last column of flex2 dataGrid.
 I have set HS policy to auto, all column are resizable except last.
 I can decrease its width but It does not allow me increase it.

 Does anybody know how STRECH last column widht to increase at at right 
 of the DG

 Thanks,
 Dharmendra  





 

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




   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders] Expand Panel in VDividedBox like TourDeFlex

2009-02-05 Thread Jeffry Houser


Look into the Flex MDI project. 


http://code.google.com/p/flexmdi/

I don't know if that is what is used by Tour De Flex, but I believe it 
can produce similar functionality. 


Monali Gandhi wrote:

Hi there...
can anybody teach me how can i do expand panel effect like
TourDeFlex in the VDividedBox. It's seem like Accordian effect but it
using VDividedBox.

Can anybody help me.

Best Regards,
Monali






--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: Multiple tool tip styles

2009-02-05 Thread valdhor
I have no idea on your tooltip question but in regards to YahooGroups
search, I have given up on it. Either it is busy or doesn't give me
any results (Like I know something was posted in the past few weeks
but when I search, the latest results are from October of 2008.

I now use Nabble for my searches:

http://www.nabble.com/FlexCoders-f16212.html


--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 How do i apply multiple tooltip styles to a flex app? 
 
 Thanks,
 patrick
 
 
 
 By the way: YahooGroups search sucks, ugh, i hate it, always busy, why
 do we have to have this here?





[flexcoders] very strange combobox problem when switching dataproviders

2009-02-05 Thread Pan Troglodytes
I'm running into something fairly perplexing.  Read the following code and
think of what you'd expect it to do when you click the change button.  Then
run it and click the change button.

?xml version=1.0 encoding=utf-8?
mx:Application
  xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
  creationComplete=cc()
  
  mx:Script
![CDATA[
  import mx.collections.ArrayCollection;

  public var d1:ArrayCollection = new ArrayCollection([{label:one},
{label:two}, {label:three}]);
  public var d2:ArrayCollection = new ArrayCollection([{label:a},
{label:b}, {label:c}]);
  //public var d1:Array = [{label:one}, {label:two},
{label:three}];
  //public var d2:Array = [{label:a}, {label:b}, {label:c}];

  private function cc():void
  {
c1.dataProvider = d1;
c1.dataProvider = d2;
c1.selectedIndex = 1;
  }

  private function change():void
  {
trace();
trace();
trace(  before change: );
trace(c1.selectedIndex:, c1.selectedIndex);
trace(c1.selectedItem: , c1.selectedItem.label);

d1.removeItemAt(0);
//d1.splice(0, 1);

trace()
trace(  after change:  );
trace(c1.selectedIndex:, c1.selectedIndex);
trace(c1.selectedItem: , c1.selectedItem.label);
  }
]]
  /mx:Script
  mx:ComboBox id=c1/
  mx:Button label=change click=change()/
/mx:Application


What does it do?  Well, the combobox changes from saying b to a.  The
trace says the following:
  before change:
c1.selectedIndex: 1
c1.selectedItem:  b

  after change:
c1.selectedIndex: 0
c1.selectedItem:  b

This is completely baffling.  My only guess is that somewhere in the guts of
combobox or its ancestors, it is registering for changes on a dataProvider
and not unregistering them when the dataProvider changes.  List does not
seem to suffer the same problem.

If you comment out the ArrayCollection-based version and uncomment the
Array-based version, it works as expected.

My next stop is a bug report, but I figured it'd be worth bringing up in
case anyone already knows of a bug report (kind of hard criteria to search
for) or a workaround if you need to use ArrayCollections.

-- 
Jason


Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Dennis Falling
Wow, I don't know how many times I've typed ,0 and ignored priority.
 Thanks!

On Thu, Feb 5, 2009 at 12:14 PM, Alex Harui aha...@adobe.com wrote:

Sure, because it set up its listener first.  You can set your listener
 at a higher priority.  I'd still start with my list selection example on my
 blog.  You should be able to tweak it to just not allow selection if the
 event.target is a button.



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Dennis Falling
 *Sent:* Wednesday, February 04, 2009 10:20 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting
 row?



 That's what I was trying- stopping propagation and preventing default.
  Apparently the datagrid gets the event first.

 On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@yahoo.com wrote:

 Can you have the items catch the click event of the button and prevent
 propagation?



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 

  I'm using a DataGrid. But the problem is that I want the selection
 behavior
  to behave normally, except for when the buttons are clicked.
  Thanks
 
  On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos 

  fotis.chatzini...@... wrote:
 
   if you are using a list or tile list there is a property selectable
   which you can make false.
  
  
  

   On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@... wrote:
  
   Is there one involving item renderers? I believe I scoured
 your site
   pretty thoroughly, but the only time I see selection behavior being
   overriden is inside an extended list or DataGrid. Is it possible
 to pull
   this off with only an item renderer?
  
   Thanks
  

   On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@... wrote:
  
   There a example on preventing list selection on my blog
  
  
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *Dennis Falling
   *Sent:* Tuesday, February 03, 2009 5:30 PM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
   selecting row?
  
  
  
   That would work for invalidating my selection, but I simply want the
   selection to never occur. That way if something was previously
 selected, it
   isn't altered.
  

   On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@... wrote:
  
   have you tried datagrid.selectedItems=null?
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com

 flexcoders%40yahoogroups.com, Dennis


   Falling dfalling@ wrote:
   
I have an ItemRenderer with buttons in it. In the click listener
   functions
for these buttons, I call event.stopImmediatePropagation (and
preventDefault, though that doesn't seem relevant), but the row is
   still
selected. How can I prevent it from receiving the click and
   highlighting
itself?
Thanks.
   
  
  
  
  
  
  
  
   --
   Fotis Chatzinikos, Ph.D.
   Founder,
   Phinnovation

   fotis.chatzini...@...,
  
  
  
 



   



[flexcoders] What comes out of a datagrid

2009-02-05 Thread Wally Kolcz
Lets say I have 2 DataGrids, one has user info in it (populated with a binded 
ArrayCollection) and the other is blank (lets call it id=teamDG). You can 
drag the people from the populated to the blank to populate it. Got that part 
to work fine.

When you have dragged all the people you wanted to the blank one and then 
wanted to save that new group of people, how can you go about saving them? Is 
there a specific array or object associated with that DataGrid (teamDG) which 
then you can pass to a function to populate a database? Any examples or 
tutorials out there? Thanks.



[flexcoders] AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
I've got a vertical axis with an axisrenderer and I'm trying to rotate
the labels 90 degrees.  I'm referring to a font embedded in a
stylesheet. The labels won't display - it appears that room is being
made for the labels to appear, but the labels aren't getting rendered.

I'm using MyriadWebPro as the embedded font and I've also tried this
with Arial with the same results. I've also tried this with no label
rotation at all - but no dice.  If I stipulate a font family including
device fonts, the labels will render, but no rotation is available. 

Has anyone seen this? 

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)


Re: [flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
Hi Tracy, I get An Internal build error...
with:

text={_xmlVar.date}


Thanks!

-David





From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 1:03:41 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes?


[Bindable]public var _xmlVar:XML;
 
private function init():void{
 _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. 
…
 
All e4x expessions return an XMLList, even if there is only one node, so you 
must specify that node toput it in an XML variable.
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcod...@yahoogro ups.com
Subject:[flexcoders] XML - What var type can I use for my XML nodes?
 
Hi everyone, I have the following:

mx:XML id=testID format=e4x source=xml/ test.xml /
mx:Text text={testID. result.(@ now=='today' ).date}/ 

What var type can I use for testID.result. (@now=='today' ) to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result. (@now=='today' );

mx:Text text={xmlvar. date}/

Thanks.

David



  

[flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread valdhor
Did you notice that Tracy had an error in his syntax? Did you fix it?

_xmlVa = testID.result. (@now=='today' )[0];

should have been:

_xmlVar = testID.result. (@now=='today' )[0];

ie. He forgot the r on the end.


--- In flexcoders@yahoogroups.com, - - sailorse...@... wrote:

 Hi Tracy, I get An Internal build error...
 with:
 
 text={_xmlVar.date}
 
 
 Thanks!
 
 -David
 
 
 
 
 
 From: Tracy Spratt tspr...@...
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 5, 2009 1:03:41 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 
 
 [Bindable]public var _xmlVar:XML;
  
 private function init():void{
  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
 …
  
 All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
 
 
 From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
 Sent: Thursday, February 05, 2009 10:28 AM
 To: flexcod...@yahoogro ups.com
 Subject:[flexcoders] XML - What var type can I use for my XML nodes?
  
 Hi everyone, I have the following:
 
 mx:XML id=testID format=e4x source=xml/ test.xml /
 mx:Text text={testID. result.(@ now=='today' ).date}/ 
 
 What var type can I use for testID.result. (@now=='today' ) to simply 
 my text string?
 
 I would like to have the following:
 
 [Bindable]
 public var xmlvar:String = testID.result. (@now=='today' );
 
 mx:Text text={xmlvar. date}/
 
 Thanks.
 
 David





[flexcoders] Re: very strange combobox problem when switching dataproviders

2009-02-05 Thread kuroiryu42
Yep its a bug, didn't bother to look it up but if you need a work around
you could extend and override the combobox collectionChangeHandler
look for the reset kind and remove the listener at that point.

--- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@...
wrote:

 I'm running into something fairly perplexing.  Read the following
code and
 think of what you'd expect it to do when you click the change
button.  Then
 run it and click the change button.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application
   xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=vertical
   creationComplete=cc()
   
   mx:Script
 ![CDATA[
   import mx.collections.ArrayCollection;
 
   public var d1:ArrayCollection = new
ArrayCollection([{label:one},
 {label:two}, {label:three}]);
   public var d2:ArrayCollection = new ArrayCollection([{label:a},
 {label:b}, {label:c}]);
   //public var d1:Array = [{label:one}, {label:two},
 {label:three}];
   //public var d2:Array = [{label:a}, {label:b}, {label:c}];
 
   private function cc():void
   {
 c1.dataProvider = d1;
 c1.dataProvider = d2;
 c1.selectedIndex = 1;
   }
 
   private function change():void
   {
 trace();
 trace();
 trace(  before change: );
 trace(c1.selectedIndex:, c1.selectedIndex);
 trace(c1.selectedItem: , c1.selectedItem.label);
 
 d1.removeItemAt(0);
 //d1.splice(0, 1);
 
 trace()
 trace(  after change:  );
 trace(c1.selectedIndex:, c1.selectedIndex);
 trace(c1.selectedItem: , c1.selectedItem.label);
   }
 ]]
   /mx:Script
   mx:ComboBox id=c1/
   mx:Button label=change click=change()/
 /mx:Application
 
 
 What does it do?  Well, the combobox changes from saying b to a.
 The
 trace says the following:
   before change:
 c1.selectedIndex: 1
 c1.selectedItem:  b
 
   after change:
 c1.selectedIndex: 0
 c1.selectedItem:  b
 
 This is completely baffling.  My only guess is that somewhere in the
guts of
 combobox or its ancestors, it is registering for changes on a
dataProvider
 and not unregistering them when the dataProvider changes.  List does not
 seem to suffer the same problem.
 
 If you comment out the ArrayCollection-based version and uncomment the
 Array-based version, it works as expected.
 
 My next stop is a bug report, but I figured it'd be worth bringing up in
 case anyone already knows of a bug report (kind of hard criteria to
search
 for) or a workaround if you need to use ArrayCollections.
 
 -- 
 Jason





[flexcoders] AlivePdf and scroll bars

2009-02-05 Thread kuroiryu42
I have a list that has scroll bars that I want to go away when I drop
it into the PDF. I am just using the addImage function of PDF so it is
basically taking a screen shot of the list that i pass in.

Anyone have a solution for this?

Thanks



[flexcoders] localConnection not working from Air to Air

2009-02-05 Thread luvfotography
Any hints on getting a localConnection to work from AIR to AIR?
It works from FLEX to FLEX, I am using the code from the livedocs
example.   I am getting a statusEvent of 'error'.
thanks,
 

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute 
 
 
creationComplete=initConn()
backgroundAlpha=0 backgroundColor=#FF
mx:Script
![CDATA[
import flash.net.LocalConnection;

private var conn:LocalConnection;

private function initConn():void{
btnSend.addEventListener(MouseEvent.CLICK, sendMessage);
conn = new LocalConnection();
conn.allowDomain('*');
conn.addEventListener(StatusEvent.STATUS, onStatus);
}

private function sendMessage(event:MouseEvent):void {
conn.send(localConn, localconnectionHandler, 
inputTask.text);
}

private function onStatus(event:StatusEvent):void {
switch (event.level) {
case status:
labelStatus.text = 
LocalConnection.send() succeeded;
break;
case error:
labelStatus.text = 
LocalConnection.send() failed;
break;
}
}
]]
/mx:Script
mx:Panel horizontalCenter=0 verticalCenter=0
mx:Form width=100% height=100% horizontalCenter=0
verticalCenter=0
mx:FormItem label=Enter Task
mx:TextInput id=inputTask/
/mx:FormItem
mx:FormItem label=Send Task 
mx:Button id=btnSend label=Send/
/mx:FormItem
mx:ControlBar
mx:Label id=labelStatus text=/
/mx:ControlBar
/mx:Form
/mx:Panel
 
/mx:WindowedApplication


?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
creationComplete=InitConn()
backgroundAlpha=0   width=600 height=600
backgroundColor=#FF
mx:Script
![CDATA[
import flash.net.LocalConnection;

private var conn:LocalConnection;

private function InitConn():void{
conn = new LocalConnection();
conn.allowDomain('*');
conn.client = this;
try {
conn.connect(localConn);
textareaTasks.text= textareaTasks.text 
+ CONNECTING TO
playlistDebug + \n;
} catch (error:ArgumentError) {
trace(Can't connect.);
textareaTasks.text= textareaTasks.text 
+ Can't connect. + \n;
}
}

public function localconnectionHandler(msg:String):void 
{
textareaTasks.text= textareaTasks.text + msg + 
\n;
}

private function clearTasks(event:MouseEvent):void {
textareaTasks.text=;
}

]]
/mx:Script
mx:Panel  horizontalCenter=0
verticalCenter=0.5
verticalGap=15
paddingLeft=20 paddingRight=20 paddingBottom=20 
paddingTop=20
height=100% width=100%
mx:Label text=Trace output:/
mx:TextArea id=textareaTasks
top=20 left=20 right=20 bottom=20
width=100% height=100%/
mx:HBox
mx:Button id=btnClearTasks click=clearTasks(event)
label=Clear /
mx:Button id=connectagain 
click=InitConn( )
label=ConnectAgain /
/mx:HBox
/mx:Panel 

/mx:WindowedApplication





Re: [flexcoders] Upload images

2009-02-05 Thread Alan K
http://weblog.cahlan.com/2006/12/flex-upload-component.html


Hello, 
I want to Upload images from the user computer into my flex
application. 
Which instruction to use to upload images ?
Thank you,
Christophe, 




Re: [flexcoders] Login / Password Form

2009-02-05 Thread Alan K
No, you can use a PHP file, for example, to hold and check against.


Hello, 
I am searching a code source exemple for a classical login / password
form in a flex application.
Did I need absolutely a database to store Passwords ?
Thank you, 
Christophe, 




RE: [flexcoders] Re: Multiple tool tip styles

2009-02-05 Thread Gregor Kiddie
Can I suggest the SearchCoder AIR app? It's very nice!

 

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
blocked::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...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: 05 February 2009 19:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Multiple tool tip styles

 

I have no idea on your tooltip question but in regards to YahooGroups
search, I have given up on it. Either it is busy or doesn't give me
any results (Like I know something was posted in the past few weeks
but when I search, the latest results are from October of 2008.

I now use Nabble for my searches:

http://www.nabble.com/FlexCoders-f16212.html
http://www.nabble.com/FlexCoders-f16212.html 





RE: [flexcoders] AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
Additional info - the chart is in a TitleWindow.  There seems to be a
lot of posts about this and similar issues with charts within modules,
etc.  I just haven't been able to get the magic incantation that will
make the fonts render.  I could just say f-it and render the labels
using device fonts and without rotation, but that kinda runs against the
grain, if you know what I mean.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Thursday, February 05, 2009 2:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AxisRenderer Embedded Font Bug?


I've got a vertical axis with an axisrenderer and I'm trying to rotate
the labels 90 degrees.  I'm referring to a font embedded in a
stylesheet. The labels won't display - it appears that room is being
made for the labels to appear, but the labels aren't getting rendered.

I'm using MyriadWebPro as the embedded font and I've also tried this
with Arial with the same results. I've also tried this with no label
rotation at all - but no dice.  If I stipulate a font family including
device fonts, the labels will render, but no rotation is available. 

Has anyone seen this? 

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)




--
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] Re: Detect exeptions - help!!

2009-02-05 Thread John McCormack
Thanks Alex.

I had a peek at your blog and followed the link for localhost but they 
say it doesn't work at for the local ip address of 127.0.0.1 - on 
Windows. All the same, thank you for telling me about it, it sounds 
really good. I shall give it a go for other purposes. I wonder if 
Charles will capture localhost traffic?

John

oneworld95 wrote:
 John -- WireShark (free download from http://www.wireshark.org/) is my
 current favorite. It shows all the network traffic and can be filtered
 based on IP, etc. I've blogged about it here with instructions on
 using it:
 http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html


 - Alex C

 --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:
   
 Thanks, Alex. It's not hanging on the Flex side -- the server response
 is never received. Using WireShark (http://www.wireshark.org/), I was
 able to see it's not hanging at all, but continually sending messages
 to the Java servlet but getting nothing back in reply. 

 That's what led me to investigate the Java code more closely. The
 BufferedImage object was receiving some JPG images that it couldn't
 handle; so it spun away for a while before throwing an exception. For
 whatever reason, the exception never made it back to the Flex side. 

 All is well now: I took out the BufferedImage object and am passing
 the InputStream directly to the Java Advanced Imaging API code, which
 resizes the image and writes it to disk. One issue: JPG images with
 CMYK color spaces come out with their colors mangled; but that's a
 limitation of the server code and has nothing to do with Flex.

 - Alex

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
 It would be unusual for Flex to hang waiting for the server.  Use a
   
 network monitor to see what's going on.  Is Flex really hung?  You
 can't hit a button or anything?
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
   
 On Behalf Of oneworld95
 
 Sent: Tuesday, February 03, 2009 7:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Detect exeptions - help!!


 I've run into a very frustrating situation and need your help:

 - Flex uploads a file to the server
 - The server reads it into a Java BufferedImage object.
 - However, Java sometimes takes 40 seconds or longer to reply
 - In some cases it has difficulty reading the file.

 In the cases of problems, Flex just hangs. It doesn't reply with
 anything. Is it timing out? Any help appreciated.

   



 

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





   




[flexcoders] Re: Using FABridge with SWFObject 2?

2009-02-05 Thread Keith Hughitt
Update:

I figured out how to get the FABridge to work with SWFObject. Here is a
simple working example with a button which when pressed calls a function
test in the Flex app:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;
html
 head
 titleFABridge Test/title
 meta http-equiv=Content-Type content=text/html;
charset=utf-8 /
 script src=bridge/FABridge.js type=text/javascript /
 script src=swfobject.js type=text/javascript /
 script type=text/javascript
 swfobject.registerObject(myFlashContent, 9.0.0,
expressInstall.swf);
 /script
 /head
 body
 div
 object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
width=640 height=480 id=myFlashContent
 param name=movie value=out.swf /
 !--[if !IE]--
 object type=application/x-shockwave-flash
data=out.swf width=640 height=480
 !--![endif]--
 a href=http://www.adobe.com/go/getflashplayer;
 img
src=http://www.adobe.com/images/shared/download_buttons/get_flash_playe\
r.gif alt=Get Adobe Flash player /
 /a
 !--[if !IE]--
 /object
 !--![endif]--
 /object
 /div
 input type=button id=bridgeBtn value=Talk to Flex
onclick=var flexApp = FABridge.flash.root(); flexApp.test(); /
 /body
/html
I have not been able to get the bridge/SWFObject to play nicely with
Prototype/jQuery, however. I would like to instantiate the FABridge when
the DOM is loaded, and then store a reference to be called periodically
later. So far the only thing that has worked for me is to instantiate it
as it's used, sometime after the DOM is loaded. When I try to use either
Prototype's Event.observer(window,) or jQuery's $() after loading
FABridge.js nothing happens.

If anyone has any idea why this is, I would be very interested to find
out.

Keith




Re: [flexcoders] Re: Detect exeptions - help!!

2009-02-05 Thread John McCormack
Thanks valdhor,

Does Charles manage to capture the local host traffic?
I want to capture the messages between an exe and an Adobe swf file.

John

valdhor wrote:
 My favorite (The one I own) is Charles (http://www.charlesproxy.com).

 The two things that made it my pick is that it is cross platform and
 that it understands AMF (ie. it will show you the returned objects and
 what they contain - invaluable for debugging remote objects)


 --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:
   
 John -- WireShark (free download from http://www.wireshark.org/) is my
 current favorite. It shows all the network traffic and can be filtered
 based on IP, etc. I've blogged about it here with instructions on
 using it:

 
 http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html
   
 - Alex C

 --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote:
 
 Thanks, Alex. It's not hanging on the Flex side -- the server response
 is never received. Using WireShark (http://www.wireshark.org/), I was
 able to see it's not hanging at all, but continually sending messages
 to the Java servlet but getting nothing back in reply. 

 That's what led me to investigate the Java code more closely. The
 BufferedImage object was receiving some JPG images that it couldn't
 handle; so it spun away for a while before throwing an exception. For
 whatever reason, the exception never made it back to the Flex side. 

 All is well now: I took out the BufferedImage object and am passing
 the InputStream directly to the Java Advanced Imaging API code, which
 resizes the image and writes it to disk. One issue: JPG images with
 CMYK color spaces come out with their colors mangled; but that's a
 limitation of the server code and has nothing to do with Flex.

 - Alex

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
   
 It would be unusual for Flex to hang waiting for the server.  Use a
 
 network monitor to see what's going on.  Is Flex really hung?  You
 can't hit a button or anything?
   
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 
 On Behalf Of oneworld95
   
 Sent: Tuesday, February 03, 2009 7:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Detect exeptions - help!!


 I've run into a very frustrating situation and need your help:

 - Flex uploads a file to the server
 - The server reads it into a Java BufferedImage object.
 - However, Java sometimes takes 40 seconds or longer to reply
 - In some cases it has difficulty reading the file.

 In the cases of problems, Flex just hangs. It doesn't reply with
 anything. Is it timing out? Any help appreciated.

 



 

 --
 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] XML - What var type can I use for my XML nodes?

2009-02-05 Thread Tracy Spratt
Clean the Project: Menu, Project, Clean.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Thursday, February 05, 2009 2:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?

 

Hi Tracy, I get An Internal build error...

with:

 

text={_xmlVar.date}

 

 

Thanks!

 

-David

 



From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 1:03:41 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?

[Bindable]public var _xmlVar:XML;

 

private function init():void{

 _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 

...

 

All e4x expessions return an XMLList, even if there is only one node, so
you must specify that node toput it in an XML variable.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcod...@yahoogro ups.com http://ups.com/  [mailto:
flexcod...@yahoogro ups.com ] On Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] XML - What var type can I use for my XML nodes?

 

Hi everyone, I have the following:

mx:XML id=testID format=e4x source=xml/ test.xml /
mx:Text text={testID. result.(@ now=='today' ).date}/ 

What var type can I use for testID.result.. (@now=='today' ) to simply

my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result. (@now=='today' );

mx:Text text={xmlvar. date}/

Thanks.

David

 





RE: [flexcoders] What comes out of a datagrid

2009-02-05 Thread Tracy Spratt
That would be the dataProvider for the teamDG.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, February 05, 2009 2:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What comes out of a datagrid

 

Lets say I have 2 DataGrids, one has user info in it (populated with a
binded ArrayCollection) and the other is blank (lets call it
id=teamDG). You can drag the people from the populated to the blank to
populate it. Got that part to work fine.

When you have dragged all the people you wanted to the blank one and
then wanted to save that new group of people, how can you go about
saving them? Is there a specific array or object associated with that
DataGrid (teamDG) which then you can pass to a function to populate a
database? Any examples or tutorials out there? Thanks.





Re: [flexcoders] What comes out of a datagrid

2009-02-05 Thread Adrian Williams

Hi Wally,

   We have something that's practically identical to what you have 
described.  For ours, instead of waiting until all the people have been 
dragged, we setup a number of listeners on our blank ADG (DRAG_START, 
DRAG_ENTER, DRAG_DROP) and as soon as the person is dropped, we 
reference our sourceGrid.selectedItems  property which has the pertinent 
information about the 'fella' that was droppedonce we have that, we 
hit our web service, passing the information, including the group change 
info to our db.


   Alternatively, you can take a look at your teamDG.dataProvider and 
see the data that's been dropped in it...


HTH,
Adrian

Wally Kolcz wrote:


Lets say I have 2 DataGrids, one has user info in it (populated with a 
binded ArrayCollection) and the other is blank (lets call it 
id=teamDG). You can drag the people from the populated to the blank 
to populate it. Got that part to work fine.


When you have dragged all the people you wanted to the blank one and 
then wanted to save that new group of people, how can you go about 
saving them? Is there a specific array or object associated with that 
DataGrid (teamDG) which then you can pass to a function to populate a 
database? Any examples or tutorials out there? Thanks.





[flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?

2009-02-05 Thread valdhor
Saj

I think you have multiple problems in your setup.

Here is a quick HelloWorld example:

My PHP server is set up with two directories - Zend (Holds the Zend
Framework) and
ZendServices (Where all my AMF Services files are located in sub
directories). In this
ZendServices directory I have a Samples directory which has a helloamf
directory. In
this directory I have two files - index.php and HelloWorld.php...

=
index.php:
?php
ini_set('include_path',
ini_get('include_path').':/path/to/Zend/directory/');
require_once(Zend/Amf/Server.php);
include HelloWorld.php;
$server = new Zend_Amf_Server();
$server - setClass( HelloWorld );
echo( $server - handle() );
=
HelloWorld.php:
?php
class HelloWorld
{
 public function say($message)
 {
 $date = getdate();
 return You said:  . $message .  on  . $date[weekday];
 }
}
?
=

Now to the Flex files. I have a project named ZendAMFSampleHelloAMF (You
can name yours
whatever you want).

=
ZendAMFSampleHelloAMF.mxml:
?xml version=1.0 encoding=utf-8?
mx:Application pageTitle=Hello World layout=absolute
xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;

 public function doSay(event:Event):void
 {
 svcHello.say(txtSomething.text);
 txtSomething.text = ;
 }

 public function doSayResult(event:ResultEvent):void
 {
 txtSaid.text += String(event.result) + \n;
 }
 ]]
 /mx:Script
 mx:RemoteObject id=svcHello destination=zend
source=HelloWorld
 mx:method name=say result=doSayResult(event) /
 /mx:RemoteObject
 mx:Panel width=385 height=250 layout=absolute title=Say
What? verticalCenter=0 horizontalCenter=0
 mx:Label x=10 y=12 text=Something: /
 mx:TextInput id=txtSomething right=10 top=10 left=88
text=Flex enter=doSay(event) /
 mx:HRule y=40 left=10 right=10 /
 mx:Label x=10 y=52 text=You said: /
 mx:TextArea id=txtSaid bottom=10 left=10 right=10
top=80 editable=false /
 mx:ControlBar horizontalAlign=right
 mx:Button label=Say enabled={txtSomething.text.length ==
0 ? false : true} click=doSay(event) /
 /mx:ControlBar
 /mx:Panel
/mx:Application
=
services-config.xml:
?xml version=1.0 encoding=UTF-8?
services-config
 services
 service id=zend-service
class=flex.messaging.services.RemotingService
messageTypes=flex.messaging.messages.RemotingMessage
 destination id=zend
 channels
 channel ref=zend-endpoint/
 /channels
 properties
 source*/source
 /properties
 /destination
 /service
 /services
 channels
 channel-definition id=zend-endpoint
class=mx.messaging.channels.AMFChannel
 endpoint
uri=http://myserver.com/ZendServices/Samples/helloamf/;
class=flex.messaging.endpoints.AMFEndpoint/
 /channel-definition
 /channels
/services-config
=

Note that the endpoint points to my helloamf directory on my server (See
above).
There is no gateway.php file with Zend_Amf.

Now, all you need to do is set your compiler preference additional
compiler arguments to:

-locale en_US -services services-config.xml

If you need a further example on how to pass value objects, please let
me know.


HTH



Steve



--- In flexcoders@yahoogroups.com, Sajid Hussain enchanter_...@...
wrote:




 Hello Gurus ,

 I am facing one issue where i am attempting to use Zend_amf but that
code exactly work well with Amfphp,
 I have seen all internet resources for zend and I am very courios on
thier machine same code is working why not at mine :(
 if I am trying to access gateway(Zend File) it work well but its not
working from Flex App .
 I have follwoing code and structure

 Gateway File :
 ?php
 require_once 'Zend/Amf/Server. php';
 require_once 'include/services/ BListsService. php';
 require_once 'include/services/ UserService. php';
 // Instantiate the server
 $server = new Zend_Amf_Server( );
 $server-setClass('BListsSer vice');
 $server-setClassMap( 'BListsVO' , 'BLists');
 $server-setClass('UserServi ce');
 $server-setClassMap( 'UserVO', 'User');
 $server-setProduction( false);
 $server-handle(); // if I am echoing this its not execute and instead
it comes up for download
 ?

 Services-xml :
 ?xml version=1.0 encoding=UTF- 8?
 services-config
 services
 service id=amfphp-flashrem oting-service
 class=flex. messaging. services. RemotingService
 messageTypes= flex.messaging. messages. 

[flexcoders] Re: Detect exeptions - help!!

2009-02-05 Thread valdhor
John

Yes it does. It acts as a proxy between whatever application you are
using and whatever you are trying to contact. It automagically sets up
Firefox and Internet Exploiter. For other apps you may need to
manually set the proxy to the local machine and port.

BTW. My name is Steve - Valdhor was my ADD alias back in my
university days ;-}


--- In flexcoders@yahoogroups.com, John McCormack j...@... wrote:

 Thanks valdhor,
 
 Does Charles manage to capture the local host traffic?
 I want to capture the messages between an exe and an Adobe swf file.
 
 John
 
 valdhor wrote:
  My favorite (The one I own) is Charles (http://www.charlesproxy.com).
 
  The two things that made it my pick is that it is cross platform and
  that it understands AMF (ie. it will show you the returned objects and
  what they contain - invaluable for debugging remote objects)
 
 
  --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote:

  John -- WireShark (free download from http://www.wireshark.org/)
is my
  current favorite. It shows all the network traffic and can be
filtered
  based on IP, etc. I've blogged about it here with instructions on
  using it:
 
  
 
http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html

  - Alex C
 
  --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote:
  
  Thanks, Alex. It's not hanging on the Flex side -- the server
response
  is never received. Using WireShark (http://www.wireshark.org/),
I was
  able to see it's not hanging at all, but continually sending
messages
  to the Java servlet but getting nothing back in reply. 
 
  That's what led me to investigate the Java code more closely. The
  BufferedImage object was receiving some JPG images that it couldn't
  handle; so it spun away for a while before throwing an
exception. For
  whatever reason, the exception never made it back to the Flex side. 
 
  All is well now: I took out the BufferedImage object and am passing
  the InputStream directly to the Java Advanced Imaging API code,
which
  resizes the image and writes it to disk. One issue: JPG images with
  CMYK color spaces come out with their colors mangled; but that's a
  limitation of the server code and has nothing to do with Flex.
 
  - Alex
 
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:

  It would be unusual for Flex to hang waiting for the server.  Use a
  
  network monitor to see what's going on.  Is Flex really hung?  You
  can't hit a button or anything?

  From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com]
  
  On Behalf Of oneworld95

  Sent: Tuesday, February 03, 2009 7:25 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Detect exeptions - help!!
 
 
  I've run into a very frustrating situation and need your help:
 
  - Flex uploads a file to the server
  - The server reads it into a Java BufferedImage object.
  - However, Java sometimes takes 40 seconds or longer to reply
  - In some cases it has difficulty reading the file.
 
  In the cases of problems, Flex just hangs. It doesn't reply with
  anything. Is it timing out? Any help appreciated.
 
  
 
 
 
  
 
  --
  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] XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
Hi Tracy, it still doesn't work...





From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 3:54:34 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes?


Clean the Project: Menu, Project, Clean.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of - -
Sent: Thursday, February 05, 2009 2:48 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] XML - What var type can I use for my XML nodes?
 
Hi Tracy, I get An Internal build error...
with:
 
text={_xmlVar.date}
 
 
Thanks!
 
-David
 



From:Tracy Spratt tspr...@lariatinc. com
To: flexcod...@yahoogro ups.com
Sent: Thursday, February 5, 2009 1:03:41 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes?
[Bindable]public var _xmlVar:XML;
 
private function init():void{
 _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. 
…
 
All e4x expessions return an XMLList, even if there is only one node, so you 
must specify that node toput it in an XML variable.
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] XML - What var type can I use for my XML nodes?
 
Hi everyone, I have the following:

mx:XML id=testID format=e4x source=xml/ test.xml /
mx:Text text={testID. result.(@ now=='today' ).date}/ 

What var type can I use for testID.result. . (@now=='today' ) to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result. (@now=='today' );

mx:Text text={xmlvar. date}/

Thanks.

David
 



  

[flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread valdhor
OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.


--- In flexcoders@yahoogroups.com, - - sailorse...@... wrote:

 Hi Tracy, it still doesn't work...
 
 
 
 
 
 From: Tracy Spratt tspr...@...
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 5, 2009 3:54:34 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 
 
 Clean the Project: Menu, Project, Clean.
  
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
 
 
 From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro
ups.com ] On Behalf Of - -
 Sent: Thursday, February 05, 2009 2:48 PM
 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
  
 Hi Tracy, I get An Internal build error...
 with:
  
 text={_xmlVar.date}
  
  
 Thanks!
  
 -David
  
 
 
 
 From:Tracy Spratt tspr...@lariatinc. com
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, February 5, 2009 1:03:41 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 [Bindable]public var _xmlVar:XML;
  
 private function init():void{
  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
 …
  
 All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
 
 
 From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
 Sent: Thursday, February 05, 2009 10:28 AM
 To: flexcod...@yahoogro ups.com
 Subject: [flexcoders] XML - What var type can I use for my XML nodes?
  
 Hi everyone, I have the following:
 
 mx:XML id=testID format=e4x source=xml/ test.xml /
 mx:Text text={testID. result.(@ now=='today' ).date}/ 
 
 What var type can I use for testID.result. . (@now=='today' ) to
simply 
 my text string?
 
 I would like to have the following:
 
 [Bindable]
 public var xmlvar:String = testID.result. (@now=='today' );
 
 mx:Text text={xmlvar. date}/
 
 Thanks.
 
 David
  





[flexcoders] Complicated form layout

2009-02-05 Thread mmormando

I find it odd that if I layout a flex form as

mx:HBox
   mx:Form
 mxFormItem label=A Label
mx:TextInput/
 /mx:FormItem
   /mx:Form
   mx:Form
 mxFormItem label=B Label
mx:TextInput/
 /mx:FormItem
   /mx:Form
/mx:HBox

I get the same behavior programmatically as the following, but a very
different visual experience if I do it as

mx:Form
   mx:HBox
 mx:FormItem label=A Label
   mx:TextInput/
 /mx:FormItem
 mx:FormItem label=B Label
   mx:TextInput/
 /mx:FormItem
   /mx:HBox
/mx:Form

Now to my wee poor brain, the 2 should be the same, and while they
areroughlythe label alignment and all that is very different.
Can anyone explain to me why? And by that I don't mean, If you put any
container between the form declaration and the form items it'll whack
out your stuff., that much I've figured out by this point, I mean, why
the heck would they go to the trouble of making things whack out if a
form item's immediate parent ISN'T a form, as long as its eventual
parent is???
Ok, deep breath...sometimes you just have to let go.
  [:)]
back to work



Re: [flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
Sorry valdhor , I did correct the mistake but I still can't get it to work 
Thanks. :)





From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 4:10:31 PM
Subject: [flexcoders] Re: XML - What var type can I use for my XML nodes?


OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.

--- In flexcod...@yahoogro ups.com, - - sailorsea21@ ... wrote:

 Hi Tracy, it still doesn't work...
 
 
 
 
  _ _ __
 From: Tracy Spratt tspr...@... 
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, February 5, 2009 3:54:34 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 
 
 Clean the Project: Menu, Project, Clean.
  
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
  _ _ __
 
 From:flexcoders@ yahoogro ups.com [mailto: flexcod...@yahoogro
ups.com ] On Behalf Of - -
 Sent: Thursday, February 05, 2009 2:48 PM
 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
  
 Hi Tracy, I get An Internal build error...
 with:
  
 text={_xmlVar. date}
  
  
 Thanks!
  
 -David
  
 
  _ _ __
 
 From:Tracy Spratt tspr...@lariatinc. com
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, February 5, 2009 1:03:41 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 [Bindable]public var _xmlVar:XML;
  
 private function init():void{
  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
 …
  
 All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
  _ _ __
 
 From:flexcoders@ yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
 Sent: Thursday, February 05, 2009 10:28 AM
 To: flexcod...@yahoogro ups.com
 Subject: [flexcoders] XML - What var type can I use for my XML nodes?
  
 Hi everyone, I have the following:
 
 mx:XML id=testID format=e4x source=xml/ test.xml /
 mx:Text text={testID. result.(@ now=='today' ).date}/ 
 
 What var type can I use for testID.result. . (@now=='today' ) to
simply 
 my text string?
 
 I would like to have the following:
 
 [Bindable]
 public var xmlvar:String = testID.result. (@now=='today' );
 
 mx:Text text={xmlvar. date}/
 
 Thanks.
 
 David
  






  

RE: [flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread Tracy Spratt
I really have come to dislike the words it doesn't work, please do not
use them any more.

 

Are you still getting the same compile error?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Thursday, February 05, 2009 4:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: XML - What var type can I use for my XML
nodes?

 

Sorry valdhor , I did correct the mistake but I still can't get it to
work... Thanks. :)

 



From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 4:10:31 PM
Subject: [flexcoders] Re: XML - What var type can I use for my XML
nodes?

OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.

--- In flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com
, - - sailorsea21@ ... wrote:

 Hi Tracy, it still doesn't work...
 
 
 
 
  _ _ __
 From: Tracy Spratt tspr...@... 
 To: flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Thursday, February 5, 2009 3:54:34 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 
 
 Clean the Project: Menu, Project, Clean.
  
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
  _ _ __
 
 From:flexcoders@ yahoogro ups.com http://ups.com/  [mailto:
flexcod...@yahoogro
ups.com ] On Behalf Of - -
 Sent: Thursday, February 05, 2009 2:48 PM
 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
  
 Hi Tracy, I get An Internal build error...
 with:
  
 text={_xmlVar. date}
  
  
 Thanks!
  
 -David
  
 
  _ _ __
 
 From:Tracy Spratt tspr...@lariatinc. com
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, February 5, 2009 1:03:41 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 [Bindable]public var _xmlVar:XML;
  
 private function init():void{
  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
 ...
  
 All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
  _ _ __
 
 From:flexcoders@ yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
 Sent: Thursday, February 05, 2009 10:28 AM
 To: flexcod...@yahoogro ups.com
 Subject: [flexcoders] XML - What var type can I use for my XML nodes?
  
 Hi everyone, I have the following:
 
 mx:XML id=testID format=e4x source=xml/ test.xml /
 mx:Text text={testID. result.(@ now=='today' ).date}/ 
 
 What var type can I use for testID.result. . (@now=='today' ) to
simply 
 my text string?
 
 I would like to have the following:
 
 [Bindable]
 public var xmlvar:String = testID.result. (@now=='today' );
 
 mx:Text text={xmlvar. date}/
 
 Thanks.
 
 David
  


 





RE: [flexcoders] localConnection not working from Air to Air

2009-02-05 Thread Kevin Benz
There is a security context that runs between Air applications that you
need to make happy. Air expects to share a security token between caller
and callee in order to accept the transport.

 

As a fast-track, I would explore Arthropod to see their discussion of
security integration between Air and their debugging Air app.

 

http://arthropod.stopp.se/

 

K 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: Thursday, February 05, 2009 12:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] localConnection not working from Air to Air

 

Any hints on getting a localConnection to work from AIR to AIR?
It works from FLEX to FLEX, I am using the code from the livedocs
example. I am getting a statusEvent of 'error'.
thanks,


?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute 


creationComplete=initConn()
backgroundAlpha=0 backgroundColor=#FF
mx:Script
![CDATA[
import flash.net.LocalConnection;

private var conn:LocalConnection;

private function initConn():void{
btnSend.addEventListener(MouseEvent.CLICK, sendMessage);
conn = new LocalConnection();
conn.allowDomain('*');
conn.addEventListener(StatusEvent.STATUS, onStatus);
}

private function sendMessage(event:MouseEvent):void {
conn.send(localConn, localconnectionHandler, inputTask.text);
}

private function onStatus(event:StatusEvent):void {
switch (event.level) {
case status:
labelStatus.text = LocalConnection.send() succeeded;
break;
case error:
labelStatus.text = LocalConnection.send() failed;
break;
}
}
]]
/mx:Script
mx:Panel horizontalCenter=0 verticalCenter=0
mx:Form width=100% height=100% horizontalCenter=0
verticalCenter=0
mx:FormItem label=Enter Task
mx:TextInput id=inputTask/
/mx:FormItem
mx:FormItem label=Send Task 
mx:Button id=btnSend label=Send/
/mx:FormItem
mx:ControlBar
mx:Label id=labelStatus text=/
/mx:ControlBar
/mx:Form
/mx:Panel

/mx:WindowedApplication

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
creationComplete=InitConn()
backgroundAlpha=0 width=600 height=600
backgroundColor=#FF
mx:Script
![CDATA[
import flash.net.LocalConnection;

private var conn:LocalConnection;

private function InitConn():void{
conn = new LocalConnection();
conn.allowDomain('*');
conn.client = this;
try {
conn.connect(localConn);
textareaTasks.text= textareaTasks.text + CONNECTING TO
playlistDebug + \n;
} catch (error:ArgumentError) {
trace(Can't connect.);
textareaTasks.text= textareaTasks.text + Can't connect. + \n;
}
}

public function localconnectionHandler(msg:String):void {
textareaTasks.text= textareaTasks.text + msg + \n;
}

private function clearTasks(event:MouseEvent):void {
textareaTasks.text=;
}

]]
/mx:Script
mx:Panel horizontalCenter=0
verticalCenter=0.5
verticalGap=15
paddingLeft=20 paddingRight=20 paddingBottom=20 paddingTop=20
height=100% width=100%
mx:Label text=Trace output:/
mx:TextArea id=textareaTasks
top=20 left=20 right=20 bottom=20
width=100% height=100%/
mx:HBox
mx:Button id=btnClearTasks click=clearTasks(event)
label=Clear /
mx:Button id=connectagain click=InitConn( )
label=ConnectAgain /
/mx:HBox
/mx:Panel 

/mx:WindowedApplication



image003.jpgimage004.jpg

[flexcoders] How to set up a Flex,coldfusion development enviroment in Flex Builder?

2009-02-05 Thread markflex2007
Hi,

I want to use same tool to develop CFML,as and mxml.

Thanks for help.


Mark



RE: [flexcoders] Complicated form layout

2009-02-05 Thread Tracy Spratt
An HBox in a Form is a very different thing than a Form in an HBox.

 

A container is going to layout its children according to is own rules.
You can't expect it to alter those rules depending upon its parent.  

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mmormando
Sent: Thursday, February 05, 2009 4:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Complicated form layout

 


I find it odd that if I layout a flex form as

mx:HBox
  mx:Form
mxFormItem label=A Label
   mx:TextInput/
/mx:FormItem
  /mx:Form
  mx:Form
mxFormItem label=B Label
   mx:TextInput/
/mx:FormItem
  /mx:Form
/mx:HBox

I get the same behavior programmatically as the following, but a very
different visual experience if I do it as

mx:Form
  mx:HBox
mx:FormItem label=A Label
  mx:TextInput/
/mx:FormItem
mx:FormItem label=B Label
  mx:TextInput/
/mx:FormItem
  /mx:HBox
/mx:Form

Now to my wee poor brain, the 2 should be the same, and while they
areroughlythe label alignment and all that is very different.
Can anyone explain to me why? And by that I don't mean, If you put any
container between the form declaration and the form items it'll whack
out your stuff., that much I've figured out by this point, I mean, why
the heck would they go to the trouble of making things whack out if a
form item's immediate parent ISN'T a form, as long as its eventual
parent is???
Ok, deep breath...sometimes you just have to let go. 
 :)http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/16.gif 
back to work 





Re: [flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
never again :)

It's working now. Once I cleared IE's cache and restarted it... Thanks again :)

-David





From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 4:59:59 PM
Subject: RE: [flexcoders] Re: XML - What var type can I use for my XML nodes?


I really have come to dislike the words “it doesn’t work”, please do not use 
them any more.
 
Are you still getting the same compile error?
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of - -
Sent: Thursday, February 05, 2009 4:55 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Re: XML - What var type can I use for my XML nodes?
 
Sorry valdhor , I did correct the mistake but I still can't get it to work 
Thanks. :)
 



From:valdhor valdhorlists@ embarqmail. com
To: flexcod...@yahoogro ups.com
Sent: Thursday, February 5, 2009 4:10:31 PM
Subject: [flexcoders] Re: XML - What var type can I use for my XML nodes?
OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.

--- In flexcod...@yahoogro ups.com, - - sailorsea21@ ... wrote:

 Hi Tracy , it still doesn't work...
 
 
 
 
  _ _ __
 From: Tracy Spratt tspr...@... 
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, February 5, 2009 3:54:34 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 
 
 Clean the Project: Menu, Project, Clean.
  
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
  _ _ __
 
 From:flexcoders@ yahoogro ups.com [mailto: flexcod...@yahoogro
ups.com ] On Behalf Of - -
 Sent: Thursday, February 05, 2009 2:48 PM
 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
  
 Hi Tracy , I get An Internal build error...
 with:
  
 text={_xmlVar. date}
  
  
 Thanks!
  
 -David
  
 
  _ _ __
 
 From:Tracy Spratt tspr...@lariatinc. com
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, February 5, 2009 1:03:41 PM
 Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
 [Bindable]public var _xmlVar:XML;
  
 private function init():void{
  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
 …
  
 All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
 Tracy Spratt
 Lariat Services
 Flex development bandwidth available
 
  _ _ __
 
 From:flexcoders@ yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
 Sent: Thursday, February 05, 2009 10:28 AM
 To: flexcod...@yahoogro ups.com
 Subject: [flexcoders] XML - What var type can I use for my XML nodes?
  
 Hi everyone, I have the following:
 
 mx:XML id=testID format=e4x source=xml/ test.xml /
 mx:Text text={testID. result.(@ now=='today' ).date}/ 
 
 What var type can I use for testID.result. . (@now=='today' ) to
simply 
 my text string?
 
 I would like to have the following:
 
 [Bindable]
 public var xmlvar:String = testID.result. (@now=='today' );
 
 mx:Text text={xmlvar. date}/
 
 Thanks.
 
 David
  

 



  

[flexcoders] The First Flex Open Iteration Meeting

2009-02-05 Thread flex_coders
When: February 10th – 10:30am PT / 1:30pm ET / 6:00pm GMT (duration
1 hour and 15 minutes)
Find your time zone here
http://www.timeanddate.com/worldclock/fixedtime.html?month=2day=10yea\
r=2009hour=10min=30sec=0p1=224 .

Where: via Connect: http://my.adobe.acrobat.com/foi/
http://my.adobe.acrobat.com/foi/  (Please enter the room as a
`guest' using your First and Last name)

We invite you to partake in our iteration kick-off meetings. We'll
be reviewing decisions made in the last iteration and discussing the
upcoming iteration – what we'll be working on and open issues.
This will be a chance for you to give us feedback on these items and to
interact with the SDK engineering team.

Agenda
10:30am – 11:15am : Flex team discusses past and future iterations
11:15am - 11:45am :  Open up discussion to community for QA

Guidelines

* Please review the content to be presented (the Open Source site
http://opensource.adobe.com/wiki/display/flexsdk/  will be updated
with this information) and post and vote on questions you may ahead of
time here. http://moderator.appspot.com/#15/e=1a65dt=1a65e
* We'll only be discussing the SDK - not Builder, Catalyst, Flash
Player bugs, Obama, or Flash on the iPhone
* Please keep feedback relevant to this iteration's content.
* Fx prefix is an ongoing discussion that will NOT be discussed in
this meeting and will be discussed via the forums
http://www.adobeforums.com/webx/.3c060f85/ .
* If you'd like to dive deep into the implementation of a
feature, we'd like to discuss this with you. However, given the time
constraints of the meeting, please mention it during the session and we
can continue this discussion via the forums.



Re: [flexcoders] Re: very strange combobox problem when switching dataproviders

2009-02-05 Thread Pan Troglodytes
Okay, entered as
https://bugs.adobe.com/jira/browse/SDK-19145

if anyone is interested in voting for it or watching it.


On Thu, Feb 5, 2009 at 1:56 PM, kuroiryu42 kuroiry...@yahoo.com wrote:

   Yep its a bug, didn't bother to look it up but if you need a work around
 you could extend and override the combobox collectionChangeHandler
 look for the reset kind and remove the listener at that point.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan
 Troglodytes chimpathe...@...
 wrote:

 
  I'm running into something fairly perplexing. Read the following
 code and
  think of what you'd expect it to do when you click the change
 button. Then
  run it and click the change button.
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application
  xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
  creationComplete=cc()
  
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
 
  public var d1:ArrayCollection = new
 ArrayCollection([{label:one},
  {label:two}, {label:three}]);
  public var d2:ArrayCollection = new ArrayCollection([{label:a},
  {label:b}, {label:c}]);
  //public var d1:Array = [{label:one}, {label:two},
  {label:three}];
  //public var d2:Array = [{label:a}, {label:b}, {label:c}];
 
  private function cc():void
  {
  c1.dataProvider = d1;
  c1.dataProvider = d2;
  c1.selectedIndex = 1;
  }
 
  private function change():void
  {
  trace();
  trace();
  trace( before change: );
  trace( c1.selectedIndex:, c1.selectedIndex);
  trace( c1.selectedItem: , c1.selectedItem.label);
 
  d1.removeItemAt(0);
  //d1.splice(0, 1);
 
  trace()
  trace( after change: );
  trace( c1.selectedIndex:, c1.selectedIndex);
  trace( c1.selectedItem: , c1.selectedItem.label);
  }
  ]]
  /mx:Script
  mx:ComboBox id=c1/
  mx:Button label=change click=change()/
  /mx:Application
 
 
  What does it do? Well, the combobox changes from saying b to a.
 The
  trace says the following:
  before change:
  c1.selectedIndex: 1
  c1.selectedItem: b
 
  after change:
  c1.selectedIndex: 0
  c1.selectedItem: b
 
  This is completely baffling. My only guess is that somewhere in the
 guts of
  combobox or its ancestors, it is registering for changes on a
 dataProvider
  and not unregistering them when the dataProvider changes. List does not
  seem to suffer the same problem.
 
  If you comment out the ArrayCollection-based version and uncomment the
  Array-based version, it works as expected.
 
  My next stop is a bug report, but I figured it'd be worth bringing up in
  case anyone already knows of a bug report (kind of hard criteria to
 search
  for) or a workaround if you need to use ArrayCollections.
 
  --
  Jason
 

  




-- 
Jason


[flexcoders] Multiple views of same data

2009-02-05 Thread Annette Spooner
Hi,

I have an application that requires multiple views of the same data. Thus,
in practice, I would ideally like to have two DataGrids, each with the same
ArrayCollection as dataProvider, but each sorted differently. I know that
sorting a DataGrid sorts the underlying dataProvider, so is there any way to
achieve this without having two copies of the data and having to update the
second when changes are made to the first.

Thanks for your help.

Regards,

Annette



Re: [flexcoders] Multiple views of same data

2009-02-05 Thread Paul Andrews
- Original Message - 
  From: Annette Spooner 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, February 05, 2009 11:18 PM
  Subject: [flexcoders] Multiple views of same data


  Hi,

  I have an application that requires multiple views of the same data. Thus, in 
practice, I would ideally like to have two DataGrids, each with the same 
ArrayCollection as dataProvider, but each sorted differently. I know that 
sorting a DataGrid sorts the underlying dataProvider, so is there any way to 
achieve this without having two copies of the data and having to update the 
second when changes are made to the first.

  Thanks for your help.

  Regards,

  Annette

ListCollectionView.

This link should set you on your way Annette:

http://viconflex.blogspot.com/2006/11/listcollectionview-different.html

Or search the flexcoders archives for ListCollectionView.

Paul


Re: [flexcoders] How to set up a Flex,coldfusion development enviroment in Flex Builder?

2009-02-05 Thread Jeffry Houser

 Install both Flex Builder and CFEclipse as plugins to the same Eclipse 
install. 

markflex2007 wrote:
 Hi,

 I want to use same tool to develop CFML,as and mxml.

 Thanks for help.


 Mark



 

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




   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders] The First Flex Open Iteration Meeting

2009-02-05 Thread Nate Beck
Fx prefix is an ongoing discussion that will NOT be discussed in this
meeting

Awesome.

On Thu, Feb 5, 2009 at 2:57 PM, flex_coders ve...@adobe.com wrote:

   *When:* February 10th – 10:30am PT / 1:30pm ET / 6:00pm GMT (duration 1
 hour and 15 minutes)
 Find your time zone 
 herehttp://www.timeanddate.com/worldclock/fixedtime.html?month=2day=10year=2009hour=10min=30sec=0p1=224.


 *Where:* via Connect: http://my.adobe.acrobat.com/foi/ (Please enter the
 room as a `guest' using your First and Last name)

 We invite you to partake in our iteration kick-off meetings. We'll be
 reviewing decisions made in the last iteration and discussing the upcoming
 iteration – what we'll be working on and open issues. This will be a chance
 for you to give us feedback on these items and to interact with the SDK
 engineering team.

 *Agenda*
 10:30am – 11:15am : Flex team discusses past and future iterations
 11:15am - 11:45am :  Open up discussion to community for QA

 *Guidelines*

- Please review the content to be presented (the Open Source 
 sitehttp://opensource.adobe.com/wiki/display/flexsdk/will be updated with 
 this information) and post and vote on questions you
may ahead of time here.http://moderator.appspot.com/#15/e=1a65dt=1a65e
- We'll only be discussing the SDK - not Builder, Catalyst, Flash
Player bugs, Obama, or Flash on the iPhone
- Please keep feedback relevant to this iteration's content.
- Fx prefix is an ongoing discussion that will NOT be discussed in this
meeting and will be discussed via the 
 forumshttp://www.adobeforums.com/webx/.3c060f85/
.
- If you'd like to dive deep into the implementation of a feature, we'd
like to discuss this with you. However, given the time constraints of the
meeting, please mention it during the session and we can continue this
discussion via the forums.

  




-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Re: Installing an AIR APP with configuration

2009-02-05 Thread dmkramerica
Did you ever make progress or solve this?


--- In flexcoders@yahoogroups.com, bjorn itrashm...@... wrote:

 What's the best practice here? I need my app to know the username of the
 user who install it. So I'm thinking of adding it as a parameter to
the app
 in the installer badge, and then saving it in a properties file
locally in
 the app's directory.
 -- 
 
 http://www.juicability.com - flex blog
 http://www.nospoiler.com - link to youtube videos without the spoilers





[flexcoders] AdvancedDataGrid.SelectedItem - ??

2009-02-05 Thread Libby
Hello people, I am messing with an AdvancedDataGrid for the first
time. Have read the Adobe docs and it appears that you can listen for
ITEM_OPEN and ITEM_CLOSE and such and be able to access the current
item. However, they in my case are always null. I am trying to figure
out where in the tree hierarchy the user has clicked the mouse. Could
someone give me a little nudge in the right direction? :)
thanks, Libby
Flex 3.x



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

2009-02-05 Thread dorkie dork from dorktown
I'd like a real wysiwyg rich text editor with support for images (text
wrapping around an image). I'd like a companion text component that shows
the rich text content correctly. That's what I really really really really
really need.

On Sat, Jan 31, 2009 at 8:30 AM, Igor Costa igorco...@gmail.com wrote:

   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 fusionp...@yahoo.com 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 flexcoders%40yahoogroups.com,
 Derrick Anderson

 no.way.this.is.in@... 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 t...@... 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
  



[flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Darrell Loverin
The problem sounds like it might be this bug 
https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
Flex 3.2.


-Darrell

--- In flexcoders@yahoogroups.com, Battershall, Jeff 
jeff.battersh...@... wrote:

 Additional info - the chart is in a TitleWindow.  There seems to 
be a
 lot of posts about this and similar issues with charts within 
modules,
 etc.  I just haven't been able to get the magic incantation that 
will
 make the fonts render.  I could just say f-it and render the 
labels
 using device fonts and without rotation, but that kinda runs 
against the
 grain, if you know what I mean.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On
 Behalf Of Battershall, Jeff
 Sent: Thursday, February 05, 2009 2:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AxisRenderer Embedded Font Bug?
 
 
 I've got a vertical axis with an axisrenderer and I'm trying to 
rotate
 the labels 90 degrees.  I'm referring to a font embedded in a
 stylesheet. The labels won't display - it appears that room is 
being
 made for the labels to appear, but the labels aren't getting 
rendered.
 
 I'm using MyriadWebPro as the embedded font and I've also tried 
this
 with Arial with the same results. I've also tried this with no 
label
 rotation at all - but no dice.  If I stipulate a font family 
including
 device fonts, the labels will render, but no rotation is 
available. 
 
 Has anyone seen this? 
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 jeff.battersh...@...
 (609) 520-5637 (p)
 (484) 477-9900 (c)
 
 
 
 
 --
 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





[flexcoders] Adobe Presentation Tool

2009-02-05 Thread Erich Cervantez
So I saw Evan Gifford give a flash component kit lecture at Flex Camp
in Orange County last weekend and he used the beta version of Adobe
Presentation Tool and it was wicked.

Problem is I can't find any mention of it anywhere except on Andrew
Shorten's blog (here's a screenshot:
http://www.ashorten.com/wp-content/uploads/2008/06/air-presentation.jpg).

Is this for internal Adobe use only or...?

I WANT IT!



[flexcoders] multiple select in List w/o holding ctrl key?

2009-02-05 Thread coder3

Hi All,

I have a mx:List that allows multipleSelection. It works. But in order to do
multiple select/unselect, i need to hold the Ctrl key, otherwise, it will be
single select/unselect. 

Is there a way to do the multiple select w/o holding the Ctrl Key?

Thanks
C 
-- 
View this message in context: 
http://www.nabble.com/multiple-select-in-List-w-o-holding-ctrl-key--tp21864541p21864541.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Adobe Presentation Tool

2009-02-05 Thread Matt Chotin
It's an internal use only project but I'm not sure it's even being worked on 
right now.  I'll be honest, not exactly ready for prime time last I saw it...


On 2/5/09 4:38 PM, Erich Cervantez f...@noofusion.com wrote:




So I saw Evan Gifford give a flash component kit lecture at Flex Camp
in Orange County last weekend and he used the beta version of Adobe
Presentation Tool and it was wicked.

Problem is I can't find any mention of it anywhere except on Andrew
Shorten's blog (here's a screenshot:
http://www.ashorten.com/wp-content/uploads/2008/06/air-presentation.jpg).

Is this for internal Adobe use only or...?

I WANT IT!







Re: [flexcoders] Login / Password Form

2009-02-05 Thread anuj sharma
I made something like that where I use Flex to develop my UI and store the
login info in XML file on the server.
To read and write data to that xml file I use server side language PHP
though amfPHP , Encryption can be done using action script library as3crypto
but in my project we use
JavaScript and PHp for encrytping these credentials on the wire (through the
network).
Hope that might help you
Anuj

On Thu, Feb 5, 2009 at 12:17 PM, Alan K ultr...@gmail.com wrote:

   No, you can use a PHP file, for example, to hold and check against.


 Hello,
 I am searching a code source exemple for a classical login / password
 form in a flex application.
 Did I need absolutely a database to store Passwords ?
 Thank you,
 Christophe,

  



Re: [flexcoders] multiple select in List w/o holding ctrl key?

2009-02-05 Thread Doug McCune
I wrote this a few years ago, might be what you're looking for:
http://dougmccune.com/blog/2007/04/01/list-control-for-the-one-armed-man-take-two/

Doug

On Thu, Feb 5, 2009 at 4:50 PM, coder3 rrhu...@hotmail.com wrote:


 Hi All,

 I have a mx:List that allows multipleSelection. It works. But in order to
 do
 multiple select/unselect, i need to hold the Ctrl key, otherwise, it will
 be
 single select/unselect.

 Is there a way to do the multiple select w/o holding the Ctrl Key?

 Thanks
 C
 --
 View this message in context:
 http://www.nabble.com/multiple-select-in-List-w-o-holding-ctrl-key--tp21864541p21864541.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



  1   2   >