FlexMan » Adobe-Flex http://flexman.info Everything is Flex Sun, 30 Oct 2011 12:46:12 +0000 en hourly 1 http://wordpress.org/?v=3.0 Adobe Flash Builder for Force.com is now available http://flexman.info/2010/07/22/adobe-flash-builder-for-force-com-now-available/ http://flexman.info/2010/07/22/adobe-flash-builder-for-force-com-now-available/#comments Wed, 21 Jul 2010 16:31:28 +0000 admin http://flexman.info/?p=376 You can choose to deploy a Flash-based app or Air-based desktop clients with Adobe Flash Builder for Force.com. It is now available. It is fully integrated with Force.com, using the Force.com Flex framework, you can start developing truly game-changing, cloud-based, You don’t need to worry about infrastructure, this is all provided by the Force.com platform. enterprise productivity apps. More details:



http://blog.sforce.com/sforce/2010/07/adobe-flash-builder-for-forcecom-now-available.html

Related Posts

]]>
http://flexman.info/2010/07/22/adobe-flash-builder-for-force-com-now-available/feed/ 0
Flex 4 Books “Effortless Flex 4 Development” Available http://flexman.info/2010/07/14/flex-4-books-effortless-flex-4-development-available/ http://flexman.info/2010/07/14/flex-4-books-effortless-flex-4-development-available/#comments Wed, 14 Jul 2010 12:49:52 +0000 admin http://flexman.info/?p=373 Larry Ullman, a well known author of many technology books released a new book called “Effortless Flex 4 Development”.
Here is Table of Contents:



Introduction
Part 1: The Fundamentals
Chapter 1: Building Flex Applications
Chapter 2: Basic User Interface Elements
Chapter 3: The ActionScript You Need to Know
Chapter 4: Event Management
Part 2: Data and Communications
Chapter 5: Displaying Data
Chapter 6: Formatting, Rendering, and Validating Data
Chapter 7: Common Data Formats
Chapter 8: Using Simple Services
Chapter 9: Using Complex Services
Part 3: Application Development
Chapter 10: Modularizing Applications
Chapter 11: Improving the User Experience
Chapter 12: Windows and Popups
Chapter 13: Improving the Appearance
Chapter 14: Effects and More Events
Chapter 15: Testing and Deploying

More details here:
http://www.peachpit.com/store/product.aspx?isbn=0321705947

Related Posts

]]>
http://flexman.info/2010/07/14/flex-4-books-effortless-flex-4-development-available/feed/ 0
Update Your FlashDevelop To 3.2.1 RTM http://flexman.info/2010/07/13/update-your-flashdevelop-to-3-2-1-rtm/ http://flexman.info/2010/07/13/update-your-flashdevelop-to-3-2-1-rtm/#comments Tue, 13 Jul 2010 04:41:31 +0000 admin http://flexman.info/?p=365 FlashDevelop is a popular free and open source ActionScript 2/3 and web development environment. Now, FlashDevelop 3.2.1 RTM released.



Download:
Built from rev. 1151
Download FlashDevelop 3.2.1 RTM

Here is
Main Features

* AS3 Project management with seamless and optimized Adobe Flex SDK integration
* AS2 Project management with seamless Swfmill and Mtasc integration (using a portable standalone command line tool)
* Advanced ActionScript 2 and ActionScript 3 completion & code exploration with automatic classpath detection (even without project)
* Smart contextual Actionscript code generators
* SWF and SWC classes and symbols exploration
* Test movie in Adobe Flash IDE and with clickable error results (Flash CS3)
* MTASC compilation/code checking with clickable error results

Other Features

* Types Explorer
* Automatically cleans ASO files of modified AS2 classes
* Files explorer (can create Flash 8 Trust Files for you)
* Automatic JavaDoc creation from methods
* Smart Actionscript help websearch on F1
* Jump to class/member declaration on F4
* XML, HTML/PHP, JS, CSS code highlighting,
* Multibyte character encoding
* Program menu customization with XML files
* as2api GUI for documentation generation
* Snippets
* Lines bookmarks
* Code folding
* Zoom

Related Posts

]]>
http://flexman.info/2010/07/13/update-your-flashdevelop-to-3-2-1-rtm/feed/ 0
How To Install Adobe Flex Builder Linux(alpha) In Ubuntu http://flexman.info/2010/07/12/how-to-install-adobe-flex-builder-linuxalpha-in-ubuntu/ http://flexman.info/2010/07/12/how-to-install-adobe-flex-builder-linuxalpha-in-ubuntu/#comments Mon, 12 Jul 2010 02:25:12 +0000 admin http://flexman.info/?p=360 Linux is invincible and incredibly responsive compared to Windows. :)
Linux Flash Developers can simply install Adobe FlexBuilder for Linux(alpha). *Flex Builder 3 for Linux alpha 5 was released on 11/24/2009
Here is details:



1,install eclipse in ubuntu 10.04 or other version
sudo apt-get install eclipse

2,install flex builder for linx alpha 5
download from http://labs.adobe.com/downloads/flexbuilder_linux.html

If you are running the install on a terminal, you can modify the default setup path to /usr/lib/ or /home/$usrname/app.
Enjoy!

Other tutorials on how to install Flex Builder on Linux:

Related Posts

]]>
http://flexman.info/2010/07/12/how-to-install-adobe-flex-builder-linuxalpha-in-ubuntu/feed/ 0
Interesting Tutorial: Make a Magnetic Button in Flex 4 http://flexman.info/2010/07/09/interesting-tutorial-make-a-magnetic-button-in-flex-4/ http://flexman.info/2010/07/09/interesting-tutorial-make-a-magnetic-button-in-flex-4/#comments Fri, 09 Jul 2010 01:52:53 +0000 admin http://flexman.info/?p=358 This interesting tutorial explains how to make a magnetic button in Flex 4 with a simple example. Here is the source code of this class which extands spark button:


  1. package com.flexblog.components
  2. {
  3.     import flash.events.MouseEvent;
  4.     import flash.ui.Mouse;
  5.   
  6.     import mx.core.FlexGlobals;
  7.     import mx.events.FlexEvent;
  8.     import mx.events.MoveEvent;
  9.   
  10.     import spark.components.Button;
  11.     import spark.effects.Move;
  12.     import spark.effects.easing.Elastic;
  13.   
  14.     public class MagneticButton extends Button
  15.     {
  16.         // xAncor and yAncor determine the point to which
  17.         // the button returns when mouse cursor is too far away
  18.         [Bindable] public var xAncor:Number = 0;
  19.         [Bindable] public var yAncor:Number = 0;
  20.       
  21.         // Distance on x axis which determine maximum
  22.         // distance from xAncor in one direction
  23.         [Bindable] public var xDist:Number = 100;
  24.       
  25.         // Distance on y axis which determine maximum
  26.         // distance from yAncor in one direction
  27.         [Bindable] public var yDist:Number = 50;
  28.       
  29.         // Property that makes transitions between different positions
  30.         private var _move:Move = new Move(this);
  31.       
  32.  
  33.         public function MagneticButton()
  34.         {
  35.             super();
  36.           
  37.             /**
  38.              * Tries to add event listener for mouse move event to stage.
  39.              * If stage is null than adds event listener for application
  40.              * complete and than adds event listener for mouse move
  41.              */
  42.             try
  43.             {
  44.                 _move.easer = new Elastic();
  45.                 _move.duration = 1500;
  46.               
  47.                 xAncor = this.x;
  48.                 yAncor = this.y;
  49.                 FlexGlobals.topLevelApplication.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse_move);
  50.             }
  51.             catch(e:Error)
  52.             {
  53.                 FlexGlobals.topLevelApplication.addEventListener(FlexEvent.APPLICATION_COMPLETE, app_complete);
  54.             }
  55.         }
  56.       
  57.         /**
  58.          * Function that is called when Main application is complete.
  59.          * It sets easer property and duration property for _move, set ancor
  60.          * of the button to the buttens current x and y position and as
  61.          * mentioned above adds an event listener for mouse move
  62.          */
  63.         private function app_complete(e:FlexEvent):void
  64.         {
  65.             _move.easer = new Elastic();
  66.             _move.duration = 1500;
  67.           
  68.             xAncor = this.x;
  69.             yAncor = this.y;
  70.           
  71.             stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse_move);
  72.         }
  73.       
  74.         /**
  75.          * Sets the ancor of the button and also move it to that position.
  76.          */
  77.         public function setAncor(_x:Number,_y:Number):void
  78.         {
  79.             xAncor = _x;
  80.             yAncor = _y;
  81.             _move.xTo = _x;
  82.             _move.yTo = _y;
  83.             _move.play();
  84.         }
  85.       
  86.         /**
  87.          *  Function that actually calculates and moves the button to the right position.
  88.          */
  89.         private function mouse_move(e:MouseEvent):void
  90.         {
  91.             // Some basic math logic to calculate if mouse cursor
  92.             // is close enough to move the button to that location
  93.             if ( Math.abs((xAncor + this.width/2) - stage.mouseX) < 2*xDist &&
  94.                  Math.abs((yAncor + this.height/2) - stage.mouseY) < 2*yDist )
  95.             {
  96.                 _move.xTo = stage.mouseX - this.width/2;
  97.                 _move.yTo = stage.mouseY - this.height/2;
  98.             }
  99.             else
  100.             {
  101.                 _move.xTo = xAncor;
  102.                 _move.yTo = yAncor;
  103.             }
  104.             _move.play();
  105.         }
  106.     }
  107. }

This component can be used just like we would any other component.

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  3.                xmlns:s="library://ns.adobe.com/flex/spark"
  4.                xmlns:mx="library://ns.adobe.com/flex/mx"
  5.                xmlns:components="com.flexblog.components.*"
  6.                backgroundColor="#B9B9B9" width="500" height="300"
  7.                viewSourceURL="srcview/index.html">
  8.  
  9.     <components:MagneticButton label="I am magnetic button"
  10.                                x="100" y="50" xDist="50" yDist="30"/>
  11.     <components:MagneticButton label="I am also magnetic button"
  12.                                x="300" y="50" xDist="50" yDist="30" />
  13.     <s:Button label="I am normal button" x="150" y="150"/>
  14.   
  15. </s:Application>

More details can be found here.

Related Posts

]]>
http://flexman.info/2010/07/09/interesting-tutorial-make-a-magnetic-button-in-flex-4/feed/ 0
Difference Between Two Angles AS3 Function http://flexman.info/2010/07/08/difference-between-two-angles-as3-function/ http://flexman.info/2010/07/08/difference-between-two-angles-as3-function/#comments Thu, 08 Jul 2010 06:48:46 +0000 admin http://flexman.info/?p=356 16 Useful AS3 Mathematical Formulas be listed in previous articles. Belew is an Actionscript 3.0 function difference between two angles:


  1. protected function getAnglesDiff(alfa : Number, gamma : Number) : Number {
  2.     var dif : Number = (alfa - gamma) % 360;
  3.  
  4.     if (dif != dif % 180) {
  5.         dif = (dif < 0) ? dif + 360 : dif - 360;
  6.     }
  7.     return dif;
  8. }

Random Posts

    ]]>
    http://flexman.info/2010/07/08/difference-between-two-angles-as3-function/feed/ 0
    16 Useful AS3 Mathematical Formulas http://flexman.info/2010/07/07/16-useful-as3-mathematical-formulas/ http://flexman.info/2010/07/07/16-useful-as3-mathematical-formulas/#comments Wed, 07 Jul 2010 05:12:15 +0000 admin http://flexman.info/?p=353 The mathematical calculation will be used regularly in our Flash/Flex applications, there are many open source libraries we can use, but not all of them are always suitable. For example, if we only want to calculate the distance between two points, import a library will be superfluous. Here is a list of 16 Useful Mathematical Formulas In ActionScript 3:



    16 Useful Mathematical Formulas In ActionScript 3
    Enjoy!

    Related Posts

    ]]>
    http://flexman.info/2010/07/07/16-useful-as3-mathematical-formulas/feed/ 1
    An AS3 Library Help Ease Daily Work – Splinklibrary http://flexman.info/2010/06/06/an-as3-library-help-ease-daily-work-splinklibrary/ http://flexman.info/2010/06/06/an-as3-library-help-ease-daily-work-splinklibrary/#comments Sun, 06 Jun 2010 14:01:12 +0000 admin http://flexman.info/2010/06/06/an-as3-library-help-ease-daily-work-splinklibrary/ Splinklibrary is an ActionScript3 Library which will make your daily work easier. The features include: Event distribution, asyncronous infinitely nestable queues, reflection API on top of describetype, logging out to the box with appender for qlog, fire, sos and others. If you are interested, by following URL you can get more detail information and download it directly:


    http://code.google.com/p/splinklibrary/

    Related Posts

    ]]>
    http://flexman.info/2010/06/06/an-as3-library-help-ease-daily-work-splinklibrary/feed/ 1
    A Testing Framework For Flex 2/3 – Reflex Unit http://flexman.info/2010/03/06/a-testing-framework-for-flex-23-reflex-unit/ http://flexman.info/2010/03/06/a-testing-framework-for-flex-23-reflex-unit/#comments Sat, 06 Mar 2010 13:58:21 +0000 admin http://flexman.info/2010/03/06/a-testing-framework-for-flex-23-reflex-unit/ Reflex is designed to be a drop-in repolacement for Flax Unit. The features for Reflex Unit include: Simply specify the name of a class containing testable methods and added to the TestSuite automatically. It will only excute one test method at a time and the test methods maybe defined within the classes they are testing. More detail need your try. You can get more information and download it in following URL:


    http://code.google.com/p/reflex-unit/

    Related Posts

    ]]>
    http://flexman.info/2010/03/06/a-testing-framework-for-flex-23-reflex-unit/feed/ 0
    A 3D Ray Caster Engine for AS3 – Half Baked Ray Caste http://flexman.info/2010/03/03/a-3d-ray-caster-engine-for-as3-half-baked-ray-caste/ http://flexman.info/2010/03/03/a-3d-ray-caster-engine-for-as3-half-baked-ray-caste/#comments Wed, 03 Mar 2010 13:48:54 +0000 admin http://flexman.info/2010/03/03/a-3d-ray-caster-engine-for-as3-half-baked-ray-caste/ Half Baked Ray Caste is a 3D ray caster engine for AS3 uses native MovieClip types for the sprites, rather than chopped up bitmaps. It is written by the free Flex 2 SDK in ActionScript 3, a C preprocessor and make tools. It is very stable since has already been used to ship a real, live Flash game. You can see the demo and download it in following URL:


    http://hbrc.sourceforge.net/

    Related Posts

    ]]>
    http://flexman.info/2010/03/03/a-3d-ray-caster-engine-for-as3-half-baked-ray-caste/feed/ 0