[flexcoders] Re: skinning and validation

2010-01-19 Thread peeyushtuli
I googled around a lot for this but could not find a solution anywhere. So I 
decided to solve it on my own by subclassing textinput control and a new style 
called errorskin. I have posted the link if it helps somebody, with view source 
enabled.
http://www.metadesignsolutions.com/samples/flex/errorskin/ErrorSkin.html


--- In flexcoders@yahoogroups.com, Toby Tremayne  wrote:
>
> Hi Tim,
> 
>   On the text field if I remove the focusSkin yes, it then uses the red  
> border as it should.  But on the combo box and numeric stepper I can  
> confirm that the validation is working fine - when I mouse over the  
> field it still brings up the red tooltip to the right hand side, it's  
> just not giving me the outline on the control itself.  And importantly  
> you can see from the css below that my combo box doesn't even have a  
> focusskin specified.
> 
>   I've discovered that if I use the tab button to move focus onto the  
> combobox after validation has failed, then the focus border appears  
> and is red - but it won't appear by itself.
> 
>   I would have assumed that you could provide a focusskin and then the  
> component would still draw the red border, but I can't find any  
> references for it.  Can anyone tell me how to do this?  There doesn't  
> seem to be a skin option for the error border itself.
> 
> Toby
> On 30/07/2008, at 3:42 PM, Tim Hoff wrote:
> 
> > Hi Toby,
> >
> > For drawing the error border, flex uses the Focus Manager. If you
> > use a focusSkin, it lloks like it over-rides the focus rectangle
> > drawn with the errorColor. Try taking that skin out, to see if it
> > comes back. Don't know about the comboBox. Have you verified that
> > the validation failure is actually setting the errorString? You can
> > try this; to find out if it's a skin or logic problem:
> >
> > 
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, Toby Tremayne  wrote:
> > >
> > > Hi all,
> > >
> > > I've googled but every time I find someone with the same
> > problem the
> > > questions seem to go unanswered...
> > >
> > > I have skins applied to a flex app and I'm having an issue
> > where for
> > > most elements the red border doesn't show up when validation
> > fails.
> > > For example, I have this in my css file:
> > >
> > > TextInput
> > > {
> > > borderSkin: Embed(source="TextInput.swf",
> > > symbol="TextInput_borderSkin");
> > > focusSkin: Embed(source="TextInput.swf",
> > symbol="TextInput_focusSkin");
> > > }
> > > ComboBox
> > > {
> > > disabledSkin: Embed(source="ComboBox.swf",
> > > symbol="ComboBox_disabledSkin");
> > > downSkin: Embed(source="ComboBox.swf",
> > symbol="ComboBox_downSkin");
> > > editableDisabledSkin: Embed(source="ComboBox.swf",
> > > symbol="ComboBox_editableDisabledSkin");
> > > editableDownSkin: Embed(source="ComboBox.swf",
> > > symbol="ComboBox_editableDownSkin");
> > > editableOverSkin: Embed(source="ComboBox.swf",
> > > symbol="ComboBox_editableOverSkin");
> > > editableUpSkin: Embed(source="ComboBox.swf",
> > > symbol="ComboBox_editableUpSkin");
> > > overSkin: Embed(source="ComboBox.swf",
> > symbol="ComboBox_overSkin");
> > > upSkin: Embed(source="ComboBox.swf",
> > symbol="ComboBox_upSkin");
> > > }
> > >
> > > And neither combobox nor textinput show the red validation border
> > when
> > > validation fails. What am I missing? Is there a way to specify
> > an
> > > error border skin or something? Or should there be some way in
> > the
> > > skin file to add an error border?
> > >
> > > cheers,
> > > Toby
> > > ---
> > >
> > > Life is poetry, write it in your own words
> > >
> > > ---
> > >
> > > Toby Tremayne
> > > CEO
> > > Code Poet and Zen Master of the Heavy Sleep
> > > Lyricist Software
> > > 0416 048 090
> > > ICQ: 13107913
> > >
> >
> >
> > 
> 
> ---
> 
> Life is poetry, write it in your own words
> 
> ---
> 
> Toby Tremayne
> CEO
> Code Poet and Zen Master of the Heavy Sleep
> Lyricist Software
> 0416 048 090
> ICQ: 13107913
>




[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread peeyushtuli
Asynctokens do work. I havent seen a single case of the handlers not being 
invoked being linked to some bug in flex sdk. Can you please post some code 
snippets of how exactly you used the asynctoken and mention the flex sdk?


--- In flexcoders@yahoogroups.com, "trefalgar"  wrote:
>
> I've given up for now. 
> 
> AsyncTokens appear to be the way to go, but by the documentation I've seen it 
> *should* work, but the result/fault handlers are never hit. I decided to try 
> using 'closure' instead - I'm not even sure if the variables will remain 
> stateful, but it's at least in a forward direction for now.
> 
> I think this is another case of the documentation being abysmally lacking.
> 
> Tref
> 
> --- In flexcoders@yahoogroups.com, "trefalgar"  wrote:
> >
> > Yeap, looking at that now and having little luck as well.
> > 
> > http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_23313753.html,
> >  for example, shows someone with a similar problem with a similar solution. 
> > Here's what I've got ...
> > 
> > var myService:Statistics = new Statistics(null,endPoint);
> > var token:AsyncToken = myService.disableStatistics(user,pass,email,tArray);
> > token.email = email;
> > token.addResponder(new AsyncResponder(myResults,myFaults,token)); 
> > 
> > myResults and myFaults are never hit. If I use addEventListener against 
> > myService instead, I get the resulting data, but nothing from the 
> > token:AsyncToken. 
> > 
> > I'm not comfortable that I have the AsyncToken set up properly, since it 
> > doesnt make sense to make the call to myService before 'email' or 
> > 'addResponder' is issued, which is what I'm playing with right now.
> > 
> > Treffy
> > 
> > 
> > --- In flexcoders@yahoogroups.com, João Fernandes 
> >  wrote:
> > >
> > > You can add a responder to your AsyncToken which will carry your fault and
> > > result handlers.
> > > 
> > > 2010/1/18 trefalgar 
> > > 
> > > >
> > > >
> > > > For those wanting to follow this suggestion, there's a good example 
> > > > here:
> > > > http://livedocs.adobe.com/flex/3/html/help.html?content=data_4.html. 
> > > > It's
> > > > towards the bottom, "Using a return token".
> > > >
> > > > Unfortunately, this example doesn't appear to work for me. It uses the
> > > > Flex-built SOAP code and an AsyncToken to keep track of things. I don't 
> > > > have
> > > > a FaultEvent.FAULT or ResultEvent.RESULT option when adding an event
> > > > listener to my AsyncToken.
> > > >
> > > > Back to the drawing board I go.
> > > >
> > > > Jacob
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com , João
> > > > Fernandes  wrote:
> > > > >
> > > > > > That said, since #2 doesn't tell me what user it's replying "no" to,
> > > > > > if I do this in a loop with 100 users, it could be replying back 
> > > > > > with
> > > > > > 20 "no"s and I can't tell how I'd match the replies up with the
> > > > requests.
> > > > > Yes you can, try using the asyncToken generated by
> > > > > service.invokeWs(user) and store your user in some property (eg.
> > > > > currentUser) , once you get the resultEvent, that AsyncToken will have
> > > > > the corresponding user stored (event.token.currentUser).
> > > > >
> > > > > --
> > > > >
> > > > > João Fernandes
> > > > >
> > > > > Adobe Certified Expert
> > > > > Adobe Community Expert
> > > > > http://www.twitter.com/joaofernandes
> > > > > http://www.riapt.org
> > > > > Portugal Adobe User Group (http://aug.riapt.org)
> > > > >
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > 
> > > -- 
> > > 
> > > João Fernandes
> > >
> >
>




[flexcoders] Re: A popupbutton without arrow?

2010-01-19 Thread peeyushtuli


Are you looking for something similar to this?
http://www.metadesignsolutions.com/samples/flex/popbutton/controls.html



--- In flexcoders@yahoogroups.com, Leonardo Camargo  wrote:
>
> Hi folks, I'm looking for ideas... I need to have a button(skinnned with an
> icon), that when clicked will show a "layer" with two options, pretty much
> like a combobox or a popupbutton. But I need the button to be, "clean",
> without the arrow.
> 
> Any Ideas on how to go about doing this?
> 
> Regards,
> Leonardo C.
>




[flexcoders] InvokeEvent not dispatched for webservice

2009-06-11 Thread peeyushtuli
Hi,

Is it possible to add an eventlistener for the InvokeEvent when caling a web 
operation using the autogenerated code from the webservice wizard in flex 
builder 3.
I am using flex sdk 3.2.
I tried to add an eventlistener to the instance of the BaseService class but 
that does not help.

Thanks,
Peeyush




[flexcoders] Re: Symmetric Key Encryption in Flex Client C# WebServices

2007-11-29 Thread peeyushtuli

Thank you all for the responses, but I have already tried this one.
C# does not have an official implementation for AES, so I had to 
ignore that one. I tried Triple DES , but it was not consistent if 
you try both sides, flex and C#, I guess there is a difference in 
implementations. I would need to do some substantial test cases, 
before reporting that to the author. If aybody with a real time 
implementation experience for this case can guide me, I would be 
really grateful.

Thanks,
Peeyush Tuli
MetaDesign Solutions

--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>   And ascrypt3.riaforge.com .
> 
>   As an aside, I could never get ascrypt3 AES to work with 
ColdFusion, 
> however I could get crypto AES to work w/ CF.
> 
> Florian Sprenger wrote:
> > 
> > 
> > Hi,
> > 
> > have a look at As3 Crypto : http://crypto.hurlant.com/ 
> > 
> > Florian
> > 
> >  >
> >  > There is a requirement to implement encryption some data in a 
Flex
> >  > based client and decrypt it in a C# based web service, and 
vice versa.
> >  > Has anybody tried it with AES, Blowfish or Triple DES?
> >  > Any pointers would be appreciated.
> >  >
> >  > Thanks,
> >  > Peeyush
> >  > MetaDesign Solutions
> >  >
> > 
> >  > _
> >  >
> >  >
> > 
> > -- 
> > Florian Sprenger, Actionscript Software Developer
> > sMeet Limited
> > Gipsstr. 5
> > D-10119 Berlin
> > 
> > Tel: +49-30-9700 
> > Fax: +49-30-9700 5359
> > Mob: +49-
> > E-Mail: [EMAIL PROTECTED] 
> > 
> > Handelsregister Berlin Charlottenburg: HRB 104503 B
> > 
> > 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
> Recording Engineer
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>




[flexcoders] Symmetric Key Encryption in Flex Client C# WebServices

2007-11-29 Thread peeyushtuli
Hi,

There is a requirement to implement encryption  some data in a  Flex
based client and decrypt it in a C# based web service, and vice versa. 
Has anybody tried it with AES, Blowfish or Triple DES?
Any pointers would be appreciated.

Thanks,
Peeyush 
MetaDesign Solutions






[flexcoders] Individual button skin Toggle Button Bar gone on application color style change

2007-10-08 Thread peeyushtuli
Hi,
I am working on an application which has a toggle button bar with
different skins assigned to individual buttons in the css file. Eg
.newBreakBtn {
upSkin:Embed('/img/action/.png');
}
.newCmplntBtn{
upSkin:Embed('/img/.png');

}

and so on. I assign the specific style to each button at run time.Eg

var btn:Button = tbtnBar.getChildAt(1) as Button;
btn.styleName = "newBreakBtn";

This works fine. The application allows the user to change the font
color and the content panel transparency , background image ,
background transparency and also allows the user save or undo these
settings after making changes.My issue is that whenever the font color
is changed along with the content panel tranparency in the following
manner, together in one event handler, the skin of the buttons is removed.

// font color
mx.styles.StyleManager.getStyleDeclaration('Application').setStyle('color',
fColor.value);

// conent panel transparency
mx.styles.StyleManager.getStyleDeclaration('global').setStyle('backgroundAlpha',
canvasAlphaSlider.value);

Changing them separately( in different event handlers) does not cause
any issues.
Does anybody have an idea why this is happening?

Thanks,
Peeyush 






[flexcoders] Remove Button Round Area

2007-05-31 Thread peeyushtuli
Hi,
I m trying to put a circular shaped icon for my button. But the round
area which covers the button is at best elliptical. I want to do away
with it altogether. Any clues on how to do it?
Thanks,
Peeyush