Fever & FvAsWing update ( rev 194 )

New update for Fever & FvAsWing frameworks.

I don't have many time to work on Fever currently... but I have implemented some new things and fix others.
Today we have few new classes ( BitmapGrid, BitmapClip,... ) and some updates for Dialog and FileSystem factories, new FvTree properties and more...

API Documentation is updated too : documentation.

Let's discover this new version now...

Fever framework

  • Fever.application ( class name CoreApplication ) have new methods :
    • openDocument ( path : String ) :
      • allow to open external document with context associated application
    • runProcess ( app : String, args : String, workingDir : String, hidden : Boolean, waitFor : Boolean )
      • launch external application ( throw exception in Browser context )

    • protect() and unprotect()
      • just a shortcut to FeverController#onLockInteractionEVENT boolean event broadcasting


  • FileFilter and FileFilterList now implements FileFilterCollection interface.
    • getFilterIterator() returns correctly the filter list definition


  • IDailog and all Dialog fFactory classes are updated with new FileFilterCollection type


  • FileSystem
    • getTempDirectory()
      • returns a directory to save / write temporay files

    • getAppDirectory()
      • returns path where application is run

    • BrowserContext.remoteFileSystem property added to indicates if, in Browser context, we have to use the SOFileSystem ( FileSystem simulation using SharedObjects ) or a complete HTTPFileSystem ( using remoting and Ajax for a real time communication )


  • BrowserFrame and BrowserPopup are available ( came from old implementations; updated for Fever now )
    • allow creation and control of Iframe in browser
    • allow creation and control of popup window


  • BitmapGrid class added
    • allow definition and control of picture cells in a main picture file. ( alpha supported )
    • There is a sample image to use with BitmapGrid class

      Bitmap Grid image

    • when BitmapGrid take control, we can see it like this :

      Bitmap grid

    • differents access are available :
      • getBitmapAt( p : Point )
      • getBitmapRow( index : Number )
      • getBitmapColumn( index : Number )
      • getBitmap()

    • Here is a complete example :


      1.   public function run() : Void
      2.   {
      3.       var bl : BitmapLib =  new BitmapLib();
      4.       bl.addEventListener( BitmapLib.onLoadInitEVENT, this, _onLoad );
      5.       bl.load( 'lib.png' );
      6.   }
      7.   
      8.   private function _onLoad( ev : BitmapLibEvent ) : Void
      9.   {
      10.      // creates the grid using receive bitmap data
      11.      // In our sample, cell width == cell height, so we only pass 
      12.      // the width size.
      13.      var bg : BitmapGrid = new BitmapGrid( event.getBitmap(), 64 );
      14.     
      15.      // creates a empty MovieClip
      16.      var mc : MovieClip = Fever.stage.createEmptyMovieClip( 't' );
      17.     
      18.      // just attach specific cell now
      19.      mc1.attachBitmap( bg.getBitmapAt( new Point( 2, 0 ) ), 1 );
      20.      mc1._y = 100;
      21.  }


  • BitmapClip class added
    • allow desinger to create "frame by frame" animation in image format. Developer retreive it using class and can control
      animation ( like MovieClip ) using public methods. ( alpha supported )
    • Here is image sample ( image counter )
      Bitmap clip image
    • when BitmapClip take control, imagine your clip like this ( MovieClip timeline )

      Bitmapclip grid

    • control methods are :
      • play()
      • stop()
      • gotoAndPlay( index : Number )
      • gotoAndStop( index : Number )
      • prevFrame()
      • nextFrame()

    • BitmapClip wait for a MovieClip target as constructor parameter.
      As she doesn't extends MovieClip class ( I love composition ), we can access target MovieClip using getView() method.

    • Example :


      1.   public function run() : Void
      2.   {
      3.       var bl : BitmapLib =  new BitmapLib();
      4.       bl.addEventListener( BitmapLib.onLoadInitEVENT, this, _onLoad );
      5.       bl.load( 'animation.png' );
      6.   }
      7.   
      8.   private function _onLoad( ev : BitmapLibEvent ) : Void
      9.   {
      10.      // creates the clip using receive bitmap data
      11.      // In our sample, animation contains 5 frames
      12.      var ba : BitmapClip = new BitmapClip( Fever.stage.createEmptyMovieClip( 't' ), event.getBitmap(), 5 );
      13.     
      14.      //now play the animation ( loop mode is automatic )
      15.      ba.play();
      16.     
      17.     
      18.      // accessing target MovieClip
      19.      ba.getView()._x = 300;
      20.  }

    • 2 methods allow "script call" during animation on specific frame ( like Actionscript placed in MovieClip timeline frame )
      • addFrameScript( frameNum : Number, handler )
      • removeFrameScript( frameNum : Number )
      • A third method named addFrameStop( frameNum : Number ) exist as shortcut to place a "stop();" script on frame.

    • Example :


      1.   private function _onLoad( ev : BitmapLibEvent ) : Void
      2.   {
      3.       var ba : BitmapClip = new BitmapClip( Fever.stage.createEmptyMovieClip( 't' ), event.getBitmap(), 5 );
      4.       ba.addFrameScript( 2, this, _onFrame );
      5.       ba.addFrameStop( 5 );
      6.       ba.play(); // animation doesn't loop as we place a "stop" on frame 5.
      7.   }
      8.   
      9.   private function _onFrame( event : FrameEvent ) : Void
      10.  {
      11.      trace( 'Action on frame ' + event.getFrameNum() );
      12.      // output : "Action on frame 2"
      13.  }

      As you can see, a FrameEvent is broadcasted to retreive necessaries event properties ( target, type and frame number )


  • MCFrameController class added
    • As BitmapClip class MCFrameController give access to MovieClip frames to execute dedicated function at specific frame.
    • Example :


      1.   public function run() : Void
      2.   {
      3.       var bl : BitmapLib =  new BitmapLib();
      4.       bl.addEventListener( BitmapLib.onLoadInitEVENT, this, _onLoad );
      5.       bl.load( 'animated.swf' );
      6.   }
      7.   
      8.   private function _onLoad( ev : BitmapLibEvent ) : Void
      9.   {
      10.      // retreive MovieClip content from BitmapLib
      11.      var mc : MovieClip = event.getView().square;
      12.     
      13.      // retreive MCFrameController instance ( singleton )
      14.      var mb : MCFrameController = MCFrameController.getInstance();
      15.     
      16.      // add scripts to specific frames
      17.      mb.addFrameScript( mc, 5, this, _onFrame );
      18.     
      19.      // or like this
      20.      // mb.addFrameScript( mc, 10, this );
      21.  }


  • Some fixes now

    • FvContextMenuEvent.getTarget() correctly return the FvContextMenu target
    • Remoting gateway url parsing from configuration file is updated
    • MathUtils.random() accept a new 3rd parameter to allow rounded result ( default is false )
      • MathUtils.random( 10, 600, true )

 

FvAsWing framework

  • FvTree ( and tree package ) update
    • The FvTreeNode has 3 new properties ( enable FvTree properties overriding for node and not only for the whole tree )
      • isDraggable
      • isDeletable
      • isEditable

    • FvTree.isEditable() is overrided to check tree or node edition status ( depending of current tree selection )
    • FvTree.isValidEditingValue() added to enable ( or not ) node value edition checking

  • FvFileChooser is updated to be compliant with IDialog interface and thus can be used to open HTTP File System dialog.

 

Downloads

Comments
# Posted By Adny | 2/12/08 6:51 AM
# Posted By Guy Jackson | 2/15/08 8:50 AM
smremont.com's Gravatar cool <u style="display:none">
<a href="http://www.smremont.com">smremont.com</a>
<a href="http://www.polostroy.org">polostroy.org</a>
<a href="http://www.willastroy.com">willastroy.com</a>
<a href="http://www.mngt.ru">mngt.ru</a>
<a href="http://www.ofbis.info">ofbis.info</a>
<a href="http://www.onbis.info">onbis.info</a>
<a href="http://www.mnfin.info">mnfin.info</a>
<a href="http://www.m-bis.info">m-bis.info</a>
<a href="http://www.finup.info">finup.info</a>
<a href="http://www.qbis.info">qbis.info</a>
<a href="http://www.ftrs.info">ftrs.info</a>
<a href="http://www.f-bis.info">f-bis.info</a>
<a href="http://www.bis-up.info">bis-up.info</a>
<a href="http://www.forexbis.info">forexbis.info</a>
<a href="http://www.fnbis.info">fnbis.info</a>
<a href="http://www.conbis.info">conbis.info</a>
<a href="http://www.bisoff.info">bisoff.info</a>
<a href="http://www.bisall.info">bisall.info</a>
<a href="http://www.orgstroy.com">orgstroy.com</a></u>
# Posted By smremont.com | 2/19/08 2:43 PM
xxsshara's Gravatar very good article, thank you <u style="display:none">
<a href="http://www.isovet.ru">isovet.ru</a>
<a href="http://www.mebelyaroslavl.ru">mebelyaroslavl.ru</a>
<a href="http://factor-tsp.ru">factor-tsp.ru</a>
<a href="http://spbgau.su">spbgau.su</a>
<a href="http://gru3.ru">gru3.ru</a></u>
# Posted By xxsshara | 2/27/08 9:11 AM
# Posted By gdgdf | 3/10/08 9:18 AM
phrase's Gravatar This is a good article!Dig your article to http://www.duyp.net
business http://www.qxiu.com directory http://www.qxiu.net
# Posted By phrase | 3/25/08 5:52 AM
# Posted By funnypictures | 3/31/08 3:49 AM
Lisa's Gravatar Your site has very much liked me.
I shall necessarily tell about him to the friends.

http://echocct.org
http://home-loans-financing.net
http://fxhqproject.com
http://cofba.org
# Posted By Lisa | 4/22/08 2:59 AM
# Posted By Allerfrd | 4/23/08 11:15 PM
# Posted By Tadalafil | 4/24/08 11:51 AM
# Posted By zoloft | 4/24/08 11:52 AM
# Posted By cheap | 4/24/08 11:54 AM
Sedu hairstyles's Gravatar Your site has very much liked me. I really appreciate it!
http://seduhairstyles-nt.blogspot.com
http://seduhairstyles-nt.blogspot.com/2008/04/celebrity-hairstyles-and-prom-hairstyle.html
http://seduhairstyles-nt.blogspot.com/2008/04/create-perfect-sedu-hairstyles-today.html
http://seduhairstyles-nt.blogspot.com/2008/04/what-celebrity-sedu-hairstyles-will.html" target="_blank">http://seduhairstyles-nt.blogspot.com/2008/04/what...
http://seduhairstyles-nt.blogspot.com/2008/04/be-in-vogue-with-celebrity-sedu.html
# Posted By Sedu hairstyles | 4/25/08 4:46 AM
Hamster's Gravatar Hello! Excellent site. Thanks for job!
http://hamsterpet.blogspot.com/
# Posted By Hamster | 4/26/08 1:50 AM
Baby's Gravatar Hi! Nice post, man. I have always enjoyed reading your site. Thanks you!
http://babynursingpillow.blogspot.com/
# Posted By Baby | 4/28/08 1:32 AM
diging's Gravatar This is a good article!Dig your article to http://www.diging.com
# Posted By diging | 5/2/08 5:30 AM
yy's Gravatar http://www.j-gala.co.jp/
http://www.beatitudevfx.com/
http://fuzokudx.com/deli/?
http://fuzokudx.com/soap/?
http://www.kajimitsuo.com/
http://www.omakasetai.com
http://www.cleat.bz
http://man3.jp
http://loan.saisoncard.co.jp
http://www.mvn.jp
http://www.2dou3.com
http://www.tealla.com
http://www.valer.jp
http://www.wayzup.com
http://www.koushouki.com
http://www.bmbeauty.co.jp/
http://pc.m-friend.jp/index1.asp
http://www.rs-group.jp/mb/index.html
http://movamova.net/?n=deco_top
http://digi-comi.net/
http://ihinseiri.jp
http://www.soushow.co.jp/car/
http://www.daishin.biz/DAN/DAN.html
http://www.kaigo-sora.co.jp
http://www.kaisha-seturitsu.com
http://www.sanyukk.com
http://kango.bunnabi.jp/m/
http://www.propaganda-web.com/design/gcom285/mens....
http://www.refonavi.com/
http://www.hide-clinic.com/
http://www.ec-engine.jp
http://lei.ne.jp/h/w-dress
http://lei.ne.jp/h
http://www.legal-agent.jp
http://www.za-hitonotsuma.com
http://wikifipau.org/
http://www.good-stay.net
http://www.monthly-urban.com
http://www.koukokunavi.jp
http://www.gaikaex.net/
http://www.dentouin.or.jp/
http://drprojet.com/
http://www.adultshop.co.jp/
http://zensyoji.or.jp/
http://www.chizai-job.com/" target="_blank">http://www.chizai-job.com/
http://www.daichou-koumon.com/
http://www.legal-lab.com/
http://www7b.biglobe.ne.jp/~houjyu/
http://www.jinmyouji-nokotsudo.jp/
http://www.giftbank.co.jp/
http://www.sweepdesign.jp/wakaresase/
http://www.30upclub.com/items/muscle2.html
http://www.30upclub.com/items/shape_getia.html
http://www.miraiclub.jp/
http://www.adire.jp/cashing/index.html
http://www.le-poisson-japan.com/
http://www.icb-finishing.co.jp/
http://www.nipponsoft.co.jp/recovery
http://www.max.ac.jp/
http://www.chizai-job.com
http://www.green-f.biz
/http://www.icb-finishing.co.jp/image_consult/index.html" target="_blank">http://www.icb-finishing.co.jp/image_consult/index...
http://www.rs-holdings.net/
http://www.deli-spot.net
# Posted By yy | 5/7/08 12:08 AM
# Posted By fdsffgh | 5/7/08 3:05 AM
huo's Gravatar http://tour.travel.jp.msn.com/domestic/diving/????...
http://tour.travel.jp.msn.com/domestic/Okinawa/???...
http://www.abcsunny.co.jp/????????
http://www.actostaff.jp/??
http://www.actostaff.jp/????" target="_blank">http://www.actostaff.jp/????
http://www.actostaff.jp/????" target="_blank">http://www.actostaff.jp/????
http://www.arbeit-guide.co.jp/?????" target="_blank">http://www.arbeit-guide.co.jp/?????
http://www.arbeit-guide.co.jp/????
http://www.arbeit-guide.co.jp/?????" target="_blank">http://www.arbeit-guide.co.jp/??????????
http://www.at-kokusai.jp/index.html/?????
http://www.bikekaitorisatei.com/?????
http://www.biyou-m.com/????
http://www.deai-deai-kekkon.com/????
http://www.e-cash6.com/????????????
http://www.ee-aia.com/?????
http://www.fdcp.co.jp/????
http://www.free-credit.jp/????????????
http://www.free-credit.jp/???????????
http://www.free-credit.jp/???
http://www.furifuri.org/????
http://www.g-kizuna.com/???????????
http://www.gpat.jp/index.html/????
http://www.gpat.jp/index.html/??
http://www.hide-clinic.com/??????
http://www.jurgenlehlshop.jp/jp/index.html/???????...
http://www.kawase-market.com/??
http://www.kawase-market.com/????
http://www.kepp.jp/???
http://www.kepp.jp/??????
http://www.kinutashika.jp/??????
http://www.kitchenhouse.jp/????????
http://www.mj-net.jp/FX
http://www.mj-net.jp/??
http://www.money-a.com/???????????
http://www.palette.jp/???
http://www.palette.jp/??????" target="_blank">http://www.palette.jp/??????
http://www.rittou.jp/pc/????
http://www.senior-work.jp/??????" target="_blank">http://www.senior-work.jp/??????
http://www.senior-work.jp/??
http://www.shinga.com/index.html/?????
http://www.sienjyuku.com/????
http://www.sienjyuku.com/????????
http://www.style-h.net/???
http://www.suguokane.com/????????????
http://www.traderssec.com/??
http://www.vantan.com/courses_h/fd_top.html/?????
http://www.zks.jp/??
http://www.zks.jp/??
# Posted By huo | 5/7/08 9:38 PM
huo's Gravatar http://loan.saisoncard.co.jp/???
http://tour.travel.jp.msn.com/overseas/asia/?????
http://vantan.com/index.html/????
http://www.505555.jp/??
http://www.a-aia.com/???????
http://www.adultshop.co.jp/???????
http://www.business-wind.com/??
http://www.business-wind.com/???????
http://www.career-rise.co.jp/haken/????
http://www.fdcp.co.jp/?????" target="_blank">http://www.fdcp.co.jp/?????
http://www.fdcp.co.jp/?????" target="_blank">http://www.fdcp.co.jp/????????
http://www.fdcp.co.jp/????
http://www.fdcp.co.jp/?????" target="_blank">http://www.fdcp.co.jp/???????
http://www.foodrink.co.jp/si/si.html/????
http://www.foodrink.co.jp/si/si.html/??????????" target="_blank">http://www.foodrink.co.jp/si/si.html/??????????
http://www.fujitadental.jp/????
http://www.fw-solutions.com/index_f.html/SCM??????...
http://www.fxcn.co.jp/????
http://www.fxcn.co.jp/????
http://www.giftbank.co.jp/???????????
http://www.heldin-held.com/?????
http://www.heldin-held.com/???????
http://www.jurgenlehlshop.jp/jp/index.html/??????
http://www.kawase-market.com/FX http://www.kepp.jp/?????
http://www.ladis.co.jp/fukuen/??
http://www.mj-net.jp/????
http://www.noel.co.jp/ie/index.html/???????
http://www.noel.co.jp/ie/ms.html/???????
http://www.palette.jp/?????
http://www.shustop.com/???
http://www.shustop.com/???
http://www.shustop.com/????
http://www.shustop.com/??
http://www.style-h.net/???
http://www.style-h.net/??????
http://www.vantan.com/courses_h/fd_top.html/??????...
http://www.vantan.com/courses_h/fd_top.html/??????...??
http://www.vantan.com/courses_h/fs_top.html/??????...
http://www.vantan.com/courses_h/fs_top.html/??????...??
http://www.vantan.com/courses_h/hm_top.html/??????...
http://www.vantan.com/courses_h/hm_top.html/??????...??" target="_blank">http://www.vantan.com/courses_h/hm_top.html/??????...
http://www.vantan.com/courses_h/in_top.html/??????...
http://www.vantan.com/courses_h/in_top.html/??????...??
http://www.yuraku.jp/??
# Posted By huo | 5/7/08 9:44 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006.