Calling a DCD http service constructor from <fx:Declarations> scope


hi,

 

i've created httpservice called ecomhttpservice using dcd http service, , added constructor parameter of type string.

now in mxml file call constructor <fx:declarations> scope.

if understand correct, follow declaration

 

 

<fx:declarations> 

<ecomhttpservice:ecomhttpservice

id="ecomhttpservice"

                                                    fault="alert.show(event.fault.faultstring + '\n' + event.fault.faultdetail)"

                                                    showbusycursor="true"/>

...

creats new instance of ecomhttpservice calling default constructor of ecomhttpservice. how can create http service calling constructor i've added gets string parameter? if don't set in constrcutor default value parameter i'm getting abvious error of incorrect number of arguments , can't find anywhere how can call constrcutor in declaration scope.

thanks lot,

lital.



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support