--simply i refered in one site and i have placed that(gatewayurl) parameter.
No special cause for that.
--I think it is notatall hitting the service while compilation. Actually the
mxml file i am compiling is running version only(with
http://localhost:8090/myprojfit/signup.mxml)
--Is it right idea what i am doing? I mean is it feasable thing? ( trying
the compile the mxml file and directy i want to load the compiled .swf file
to my browser).
1)my sample code loooks like:
------------------------------------------------------------------------------------------------------------
<mx:RemoteObject id="dao" source="com.itpl.myprojfit.accounts.AccountsDAO">
<mx:method name="getCountries" result="onGetCountries(event)" />
</mx:RemoteObject>
Object.registerClass('com.itpl.myprojfit.transferobjects.CountryTO',com.itpl.myprojfit.transferobjects.CountryTO);
................................
................................
................................
in result function i am assigning the values to the combobox...
------------------------------------------------------------------------------------------------------------
2)my home page for user login also almost same problem with compile swf
file. I am notatall able to fuction with this. My home page sample code
looks like:
------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="loadme()" styleName="main"
xmlns="com.itpl.mysite.transferobjects.*"
marginTop="10"
marginBottom="10"
marginLeft="0"
marginRight="0"
horizontalAlign="center" backgroundColor="white">
<mx:Script source="actionscripts/mysite.as" />
<mx:Script source="actionscripts/Remember_Help.as" />
<mx:Style source="css/commoncss.css" />
<mx:Style>
.heading {
background-color: #99CC99;
}
</mx:Style>
<mx:Script>
import com.itpl.mysite.transferobjects.LoginTO; //.class file
var oMyObject:Object;
//private var userId:SharedObject;
var page: String;
<![CDATA[
function loadme() {
oMyObject = new Object();
Object.registerClass('com.itpl.mysite.transferobjects.LoginTO',
com.itpl.mysite.transferobjects.LoginTO); //.as file binding the .as file
with bean class.
loginidObj.session('get', 'userId');
username.text = "";
password.text = "";
loaduser();
}
public var myAlert:Alert;
function getHelp()
{
//var popup = mx.managers.PopUpManager.createPopUp(_root, helpwindow, true,
{deferred: true});
import mx.containers.TitleWindow;
var pop1:TitleWindow =
mx.containers.TitleWindow(popupWindow(helpwindow,{title:'Login Help',
width:330, height:350, x:610, y:100}));
}
private function loginIdResult(oEvent) {
var userId=oEvent.result;
if(userId!=null && page!="home"){
getUrl("accounts/inbox.mxml");
}
}
]]>
</mx:Script>
<mx:RemoteObject id="log" source="com.itpl.mysite.login.LoginDAO">
<mx:method name="validateUser" result="onResult(event)"
fault="alert(event.fault.faultstring, 'Error')" /> <!-- java function
name -->
<mx:method name="getmysiteDetails" result="mysiteResult(event)"
fault="alert(event.fault.faultstring, 'Error')" />
</mx:RemoteObject>
<mx:RemoteObject id="emailObj" source="servlet"
fault="mx.controls.Alert.show(event.fault.faultstring, 'Error')"/>
<mx:RemoteObject id="loginidObj" source="servlet"
result="loginIdResult(event)"
fault="mx.controls.Alert.show(event.fault.faultstring, 'Error')"/>
<mx:RemoteObject id="mysiteidsObj" source="servlet"
fault="mx.controls.Alert.show(event.fault.faultstring, 'Error')"/>
<LoginTO id="login"></LoginTO>
<mx:Model id="validlogin">
<username>{username.text}</username>
<password>{password.text}</password>
</mx:Model>
<mx:EmailValidator field="validlogin.username"/>
<mx:StringValidator field="validlogin.password"/>
<mx:Grid width="880" height="100%" borderStyle="solid" hScrollPolicy="off">
<!-- VBox 1 -->
<mx:GridRow width="100%" height="15%" >
<mx:GridItem hScrollPolicy="off" vScrollPolicy="off">
<mx:Grid hScrollPolicy="off" vScrollPolicy="off">
<mx:GridRow verticalAlign="top">
<mx:GridItem colSpan="3" width="410" height="35" verticalAlign="top"
horizontalAlign="left" hScrollPolicy="off">
<mx:Image id="logo_loader" source="swf-templates/index_logo_new.swf"
mouseDown="getUrl('mysite.mxml');" horizontalAlign="left"
verticalAlign="top" />
</mx:GridItem>
<mx:GridItem colSpan="4" height="30" hScrollPolicy="off"
vScrollPolicy="off">
<mx:Canvas>
<mx:TextInput x="0" y="7" text="" fontSize="7" width="80" height="14"
backgroundColor="white" borderColor="#000000" id="username"
enter="userlogin()" />
<mx:TextInput x="85" y="7" text="" fontSize="7" width="80" height="14"
backgroundColor="white" borderColor="#000000" id="password" password="true"
/>
<mx:Image x="165" y="7" id="login_button_loader" width="75"
source="swf-templates/top_GObut.swf" mouseDown="userlogin()"
scaleContent="false" />
<mx:CheckBox x="220" y="7" id="remember" label="Remember Me!"
labelPlacement="left" fontSize="9" mouseOver="showRememberMessage()"
mouseOut="rememberMouseOut()" />
<mx:Link x="308" y="9" label="Login Help" fontSize="9" color="#000000"
height="10" mouseDown="getForgot()" mouseOver="showHelpMessage()"
mouseOut="helpMouseOut()"/>
<mx:Image x="350" y="0" id="signup_button_loader" width="75"
source="swf-templates/top_signupbut.swf"
mouseDown="getURL('accounts/accounts.mxml')" scaleContent="false" />
</mx:Canvas>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow>
<mx:GridItem colSpan="7">
<mx:Grid>
<mx:GridRow>
<mx:GridItem colSpan="7">
<mx:Image source="swf-templates/one.swf" />
<mx:Image source="swf-templates/two.swf" />
<mx:Image source="swf-templates/three.swf" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow>
<mx:GridItem colSpan="7">
<mx:Image source="swf-templates/four.swf" />
<mx:Image source="swf-templates/fuve.swf" />
<mx:Image source="swf-templates/six.swf" />
<mx:Image source="swf-templates/seven.swf" mouseDown="loadCalic()" />
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
/mx:GridItem>
</mx:GridRow>
<!-- VBox 2 -->
<mx:GridRow width="100%" height="85%" >
<mx:GridItem>
<mx:Canvas>
<mx:Grid width="100%" height="100%" x="0" y="-50">
<mx:GridRow width="100%" height="100%">
<mx:GridItem width="100%" height="100%" vScrollPolicy="off">
<mx:Image id="signup_content_loader"
source="swf-templates/FFG-temp-landing-pg.swf" />
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
</mx:Canvas>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
</mx:Application>
------------------------------------------------------------------------------------------------------------
----- Original Message -----
From: "Tom Chiverton" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 08, 2006 6:52 PM
Subject: Re: [flexcoders] Re: mxmlc compiler error - more described
> On Tuesday 08 August 2006 12:19, Satish wrote:
>> D:\SVN\Code\myprojfit\web\WEB-INF\flex\bin>mxmlc -o
>> d:\SVN\Code\myprojfit\web\headerInput.swf
>> d:\SVN\Code\myprojfit\web\headerInput.mxml -gatewayurl -use-network=true
>> http://localhost:8090/myprojfit
>
> You wouldn't normally need gatewayurl or use-network parameters. Any
> reason
> for setting them ?
>
>> But my generated swf file is not able to load this type of content!) how
>> to
>> load the generated swf file with complete content?.
>
> What happens ? Does the combo box just stay blank ? Is there any evidence
> it's
> hitting the service ? What sort of remote service is it ?
>
> --
> Tom Chiverton
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England
> and Wales under registered number OC307980 whose registered office address
> is at 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 Law Society.
>
> 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 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> 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/
<*> 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/