Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Flash IDE Project ActionScript 3 To Flex: How to convert? -


hi have project build flash cs3 ide , actionscript 3. need integrate feature file refrence class. avail in flex. want migrate flex(mxml)..

how possible?

i did code, doesn't work

projectfile.mxml 
<?xml version="1.0" encoding="utf-8"?> <mx:application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationcomplete = "initapp()" >     <mx:script>      <![cdata[          import mx.core.uicomponent;            public function initapp():void {              var app:applications =  new applications(this);             addchild(app);           }     ]]>     </mx:script>  </mx:application> 

applications.as applications class called fla earlier, need add base class mxml.

package {      import com.anotherclass;      import flash.display.*;     import flash.events.*;      public class main extends sprite {          public var _mystage:stage;         public function main() {             var app:anotherclass=  new anotherclass(this);             addchild(app);         }      } } 

but iam unable load applicatios class object on mxml.

of course can use filereference.save without deploying air content and/or porting flex. problem is: filereference.save available in flash player 10 or greater, cs3 deploy flash player 9.

it turns out can still it, it's bit messy, , have use little hack:

  1. get flashplayer 10 as3 libraries. part of flex sdk, can download adobe free.
  2. create flash 9 as3 document.
  3. add libraries classpath, instead of default ones.
  4. use filereference.save in program.
  5. deploy fp 9. ignore compiler warnings, if any.
  6. open swf in hex editor.
  7. change 4th byte 09 0a (his indicates version number).
  8. save swf.
  9. open swf in flash player 10 - should work.

(most of these hints zeroseven's german page).


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -