[flexcoders] Re: Cairngorm design questions about Command-View communication

2007-12-05 Thread mydarkspoon
Hi,
I'm a cairngorm newbie, and still not sure of what solution is
appropriate for a certain situation but in case I want to update the
view after a command has taken an action I would follow one of the
following:
1. A direct data binding that is the most elegant I think but doesn't
always fit. I've seen some cairngorm examples in which the model was
built according to the view "needs". In my opinion that's a bad design ,
the model should represent the business data, not the way the view use
it.
2. When you can't use direct binding, the second best solution might be
vinding the view to helper functions. for example, if I have an intro 
screen, and I want to show a welcome message according to the user's
sex, I would do something like that:

That's pretty straight forward, but the problems comes when the link
between the view needs and the model data is implicit, I don't like my
view to guess what the state is according to the model, for example, I
would consider this to be bad:


That's just too much responsibilties to put into the view.

That's kind of contradict what I stated in section 1, not to design the
model by the view, I think that might be the most difficult part for me,
to find the right balance between view responsibilities and model design
and would really like to hear what other people have to say about it...

3. If you really have to take an action after some data was initialized,
I would recommend not to use the Changewatcher if possible for it uses
strings to reference object chains, which is bad for refactoring.
for example, you have a model.files object that you listen to with the
change watcher, then you decide to change its name to imageFiles, you
won't get any compile time errors because it uses strings.
You can use Paul Williams observe 
  tag instead.


Well, that's it, it far away form being perfect, I'm sure there are some
better technique for certain situation, if any has some I would love to
hear about it...

Almog Kurtser,
http://www.kaltura.com 
--- In flexcoders@yahoogroups.com, "rmarples" <[EMAIL PROTECTED]> wrote:
>
> As our product has gotten bigger, I have moved it from a standard
Model-View-Controller design to a
> more strict Cairngorm-like Model-View-Dispatcher-Command design. But
one particular aspect of it has
> left me a bit unsure as to the best practice. I'm hoping others can
share their views on this.
>
> There are various times when a Command needs to make a
"non-data-related" update to the view such
> as:
> - disabling/enabling buttons while a server operation runs
> - updating the focus of controls
> - changing component states
> - hiding/showing components
>
> We've had some debate about the best method to accomplish this. The
easy scenario is changing states
> because we can simply have a model variable that the view's
currentState property is data-bound to. So
> we can modify that model variable from within the Command which
indirect updates the view. But there
> are other situations that are more tricky. For example, we have a
login view with a username and
> password. We have a command that loads the stored username. If the
stored username is not found,
> we'd like to set the focus on the username textbox, whereas if the
username is found, then we want to
> put the focus on the password textbox. I don't believe you can set up
focus using data-binding (if you
> can let me know). So we have postulated several different solutions to
this, all of which work but we are
> trying to figure out which one is the most "correct" based on the
design pattern.
>
> 1. Set up a ChangeWatcher to watch the a model username variable, in
the handler set the focus based
> on whether that variable is null or not.
>
> 2. Dispatch an event from the command that the view listens to. This
is used to notify the view when the
> username variable has been populated and thus when it can run it's
focus logic.
>
> 3. Have the view object store a reference to itself in the model
somewhere so that the command can
> update it directly.
>
> I know this seems like a very granular point but I'm just looking for
the general practice in these types of
> situations because there are lots of them.
>
> Any thoughts?
>
> Ryan
>




[flexcoders] Re: DataGrid tab order (again)

2007-12-05 Thread Stephen Roy J. Tang
Ok, no rush. Just wanted to quickly check if there was something I was
missing instead. 

Note that in the sample I gave, I'm not cheating on the tab order in
any way. :)

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you're cheating on how tabbing works, you'll have this problem in IE.
> In IE, if you aren't in the tab order from the FocusManager's
> perspective you could end up having focus leave to the browser.   There
> might be a bug related to that as well where we don't handle all cases.
> I won't have time to investigate this week.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Stephen Roy J. Tang
> Sent: Wednesday, December 05, 2007 5:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataGrid tab order (again)
> 
>  
> 
> Hi!
> 
> Thanks to Alex's help I got the datagrid tab order functionality I
> needed mostly working (including avoiding the datagrid remembering the
> last edited cell). 
> 
> Just one minor issue now, which I *might* be able to just ignore, but
> I'm curious about it because it works correctly on Firefox, but not on
> IE. Specifically, when I reverse-tab (shift+tab) out of my DataGrid,
> the focus seems to be going to the wrong control. But it only happens
> in IE.
> 
> Check my sample here:
> http://roytang.net/sandbox/DataGridTabOrder.swf
>  
> Source: http://roytang.net/sandbox/DataGridTabOrder.mxml
>  
> 
> Is it a bug in the SDK? or is there something I can do to work around
> it?
> 
> Thanks!
> 
> Roy
>




[flexcoders] Binding vars for states

2007-12-05 Thread mlharrisn
This might be a simple request, but I'm having problems finding a solution. I 
have states 
setup for my text color, and I need have the color values change based on an 
event. I 
thought I could just make a bindable var for the number  associated with the 
color value 
but I get an error #1119.

"1119: Access of possibly undefined property selectedColor through a reference 
with static 
type module3_inlineComponent1."

I'm assuming this is a scoping issue - that that my states are not in the same 
scope as the 
actioncript code where I define the var, thought its in the same MXML file.  
Here's the 
pertient code:

[CODE]
[Bindable] public var selectedColor:uint;

private function loadLayout(index:Number):void {
  this.selectedColor = moduleXML.getSelectedTextColorAt(index);
  trace("color", this.selectedColor);
}

//States



















[/CODE]



[flexcoders] MOUSE RIGHT CLICK EVENT..

2007-12-05 Thread yourName
Plz Tell me how to capture RIGHT CLICK EVENT 
Plz Send me If u Can a code sample if u can
Thanks in advance

[flexcoders] Loading Web Service from WebSphere

2007-12-05 Thread dafox_82
I'm playing around with Flex and want to call a custom made Web Service
in WebSphere.

When I run my application, It seems that a lot of requests are done to
the Web Service repeatably requesting the same XSD's (complex types). It
looks like the application is in an infinite loop, constantly doing the
same requests.. No call the the web service is made yet at this point.

If I call the requested XSD manually in my browser, it is resolved
without problems.
And if I call another very simple web service, everything is working as
expected.

My Web Service definition looks like this:

http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExp\
ort/wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl
 "
 
endpointURI="http://localhost:9080/CustomerModuleWeb/sca/CustomerDataSer\
viceExport

"
  service="CustomerDataServiceExport_CustomerDataServiceHttpService"
  port="CustomerDataServiceExport_CustomerDataServiceHttpPort"
  useProxy="false"
  showBusyCursor="true"
  fault="Alert.show(event.fault.faultString), 'Error'">
 
 
 
 
   16
   
 
 
 
 


I'm using Flex Builder 3, Beta (also tried Flex Builder 2, hotfix3)

What is going wrong here???



[flexcoders] Re: Cairngorm design questions about Command-View communication

2007-12-05 Thread mailtoanzer
I am also looking for the beast practice for Command-View communication. 
Currently we are using model variables and setter functions in the
View to achieve this. 


--- In flexcoders@yahoogroups.com, "rmarples" <[EMAIL PROTECTED]> wrote:
>
> As our product has gotten bigger, I have moved it from a standard
Model-View-Controller design to a 
> more strict Cairngorm-like Model-View-Dispatcher-Command design. But
one particular aspect of it has 
> left me a bit unsure as to the best practice. I'm hoping others can
share their views on this.
> 
> There are various times when a Command needs to make a
"non-data-related" update to the view such 
> as: 
> - disabling/enabling buttons while a server operation runs
> - updating the focus of controls
> - changing component states
> - hiding/showing components
> 
> We've had some debate about the best method to accomplish this. The
easy scenario is changing states 
> because we can simply have a model variable that the view's
currentState property is data-bound to. So 
> we can modify that model variable from within the Command which
indirect updates the view. But there 
> are other situations that are more tricky. For example, we have a
login view with a username and 
> password. We have a command that loads the stored username. If the
stored username is not found, 
> we'd like to set the focus on the username textbox, whereas if the
username is found, then we want to 
> put the focus on the password textbox. I don't believe you can set
up focus using data-binding (if you 
> can let me know). So we have postulated several different solutions
to this, all of which work but we are 
> trying to figure out which one is the most "correct" based on the
design pattern.
> 
> 1. Set up a ChangeWatcher to watch the a model username variable, in
the handler set the focus based 
> on whether that variable is null or not.
> 
> 2. Dispatch an event from the command that the view listens to. This
is used to notify the view when the 
> username variable has been populated and thus when it can run it's
focus logic.
> 
> 3. Have the view object store a reference to itself in the model
somewhere so that the command can 
> update it directly.
> 
> I know this seems like a very granular point but I'm just looking
for the general practice in these types of 
> situations because there are lots of them.
> 
> Any thoughts?
> 
> Ryan
>




[flexcoders] Re: Tree - Open all child layers when open branch

2007-12-05 Thread Girish
Hi,

check the two solutions which ever you feel is best you can use that [ 
expanding and collapsing treeview]. 



 private function ExpandTree():void
  {
   
   if(LBTreeExpand.toolTip.toString() == "Expand All")
   {
LBTreeExpand.setStyle("icon", CollapseIcon);
LBTreeExpand.toolTip = "Collapse All";
for(var i:int=0; ihttp://in.messenger.yahoo.com/webmessengerpromo.php

[flexcoders] FlashPlayer now support H.264, How can Flex do with the new feature?

2007-12-05 Thread Larry Zhang
Hello All

  ADOBE just released the new flash player which supports H.264. It
says that the FLVPlayback component in Flash CS3 can support the new feature
if the new player has been installed. But how can VideoDisplay in Flex do
such cool thing? Can we use the new feature in Flex2/3?

 

Thanks 

 

==

Make Every Day Count

 

Larry Zhang

 



[flexcoders] Add textfield error

2007-12-05 Thread Jonathan Lee
Hello all,
I have a application to in creationComplete event to execute a function called 
initApp();

This is initApp()..
import flash.text.TextField;
public var mtTXT:TextField;
public function initApp():void{
myTXT = new TextField();
myTXT.x = 343; myTXT.y = 10; 
myTXT.width = 196; myTXT.height = 300;
myTXT.wordWrap = true; myTXT.border = true;
myTXT.multiline =true;

 
addChild(myTXT);
}

It compiles ok, but when it runs, it says TypeError: Error #1034: Type Coercion 
failed: cannot convert flash.text::[EMAIL PROTECTED] to mx.core.IUIComponent.
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()



But that TextField is inherited from DisplayObject which suppose to be abled to 
used within addChild() function.

Any thoughts.

Thanks.


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

[flexcoders] How to upload file with Flex and coldfusion?

2007-12-05 Thread markflex2007
Please let me know which component I can use to do this.or post some 
URLs for this.

Thanks

Mark



[flexcoders] Re: ValueObject Factories?

2007-12-05 Thread b_alen
Sometimes I use Factory for creating VOs, it really depends on the
need. And I use VOs for everything that goes OTW, even if it is a
trivial object.



--- In flexcoders@yahoogroups.com, "Christophe Herreman" <[EMAIL PROTECTED]>
wrote:
>
> Hi all,
> 
> I was wondering how you guys deal with model objects and their
corresponding
> value objects. We have a pretty big domain model with complex nested
classes
> and we need to create value objects from them before sending them to the
> server. Right now we create a factory for each model, that can
create a vo
> from a model and a model from a vo. This works, but it is obviously
a lot of
> work and error prone, so it requires more work to write testcases
for them.
> 
> Does anyone have this "problem" too? Are you only sending VO's to
the server
> or do you only do that for complex types and otherwise send the object
> itself?
> 
> Input, comments and ideas are welcome.
> 
> regards,
> Christophe
> 
> -- 
> Christophe Herreman
> http://www.herrodius.com
> http://www.pranaframework.org
>




RE: [flexcoders] Help ... Why isn't my localToGlobal working on a draggable sprite ?

2007-12-05 Thread Gordon Smith
You should be doing
 
var boxPoint:Point = new Point(0, 0); // top-left corner of _box in its
own coordinates
var boxPointLocToGlob:Point = _box.localeToGlobal(boxPoint); // top-left
corner of _box in stage global coords
 
But I don't see how what you were doing would have given negative
values.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Wednesday, December 05, 2007 7:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help ... Why isn't my localToGlobal working on a
draggable sprite ?



Hello all,
I've been playing with this all day and can't figure it out ..
I have a dragable sprite.

I am trying to convert its X Y coords to global coords.

My Sprite is _box;

I do:

var boxPoint:Point = new Point(_box.x,_box.y);
var boxPointLocToGlob:Point = _box.localToGlobal(boxPoint);

But when I trace _boxPointLocToGlob I get strange negative values...
How can I be getting negatives when I am asking for Global coords and
I am working at the center of the stage ?

Regards,

Sean.



 


[flexcoders] Help ... Why isn't my localToGlobal working on a draggable sprite ?

2007-12-05 Thread helihobby
Hello all,
I've been playing with this all day and can't figure it out ..
I have a dragable sprite.

I am trying to convert its X Y coords to global coords.

My Sprite is _box;

I do:

var boxPoint:Point = new Point(_box.x,_box.y);
var boxPointLocToGlob:Point = _box.localToGlobal(boxPoint);

But when I trace _boxPointLocToGlob I get strange negative values...
How can I be getting negatives when I am asking for Global coords and
I am working at the center of the stage ?


Regards,

Sean.







[flexcoders] divide text in more than 1 column automatically

2007-12-05 Thread Jonathan Lee
Hello all:
I have an application that popup RichTextEditor for user to input text.

Then, after finished, I will have a big textfield (or whatever that can display 
text) to display user's text.

Instead of just display in one big area, that text display area is divided into 
2 columns. Left and right.

So, if text can not fit in the left column, it should automatically flow into 
column 2. (Now, I do not care the situation of if column 2 is also full).

So, anyway to implement this?

Thanks a LOT.



   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] Flex 3::AdvancedDataGrid::groupItemRenderer is for group or branch node only?

2007-12-05 Thread tungchau81
Hi,
My AdvancedDataGrid has grouping collection set up during 
intialization.I tried to change the label's color of all group or 
branch nodes, but the color got applied to the labels of child nodes 
also. Is this a bug?



  




 
  
   
 
  


  





...


Note: "0xAAB3B3" is a light grey color.
 



Re: SPAM-LOW: [flexcoders] Different result for encryption in Flex and in CF.

2007-12-05 Thread Jeffry Houser

  I've been told that sometimes this happens, but the data can still be 
decrypted correctly by the alternate source.  ( I haven't experienced 
this myself, mind you ).

  Most likely you have some setting wrong on the Flex side.  I can't 
find my notes, but from memroy..

Encryption: AES
Mode: ECB
Padding: PKC#5
Key Format: HEX
Plain Text: Text
Cipher Text: HEX

  I remember not using an initialization vector

ivansebastiansurya wrote:
> 
> So I got different result for encrypting the same text using the
> same key.
> 
> Do you have any idea why this is the case?
> 
> Thanks,
> 
> Ivan.

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



[flexcoders] Re: dataTipFunction position in datagrid

2007-12-05 Thread tungchau81
Hi Alex,
I tried to listen to the "tooltipshow" event in AdvancedDataGrid(Flex 
3), but I was not able to catch the event at all.

private function changeToolTipPosition(event:ToolTipEvent):void {
trace("TungChau::x=" + ToolTipManager.currentToolTip.x);
trace("TungChau::y=" + ToolTipManager.currentToolTip.y);
trace("TungChau::y1=" + ToolTipManager.currentTarget.y);
}


...


When debugging the problem, I set a breakpoint 
inside "changeToolTipPosition" function and I was never able to reach 
the breakpoint. My AdvancedDataGrid has grouping by default.

Regards,
Tung Chau

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Try tooltipshow in a custom renderer
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of hammer995
> Sent: Thursday, October 18, 2007 8:19 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] dataTipFunction position in datagrid
> 
>  
> 
> I have the following:
> 
>  showDataTips="true" dataTipFunction="fullAcctName"/>
> 
> The fullAcctName returns a string.
> 
> Unfortunately, the string is displayed right over the cell you are
> hovering over to get the tooltip. Is there a way to give it an 
offset
> so it doesn't block the cell?
> 
> Thanks!
>




[flexcoders] Re: LineChart and DataTips

2007-12-05 Thread bloodylag
cseries.filterData = false;

Setting filterData to false on a lineseries causes the datatips to no
longer show for some reason. I'm trying to find a solution to this
exact problem...



[flexcoders] Flex Vaildation Problem

2007-12-05 Thread Shidan
When validating with Flex, When I navigate back and forth from
different views, the red box outline appears for
validation error, even if I fix it to a correct value. Has anyone else
seen this and is there a work around.

Cheers,
Shidan


[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread tungchau81
The same thing for groupLabelFunction. Returned HTML text is not 
accepted. 

--- In flexcoders@yahoogroups.com, "sreeni_r" <[EMAIL PROTECTED]> wrote:
>
> Hi Tung,
> 
> you can use the trick mentioned here
> 
> http://www.flex-flex.net/blog/article.asp?id=18
> 
> to display html formatted strings as toolTips.
> 
> -Sreenivas
> 
> --- In flexcoders@yahoogroups.com, "tungchau81"  
> wrote:
> >
> > Hi,
> > I wrote my own custom dataTipFunction that return an HTML 
formatted 
> > text, but it does not work. Please help!
> > 
> > private function myDataTip(data:Object):String {
> > return "Tung Chau";
> > }
> > 
> > The result I saw was a raw "Tung Chau" instead of the bold 
> text 
> > format I want.
> > 
> > Please help.
> > Tung Chau
> >
>




[flexcoders] Re: cfc do not understand cairngorm VO?

2007-12-05 Thread markflex2007
Hi,

Do you think if it is possible to use Object object to take place VO 
object? and from cfc we can use struct

I try VO many dates but why cfc can not accept the flex vo.

Thanks

Mark

--- In flexcoders@yahoogroups.com, João Fernandes 
<[EMAIL PROTECTED]> wrote:
>
> try to set the Alias attribute in your component. something like 
> alias="path.to.my.cfc.PersonVO"
> 
> Also, be sure that the AS3 class maps to the same path defined in the 
> alias attribute.
> 
> -- 
> 
> João Fernandes
> 
> http://www.onflexwithcf.org
> http://www.riapt.org
>




[flexcoders] OT: AdobeTed Charity Bag Auction - FLEX 2 SHIP BAG TIMBUK2

2007-12-05 Thread Ted Patrick
I have 8 bags being auctioned on eBay for the next 10 days. Several of
the bags are very rare and impossible to get. The auction benefits the
San Francisco Food Bank and each bag has some special gifts inside which
I will blog about later. 

 

This bag is a very rare bag created exclusively for the launch of Flex
2, ONLY Flex team members received this bag.

 

- Secret swag gifts inside

- Signed Inside by Ted Patrick - Flex Evangelist - 5x more valuable
there! : )

- All proceeds from this auction go to the San Francisco Food Bank

- Only 120 made!

- ONLY MADE FOR ADOBE FLEX 2 DEV TEAM!!!

- First Edition

 

http://onflex.org/charityauction/7.jpg

 

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&rd=1&item=220180450529&ssP
ageName=STRK:MESE:IT&ih=012

 

Other Bags in the Auction:

http://www.onflex.org/ted/2007/12/2007-adobeted-charity-bag-auction.php

 

Cheers,

 

Ted Patrick 

Flex Technical Evangelist 

Adobe Systems 

 

http://www.onflex.org   

http://www.linkedin.com/in/tedpatrick
  



[flexcoders] packages start with fl in Flash9 (how to use in Flex2)

2007-12-05 Thread Jonathan Lee
Hello all:
I just got upgraded to Flash9. And there're bunch of packages start from fl.
for example, fl.video.*, fl.container.*

any chance to use it in Flex2?

Seems Adobe does not sync Flash and Flex yet.



   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] Re: Different result for encryption in Flex and in CF.

2007-12-05 Thread ivansebastiansurya
And if I attempt to decrypt in ColdFusion what I've encrypted in 
Flex, I got:
An error occurred while trying to encrypt or decrypt your input 
string: com.rsa.jsafe.crypto.dr: Could not perform unpadding: 
invalid pad byte.. 

It would be great if you can help me out.  All I need to do is 
encrypt it so that CF can decrypt it.
Thanks in advance.

--- In flexcoders@yahoogroups.com, "ivansebastiansurya" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Thanks for your help,
> 
> But I still got different result for encrypting in Flex using the 
> crypto library:
> 
> var key:ByteArray = Hex.toArray
("4cb3c6af71194975d7a7679635c44517");
> var cipher:ICipher = Crypto.getCipher("aes", key);
> var rawData:ByteArray = Hex.toArray(Hex.fromString("This is a 
> Test")); // I suppose you convert the string to hex first, then to 
>  // byte array.
> cipher.encrypt(rawData);
> ti_encodedText.text = Hex.fromArray(rawData); // to print it out,
>  // need to convert it to hex string first???
> 
> This gives me: 28c8f58f6858ea48ed85c88fb2a5fd69
> 
> But in ColdFusion below:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hex Key: #HexKey#
> Key: #MyKey#
> 
> Plain Text: #PlainText#
> Encrypted: #Encrypted#
> Decrypted: #Decrypted#
> 
> 
> The encrypted text is  14C561515CA3283C297EEC0A99E80D08
> 
> So I got different result for encrypting the same text using the 
> same key.
> 
> Do you have any idea why this is the case?
> 
> Thanks,
> 
> Ivan.
> --- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
> >
> > 
> >   By Crypto I meant the AS3 library you link to, which is 
> named "As3 
> > Crypto".  I'm pulled up my code.
> > 
> >   You should be able to use the CryptoDemo to create a Key in 
> Hex.  Once 
> > you have the key, you should be able to do something like this 
in 
> CF:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   Hex Key: #HexKey#
> >   Key as string: #hexToString(HexKey)#
> >   Key: #MyKey#
> > 
> >   Plain Text: #PlainText#
> >   Encrypted: #Encrypted#
> >   Decrypted: #Decrypted#
> > 
> > 
> > 
> >   You'll probably want something a bit more 'dynamic' but 
> hopefully this 
> > will get you going.  I haven't looked at it in months, so the 
code 
> is 
> > not fresh in my mind...
> > 
> > 
> > 
> > ivansebastiansurya wrote:
> > > 
> > > 
> > > Crypto? You mean ColdFusion?
> > > Seems like I can't decode the encoded string.
> > > Thanks.
> > > 
> > > I use the library at http://crypto.hurlant.com/ 
> 
> > > Thanks,
> > > 
> > > Ivan.
> > > 
> > > --- In flexcoders@yahoogroups.com  40yahoogroups.com>, 
> > > Jeffry Houser  wrote:
> > >  >
> > >  >
> > >  > Which library?
> > >  >
> > >  > I've been able to successfully pass data back and forth 
> between
> > > Flex
> > >  > and Crypto using AES.
> > >  >
> > >  > There are settings you need to specify (128 bit 
something?), 
> but
> > > w/o
> > >  > pulling the code, I don't remember them.
> > >  >
> > >  > ivansebastiansurya wrote:
> > >  > >
> > >  > >
> > >  > > Hi there,
> > >  > >
> > >  > > Has anyone attempted to encode some string in Flex and 
> decode it
> > > in
> > >  > > COldFusion?
> > >  > > I've attempted to encode the string using the library in
> > >  > > http://crypto.hurlant.com/  
> > > >
> > >  > > as follows:
> > >  > > var key:ByteArray = Hex.toArray(model.hashKey); // some 
key
> > >  > > var cipher:ICipher = Crypto.getCipher("aes", key);
> > >  > > var rawData:ByteArray = Hex.toArray(dataToEncrypt);
> > >  > > I then send the encrypted data as a string (Hex.fromArray
> > >  > > (encryptedByteArray).
> > >  > >
> > >  > > I then try to decrypt it in ColdFusion, using:
> > >  > > decrypted=decrypt(arguments.xmlString,
> > >  > > application.hashkey, "AES", "Hex");
> > >  > >
> > >  > > , but it doesn't seem to work.
> > >  > >
> > >  > > If anyone can help me out, that would be greatly 
> appreciated.
> > >  > > Thanks,
> > >  > >
> > >  > > Ivan.
> > >  > >
> > >  > >
> > >  >
> > >  > --
> > >  > Jeffry Houser, Technical Entrepreneur, Software Developer, 
> Author,
> > >  > Recording Engineer
> > >  > AIM: Reboog711 | Phone: 1-203-379-0773
> > >  > --
> > >  > My Company:  it.com>>
> > >  > My Podcast:  >
> > >  > My Blog:  >
> > >  >
> > > 
> > > 
> > 
> > -- 
> > Jeffry Houser, Technical Entrepreneur, Software Developer, 
Author, 
> > Recording Engineer
> > AIM: Reboog711  | Phone: 1-203-379-0773
> > --
> > My Company: 
> > My Podcast: 
> > My Blog: 
> >
>




[flexcoders] Different result for encryption in Flex and in CF.

2007-12-05 Thread ivansebastiansurya
Hi,

Thanks for your help,

But I still got different result for encrypting in Flex using the 
crypto library:

var key:ByteArray = Hex.toArray("4cb3c6af71194975d7a7679635c44517");
var cipher:ICipher = Crypto.getCipher("aes", key);
var rawData:ByteArray = Hex.toArray(Hex.fromString("This is a 
Test")); // I suppose you convert the string to hex first, then to 
 // byte array.
cipher.encrypt(rawData);
ti_encodedText.text = Hex.fromArray(rawData); // to print it out,
 // need to convert it to hex string first???

This gives me: 28c8f58f6858ea48ed85c88fb2a5fd69

But in ColdFusion below:









Hex Key: #HexKey#
Key: #MyKey#

Plain Text: #PlainText#
Encrypted: #Encrypted#
Decrypted: #Decrypted#


The encrypted text is  14C561515CA3283C297EEC0A99E80D08

So I got different result for encrypting the same text using the 
same key.

Do you have any idea why this is the case?

Thanks,

Ivan.
--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>   By Crypto I meant the AS3 library you link to, which is 
named "As3 
> Crypto".  I'm pulled up my code.
> 
>   You should be able to use the CryptoDemo to create a Key in 
Hex.  Once 
> you have the key, you should be able to do something like this in 
CF:
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   Hex Key: #HexKey#
>   Key as string: #hexToString(HexKey)#
>   Key: #MyKey#
>   
>   Plain Text: #PlainText#
>   Encrypted: #Encrypted#
>   Decrypted: #Decrypted#
> 
> 
> 
>   You'll probably want something a bit more 'dynamic' but 
hopefully this 
> will get you going.  I haven't looked at it in months, so the code 
is 
> not fresh in my mind...
> 
> 
> 
> ivansebastiansurya wrote:
> > 
> > 
> > Crypto? You mean ColdFusion?
> > Seems like I can't decode the encoded string.
> > Thanks.
> > 
> > I use the library at http://crypto.hurlant.com/ 

> > Thanks,
> > 
> > Ivan.
> > 
> > --- In flexcoders@yahoogroups.com , 
> > Jeffry Houser  wrote:
> >  >
> >  >
> >  > Which library?
> >  >
> >  > I've been able to successfully pass data back and forth 
between
> > Flex
> >  > and Crypto using AES.
> >  >
> >  > There are settings you need to specify (128 bit something?), 
but
> > w/o
> >  > pulling the code, I don't remember them.
> >  >
> >  > ivansebastiansurya wrote:
> >  > >
> >  > >
> >  > > Hi there,
> >  > >
> >  > > Has anyone attempted to encode some string in Flex and 
decode it
> > in
> >  > > COldFusion?
> >  > > I've attempted to encode the string using the library in
> >  > > http://crypto.hurlant.com/  
> > >
> >  > > as follows:
> >  > > var key:ByteArray = Hex.toArray(model.hashKey); // some key
> >  > > var cipher:ICipher = Crypto.getCipher("aes", key);
> >  > > var rawData:ByteArray = Hex.toArray(dataToEncrypt);
> >  > > I then send the encrypted data as a string (Hex.fromArray
> >  > > (encryptedByteArray).
> >  > >
> >  > > I then try to decrypt it in ColdFusion, using:
> >  > > decrypted=decrypt(arguments.xmlString,
> >  > > application.hashkey, "AES", "Hex");
> >  > >
> >  > > , but it doesn't seem to work.
> >  > >
> >  > > If anyone can help me out, that would be greatly 
appreciated.
> >  > > Thanks,
> >  > >
> >  > > Ivan.
> >  > >
> >  > >
> >  >
> >  > --
> >  > Jeffry Houser, Technical Entrepreneur, Software Developer, 
Author,
> >  > Recording Engineer
> >  > AIM: Reboog711 | Phone: 1-203-379-0773
> >  > --
> >  > My Company: >
> >  > My Podcast: >
> >  > My Blog: >
> >  >
> > 
> > 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
> Recording Engineer
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>




Re: [flexcoders] CSS usage?

2007-12-05 Thread Lex
This application of the CSS sheet, is only good at compile time?

The goal is to gain the ability to style the Flex application via CSS, allowing 
end users to do things like change background color, etc.



  - Original Message - 
  From: Gordon Smith 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, December 02, 2007 10:18 PM
  Subject: RE: [flexcoders] CSS usage?


   

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

  - Gordon


--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lex
  Sent: Sunday, December 02, 2007 3:44 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] CSS usage?


   

  Anyone?  The livedocs site is a pain to navigate :/

  Appreciated muchly!
  Alex




- Original Message - 
From: Lex 
To: flex 
Sent: Friday, November 30, 2007 3:45 PM
Subject: [flexcoders] CSS usage?


 

If I go here and build a CSS sheet:

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html#

Where do I instruct the system to use it thereafter?

Thanks.
Alex



   

Re: SPAM-LOW: [flexcoders] Encryption in Flex and Decryption in ColdFusion.

2007-12-05 Thread Jeffry Houser

  By Crypto I meant the AS3 library you link to, which is named "As3 
Crypto".  I'm pulled up my code.

  You should be able to use the CryptoDemo to create a Key in Hex.  Once 
you have the key, you should be able to do something like this in CF:









  Hex Key: #HexKey#
  Key as string: #hexToString(HexKey)#
  Key: #MyKey#

  Plain Text: #PlainText#
  Encrypted: #Encrypted#
  Decrypted: #Decrypted#



  You'll probably want something a bit more 'dynamic' but hopefully this 
will get you going.  I haven't looked at it in months, so the code is 
not fresh in my mind...



ivansebastiansurya wrote:
> 
> 
> Crypto? You mean ColdFusion?
> Seems like I can't decode the encoded string.
> Thanks.
> 
> I use the library at http://crypto.hurlant.com/ 
> Thanks,
> 
> Ivan.
> 
> --- In flexcoders@yahoogroups.com , 
> Jeffry Houser <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  > Which library?
>  >
>  > I've been able to successfully pass data back and forth between
> Flex
>  > and Crypto using AES.
>  >
>  > There are settings you need to specify (128 bit something?), but
> w/o
>  > pulling the code, I don't remember them.
>  >
>  > ivansebastiansurya wrote:
>  > >
>  > >
>  > > Hi there,
>  > >
>  > > Has anyone attempted to encode some string in Flex and decode it
> in
>  > > COldFusion?
>  > > I've attempted to encode the string using the library in
>  > > http://crypto.hurlant.com/  
> >
>  > > as follows:
>  > > var key:ByteArray = Hex.toArray(model.hashKey); // some key
>  > > var cipher:ICipher = Crypto.getCipher("aes", key);
>  > > var rawData:ByteArray = Hex.toArray(dataToEncrypt);
>  > > I then send the encrypted data as a string (Hex.fromArray
>  > > (encryptedByteArray).
>  > >
>  > > I then try to decrypt it in ColdFusion, using:
>  > > decrypted=decrypt(arguments.xmlString,
>  > > application.hashkey, "AES", "Hex");
>  > >
>  > > , but it doesn't seem to work.
>  > >
>  > > If anyone can help me out, that would be greatly appreciated.
>  > > Thanks,
>  > >
>  > > Ivan.
>  > >
>  > >
>  >
>  > --
>  > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
>  > Recording Engineer
>  > AIM: Reboog711 | Phone: 1-203-379-0773
>  > --
>  > My Company: >
>  > My Podcast: >
>  > My Blog: >
>  >
> 
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



[flexcoders] Re: How to restore automatic height calculation (after an explicit value was set

2007-12-05 Thread rmarples
Hi Cosma,

If you do something like the following you, you will re-set the width of a 
component to it's 
original measured size.

myComponent.width = myComponent.measuredWidth;

Hope this helps!

Ryan

--- In flexcoders@yahoogroups.com, "Cosma" <[EMAIL PROTECTED]> wrote:
>
> Hi flexcoders out there,
> 
> I'm facing a simple problem. In Flex, containers such as Panel usually
> layout themself looking at their children(automatically choosing an
> appropriate width and height). Is there any way to restore this
> behaviour after setting an explicit height in ActionScript?
> 
> Example:
> 
> Think about a Panel that could resize itself to a fixed size
> (minimize) and then restore the original value. In the restore phase
> I'm currently setting the height property to the measuredMinHeight
> property value, but from this moment onward the height will not
> reflect the panel contents anymore, as it did by default.
> 
> Thanks for any hint
> Cosma
>





[flexcoders] Cairngorm design questions about Command-View communication

2007-12-05 Thread rmarples
As our product has gotten bigger, I have moved it from a standard 
Model-View-Controller design to a 
more strict Cairngorm-like Model-View-Dispatcher-Command design. But one 
particular aspect of it has 
left me a bit unsure as to the best practice. I'm hoping others can share their 
views on this.

There are various times when a Command needs to make a "non-data-related" 
update to the view such 
as: 
- disabling/enabling buttons while a server operation runs
- updating the focus of controls
- changing component states
- hiding/showing components

We've had some debate about the best method to accomplish this. The easy 
scenario is changing states 
because we can simply have a model variable that the view's currentState 
property is data-bound to. So 
we can modify that model variable from within the Command which indirect 
updates the view. But there 
are other situations that are more tricky. For example, we have a login view 
with a username and 
password. We have a command that loads the stored username. If the stored 
username is not found, 
we'd like to set the focus on the username textbox, whereas if the username is 
found, then we want to 
put the focus on the password textbox. I don't believe you can set up focus 
using data-binding (if you 
can let me know). So we have postulated several different solutions to this, 
all of which work but we are 
trying to figure out which one is the most "correct" based on the design 
pattern.

1. Set up a ChangeWatcher to watch the a model username variable, in the 
handler set the focus based 
on whether that variable is null or not.

2. Dispatch an event from the command that the view listens to. This is used to 
notify the view when the 
username variable has been populated and thus when it can run it's focus logic.

3. Have the view object store a reference to itself in the model somewhere so 
that the command can 
update it directly.

I know this seems like a very granular point but I'm just looking for the 
general practice in these types of 
situations because there are lots of them.

Any thoughts?

Ryan





Re: [flexcoders] Re: Local storage of password

2007-12-05 Thread Paul Andrews
- Original Message - 
From: "rmarples" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 05, 2007 11:30 PM
Subject: [flexcoders] Re: Local storage of password


> Well the thing about this application is, I don't own the server. I'm 
> using a 3rd party
> Internet web service (salesforce.com in this case). So I can't change the 
> way the server
> authenticates people - actually it does so in a very rational way anyway. 
> The requirement
> was simply to save the user the pain of having to type in their username 
> and password
> every single time they hit my app since the browser auto-fill feature 
> doesn't work for Flex
> apps. It's easy to store the username because I can throw it into a 
> SharedObject because
> it's not sensitive, but for the password the salesforce.com security 
> requirements are such
> that you can only store local passwords if you encrypt them and you can't 
> store the
> encryption key in the code. Anyway, thanks for everybody's input but it 
> looking like this
> requirement just isn't going to make sense, so I think I will push to just 
> have the username
> saved but not the password.

Why is typing in a password such a big deal?

I think most users expect to have to sign in to an application, though some 
companies operate a single sign-on architecture where that is not required.

What is the case here? We've focussed on one small aspect of security, what 
is the bigger picture?

Paul

> Ryan

snip 



[flexcoders] Re: Local storage of password

2007-12-05 Thread rmarples
Well the thing about this application is, I don't own the server. I'm using a 
3rd party 
Internet web service (salesforce.com in this case). So I can't change the way 
the server 
authenticates people - actually it does so in a very rational way anyway. The 
requirement 
was simply to save the user the pain of having to type in their username and 
password 
every single time they hit my app since the browser auto-fill feature doesn't 
work for Flex 
apps. It's easy to store the username because I can throw it into a 
SharedObject because 
it's not sensitive, but for the password the salesforce.com security 
requirements are such 
that you can only store local passwords if you encrypt them and you can't store 
the 
encryption key in the code. Anyway, thanks for everybody's input but it looking 
like this 
requirement just isn't going to make sense, so I think I will push to just have 
the username 
saved but not the password.

Ryan

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> It's effectively wanting to have a browser cookie that remembers your 
> session. It's clearly open to all kinds of abuse, encrypted or not. I'd make 
> darn sure that whoever raised this as a requirement was well aware of the 
> dangers - if only to cover my own back.
> 
> Even with this requirement not to have to log on between sessions, there's 
> no need to keep the username or password locally.
> 
> When the user logs on, the user provides a login name and password to the 
> webservice - as per normal. The webservice passes back a session key.
> 
> This key should be encrypted but should not have the username or password in 
> it. I would suggest a session identifier of some kind (that is mapped on the 
> server back to the username), a sequence id(that changes on every exchange 
> with the server - it could be a timestamp), plus anything else you can think 
> of - checksum, etc.. This key cannot be interpreted by a third party as 
> belonging to a particular user, nor does it hold password information.
> 
> Whenever the client requests something of the server it passes the key, but 
> no login information (as well as other perameters relating to the request). 
> The server decodes the key and looks up the session information. It can 
> associate the key with a specific user, it also expects the key to have the 
> same key sequence id that was sent the last time around. If the key sequence 
> is invalid (perhaps the client died before the key could be saved on the 
> client, or perhaps the message was lost), the server can request that the 
> client re-submits login information. It will expect the same user to 
> re-login, or the session will be invalidated.
> 
> Once the session is verified, the server can return the information 
> requested to the client. it also passes back a new (different) session key 
> to replace the old one. The whole thing repeats. The server can time out 
> keys that aren't used and it prevents 'stolen' keys from having any value 
> once the genuine client has initiated a new transfer.
> 
> The user is at liberty to login on another machine at any time - it either 
> invalidates the session key associated with the other machine, or continues 
> in that session context. You can also time-out sessions across any period 
> you like. If a user logs out on the client, the local session key should be 
> removed on both client and server.
> 
> I hope that explains the idea - it's baton passing between client and server 
> and the baton changes on every exchange. The server knows what baton to 
> expect for the next exchange and if anything gets out of kilter, it just 
> rerequests that the client logs in again. The username and password are 
> never stored permamently on the client.
> 
> Hope that helps. Don't store the password!
> 
> Paul
> 
> - Original Message - 
> From: "Jeffry Houser" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, December 05, 2007 2:31 AM
> Subject: Re: SPAM-LOW: [flexcoders] Re: Local storage of password
> 
> 
> >
> >  ( Thanks for listening; glad you enjoy )
> >
> >  You are working on an application with very odd security requirements.
> >  I almost think you'd be better off with a completely open web service.
> >
> >  You might store the encryption key in a database or server side / non
> > web accessible XML and use some form of remoting (or at least SSL) to
> > pass it back and forth to the Flex client.
> >
> >
> >
> > rmarples wrote:
> >>
> >>
> >> Hi Jeff - Thanks for the response. By the way, great podcast :)
> >>
> >> I will look into the encryption libraries that both you and William
> >> mentioned but I'm
> >> wondering how they handle the encryption key. I have a requirement that
> >> I can't store the
> >> encryption key in the source code as a string literal. I'm wondering if
> >> you or anybody else
> >> has ideas on how to handle this?
> >>
> >> Ryan
> >>
> >> --- In flexcoders@yahoogroups.com 

Re: SPAM-LOW: [flexcoders] Encryption in Flex and Decryption in ColdFusion.

2007-12-05 Thread ivansebastiansurya
Crypto?  You mean ColdFusion?
Seems like I can't decode the encoded string.
Thanks.

I use the library at http://crypto.hurlant.com/
Thanks,

Ivan.

--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>   Which library?
> 
>   I've been able to successfully pass data back and forth between 
Flex 
> and Crypto using AES.
> 
>   There are settings you need to specify (128 bit something?), but 
w/o 
> pulling the code, I don't remember them.
> 
> ivansebastiansurya wrote:
> > 
> > 
> > Hi there,
> > 
> > Has anyone attempted to encode some string in Flex and decode it 
in
> > COldFusion?
> > I've attempted to encode the string using the library in
> > http://crypto.hurlant.com/ 
> > as follows:
> > var key:ByteArray = Hex.toArray(model.hashKey); // some key
> > var cipher:ICipher = Crypto.getCipher("aes", key);
> > var rawData:ByteArray = Hex.toArray(dataToEncrypt);
> > I then send the encrypted data as a string (Hex.fromArray
> > (encryptedByteArray).
> > 
> > I then try to decrypt it in ColdFusion, using:
> > decrypted=decrypt(arguments.xmlString,
> > application.hashkey, "AES", "Hex");
> > 
> > , but it doesn't seem to work.
> > 
> > If anyone can help me out, that would be greatly appreciated.
> > Thanks,
> > 
> > Ivan.
> > 
> > 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
> Recording Engineer
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>




RE: [flexcoders] Datagrid ItemEditor - multiple data edits?

2007-12-05 Thread Tracy Spratt
Sure, this should not be difficult.  Have your renderer do its own
updating of the dataProvider item, and don't attempt to use the
renderIsEditor or other built in item editor functionality.  The
renderer gets a reference to the entire item, so it can manipulate that
data however you want.

 

I also recall a document topic about returning multiple values from a
renderer, that might be useful.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Schmitty
Sent: Wednesday, December 05, 2007 2:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid ItemEditor - multiple data edits?

 

Is it possible for an ItemEditor in a datagrid (or some other way) to
allow you to edit 2 or more things at once? Like say instead of a
combo box dropdown for a cell in a datagrid, could you have an item
editor that is like a mini form update multiple data objects in that
row's data that may not be displayed in the datagrids view

Or Flex3 advanced datagrid something I should look into? Or this will
have to be completely custom and kinda 'fake' this behavior

 



[flexcoders] Re: Series Effects do not dispatch start events (bug?)

2007-12-05 Thread vic8427
I'm having trouble with SeriesInterpolate and the effectEnd event.  This seems 
to 
continually dispatch so my callback function is continually being called.  I 
know that this 
effect should only dispatch an event for each target. Has anyone else ran into 
this before?

--- In flexcoders@yahoogroups.com, "g_odds" <[EMAIL PROTECTED]> wrote:
>
> Oops, drop the playCount++ line.
> 
> 
> --- In flexcoders@yahoogroups.com, "g_odds"  wrote:
> >
> > Righto.  So it would appear that the reason for this is that the
> > play() function of the SeriesInterpolateInstance, SeriesSlideInstance
> > and SeriesZoomInstance classes are missing the call to super.play()
> > which would result in the effectStart event being dispatched.
> > 
> > If you need this event dispatched then you have to extend the factory
> > and instance class along the lines of this:
> > 
> > package
> > {
> >   import mx.charts.effects.SeriesInterpolate;
> >   
> >   public class TSFSeriesInterpolate extends SeriesInterpolate
> >   {
> >   
> > public function TSFSeriesInterpolate(target:Object = null)
> > {
> >   super(target);
> >   instanceClass = TSFSeriesInterpolateInstance;
> > }
> >   
> >   }
> > 
> > }
> > 
> > import mx.charts.effects.effectClasses.SeriesInterpolateInstance;
> > import mx.events.EffectEvent;
> > 
> > class TSFSeriesInterpolateInstance extends SeriesInterpolateInstance
> > {
> >   public function TSFSeriesInterpolateInstance(target:Object)
> >   {
> > super(target);
> >   }
> > 
> >   override public function play():void
> >   {
> > // The next six lines are what occurs in the EffectInstance's
> > // play() function, so because the hierarchy of play() functions
> > // is broken we must do these ourselves.
> > playCount++;
> > dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START,
> >   false,false,this));
> > if (target)
> >   target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START,
> >false, false, this));
> > 
> > super.play();
> >   }
> > }
> > 
> > 
> > Cheers,
> > 
> > Graham
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "g_odds"  wrote:
> > >
> > > It would appear that from SeriesEffect downwards in the object
> > > hierarchy, none dispatch an effectStart event when played.  I have
> > > checked this by using exactly the same code except for changing the
> > > effect type and only series effects appear to exhibit this behaviour.
> > > 
> > > I'm sifting through the source to find out why but so far I haven't
> > > spotted anything.
> > > 
> > > Thanks in advance for any help.
> > > 
> > > Graham
> > >
> >
>





Re: SPAM-LOW: [flexcoders] Encryption in Flex and Decryption in ColdFusion.

2007-12-05 Thread Jeffry Houser

  Which library?

  I've been able to successfully pass data back and forth between Flex 
and Crypto using AES.

  There are settings you need to specify (128 bit something?), but w/o 
pulling the code, I don't remember them.

ivansebastiansurya wrote:
> 
> 
> Hi there,
> 
> Has anyone attempted to encode some string in Flex and decode it in
> COldFusion?
> I've attempted to encode the string using the library in
> http://crypto.hurlant.com/ 
> as follows:
> var key:ByteArray = Hex.toArray(model.hashKey); // some key
> var cipher:ICipher = Crypto.getCipher("aes", key);
> var rawData:ByteArray = Hex.toArray(dataToEncrypt);
> I then send the encrypted data as a string (Hex.fromArray
> (encryptedByteArray).
> 
> I then try to decrypt it in ColdFusion, using:
> decrypted=decrypt(arguments.xmlString,
> application.hashkey, "AES", "Hex");
> 
> , but it doesn't seem to work.
> 
> If anyone can help me out, that would be greatly appreciated.
> Thanks,
> 
> Ivan.
> 
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



Re: [flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread Scott Melby
I just wrote this post  on my blog 
this morning that shows how to do HTML tooltips in Flex.  It is very simple.


hth
Scott

tungchau81 wrote:


The full code is :

private function myDataTip(data:Object):String {
return "Tung Chau";
}














Please help.

--- In flexcoders@yahoogroups.com 
, "tungchau81" <[EMAIL PROTECTED]>

wrote:
>
> Hi,
> I wrote my own custom dataTipFunction that return an HTML formatted
> text, but it does not work. Please help!
>
> private function myDataTip(data:Object):String {
> return "Tung Chau";
> }
>
> The result I saw was a raw "Tung Chau" instead of the bold
text
> format I want.
>
> Please help.
> Tung Chau
>

 




[flexcoders] Encryption in Flex and Decryption in ColdFusion.

2007-12-05 Thread ivansebastiansurya
Hi there,

Has anyone attempted to encode some string in Flex and decode it in 
COldFusion?
I've attempted to encode the string using the library in
http://crypto.hurlant.com/
as follows:
var key:ByteArray = Hex.toArray(model.hashKey); // some key
var cipher:ICipher = Crypto.getCipher("aes", key);
var rawData:ByteArray = Hex.toArray(dataToEncrypt);
I then send the encrypted data as a string (Hex.fromArray
(encryptedByteArray).

I then try to decrypt it in ColdFusion, using:
decrypted=decrypt(arguments.xmlString, 
application.hashkey, "AES", "Hex");

, but it doesn't seem to work.

If anyone can help me out, that would be greatly appreciated.
Thanks,

Ivan.





RE: [flexcoders] howto save image from flex app to local disk - any tips / ideas?

2007-12-05 Thread Jim Hayes

absolutely spot on, 

navigateToURL( request,"_self") did exactly what I wanted (displaying the 
download prompt rather than the image itself).

The only bad thing being that I didn't think of it before asking the question :)

Thanks for the tip Ben,

very much appreciated even if I do feel like a bit of a fool now!

Jim.

(Actually, I had tried something similar as part of the remoting call, but it 
failed due to something I didn't understand, probably the response was going 
straight back to flex as a remoting result - I didn't check it any further 
because it was about 1.30 in the morning at the time...)

-Original Message-
From: flexcoders@yahoogroups.com on behalf of ben
Sent: Wed 05/12/2007 21:42
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] howto save image from flex app to local disk - any 
tips / ideas?
 
The "attachment" in Content-Disposition would force the browser to 
download the image (rather than display it), if that's what you want you 
probably don't need to open in a _blank window, the blank window is 
useless since the browser will just download the image.

Otherwise if you want to display it in a new window, you do need the 
_blank, but not the "attachement".

Ben

Jim Hayes wrote:
>
>
> Greetings flexcoders,
>
> I have a need for my flex application to have a "saveimage" button 
> that enables the user to save an image of part of the application.
>
> I've been able to get this to work without too much trouble, but it 
> still needs a bit of polish so I thought I'd ask if anyone has any 
> insights or tips they'd like to share.
>
> Currently I encode the image as a jpeg in flex, then send that 
> bytearray to the server via remoting (I'm using flourine), where it is 
> saved to an image file in a temp directory. The remoting call returns 
> the url of an asp script and the name of the temp file in the querystring.
> On receiving that url the flex app does a simple 
> flash.net.navigateToURL( request,"_blank"), whereupon the server 
> serves up the temp file with some suitable headers , e.g. something 
> like this.
>
> resp.ContentType = "application/octet-stream";
> resp.AddHeader("Content-Disposition", "attachment; filename=" + "\"" + 
> suggestedFileName + "\"");
> resp.Cache.SetCacheability(HttpCacheability.NoCache);
> resp.WriteFile(filePathToRead);
> resp.Flush();
>
> All of which is great, the user gets an open/save prompt for the jpeg 
> file as I hoped.
>
> The only rather ugly thing about it is that in IE a new window is 
> opened that then displays some rubbish about cancelled actions (???),
> in firefox it's handled rather more elegantly by a new tab that opens 
> very briefly then closes itself down (Though I noticed my colleagues 
> copy of firefox raises a bizarre sequence of "open popup?" warnings, 
> which surprised me).
>
> All of which is to be expected from the way I've done it, but is there 
> a better way (that will work cross browser at least for the most part) ?
> I'd really like for the user just to see the save/download prompt 
> without any extra windows/tabs, if at all possible.
>
> I'm mulling over whether loading the "filesave" url into a hidden 
> Iframe might work, but It's all rather out of my experience at the 
> moment and googling has thus far failed to reveal any obvious ways to go.
>
> If anyone can point me in the right direction then it would be most 
> helpful and much appreciated!
>
> tia,
>
> Jim.
>
> __
> This communication is from Primal Pictures Ltd., a company registered 
> in England and Wales with registration No. 02622298 and registered 
> office: 4th Floor, Tennyson House, 159-165 Great Portland Street, 
> London, W1W 5PA, UK. VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, 
> copied and used only by the intended recipient. If you have received 
> it in error, please contact the sender immediately by return e-mail or 
> by telephoning +44(0)20 7637 1010. Please then delete the e-mail and 
> do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs 
> Email Security System.
> __
>
>  



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

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

[flexcoders] Re: How to disble double click in ComboBo?

2007-12-05 Thread flexawesome

any suggestions? thanks

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi, I am working on ComboBox components and like to disable double
> click event once click the little scrub( arrow icons )
> 
> The code doesn't work for me. Is there any way to reach that?
> 
> Thanks
> 
> =
> 
> 
> http://www.adobe.com/2006/mxml";
>   layout="absolute" width="305" height="231">
> 
>mouseEnabled="true">
> 
> 
>




Re: [flexcoders] Sequence Diagram for Cairngorm

2007-12-05 Thread Bjorn Schultheiss

cairngormdocs.org



On 06/12/2007, at 5:30 AM, lawriegallardo wrote:


Hi,

Just wondering if anyone has a sequence diagram for Cairngorm?

If so, I'd be ever so grateful if you could post it...

Thanks,

Lawrie







Re: [flexcoders] Mutliple alert copies

2007-12-05 Thread Richard Rodseth
You're right, it was getting shown twice. Thanks. I was re-using the same
HTTPService instance, and I'm not sure why I got two completion events. I'm
now instantiating a new instance of the service.

On Dec 5, 2007 1:08 PM, Dave Glasser <[EMAIL PROTECTED]> wrote:

>   Did you put some tracing code in to prove that that code isn't actually
> executed twice the second time around? Event-driven software can be a tricky
> business.
>
> Maybe you neglected to remove an old event listener from some object that
> is dispatching the event that ultimately executes that code, and it's still
> lurking in memory, receiving that event and showing your Alert.
>
>
> *Richard Rodseth <[EMAIL PROTECTED]>* wrote:
>
>   I have a wizard which ends with the following alert:
>
>  alert = Alert.show("The message has been sent. Would you like to send
> another?", "", Alert.YES | Alert.NO, null, handleClose);
>
> If the user chooses YES the alert disappears from view, but next time
> there are two of them. Any obvious mistakes?
>
>
>  
>


[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread tungchau81
Thanks alot for your suggestion. I will check it out.
Regards,
Tung Chau.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> The full code is :
> 
> private function myDataTip(data:Object):String {
>  return "Tung Chau";
> }
> 
> groupIconFunction="reportArchiveGroupingIcon"   
> defaultLeafIcon="{Icons.ReportArchiveIcon}" 
> dataTipFunction="myDataTip" initialize="gc.refresh();" 
> width="100%" height="100%">
>   
> 
>  headerText="{getString('label.reportName')}" showDataTips="true" 
> minWidth="300"/>
>  labelFunction="formatStartDate" headerText="{getString
> ('label.reportStartDate')}" showDataTips="true" width="100"/>
> 
>  labelFunction="formatEndDate" headerText="{getString
> ('label.reportEndDate')}" showDataTips="true" width="100"/>
> 
>  labelFunction="formatCreatedOnDate" headerText="{getString
> ('label.createdOn')}" showDataTips="true" width="100"/>
>   
> 
> 
> 
> Please help.
> 
> --- In flexcoders@yahoogroups.com, "tungchau81"  
> wrote:
> >
> > Hi,
> > I wrote my own custom dataTipFunction that return an HTML 
formatted 
> > text, but it does not work. Please help!
> > 
> > private function myDataTip(data:Object):String {
> > return "Tung Chau";
> > }
> > 
> > The result I saw was a raw "Tung Chau" instead of the bold 
> text 
> > format I want.
> > 
> > Please help.
> > Tung Chau
> >
>




Re: [flexcoders] How to restore automatic height calculation (after an explicit value was set)

2007-12-05 Thread Daniel Freiman
To set the height of a component without setting the explicitHeight use
setActualSize() or to reset the explicitHeight, set it equal to NaN.

- Dan Freiman

On Dec 5, 2007 11:38 AM, Cosma <[EMAIL PROTECTED]> wrote:

>   Hi flexcoders out there,
>
> I'm facing a simple problem. In Flex, containers such as Panel usually
> layout themself looking at their children(automatically choosing an
> appropriate width and height). Is there any way to restore this
> behaviour after setting an explicit height in ActionScript?
>
> Example:
>
> Think about a Panel that could resize itself to a fixed size
> (minimize) and then restore the original value. In the restore phase
> I'm currently setting the height property to the measuredMinHeight
> property value, but from this moment onward the height will not
> reflect the panel contents anymore, as it did by default.
>
> Thanks for any hint
> Cosma
>
>  
>


[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread tungchau81
The full code is :

private function myDataTip(data:Object):String {
 return "Tung Chau";
}


  











Please help.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> I wrote my own custom dataTipFunction that return an HTML formatted 
> text, but it does not work. Please help!
> 
> private function myDataTip(data:Object):String {
> return "Tung Chau";
> }
> 
> The result I saw was a raw "Tung Chau" instead of the bold 
text 
> format I want.
> 
> Please help.
> Tung Chau
>




Re: [flexcoders] howto save image from flex app to local disk - any tips / ideas?

2007-12-05 Thread ben
The "attachment" in Content-Disposition would force the browser to 
download the image (rather than display it), if that's what you want you 
probably don't need to open in a _blank window, the blank window is 
useless since the browser will just download the image.


Otherwise if you want to display it in a new window, you do need the 
_blank, but not the "attachement".


Ben

Jim Hayes wrote:



Greetings flexcoders,

I have a need for my flex application to have a "saveimage" button 
that enables the user to save an image of part of the application.


I've been able to get this to work without too much trouble, but it 
still needs a bit of polish so I thought I'd ask if anyone has any 
insights or tips they'd like to share.


Currently I encode the image as a jpeg in flex, then send that 
bytearray to the server via remoting (I'm using flourine), where it is 
saved to an image file in a temp directory. The remoting call returns 
the url of an asp script and the name of the temp file in the querystring.
On receiving that url the flex app does a simple 
flash.net.navigateToURL( request,"_blank"), whereupon the server 
serves up the temp file with some suitable headers , e.g. something 
like this.


resp.ContentType = "application/octet-stream";
resp.AddHeader("Content-Disposition", "attachment; filename=" + "\"" + 
suggestedFileName + "\"");

resp.Cache.SetCacheability(HttpCacheability.NoCache);
resp.WriteFile(filePathToRead);
resp.Flush();

All of which is great, the user gets an open/save prompt for the jpeg 
file as I hoped.


The only rather ugly thing about it is that in IE a new window is 
opened that then displays some rubbish about cancelled actions (???),
in firefox it's handled rather more elegantly by a new tab that opens 
very briefly then closes itself down (Though I noticed my colleagues 
copy of firefox raises a bizarre sequence of "open popup?" warnings, 
which surprised me).


All of which is to be expected from the way I've done it, but is there 
a better way (that will work cross browser at least for the most part) ?
I'd really like for the user just to see the save/download prompt 
without any extra windows/tabs, if at all possible.


I'm mulling over whether loading the "filesave" url into a hidden 
Iframe might work, but It's all rather out of my experience at the 
moment and googling has thus far failed to reveal any obvious ways to go.


If anyone can point me in the right direction then it would be most 
helpful and much appreciated!


tia,

Jim.

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


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

__

 




RE: [flexcoders] Tree - Open all child layers when open branch

2007-12-05 Thread Jim Hayes
The method you need is in the help file under Tree, as it happens. 
I guess a mix of the change event and selectedItem (off the top of my head and 
without checking)
would probably do what you want.

hth 

Jim.

expandChildrenOf () method   

public function expandChildrenOf(item:Object, open:Boolean):void 

Opens or closes all the tree items below the specified item. 



-Original Message-
From: flexcoders@yahoogroups.com on behalf of nhid
Sent: Wed 05/12/2007 18:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree - Open all child layers when open branch
 
Hi,

I have this tree structure:

   Branch1
  ChildA
  Child1
  Child1.1
  Child1.2
  Child1.2.1
  Child2
   Child2.1
  Child2.1.1
  Child2.1.2
  Child2.2
  Child2.2.1

How can I open all the child layers at once when I click on the folder icon
of Branch1?

Thanks!


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

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

[flexcoders] howto save image from flex app to local disk - any tips / ideas?

2007-12-05 Thread Jim Hayes

Greetings flexcoders,

I have a need for my flex application to have a "saveimage" button that enables 
the user to save an image of part of the application.

I've been able to get this to work without too much trouble, but it still needs 
a bit of polish so I thought I'd ask if anyone has any insights or tips they'd 
like to share.

Currently I encode the image as a jpeg in flex, then send that bytearray to the 
server via remoting (I'm using flourine), where it is saved to an image file in 
a temp directory. The remoting call returns the url of an asp script and the 
name of the temp file in the querystring.
On receiving that url the flex app does a simple flash.net.navigateToURL( 
request,"_blank"), whereupon the server serves up the temp file with some 
suitable headers , e.g. something like this.

resp.ContentType = "application/octet-stream";
resp.AddHeader("Content-Disposition", "attachment; filename=" + "\"" + 
suggestedFileName + "\"");
resp.Cache.SetCacheability(HttpCacheability.NoCache);
resp.WriteFile(filePathToRead);
resp.Flush();

All of which is great, the user gets an open/save prompt for the jpeg file as I 
hoped.

The only rather ugly thing about it is that in IE a new window is opened that 
then displays some rubbish about cancelled actions (???),
in firefox it's handled rather more elegantly  by a new tab that opens very 
briefly then closes itself down (Though I noticed my colleagues copy of firefox 
raises a bizarre sequence of "open popup?" warnings, which surprised me).

All of which is to be expected from the way I've done it, but is there a better 
way (that will work cross browser at least for the most part) ?
I'd really like for the user just to see the save/download prompt without any 
extra windows/tabs, if at all possible.

I'm mulling over whether loading the "filesave" url into a hidden Iframe might 
work, but It's all rather out of my experience at the moment and googling has 
thus far failed to reveal any obvious ways to go.

If anyone can point me in the right direction then it would be most helpful and 
much appreciated!

tia,

Jim.


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

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


Re: [flexcoders] Mutliple alert copies

2007-12-05 Thread Dave Glasser
Did you put some tracing code in to prove that that code isn't actually 
executed twice the second time around? Event-driven software can be a tricky 
business.
   
  Maybe you neglected to remove an old event listener from some object that is 
dispatching the event that ultimately executes that code, and it's still 
lurking in memory, receiving that event and showing your Alert.

Richard Rodseth <[EMAIL PROTECTED]> wrote:
   I have a wizard which ends with the following alert: 

 alert = Alert.show("The message has been sent. Would you like to send 
another?", "", Alert.YES | Alert.NO, null, handleClose); 

If the user chooses YES the alert disappears from view, but next time there are 
two of them. Any obvious mistakes?



 


[flexcoders] Re: Problem with setting initial sort of AdvancedDataGrid via data provider.

2007-12-05 Thread Ian M. Jones
--- In flexcoders@yahoogroups.com, "Ian M. Jones" <[EMAIL PROTECTED]> wrote:
>
> Hi there, hope someone has come across my problem and can point out  
> my mistake...
> 
> I have an ArrayCollection acting as the data provider for an  
> AdvancedDataGrid, and am saving out the data provider's sort fields  
> array to a SharedObject between sessions and refreshes of the data.
> 
> When I retrieve new data I grab the array of sort fields and stuff  
> them into the ArrayCollection's sort property like so:
> 
> private function getDefaultColumnsSort():void {
>   var prefs:SharedObject = SharedObject.getLocal("FogBugzModule");
> 
>   // Look for a saved sort order.
>   if ("defaultColumnsSort" in prefs.data) {
>   var sort:Sort = new Sort();
>   sort.compareFunction = customCompare;
>   sort.fields = new Array();
>   for (var y:int = 0; y < prefs.data.defaultColumnsSort.length; 
> y++) {
>   if (prefs.data.defaultColumnsSort[y] != null) {
>   if ("name" in prefs.data.defaultColumnsSort[y]) 
> {
>   if 
> (prefs.data.defaultColumnsSort[y].name != null) {
>   var sortField:SortField = new 
> SortField 
> (prefs.data.defaultColumnsSort[y].name, true, Boolean 
> (prefs.data.defaultColumnsSort[y].descending));
>   sort.fields.push(sortField);
>   }
>   }
>   }
>   }
>   // Add sort criteria to data provider.
>   casesArray.sort = sort;
>   // Sort data in data provider.
>   casesArray.refresh();
>   }
> }
> 
> The problem is, the ADG does sort the data by the right columns, but...
> 
> * it's always in ascending order, even though the column headers show  
> the sort arrow correctly pointing down if the saved sort was descending.
> 
> * if you click on the column header to re-sort it nothing happens,  
> the sort arrow will flip-flop between pointing up and down as many  
> times as you like, but sort order is always ascending.
> 
> * The sorted column will not sort properly until I sort another  
> column by clicking it's header first, then it'll properly sort  
> ascending and descending when clicked.
> 
> The Sort object I'm assigning to the casesArray ArrayCollection above  
> "looks" OK, it just seems there is something not quite right in the  
> way the ADG uses it.
> 
> If anyone has any advice, I'd be very grateful.
> 
> Thanks,
> 
> Ian
>

Fixed it.

I got close to solving the problem by removing the compareFunction from the 
Sort I was 
constructing at startup, but that meant numeric, date and compound columns were 
always 
sorted alphabetically instead of numerically, by date or through the two or 
more data 
fields that made up the column respectively. But at least it was sorting in the 
right 
direction and the direction could be changed correctly. This was definitely my 
fault, I 
shouldn't have used the custom compareFunction because I dynamically add a 
sortCompareFunction to any AdvancedDataGridColumn that needs it when adding the 
user's preferred columns to the AdvancedDataGrid, so I didn't need to reference 
another 
custom compare function on the data provider.

But why wasn't the AdvancedDataGrid using it's column's sortCompareFunction 
definitions?

When I created the SortFields for the initial sort I was setting the ignore 
case property to 
true just as a means of getting to the descending parameter that I was truly 
interested in, 
when I set that to false, suddenly the AdvancedDataGrid was using the correct 
sortCompareFunctions for it's columns. Very strange.

On reflection, it could be that the framework is assuming that if the SortField 
has it's 
ignore case property set to true then it must need to do an alphabetic sort, 
regardless of 
whether there's a custom compare function on the column or not.

Hey ho, it's fixed now.

Cheers,

Ian



[flexcoders] Re: Line Segment over Item Renderer in Line Series

2007-12-05 Thread adtrantravis
I forgot to mention that this in Flex 2 w/ Hot Fix 3, using the 
standard charts package. 

--- In flexcoders@yahoogroups.com, "adtrantravis" <[EMAIL PROTECTED]> wrote:
>
> I am using a simple Line Chart and Line Series. My array of data has 
> yField values that are off the chart. Data points after the "off the 
> chart" point are rendered incorrectly. The line segment is drawn 
over 
> the item renderer. 
> 
> Anyone have a similar experience?
>




[flexcoders] Line Segment over Item Renderer in Line Series

2007-12-05 Thread adtrantravis
I am using a simple Line Chart and Line Series. My array of data has 
yField values that are off the chart. Data points after the "off the 
chart" point are rendered incorrectly. The line segment is drawn over 
the item renderer. 

Anyone have a similar experience?



[flexcoders] Re: Design support for template components (my wish)

2007-12-05 Thread Gus
Any updates on this??

it's my wish too... hehehe

--- In flexcoders@yahoogroups.com, "borekbe" <[EMAIL PROTECTED]> wrote:
>
> Hi, I've just downloaded Flex Builder 3 beta and was curious if
> template components are supported in the design view this time -
> unfortunately, they still aren't. How hard would be to implement this
> feature? To be honest, without the design view support, template
> components are much less attractive.
> 
> Just a little wish...
> 
> Thanks,
> Borek
>




Re: [flexcoders] How to access .net dll's in FLEX 3.0

2007-12-05 Thread Douglas Knudsen
yeah, news to me too.  Must have had some secret edition of Flex 1.5 for
that.

Praveen, maybe your Flex 1.5 app was actually calling a Java POJO that did
some magic to use a .NET dll? Jumping the globe to travel to the
neighbourhood coffee shopanyhoo, with Flex 2 and 3, you could possibly
expose this .NET code as web services and consume with no added server
expense.

DK

On Dec 5, 2007 2:45 PM, Jeffry Houser <[EMAIL PROTECTED]> wrote:

>
> I had no idea Flex 1.5 allowed you to call .NET dlls using
> RemoteObject. Pretty sweet. If Flex 1. Server could access .NET DLLs,
> then I Bet that this funcionality would be present in the current
> rendition of LiveCycle Data Services.
>
> You could also look into WebORB for .NET, although if your company can
> afford Flex 1.5 licenses, I'd suspect that LDS is probably also within
> your budget.
>
> Destinations refer to a remoting configuration file. I believe it
> tells 'you' where to find the remoting gateway.
>
>
> Praveen wrote:
> >
> >
> > HI.. I am Praveen.
> > I joined this group newly. I recently joined
> > in job as fresher in hyderabad. My company is product devleopment
> > company and it developed its product in FLEX 1.5 and .Net. Presently
> > we design our interface in FLEX and interact with .Net dll's using
> > REMOTEOBJECT tag. Presetly the dll's are placed in bin folder of JRUN
> > server. Now our company wants to recode the entire product FLEX
> > 3.0(presently beta) and formed some of us team to study FLEX 3.0. Now
> > I cant understantd how to call(access) the dll's which are previously
> > in the bin folder of JRUN SERVER in the FLEX 3.0. and cant understand
> > the 'destination' property in the REMOTEOBJECT tag and its purpose as
> > we dont use it in our present code(FLEX1.5).
> >
> > Please give me some reply which any of you know..
> >
>
> --
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> Recording Engineer
> AIM: Reboog711 | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>
>  
>



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


[flexcoders] Re: Adding custom events to the pre-loading sequence

2007-12-05 Thread rudmonster

Hello,

I posted an answer this morning but I dont see it so let me try again
(first time posting :)

All you need to do is extend  mx.preloader.Download progressbar then
override the FlexEvent.INIT_COMPLETE you can then control when your
preloader will end ...see here  (sorry ...I am paraphrasing my code dont
have it with me but you will get the idea)

public class Preloader extends DownloadProgressBar {

 public var splash:SplashScreen;

 public function CustomPreloader()
 {
 super();
 splash = new splashScreen();
 this.addChild(splash) ;
 }

 override public function set preloader( preloader:Sprite ):void
 {
 preloader.addEventListener( FlexEvent.INIT_COMPLETE ,
FlexInitComplete );
 }



 private function FlexInitComplete( event:Event ):void
 {
  splash.comp= true;   // When this is true I know that the swf 
has finished downloading
 dispatchEvent( new Event( Event.COMPLETE ) );
 }

   }



so over riding and binding a var to true I can use another event (like a
database query result event to call another function inside of my splash
sprite .as file to remove itself like this:



   public function startupComplete( event:ResultEvent):void
   {

if( this.comp) closeSplash() ;


   }

   public function closeSplash( ):void
   {
if( this.alpha > 0){
 this.alpha = this.alpha - fadeOutRate;
 this.parent.removeChild(this);
}
   }

if this sounds like what you want I can send you all my code to do this
.



Rudmonster :)






--- In flexcoders@yahoogroups.com, "hannes.stockner" <[EMAIL PROTECTED]> wrote:
>
> Now I have a possible solution:
>
> CustomPreloader:
>
> private function onFlexInitComplete(event:Event):void
> {
> //now we can access the Application.application
> Application.application.addEventListener(AppReadyEvent.READY,
> onAppReadyEvent);
> }
>
> private function onAppReadyEvent(event:AppReadyEvent):void
> {
> dispatchEvent(new Event(Event.COMPLETE));
> }
>
> Application:
>
> //dispatch AppReadyEvent if you want remove the preloader
> Application.application.dispatchEvent(new
> AppReadyEvent(AppReadyEvent.READY));
>
>
> What do you think about it?
>
>
>
>
> --- In flexcoders@yahoogroups.com, "dave_defusion" david.spurr@
> wrote:
> >
> > I'm just trying to do the same thing for our app today and there
must
> > be a way, surely it's quite a common requirement. All I want to do
is
> > load the runtime styles & a quick check to the backend, but the
> > loading the styles is the most important thing.
> >
>





[flexcoders] Custom ItemEditor too big for container

2007-12-05 Thread Ken Dunnington
I've built a custom Tree ItemEditor that consists of a VBox with a Form in
it. It works just fine (besides the CheckBox which is too picky about "true"
vs. true in the XML data...) except when I try to edit an item near the
bottom of the container, the editor gets cut off. Because I wanted it to
only occupy the smallest necessary space, I set the following properties on
the Tree control: editorHeightOffset="150" editorWidthOffset="-650", and
there is no width or height set for the ItemEditor.

What's the best way to ensure that my custom editor won't occupy a huge
amount of space, but will stay on-screen as well? I tried setting
verticalScrollPolicy to "on" but it doesn't register as an increase in the
control's height, so the bars don't activate when the editor is off the
screen.


Re: [flexcoders] Re: Triggering a .htrml page inside a html frame from Flex.

2007-12-05 Thread DreamCode
one option is to have the function to load a specific url in javascript,
which would be easy to find a tutorial/example on. You'd then use the
external interface to call js from flex.

Only the first argument is required for the call() method, everything else
is added to the function call

ExternalInterface.call("jsFunctionName", "frameName", "urlToLoad");

On Dec 5, 2007 9:13 AM, kalyancce <[EMAIL PROTECTED]> wrote:

>   sorry for the typo in the title...its 'triggering a .html...'.
>
> 
>


Re: [flexcoders] How to access .net dll's in FLEX 3.0

2007-12-05 Thread Jeffry Houser

  I had no idea Flex 1.5 allowed you to call .NET dlls using 
RemoteObject.  Pretty sweet.  If Flex 1. Server could access .NET DLLs, 
then I Bet that this funcionality would be present in the current 
rendition of LiveCycle Data Services.

  You could also look into WebORB for .NET, although if your company can 
afford Flex 1.5 licenses, I'd suspect that LDS is probably also within 
your budget.

  Destinations refer to a remoting configuration file.  I believe it 
tells 'you' where to find the remoting gateway.

Praveen wrote:
> 
> 
> HI.. I am Praveen.
> I joined this group newly. I recently joined
> in job as fresher in hyderabad. My company is product devleopment
> company and it developed its product in FLEX 1.5 and .Net. Presently
> we design our interface in FLEX and interact with .Net dll's using
> REMOTEOBJECT tag. Presetly the dll's are placed in bin folder of JRUN
> server. Now our company wants to recode the entire product FLEX
> 3.0(presently beta) and formed some of us team to study FLEX 3.0. Now
> I cant understantd how to call(access) the dll's which are previously
> in the bin folder of JRUN SERVER in the FLEX 3.0. and cant understand
> the 'destination' property in the REMOTEOBJECT tag and its purpose as
> we dont use it in our present code(FLEX1.5).
> 
> Please give me some reply which any of you know..
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



[flexcoders] Datagrid ItemEditor - multiple data edits?

2007-12-05 Thread Rick Schmitty
Is it possible for an ItemEditor in a datagrid (or some other way) to
allow you to edit 2 or more things at once?  Like say instead of a
combo box dropdown for a cell in a datagrid, could you have an item
editor that is like a mini form update multiple data objects in that
row's data that may not be displayed in the datagrids view

Or Flex3 advanced datagrid something I should look into?  Or this will
have to be completely custom and kinda 'fake' this behavior


RE: [flexcoders] Re: getChildByName returning NULL SOLVED - kinda

2007-12-05 Thread Gordon Smith
There are several things that may be confusing you...
 
1. A child descriptor is not an actual child. The descriptor simply
stores the information specified for the MXML tag; it is used to create
an actual child DisplayObject. So a component can have a descriptor for
a child without yet having that child.
 
2. Components do not (or at least should not) create their children at
constructor time. In other words, after executing
 
var f:Object = new form1();
 
the child DisplayObjects do not exist. They are created later, when you
put f onto the display list by doing someParent.addChild(f).
 
3. Due to the Flex feature known as "deferred instantiation", all
descendants do not necessarily get created when a component is put onto
the display list. For example, an Accordion creates grandchildren only
for its initially visible pane. The grandchildren on other panes get
created as you navigate to those panes. You should structure your code
to pull data into children as they get created.
 
I also recommend using strong typing:
 
var f:form1 = new form1();
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of riaengineer
Sent: Wednesday, December 05, 2007 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: getChildByName returning NULL SOLVED - kinda



Using callLater() seems to have fixed this behavior.

I dynamically created var f:Object = new form1();

I then call a recusive function on f, f.GetData()

o is found a 1-2 levels of recursion (a canvas that's in an accordion
that' in the canvs, f)

So perhaps the call to updateDisplayList,etc had't yet worked their
magic and created all of the nested components (namely o's childern).
The debugger, however had.

Calling callLater() before the recursive call, f.GetData() seems to
have fixed this problem.

Interesting.

--- In flexcoders@yahoogroups.com 
, "riaengineer" <[EMAIL PROTECTED]> wrote:
>
> o.getChildByName("foo") returns NULL.
> However, I *can* drill down to the childDescriptors of o in the debug
> window. I do see "foo" therein.
> 
> 
> The call to o.getChildByName() was working until o's parent became a
> AS3 variable. Prior to this, o's parent was an MXML tag & everything
> worked. 
> 
> Any thoughts???
>



 


[flexcoders] Mutliple alert copies

2007-12-05 Thread Richard Rodseth
 I have a wizard which ends with the following alert:

 alert = Alert.show("The message has been sent. Would you like to send
another?", "", Alert.YES | Alert.NO, null, handleClose);

If the user chooses YES the alert disappears from view, but next time there
are two of them. Any obvious mistakes?


[flexcoders] Change Height of Track Highlight?

2007-12-05 Thread Ethan Miller
Greetings -

I've increased the height of my slider tracks but can't for the life of me 
figure how to change 
the height of the track highlight to match. 

??

cheers, ethan






[flexcoders] Any additional details on NativeDrag to OS?

2007-12-05 Thread ivo
Hello all,

What I would like to do is allow users to drag files off my AIR app onto their 
OS.

I believe I can tell reliably when a drag gesture ends outside the AIR app but 
I have not figured out how to tell whether the drag gesture ended at a 
filesystem location (like an open folder) or another open application (like 
notepad). If the drag gesture ended on a filesystem location, how do I resolve 
the location to a path?

Also, is there a way to replicate the mouse pointer feedback available in the 
DragManager when using the NativeDragManager for drag operations within app?

Thanks,

- Ivo






[flexcoders] Re: Question about Astro text capabilities

2007-12-05 Thread tudsy
Yeah I saw the left hand page type layout.  I'm really interested in
the right page, which is much more complex. I haven't been able to
find any good detailed spec information on Astro that would help me
determine if it's possible, know of any?
Andy

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Tuesday 04 Dec 2007, tudsy wrote:
> > http://www.templesanjose.org/JudaismInfo/Torah/Talmud_Spread-thumb.jpg
> 
> The left hand page was certainly demo'd at MAX.
> 
> -- 
> Tom Chiverton
> Helping to conveniently revolutionize revolutionary patterns
> on: http://thefalken.livejournal.com
> 
> 
> 
> Please note, as of 10th December 2007 the registered office address
of Halliwells LLP will be at 3 Hardman Square, Spinningfields,
Manchester, M3 3EB
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office.  Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP.  Regulated by The 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] Getting local connection info from Socket

2007-12-05 Thread RipSUp
Okay I'm working on an app that integrates with Novell's Groupwise
Messenger and I'm having an issue.

When sending login info you have to send your IP and PORT you are
using for the connection. Not what I am connecting to but the random
port I was assigned locally.

Is there any way to get this info from the Socket, I was looking
through the documentation for Socket and couldn't find anything. If
this isn't possible I'm going ot have to use PHP as a go between
unfortunately because I have successfully connected with it's sockets
because I can get that info. I was hoping to just handle this all in
Flex so I could later turn this into an AIR app that would be
independent from any web server.

Thanks,
RipSUp




[flexcoders] Re: Adding custom events to the pre-loading sequence

2007-12-05 Thread hannes.stockner
Now I have a possible solution:

CustomPreloader:

private function onFlexInitComplete(event:Event):void 
{ 
  //now we can access the Application.application
  Application.application.addEventListener(AppReadyEvent.READY,
onAppReadyEvent);
}

private function onAppReadyEvent(event:AppReadyEvent):void
{
  dispatchEvent(new Event(Event.COMPLETE));
}

Application:

//dispatch AppReadyEvent if you want remove the preloader
Application.application.dispatchEvent(new
AppReadyEvent(AppReadyEvent.READY));


What do you think about it?




--- In flexcoders@yahoogroups.com, "dave_defusion" <[EMAIL PROTECTED]>
wrote:
>
> I'm just trying to do the same thing for our app today and there must
> be a way, surely it's quite a common requirement. All I want to do is
> load the runtime styles & a quick check to the backend, but the
> loading the styles is the most important thing.
>




[flexcoders] cfc can not get cairngorm VO data?

2007-12-05 Thread markflex2007
Hi

I am using cairngorm with cfc now.

I make some progress and the error like this:

Services.mxml


http://www.adobe.com/2006/mxml";
xmlns:cairngorm="com.adobe.cairngorm.business.*">














formDelegate.as

package ca.sb.CESF.Bursary.business {

import com.adobe.cairngorm.business.ServiceLocator; 
import mx.rpc.IResponder;   
import ca.sb.CESF.Bursary.vo.PersonVO;
import mx.controls.Alert;

public class Form3Delegate {

private var responder:IResponder;
private var service:Object;

public function Form3Delegate( responder:IResponder ) 
{

Alert.show("login delegate begine"); 
this.responder = responder;
this.service = ServiceLocator.getInstance
().getRemoteObject("BursaryService");   
Alert.show("login delegate done");  
}

public function AddPersonData(personVO:PersonVO):void 
{
Alert.show("DELEGATE " + personVO.firstname); 
var call:Object = this.service.addPerson
(personVO);
call.addResponder(responder);
 
}

 

}
}


I output data with "Alert.show("DELEGATE " + personVO.firstname)" in 
function AddPersonData.I can get output data.

but I get error when I pass data by "call:Object = 
this.service.addPerson(personVO);"

The Error message like following

[RPC Fault faultString="Element FIRSTNAME is undefined in PERSONVO." 
faultCode="Server.Processing" faultDetail=""]


How ro fix this?How to output with "mx:RemoteObject" to show which 
data is passed to cfc?






[flexcoders] Menubar Render

2007-12-05 Thread Marvin Froeder
Hi folks,

I had create a MenuBar (copy from LiveDoc's exemple) and set a custom
menuBarItemRenderer.

But when I tried to run I got a runtime error, every time I put the cursor
over the render.

Error:

> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.core::[EMAIL PROTECTED] to
> mx.controls.menuClasses.IMenuBarItemRenderer.
>
>   at mx.controls::MenuBar/mouseOverHandler
> ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\MenuBar.as:1670]
>

Menubar (MenuBarLiveDocsExample.mxml):

> 
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="initCollections();" >
>
> 
> 
> 
>
>  paddingTop="10" paddingLeft="10">
>
> text="Select a menu item."/>
>
>  dataProvider="{menuBarCollection}"
> menuBarItemRenderer="MyCustomRender"/>
>
> 
> 
>

Item Render (MyCustomRender.mxml):

> 
> http://www.adobe.com/2006/mxml";
> implements="mx.controls.menuClasses.IMenuBarItemRenderer"
> >
>
> 
> 
> 
>
> 
> 
> 
>
> 
>


Any one knows how to solve this?


VELO


Re: [flexcoders] LINUX BLANK PAGE

2007-12-05 Thread Darron Schall
yourName wrote:
>
> dear all i have created a sample flex apllication and try to access it 
> from mozila  my operating system is *linux 3 with flash player 
> *9.0.115.0 release i386.rpm. the problem is url is accessed but the 
> page is blank. plz help me out . {I also tried to acces sample flex 
> application form adobe web site but the problem is same url accessed 
> but page is blank}
> Thanks in advaance
>  

This is most likely related to the Flesh Detection in the .html wrapper 
for the Flex .swf file.  Try replacing the .html in the url with .swf 
and see if that loads the app.

I've had some issues testing Flex applications on Linux.  Specifically, 
Express Installer doesn't work because it's not supported on the Linux 
Platform.  The Linux Flash Detection seems to be spotty in generally.  
It seems to work best on Linux if you change the Flex Compiler options 
to generate an html wrapper without the detection code in it.

-d


[flexcoders] Tree - Open all child layers when open branch

2007-12-05 Thread nhid
Hi,

I have this tree structure:

   Branch1
  ChildA
  Child1
  Child1.1
  Child1.2
  Child1.2.1
  Child2
   Child2.1
  Child2.1.1
  Child2.1.2
  Child2.2
  Child2.2.1

How can I open all the child layers at once when I click on the folder icon
of Branch1?

Thanks!


[flexcoders] ValueObject Factories?

2007-12-05 Thread Christophe Herreman
Hi all,

I was wondering how you guys deal with model objects and their corresponding
value objects. We have a pretty big domain model with complex nested classes
and we need to create value objects from them before sending them to the
server. Right now we create a factory for each model, that can create a vo
from a model and a model from a vo. This works, but it is obviously a lot of
work and error prone, so it requires more work to write testcases for them.

Does anyone have this "problem" too? Are you only sending VO's to the server
or do you only do that for complex types and otherwise send the object
itself?

Input, comments and ideas are welcome.

regards,
Christophe

-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org


[flexcoders] chart computed max value

2007-12-05 Thread y.mauron
Hello, 

Is it possible to get the computed max value for a chart ???

Thank you in advance...



[flexcoders] getVisibleBounds()? clipped component with scrollbars in accordion

2007-12-05 Thread Brian
I've got a problem where I'm trying to detect a MouseOut on a
component so that I can revert it back to its original state. The
scenario is I've got an accordion component with VBoxes as the
children.  The VBoxes contain several custom components each, enough
that I've got scroll bars on the accordion children VBoxes. The custom
components have states that are supposed to be triggered on MouseOver
and MouseOut. I use getBounds on these components to see if they
contain the MouseOut event's point. If it doesn't, then I revert back
to the original state.

Everything is working fine, except for when the lowest visible
component in one VBox is clipped by the header of the next accordion's
child. When I move the mouse from inside the component, down out the
bottom and over the next accordion header, the coordinates of the
MouseOut event still fall within the local and content coordinate
system of the component, even though it is clipped on the bottom by
the header.

I've read through the coordinate system docs and tried various
permutations of local, global, and content positioning. I would've
thought that the local coordinate system would reflect what is
visible, but it isn't acting like that is the case.

I've looked for a method like 'getVisibleBounds' but haven't found
anything like it. Any ideas on how I'd do this? What am I missing?



[flexcoders] Sequence Diagram for Cairngorm

2007-12-05 Thread lawriegallardo
Hi,

Just wondering if anyone has a sequence diagram for Cairngorm?

If so, I'd be ever so grateful if you could post it...

Thanks,

Lawrie



[flexcoders] How to access .net dll's in FLEX 3.0

2007-12-05 Thread Praveen
HI.. I am Praveen. 
   I joined this group newly. I recently joined 
in job as fresher in hyderabad. My company is product devleopment 
company and it developed its product in FLEX 1.5 and .Net. Presently 
we design our interface in FLEX and interact with .Net dll's using 
REMOTEOBJECT tag. Presetly the dll's are placed in bin folder of JRUN 
server. Now our company wants to recode the entire product FLEX 
3.0(presently beta) and formed some of us team to study FLEX 3.0. Now 
I cant understantd how to call(access) the dll's which are previously 
in the bin folder of JRUN SERVER in the FLEX 3.0. and cant understand 
the 'destination' property in the REMOTEOBJECT tag and its purpose as 
we dont use it in our present code(FLEX1.5). 

 Please give me some reply which any of you know..



[flexcoders] Re: PrintDataGrid variablerowheight issue

2007-12-05 Thread jf317820
Default

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Custom or default renderers?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jf317820
> Sent: Wednesday, December 05, 2007 7:28 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] PrintDataGrid variablerowheight issue
> 
>  
> 
> Hi everyone,
> 
> I've done my thorough 5 days of documentation research, trial and
> error, and forum perusing on this subject, but have come to you as a
> frustrated, nearly broken developer. My printdatagrid will not print
> correctly, no matter what I try. I am getting rows cut off at the end
> of pages and extra empty rows added at the end of the printdatagrid.
> 
> I have followed the sample code for the printdatagrid, using the
> validatenow and validnextpage methods, i've created my printdatagrid
> dynamically in actionscript and in mxml, I've tried adding extra line
> breaks to my data in an effort to force full rows...but nothing seems
> to work.
> 
> I believe the culprit to be the variablerowheight attribute of my
> printdatagrid which seems to be throwing off the printing. 
> 
> Has anyone figured out a way to print to a printdatagrid effectively???
> 
> Thanks in advance.
> 
> Joe
>




[flexcoders] html wrapper

2007-12-05 Thread pateyog
I am trying to extend the height of the html wrapper such that it
would get a scroll instead of the swf. Here is what I am trying to
achieve:

In my html wrapper I have 

Header (some html content)
Object tag that includes my varying height flex swf
Footer (some html content)

What I am trying to achieve is that the swf application should not
display a scrollbar and should extend its height based on the content.
I managed to make the application height variable by setting the
tabNavigator that it include with "resizeToContent" as true. However
when I run the application inside the html wrapper my SWF content gets
clipped. I would like the object tag to increase or decrease its
height and not clip the content.

Any help here would be appreciated.





[flexcoders] Re: Binding to a ViewStack Child Container Property

2007-12-05 Thread tedgies
Jeez, what happened?  I've never been cutoff when posting to a 
newsgroup before!

I'm trying to bind a label's text to a viewStack's selected VBox 
toolTip.  I have specified each toolTip within VBox components 
themselves.

Anyways, the following binding does not work for me: 



However, i am able to get the following binding work:



So i guess you could say that i am flummoxed by this.

thanks,
Ted



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Tuesday 04 Dec 2007, tedgies wrote:
> > I'm trying to bind a label's text to the selected VBox's toolTip 
text.
> > I'm trying:
> > 
> 
> And ?
> 
> -- 
> Tom Chiverton
> Helping to preemptively supply vertical users
> on: http://thefalken.livejournal.com
> 
> 
> 
> Please note, as of 10th December 2007 the registered office 
address of Halliwells LLP will be at 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the 
registered office.  Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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.
>




Re: [flexcoders] Re: Local storage of password

2007-12-05 Thread Paul Andrews
I can't claim to have invented the technique.

It's even better if a new hash is passed back every time and replaces the 
old one (it means that any copies of the old hash will no longer work).

Paul


- Original Message - 
From: "Jeffry Houser" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 05, 2007 4:40 PM
Subject: Re: [flexcoders] Re: Local storage of password


>
>  I think that's a simple (yet elegant) solution.
>  I wish I thought of it.
>
> Paul Andrews wrote:
>> - Original Message - 
>> From: "Jeffry Houser" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Wednesday, December 05, 2007 2:22 PM
>> Subject: Re: [flexcoders] Re: Local storage of password
>>
>>
>>>  That'd be too easy.  He stated that he needs to prevent the user from
>>> re-entering the password upon their next use of the application.
>>
>> And it would. User logs in with password. Server passes back hashed 
>> version
>> of user logon+password as a key. Server remembers this key.
>>
>> Client saves this key locally and passes it through on future accesses.
>> Server looks up this key to check it's one it handed out previously.
>>
>> Still open to abuse though, even if username/password values are still
>> secret.
>>
>> Paul
>>
>
>
>
> -- 
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> Recording Engineer
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
> 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: Triggering a .htrml page inside a html frame from Flex.

2007-12-05 Thread kalyancce
sorry for the typo in the title...its 'triggering a .html...'.



[flexcoders] Triggering a .htrml page inside a html frame from Flex.

2007-12-05 Thread kalyancce
Hi Friends,

I am trying to work on a situation but not any close yet, and thought 
that I could find some help here.

I am trying to trigger a html page from my flex .swf, but open it 
inside a html frame. ie., from my app.swf, i click a button and must 
open page1.html inside a frame existing in page2.html

The following function can just trigger/open the page1.html:

private function openMainWindow(event:Event):void{
var str1:String="page1.html";
var jscommand:String = "window.open('"+str1+"');";
var url1:URLRequest = new URLRequest("javascript:" + jscommand + "void
(0);");   
navigateToURL(url1, "_self"); 

but how is that I can open this page1.html inside page2.html's frame 
(say 'frame1').

Thank you.

Regards,
K:)



Re: [flexcoders] Re: cfc do not understand cairngorm VO?

2007-12-05 Thread João Fernandes
try to set the Alias attribute in your component. something like 
alias="path.to.my.cfc.PersonVO"

Also, be sure that the AS3 class maps to the same path defined in the 
alias attribute.

-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org



[flexcoders] How to disble double click in ComboBo?

2007-12-05 Thread flexawesome

Hi, I am working on ComboBox components and like to disable double
click event once click the little scrub( arrow icons )

The code doesn't work for me. Is there any way to reach that?

Thanks

=


http://www.adobe.com/2006/mxml";
  layout="absolute" width="305" height="231">

  






RE: [flexcoders] Missing classes when using RSL cache

2007-12-05 Thread Alex Harui
Because TweenEffect is not in the app?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, December 05, 2007 4:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Missing classes when using RSL cache

 

Why would I get startup RTEs along the lines of 
'VerifyError: Error #1014: Class mx.effects.TweenEffect could not be
found" 
when setting datavis to be a RSL in Flex 3 beta 2 ?
-- 
Tom Chiverton
Helping to vitalistically cultivate cross-media networks
on: http://thefalken.livejournal.com  



Please note, as of 10th December 2007 the registered office address of
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester,
M3 3EB



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

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

 



RE: [flexcoders] DataGrid tab order (again)

2007-12-05 Thread Alex Harui
If you're cheating on how tabbing works, you'll have this problem in IE.
In IE, if you aren't in the tab order from the FocusManager's
perspective you could end up having focus leave to the browser.   There
might be a bug related to that as well where we don't handle all cases.
I won't have time to investigate this week.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Wednesday, December 05, 2007 5:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid tab order (again)

 

Hi!

Thanks to Alex's help I got the datagrid tab order functionality I
needed mostly working (including avoiding the datagrid remembering the
last edited cell). 

Just one minor issue now, which I *might* be able to just ignore, but
I'm curious about it because it works correctly on Firefox, but not on
IE. Specifically, when I reverse-tab (shift+tab) out of my DataGrid,
the focus seems to be going to the wrong control. But it only happens
in IE.

Check my sample here:
http://roytang.net/sandbox/DataGridTabOrder.swf
 
Source: http://roytang.net/sandbox/DataGridTabOrder.mxml
 

Is it a bug in the SDK? or is there something I can do to work around
it?

Thanks!

Roy

 



RE: [flexcoders] DataGrid - Swap columns and rows

2007-12-05 Thread Alex Harui
I would convert the object to an array of tag/value objects

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vladimir Stankovic
Sent: Wednesday, December 05, 2007 7:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid - Swap columns and rows

 

Hello everybody!

 

I have an XML file containing data of only one student sth like:

 







Vlada Stankovic

24.09.1984.

5+

FON

...

...

...





 

I would like to show data in the grid view but instead of columns I
would like rows to take the names of the student tags and to have 2
columns (one with tags and the other with data).

 

How can I do this in flex?

 

Thx in advance!

 

Vlada

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of da FoX
Sent: 5. decembar 2007 13:49
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call to Web Service in WebSphere

 


I'm playing around with Flex and want to call a custom made Web Service
in WebSphere.

When I run my application, It seems that a lot of requests are done to
the Web Service repeatably requesting the same XSD's (complex types).
It looks like the application is in an infinite loop, constantly doing
the same requests.. No call the the web service is made yet at this
point.

If I call the requested XSD manually in my browser, it is resolved
without problems.
And if I call another very simple web service, everything is working as
expected.

My Web Service definition looks like this:

http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExp
ort/wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl
 "

endpointURI="http://localhost:9080/CustomerModuleWeb/sca/CustomerDataSer
viceExport

"

service="CustomerDataServiceExport_CustomerDataServiceHttpService"
port="CustomerDataServiceExport_CustomerDataServiceHttpPort"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString), 'Error'">




16







What am I doing wrong here??

__
Looking for last minute shopping deals? 
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping



 



RE: [flexcoders] PrintDataGrid variablerowheight issue

2007-12-05 Thread Alex Harui
Custom or default renderers?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jf317820
Sent: Wednesday, December 05, 2007 7:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PrintDataGrid variablerowheight issue

 

Hi everyone,

I've done my thorough 5 days of documentation research, trial and
error, and forum perusing on this subject, but have come to you as a
frustrated, nearly broken developer. My printdatagrid will not print
correctly, no matter what I try. I am getting rows cut off at the end
of pages and extra empty rows added at the end of the printdatagrid.

I have followed the sample code for the printdatagrid, using the
validatenow and validnextpage methods, i've created my printdatagrid
dynamically in actionscript and in mxml, I've tried adding extra line
breaks to my data in an effort to force full rows...but nothing seems
to work.

I believe the culprit to be the variablerowheight attribute of my
printdatagrid which seems to be throwing off the printing. 

Has anyone figured out a way to print to a printdatagrid effectively???

Thanks in advance.

Joe

 



Re: [flexcoders] cairngorm value object type and cfc type do not match,why?

2007-12-05 Thread Mark Shen
Yes

I change the cfc function code like


  
   

INSERT INTO person_info (fname,
 lname, 
 sid) 
   VALUES('#personVO.firstname#', 
  '#tpersonVO.lastname#', 
  '#personVO.sid#')



  
 

But  I still have same error.

Thanks for your hit

Mark


- Original Message 
From: Jeffry Houser <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 5, 2007 9:20:41 AM
Subject: Re: [flexcoders] cairngorm value object type and cfc type do not 
match,why?


Make sure you add properties to the CFC VO using the cfproperty tag. 
Properties case and order must match what is in the AS3 VO.

Additionally, use the full path with dot notation as the argument type.

Basically, Flex+CF is not smart enough to know that "PersonVO" is 
equal to "Bursary.cfcs. PersonVO" .

markflex2007 wrote:
> 
> 
> I have built a cfc vo class and flex vo class
> 
> PersonVO.as
> 
> package com.abc.CESF. Bursary.vo
> {
> import com.adobe.cairngorm .vo.IValueObject ;
> 
> [RemoteClass( alias="Bursary. cfcs.PersonVO" )]
> 
> public class PersonVO implements IValueObject
> {
> public var firstname:String = "";
> public var lastname:String = "";
> public var sid:String= "";
> 
> public function PersonVO(){
> 
> this.firstname = "";
> this.lastname = "";
> this.sid = "";
> }
> 
> }
> }
> PersonVO.cfc
> 
>  output="false" >
> 
> 
> 
> 
> 
> 
> 
> I have a function in cfc.it is here
> 
>  output="false" returntype=" boolean">
> 
> 
> 
> INSERT INTO person_info (fname,
> lname,
> sid)
> VALUES('#personVO. firstname# ',
> '#tpersonVO. lastname# ',
> '#personVO.sid# ')
> 
> 
> 
> 
> 
> 
> but I get the error when I pass flex vo to the cfc function.I am not
> sure how to make flex vo and cfc vo match.the error message is here
> 
> RPC Fault faultString= "The argument PERSONVO passed to function
> addPerson() is not of type PersonVO." faultCode="Server. Processing"
> faultDetail= "If the component name is specified as a type of this
> argument, the reason for this error might be that a definition file
> for such component cannot be found or is not accessible." ]
> 
> Please help me.Thanks
> 
> Mark
> 
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] styling Flex - able to use multiple stylenames - styleName="styleA styleB" ?

2007-12-05 Thread sgarrity1
In HTML, one can have multiple CSS Rules/classnames in one class
declaration like:

example

>From my testing, it seems this is not available in Flex.  Is there any
way to apply two separate CSS Rules to an element ?

So this does not seem to work:

example

Thanks in advance for any tips



[flexcoders] How to restore automatic height calculation (after an explicit value was set)

2007-12-05 Thread Cosma
Hi flexcoders out there,

I'm facing a simple problem. In Flex, containers such as Panel usually
layout themself looking at their children(automatically choosing an
appropriate width and height). Is there any way to restore this
behaviour after setting an explicit height in ActionScript?

Example:

Think about a Panel that could resize itself to a fixed size
(minimize) and then restore the original value. In the restore phase
I'm currently setting the height property to the measuredMinHeight
property value, but from this moment onward the height will not
reflect the panel contents anymore, as it did by default.

Thanks for any hint
Cosma



Re: [flexcoders] Re: Local storage of password

2007-12-05 Thread Jeffry Houser

  I think that's a simple (yet elegant) solution.
  I wish I thought of it.

Paul Andrews wrote:
> - Original Message - 
> From: "Jeffry Houser" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, December 05, 2007 2:22 PM
> Subject: Re: [flexcoders] Re: Local storage of password
> 
> 
>>  That'd be too easy.  He stated that he needs to prevent the user from
>> re-entering the password upon their next use of the application.
> 
> And it would. User logs in with password. Server passes back hashed version 
> of user logon+password as a key. Server remembers this key.
> 
> Client saves this key locally and passes it through on future accesses. 
> Server looks up this key to check it's one it handed out previously.
> 
> Still open to abuse though, even if username/password values are still 
> secret.
> 
> Paul
> 



-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: getChildByName returning NULL SOLVED - kinda

2007-12-05 Thread riaengineer
Using callLater() seems to have fixed this behavior.

I dynamically created var f:Object = new form1();

I then call a recusive function on f, f.GetData()

o is found a 1-2 levels of recursion (a canvas that's in an accordion
that' in the canvs, f)

So perhaps the call to updateDisplayList,etc had't yet worked their
magic and created all of the nested components (namely o's childern).
 The debugger, however had.

Calling callLater() before the recursive call, f.GetData() seems to
have fixed this problem.

Interesting.


--- In flexcoders@yahoogroups.com, "riaengineer" <[EMAIL PROTECTED]> wrote:
>
> o.getChildByName("foo") returns NULL.
> However, I *can* drill down to the childDescriptors of o in the debug
> window.  I do see "foo" therein.
> 
> 
> The call to o.getChildByName() was working until o's parent became a
> AS3 variable.  Prior to this, o's parent was an MXML tag & everything
> worked.  
> 
> Any thoughts???
>




[flexcoders] Re: xml and dataprovider for simple chart

2007-12-05 Thread y.mauron
It doesn't work :-(

If I use a xml like that : 

813270890280

and the following provider : 

{xmlData.entry.One}

I cann display all the points, but as if it was one series and note
two. Alternativly, I can specify entry[0] or 1 to display one or the
other series but one more time not both...



[flexcoders] Re: cfc do not understand cairngorm VO?

2007-12-05 Thread markflex2007
I create the PersonVO with the cfc wizard,the error still same.

PersonVO.cfc








//Initialize the CFC with the default properties 
values.
variables.firstname = "";
variables.lastname = "";
variables.sid = "";



































Thanks.Please give me a hit

Mark



--- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote:
>
> If you're using FlexBuilder, install the ColdFusion Extensions for 
Flex Builder (they're in the Flex Builder install dir).
> I've mentioned this yesterday.
> 
> With the CF extensions installed, all you have to do is right click 
a cfc or as VO and you're done.
> 
> Your cfc is missing some required stuff by the way..
> 
> Just use the CF wizards.. saves time and hair ;-)
> 
> regards,
> Muzak
> 
> - Original Message - 
> From: "Mark Shen" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, December 05, 2007 3:08 PM
> Subject: [flexcoders] cfc do not understand cairngorm VO?
> 
> 
> >I have built a cfc vo class and flex vo class
> >
> > PersonVO.as
> >
> > package com.abc.CESF.Bursary.vo
> > {
> > import com.adobe.cairngorm.vo.IValueObject;
> >
> > [RemoteClass(alias="Bursary.cfcs.PersonVO")]
> >
> > public class PersonVO implements IValueObject
> > {
> > public var firstname:String = "";
> > public var lastname:String = "";
> > public var sid:String= "";
> >
> > public function PersonVO(){
> >
> > this.firstname = "";
> > this.lastname = "";
> > this.sid = "";
> > }
> >
> > }
> > }
> > PersonVO.cfc
> >
> > 
> >
> > 
> > 
> > 
> >
> > 
> >
> > I have a function in cfc.it is here
> >
> > 
> > 
> >
> > 
> > INSERT INTO person_info (fname,
> > lname,
> > sid)
> > VALUES('#personVO.firstname#',
> > '#tpersonVO.lastname#',
> > '#personVO.sid#')
> > 
> >
> > 
> >
> > 
> >
> > but I get the error when I pass flex vo to the cfc function.I am 
not sure how to make flex vo and cfc vo match.the error message 
> > is here
> >
> > RPC Fault faultString="The argument PERSONVO passed to function 
addPerson() is not of type PersonVO." 
> > faultCode="Server.Processing" faultDetail="If the component name 
is specified as a type of this argument, the reason for this 
> > error might be that a definition file for such component cannot 
be found or is not accessible."]
> >
> > Please help me.Thanks
> >
> > Mark
>




Re: [flexcoders] Which architecture to follow

2007-12-05 Thread Richard Rodseth
I still need to find the time to look at PureMVC, but I'm quite pleased with
the architecture described here:

http://www.joeberkovitz.com/blog/2007/10/18/max-2007-in-barcelona-talk-materials-online/

On Dec 4, 2007 9:34 PM, Anzer <[EMAIL PROTECTED]> wrote:

>Cairngorm or PureMVC?
>
>
>
> I have read some where PureMVC is the best choice.
>
> Please give your inputs.
>
>
>
> Thanks
>
> Anz
>  
>


[flexcoders] Styling extended Flex Components... simple misunderstanding?

2007-12-05 Thread bithroop
I think I'm not understanding something...

My app has a bunch of .mxml classes that extend TitleWindow
(singletons in a UI). I want them all to be styled the same EXCEPT for
I want each one to have a custom background color. Here's how I'm
attempting this...

-begin external css file---

TitleWindow 
{
   borderAlpha: 0.9;
   borderThicknessLeft: 4;
   borderThicknessTop: 0;
   borderThicknessBottom: 16;
   borderThicknessRight: 4;
   roundedBottomCorners: false;
   headerHeight: 20;
   backgroundAlpha: 0.33;
   highlightAlphas: 0.29, 0.02;
   headerColors: #ff, #cc;
   footerColors: #e7e7e7, #c7c7c7;
   dropShadowEnabled: true;
   backgroundColor: #ff;
}

ExtendedTitleWindowA
{
   backgroundColor: #ff;
}


ExtendedTitleWindowB
{
   backgroundColor: #00ff00;
}

-end external css file---

So... this doesn't work. What is happening is that everything that
extends TitleWindow looks the same and the custom backgroundColors are
not taking.

The css is linked via the top level application. 

Can someone set me straight?

-b



RE: [flexcoders] getChildByName returning NULL

2007-12-05 Thread Tom Chiverton
> Any thoughts???

Post your code.





Please note, as of 10th December 2007 the registered office address of 
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB



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

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

RE: [flexcoders] Re: Local storage of password

2007-12-05 Thread Tom Chiverton
>  That'd be too easy.  He stated that he needs to prevent the user from 
> re-entering the password upon their next use of the application.

So compare hashes again... ?

Tom



Please note, as of 10th December 2007 the registered office address of 
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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] Re: cfc do not understand cairngorm VO?

2007-12-05 Thread markflex2007
Please let me know where I can download the latest version CF 
extensions .Please help me.

Mark

--- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote:
>
> If you're using FlexBuilder, install the ColdFusion Extensions for 
Flex Builder (they're in the Flex Builder install dir).
> I've mentioned this yesterday.
> 
> With the CF extensions installed, all you have to do is right click 
a cfc or as VO and you're done.
> 
> Your cfc is missing some required stuff by the way..
> 
> Just use the CF wizards.. saves time and hair ;-)
> 
> regards,
> Muzak
> 
> - Original Message - 
> From: "Mark Shen" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, December 05, 2007 3:08 PM
> Subject: [flexcoders] cfc do not understand cairngorm VO?
> 
> 
> >I have built a cfc vo class and flex vo class
> >
> > PersonVO.as
> >
> > package com.abc.CESF.Bursary.vo
> > {
> > import com.adobe.cairngorm.vo.IValueObject;
> >
> > [RemoteClass(alias="Bursary.cfcs.PersonVO")]
> >
> > public class PersonVO implements IValueObject
> > {
> > public var firstname:String = "";
> > public var lastname:String = "";
> > public var sid:String= "";
> >
> > public function PersonVO(){
> >
> > this.firstname = "";
> > this.lastname = "";
> > this.sid = "";
> > }
> >
> > }
> > }
> > PersonVO.cfc
> >
> > 
> >
> > 
> > 
> > 
> >
> > 
> >
> > I have a function in cfc.it is here
> >
> > 
> > 
> >
> > 
> > INSERT INTO person_info (fname,
> > lname,
> > sid)
> > VALUES('#personVO.firstname#',
> > '#tpersonVO.lastname#',
> > '#personVO.sid#')
> > 
> >
> > 
> >
> > 
> >
> > but I get the error when I pass flex vo to the cfc function.I am 
not sure how to make flex vo and cfc vo match.the error message 
> > is here
> >
> > RPC Fault faultString="The argument PERSONVO passed to function 
addPerson() is not of type PersonVO." 
> > faultCode="Server.Processing" faultDetail="If the component name 
is specified as a type of this argument, the reason for this 
> > error might be that a definition file for such component cannot 
be found or is not accessible."]
> >
> > Please help me.Thanks
> >
> > Mark
>




Re: [flexcoders] xml and dataprovider for simple chart

2007-12-05 Thread Ian M. Jones

Try...

dataProvider ="{xmlData.entry[0].One}"

or

dataProvider ="{xmlData.*.One}"

On 5 Dec 2007, at 15:52, y.mauron wrote:


Dear all,

I have a problem which certainly be very easy. I have a xml varialbe
like the following :

var test:String = "813270890280";
var xmlData = new XML(test);

and would like to use this as dataprovider for my chart. Each 
represent a series. (Rem: the number of  entry is not known at
the beninig). I then code that :


But cannot see the two lines... and even not one...







[flexcoders] xml and dataprovider for simple chart

2007-12-05 Thread y.mauron
Dear all, 

I have a problem which certainly be very easy. I have a xml varialbe
like the following : 

var test:String = "813270890280";
var xmlData = new XML(test);

and would like to use this as dataprovider for my chart. Each 
represent a series. (Rem: the number of  entry is not known at
the beninig). I then code that : 


But cannot see the two lines... and even not one...




  1   2   >