1 Reply Latest reply on Aug 3, 2006 12:37 PM by leotemp

    can you please checkout these urls

    j2eesatish Level 1
      Can you please checkout these URLs
      http://images.optin.com.au/optusxmas/flash/penguin_tebe.swf?msg=satish
      http://www.diesel.com/

      When we observe these sites closely we found immediatly we hit the URL, one flash file is loading until our actial page is loaded.
      Can we do this in mxml? Our live site is too slow to load the home page itself and no animation was added until loading the page. our url looks like www.xxxxxxx.com:9080/yyy/test.mxml or www.xxxxxxx.com:9080/yyy/test.mxml.swf


      If this kind of stuff is possible mxmls, can you please give the downloadable examples? we are using flex1.5



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