Quantcast
Channel: Adobe Community : Discussion List - Using Flash Builder
Viewing all 1802 articles
Browse latest View live

Embedding an SWF Movieclip gives error: "cannot convert box_swf to flash.display.MovieClip"

$
0
0

Hello, I'm getting an odd error on some very simple code.

I have an swf that contain a movieclip with the Linkage name 'Box'. The movieclip has an animation of 30 frames, yet Flash Builder keeps erroring saying it's not a movieclip!

 

 

public class Main extends Sprite

    {

        [Embed(source="../assets/box.swf", symbol="Box")] public static const A_Box:Class;

        public function Main()

        {

            var box:MovieClip = new A_Box();

        }

    }

#1034: Type Coercion failed: cannot convert box_swf$161b93e3bc30cfa0cb18e1d734943c6f-1063626660@53720a1 to flash.display.MovieClip.

 

 

If I try to bring it in as a Sprite, it works just fine (var box:Sprite = new A_Box();), however then it does not animate, as it's being treated as a sprite.

I've looked at around 20 online examples, the code is very simple and I can't seem to find anything wrong with my code. I've also double checked 300

times and the Movieclip is set up properly inside the Swf. (Linkage name, multiple frames, export for actionscript frame 1, etc)

 

So... Why does only Sprite work and MovieClip doesn't?

Am I doing something wrong or is this maybe a FlashBuilder/Air13.0 problem?

 

Thanks!


Req for help on flex programming API

$
0
0

Hello Guys, Do anyone have the API(Application Programming Interface like Java API) for Flex Applications(Mobile And Web). So that I can learn efficiently and work on it? I am really a very Beginner for flex and getting a lots of issues/errors while coding based on the the namespaces and TAGS (ex:mx:script, fx:script, S:Array......etc) one tag is not compatible with other so i would like to have a clear knowledge on which tag can be used with what... So plaease get back with an answer. Thankyou....

Can I create iphone apps with flash CS4?

$
0
0

Can I create iphone apps with flash CS4? I know one can with cs5, but I have cs4 at this time.

Flash Builder & StageVideo

$
0
0

Hello everyone,

 

A major concern arises for me, and after several days of testing I can not find a solution.

 

I am currently developing a mobile application on Android to play a video locally.

 

For this I use the Adobe SimpleStageVideo class available on the website : http://www.adobe.com/devnet/flashplayer/articles/stage_video.html

 

At the launch all goes well , however when I switch to another application in full reading and then I go back to my video .

 

That passes over other elements of my interface (ie the navigation menu ) and especially it grows.

 

I tried to do a resize an event type activate ( to intercept the return on applicaiton )

 

I also tried to remove the container, and then reinject the video in my interface ( although this is costly in resources ... ) .

 

It did not work .

 

I think during my event "activate " the UIComponent has not yet been fully rebuilt, and thereby resize does not work on a good screen size used (since it does not blow conscidère menus ) .

 

To test my theory , I tested passing in debug mode. By running my code slower, the video goes back to the right size ...

 

So I tried to put timers, but again it was a futile attempt .

 

How is it possible when returning to my application that my video remains the right size , and not overlooking the rest of the menus?

 

Here follows the code in question :

 

 

// La Vue Permettant de Visionner la Vidéo

 

 

<?xml version="1.0" encoding="utf-8"?><s:View xmlns:fx="http://ns.adobe.com/mxml/2009"                     xmlns:components="bouton.components.*"                    xmlns:s="library://ns.adobe.com/flex/spark" title="viewVideo" activate="view1_activateHandler(event)" creationComplete="view1_creationCompleteHandler(event)" backgroundAlpha="0" actionBarVisible="false" tabBarVisible="false">          <fx:Script>                    <![CDATA[                              import flash.events.MouseEvent;                              import mx.core.UIComponent;                              import mx.events.FlexEvent;                              import valueObjects.SimpleStageVideo;                                private var conn:SQLConnection;                              private var createStmt:SQLStatement;                              public var dbFile:File;                                public var fichierCharge:File;                                public var numeroBouton:int = 0;                              private var test:SimpleStageVideo = new SimpleStageVideo();                              private var container:UIComponent = new UIComponent();                                protected function view1_creationCompleteHandler(event:FlexEvent):void                              {                                        var chemin:File = new File(data.url);                                         test.setData(chemin);                                            //container.stage = this.stage;                                        container.height = stage.height;                                        container.width = stage.width;                                        container.addChildAt(test, 0);                                        addElementAt(container, 0);                                         trace(""+container.width+" : "+container.height+" : "+container.x+" : "+container.y);                              }                                  protected function view1_activateHandler(event:Event):void                              {                                        test.resize();                               }                                private function resizeF(event:Event):void                              {                                        test.resize();                              }                      ]]>          </fx:Script>          <s:HGroup  id="barremenu" gap="0" horizontalAlign="left" styleName="header_style" verticalAlign="top" width="100%" contentBackgroundColor="#FFFFFF" contentBackgroundAlpha="1" paddingBottom="50" >                    <s:Image scaleMode="letterbox" smooth="true" smoothingQuality="high"                                          source="assets/header_droi.jpg" />                      <components:Boutton_Retour click="boutton_retour1_clickHandler(event)" enabled="true" height="100%" contentBackgroundColor="#FFFFFF" contentBackgroundAlpha="1"/>                    <components:Boutton_Accueil_Retour click="boutton_accueil1_clickHandler(event)" enabled="true" height="100%" contentBackgroundColor="#FFFFFF" contentBackgroundAlpha="1" />                     <s:Image scaleMode="stretch" smooth="true" smoothingQuality="high"                                         source="assets/header_milieu.jpg" fillMode="repeat" width="60%" height="99%" />                    <s:Image  scaleMode="stretch" smooth="true" smoothingQuality="high"                                           source="assets/ipad.jpg" />          </s:HGroup></s:View>

 

// Ma Classe SimpleStageVideo

 

package valueObjects
{          import flash.display.Loader;          import flash.display.Shape;          import flash.display.Sprite;          import flash.display.Stage;          import flash.display.StageAlign;          import flash.display.StageScaleMode;          import flash.events.Event;          import flash.events.MouseEvent;          import flash.events.NetStatusEvent;          import flash.events.StageVideoAvailabilityEvent;          import flash.events.StageVideoEvent;          import flash.events.VideoEvent;          import flash.filesystem.File;          import flash.geom.Rectangle;          import flash.media.StageVideo;          import flash.media.StageVideoAvailability;          import flash.media.Video;          import flash.net.NetConnection;          import flash.net.NetStream;          import flash.net.URLRequest;          import flash.text.TextField;          import flash.text.TextFieldAutoSize;            import mx.core.UIComponent;            import spark.components.Image;          import spark.components.NavigatorContent;              [SWF(frameRate="1", backgroundColor="#000000")]          public class SimpleStageVideo extends Sprite          {                    public var chemin:File;                    private var FILE_NAME:String = "";                    private static const INTERVAL:Number = 500;                    private static const BORDER:Number = 20;                      private var legend:TextField = new TextField();                    private var sv:StageVideo;                    private var nc:NetConnection;                    private var ns:NetStream;                    private var rc:Rectangle;                    private var video:Video;                    private var thumb:Shape;                    private var interactiveThumb:Sprite;                    private var totalTime:Number;                      private var videoWidth:int;                    private var videoHeight:int;                    private var outputBuffer:String = new String();                    private var rect:Rectangle = new Rectangle(0, 0, 0, BORDER);                    private var videoRect:Rectangle = new Rectangle(0, 0, 0, 0);                    private var gotStage:Boolean;                    private var stageVideoInUse:Boolean;                    private var classicVideoInUse:Boolean;                    private var accelerationType:String;                    private var infos:String = new String();                    private var available:Boolean;                    private var inited:Boolean;                    private var played:Boolean;                    private var container:Sprite;                    private var displayButtonPause:Boolean;                    public var imagePause:UIComponent;                    public var pLoad:Loader;                    private var testResize:Boolean = false;                    private var widthStage:int = 0;                          /**                     *                      *                      */                     public function SimpleStageVideo()                    {                              // Make sure the app is visible and stage available                              addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);                              //addEventListener(Event.ACTIVATE, onActivate);                    }                      private function onActivate(event:Event):void                    {                                video.addEventListener(Event.RENDER, functionResize);                      }                      private function functionResize(event:Event):void                    {                              resize();                    }                        /**                     *                      * @param event                     *                      */                     private function onAddedToStage(event:Event):void                    {                                  // Scaling                              stage.scaleMode = StageScaleMode.NO_SCALE;                              stage.align = StageAlign.TOP_LEFT;                              widthStage = stage.width;                                  // Thumb seek Bar                              thumb = new Shape();                                interactiveThumb = new Sprite();                              interactiveThumb.addChild(thumb);                              addChild(interactiveThumb);                                // Connections                              nc = new NetConnection();                              nc.connect(null);                              ns = new NetStream(nc);                              ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);                              ns.client = this;                                // Screen                              video = new Video();                              video.smoothing = true;                                // Video Events                              // the StageVideoEvent.STAGE_VIDEO_STATE informs you if StageVideo is available or not                              stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, onStageVideoState);                              // in case of fallback to Video, we listen to the VideoEvent.RENDER_STATE event to handle resize properly and know about the acceleration mode running                              video.addEventListener(VideoEvent.RENDER_STATE, videoStateChange);                                // Input Events                              stage.addEventListener(MouseEvent.DOUBLE_CLICK, onKeyDown);                              stage.addEventListener(Event.RESIZE,  onResize);                              stage.addEventListener(MouseEvent.CLICK, onClick);                      }                      /**                     *                      * @param event                     *                      */                     private function onNetStatus(event:NetStatusEvent):void                    {                              if ( event.info == "NetStream.Play.StreamNotFound" )                                        legend.text = "Video file passed, not available!";                    }                      public function setData(chem:File):void                    {                              chemin = chem;                               FILE_NAME = chemin.url;                    }                      /**                     *                      * @param event                     *                      */                     private function onFrame(event:Event):void                     {                                var ratio:Number = (ns.time / totalTime) * (widthStage+470);                              rect.width = ratio;                              thumb.graphics.clear();                              thumb.graphics.beginFill(0xFF0000);                              thumb.graphics.drawRect(rect.x, rect.y+350, rect.width+120, rect.height);                               //thumb.graphics.drawRect(rect.x, rect.y, rect.width, rect.height);                               //testResize = true;                      }                      /**                     *                      * @param event                     *                      */                     private function onClick(event:MouseEvent):void                    {                                //ns.pause();                              if ( event.stageY >= interactiveThumb.y - BORDER && event.stageX <= stage.stageWidth - BORDER )                              {                                        var seekTime:Number = (stage.mouseX - BORDER) * ( totalTime / (stage.stageWidth - (BORDER << 1) ) );                                        ns.seek( seekTime );                               }                    }                      /**                     *                      * @param event                     *                      */                     private function onKeyDown(event:MouseEvent):void                    {                                 ns.togglePause();                              // Affichage du bouton d'affichage de la mise en pause de la video                               if(displayButtonPause == false)                              {                                        pLoad = new Loader();                                        pLoad.load(new URLRequest("assets/pause.png"));                                        //imagePause = new UIComponent();                                        //imagePause.addChild(pLoad);                                        //imagePause.x = 200;                                        //imagePause.y = 200;                                        pLoad.x = (stage.width - (stage.width/3.5));                                        pLoad.y = (stage.height - (stage.height/3.5));                                        addChild(pLoad);                                        displayButtonPause = true;                                        pLoad.visible = true;                              } else                               {                                        displayButtonPause = false;                                        pLoad.visible = false;                                        removeChild(pLoad);                              }                    }                      /**                     * Permet l'arret de la video avant la supression de la vue                     */                    public function arretVideo():void                     {                              //video.clear();                              //sv.attachNetStream(null);                              ns.close();                              //video.attachNetStream(null);                              /*var nce:NetConnection = new NetConnection();                              nce.connect(null);                              sv.attachNetStream(new NetStream(nce));                              //sv.attachNetStream();*/                    }                      /**                     *                      * @param width                     * @param height                     * @return                      *                      */                     private function getVideoRect(width:uint, height:uint):Rectangle                    {                               trace("Width" + width);                              trace("Stage Width" + stage.stageWidth);                              trace("Height" + height);                              trace("Stage height" + stage.stageHeight);                                    var videoWidth:uint = width;                              var videoHeight:uint = height;                              var scaling:Number = Math.min ( stage.stageWidth / videoWidth, stage.stageHeight / videoHeight );                                videoWidth *= scaling, videoHeight *= scaling;                                var posX:uint = stage.stageWidth - videoWidth >> 1;                              var posY:uint = stage.stageHeight - videoHeight >> 1;                                videoRect.x = posX;                              videoRect.y = posY;                              videoRect.width = videoWidth;                              videoRect.height = videoHeight;                                trace("Objet video width" + video.width);                              trace("Objet video height" + video.height);                                trace("Objet video rect width" + videoRect.width);                              trace("Objet video rect height" + videoRect.height);                                return videoRect;                    }                      /**                     *                      *                      */                     public function resize ():void                    {                               if ( stageVideoInUse )                              {                                        // Get the Viewport viewable rectangle                                        rc = getVideoRect(sv.videoWidth, sv.videoHeight);                                        // set the StageVideo size using the viewPort property                                        sv.viewPort = rc;                              } else                               {                                          // Get the Viewport viewable rectangle                                        rc = getVideoRect(video.videoWidth, video.videoHeight);                                        // Set the Video object size                                        video.width = rc.width;                                        video.height = rc.height;                                        video.x = rc.x, video.y = rc.y;                                        //trace(""+rc.width+" : "+rc.height+" : "+rc.x+" : "+rc.y);                                        testResize = true;                                }                              interactiveThumb.x = BORDER, interactiveThumb.y = stage.stageHeight - (BORDER << 1);                              legend.text = infos;                    }                        /**                     *                      * @param evt                     *                      */                     public function onMetaData ( evt:Object ):void                    {                              totalTime = evt.duration;                              stage.addEventListener(Event.ENTER_FRAME, onFrame);                    }                      /**                     *                      * @param event                     *                      */                     private function onStageVideoState(event:StageVideoAvailabilityEvent):void                    {                               // Detect if StageVideo is available and decide what to do in toggleStageVideo                              toggleStageVideo(available = inited = (event.availability == StageVideoAvailability.AVAILABLE));                    }                      /**                     *                      * @param on                     *                      */                     private function toggleStageVideo(on:Boolean):void                    {                               infos = "StageVideo Running (Direct path) : " + on + "\n";                                // If we choose StageVideo we attach the NetStream to StageVideo                              if (on)                               {                                        stageVideoInUse = true;                                        if ( sv == null )                                        {                                                  sv = stage.stageVideos[0];                                                  sv.addEventListener(StageVideoEvent.RENDER_STATE, stageVideoStateChange);                                        }                                        sv.attachNetStream(ns);                                        if (classicVideoInUse)                                        {                                                  // If we use StageVideo, we just remove from the display list the Video object to avoid covering the StageVideo object (always in the background)                                                  stage.removeChild ( video );                                                  classicVideoInUse = false;                                        }                              } else                               {                                        // Otherwise we attach it to a Video object                                        if (stageVideoInUse)                                                  stageVideoInUse = false;                                        classicVideoInUse = true;                                        video.attachNetStream(ns);                                        stage.addChildAt(video, 0);                              }                                if ( !played )                               {                                        played = true;                                        ns.play(FILE_NAME);                              }                    }                       /**                     *                      * @param event                     *                      */                     private function onResize(event:Event):void                    {                              resize();                    }                      /**                     *                      * @param event                     *                      */                     private function stageVideoStateChange(event:StageVideoEvent):void                    {                               infos += "StageVideoEvent received\n";                              infos += "Render State : " + event.status + "\n";                              trace(infos);                                resize();                      }                      /**                     *                      * @param event                     *                      */                     private function videoStateChange(event:VideoEvent):void                    {                               infos += "VideoEvent received\n";                              infos += "Render State : " + event.status + "\n";                              trace(infos);                                resize();                      }          }
}

Creating a plugin for InDesign with Flash Builder

$
0
0

I have already create the base with extension builder and it works, but I can't find anywhere a documentation with the functions and the values possible for those extensions.

Without this it's quite hard to create a new extension who fit the need I have.

 

Thank you for your response

FlashBuilderC v4.7 returns NoClassDefFoundError: com/adobe/flexbuilder/codemodel/common/CMFactory

$
0
0

We are building FlashBuilder projects as part of continuous integration via ANT scripts. It looks something like this:

 

    <target name="main" description="Build all flex projects">

      <fb.exportReleaseBuild project="ProjectA" destdir="somedir" />

    </target>

 

And a .bat file that runs FlashBuilderC with standard parameters:

 

--launcher.suppressErrors -noSplash -application org.eclipse.ant.core.antRunner -data %WORKSPACE% -file "buildFlexContents.xml" main

 

So far this has worked great with FlashBuilder 4 and 4.6, but when we updated to 4.7, the following started to happen (parts of the .log file):

 

!SESSION 2014-04-07 13:25:58.288 -----------------------------------------------

eclipse.buildId=M20110909-1335

java.version=1.6.0_31

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US

Framework arguments:  -application org.eclipse.ant.core.antRunner -file buildFlexContents.xml main

Command-line arguments:  -os win32 -ws win32 -arch x86_64 -application org.eclipse.ant.core.antRunner -data C:\workspace -file buildFlexContents.xml main

 

 

!ENTRY org.eclipse.core.resources 2 10035 2014-04-07 13:25:59.562

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

 

 

!ENTRY org.eclipse.osgi 4 0 2014-04-07 13:26:02.478

!MESSAGE An error occurred while automatically activating bundle com.adobe.flexbuilder.codemodel (28).

!STACK 0

org.osgi.framework.BundleException: Exception in com.adobe.flexbuilder.codemodel.CMCoreActivator.start() of bundle com.adobe.flexbuilder.codemodel.

          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv ator(BundleContextImpl.java:734)

          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund leContextImpl.java:683)

 

..

 

Caused by: java.lang.NullPointerException

          at com.adobe.flexbuilder.codemodel.internal.bridge.WorkspaceSpecificatio n.getStateLocation(WorkspaceSpecification.java:157)

          at com.adobe.flexbuilder.codemodel.internal.bridge.WorkspaceSpecificatio n.getFileInStateLocation(WorkspaceSpecification.java:149)

 

..

 

!ENTRY org.eclipse.osgi 4 0 2014-04-07 13:26:02.482

!MESSAGE An error occurred while automatically activating bundle com.adobe.flexide.codemodel.bridge (100).

!STACK 0

org.osgi.framework.BundleException: Exception in com.adobe.flexide.codemodel.internal.bridge.CMBridgeActivator.start() of bundle com.adobe.flexide.codemodel.bridge.

          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv ator(BundleContextImpl.java:734)

          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund leContextImpl.java:683)

          at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl eHost.java:381)

 

...

 

Caused by: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/codemodel/metadata/IMetadataManager

          at com.adobe.flexide.codemodel.internal.bridge.CMBridgeActivator.start(C MBridgeActivator.java:50)

          at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund leContextImpl.java:711)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv ator(BundleContextImpl.java:702)

          ... 74 more

Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$Terminat ingClassNotFoundException: An error occurred while automatically activating bundle com.adobe.flexbuilder.codemodel (28).

          at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind LocalClass(EclipseLazyStarter.java:122)

...

 

 

!ENTRY org.eclipse.osgi 4 0 2014-04-07 13:26:02.742

!MESSAGE Application error

!STACK 1

java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 

 

 

Caused by: buildFlexContents.xml:8: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/codemodel/common/CMFactory

          at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:116)

          at org.apache.tools.ant.Task.perform(Task.java:348)

          at org.apache.tools.ant.Target.execute(Target.java:390)

 

I have tried recreating the workspace, and changing -vm JDK paths to try with 1.7 to no avail.

 

Funny part about this is, that it works with FlashBuilder.exe (inside the GUI), but not with FlashBuilderC from the commmand line.

 

Any ideas why it can't find this class?

Can't Export Release Build for AIR app...

$
0
0

Flash Builder 4.7 won't let me export a release build for any AIR apps at all...

 

It started when I wanted to make some changes to an old AIR app.  Couldn't even run it in the debugger, so I updated the AIR SDK (using instructions found here: http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder. html   and here: http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk. html )

 

So after doing all that, and making some other changes, I finally got my AIR app to run in the debugger in Flash Builder 4.7.  Made the changes I wanted to make, then tried to Export Release Build...  Kept giving me a "Password Incorrect for this certificate" error whenever I tried it -- but it would never let me enter a password.  I went to Project | Export Release Build, and on the first screen there, I would click "Next" and it would jump straight to compiling, skipping over the screen where you're supposed to be able to enter the certificate info and password.

 

Figured maybe because it was an old AIR project, that was causing the problem.  So I started a brand new AIR project -- very simple one with just a <s:Label> inside a <s:WindowedApplication>.  Went to Project | Properties | Flash Builder Packaging and created a brand-new self-signed certificate (which seemed to work) but again upon trying to export the release build, it wouldn't let me get to the screen where you enter the password.  Clicking "Next" from the first screen on Project | Export Release Build just jumps straight to compiling and (of course) it gives me the Incorrect Password error, because it never gave me a chance to enter the password.

 

So what is going on here?  Why can I not export any release builds for any AIR projects?  This is extremely frustrating -- Flash Builder 4.6 never gave me these kinds of problems.  What can I do to fix Flash Builder 4.7 so it will work properly with AIR projects?

 

Thanks,

L.

Flex Builder 3 UI Broken in WIN7 64bit

$
0
0

1.PNG

Flex Builder 3 SDK 3.5

WIN7 64bit


How activate Adobe Flex Builder 3

$
0
0

Hi,

 

I'm using the Flex 2 SDK from Adobe Flex Builder in trial version.

I would buy the license but I can't buy it.

I 've looked at the new Adobe Flash Builder but this doesn't include SDK 2.

 

How I can get the license?

 

Thank you

How to add selection event, change event and click event for dropdownlist for mobile applications

$
0
0

Please someone help me in writng selection , click and change events for dropdownlist in flex for mobile applications . i have tried but i wasn't able to select the items in dropdown using my mouse or touch in my mobile . Please help me I am struck at this point and i am unable to get solution gfor this. Please................

 

Some code for which i neederd help:

 

<s:DropDownList id="ddlBranch" x="257" y="475" width="63%" height="80%"

                                creationComplete="ddlBranch_creationCompleteHandler(event)"

                                fontFamily="Calibri" fontSize="24"

                                labelField="BranchName"

                                prompt="{ddlBranch.selectedItem}"

                                requireSelection="true"

                                selectionColor="#7ab342">

                    <s:AsyncListView list="{getBranchResult.lastResult}"/>

                </s:DropDownList>

 

<s:DropDownList id="ddlZone" x="257" y="546" width="63%" height="80%"

                                creationComplete="ddlZone_creationCompleteHandler(event)"

                                fontFamily="Calibri" fontSize="24"

                                labelField="ZoneName"

                                prompt="{ddlZone.selectedItem}"

                                requireSelection="true"

                                selectionColor="#7ab342">

                    <s:AsyncListView list="{getZoneResult.lastResult}"/>

                </s:DropDownList>

 

I will get the list of Branches(first DDL) and Zones(Second DDL) from a webservice written in DOT(.)NET,  what i needded is touch events and selection events for both the dropdown lists and the data in the second DropDown List should bind based on the First Dropdown list item selected.

 

Service call for binding data to DDL:

 

protected function ddlBranch_creationCompleteHandler(event:FlexEvent):void

            {

               

                getBranchResult.token = loginService.getBranch();

            }

           

            protected function ddlZone_creationCompleteHandler(event:FlexEvent):void

            {

                getZoneResult.token = loginService.getZone();

            }

 

Please help...

Thank you.

Can I use AIR4.0 in FlashBuilder 4.6?

$
0
0

I've been developing on FlashBuilder4.6 (AIRSDK3.5) now.

 

Should be changed to 3.5 to 4.0 the AIRSDK me.

 

However, I have failed in the way until now. (Copy AIRSDK in FLEXSDK)

(Compile I get an error when you create a class of skin)

 

The procedure, how they are used in FlashBuilder4.7. Wrote.

http://helpx.adobe.com/en/flash-player/release-note/fp_12_air_4_releas e_notes.html

Of "Authoring Guidelines"

 

AIR4.0 Would not I use in FlashBuilder4.6?

 

Please let me know if you find some way to avoid.

Compilation with ant of AIRSDK4.0

$
0
0

I've been developing on FlashBuilder4.6 (AIRSDK3.5) now.

 

I was among the build from compiled using ant.

 

Should be changed to 3.5 to 4.0 the AIRSDK me.

 

However, I will fail to compile in the method of until now.

I will fail in part of <mxmlc> of ant.

 

Will it need a new setting option?

Do I need additional settings such as the FLEX_HOME for AIRSDK?

 

Please tell me if you know.

Submitting Form Data HTTPService

$
0
0

I would appreciate some help with this.  I am using Flash Builder 4.6 and I am trying to submit some form data to a php file so the php file can send an email.  I am not that experienced with this and was hoping someone can show me what I am doing wrong.  I am not too concerned about the lack of security in the php file yet as I am still trying to get it to send the email.

 

Here is the Flex Code:     

 

 

 

            <![CDATA[

            import mx.rpc.events.ResultEvent;

            import mx.rpc.events.FaultEvent;

            import mx.controls.Alert;

                                   

            publicfunction handlePlain(event:ResultEvent):void

            {

            Alert.show("OK Good");

            }

                                   

            publicfunction handleFault(event:FaultEvent):void

            {

            Alert.show(event.fault.faultString, "Error");

            }

            ]]>

</fx:Script>

           

           

<fx:Declarations>

 

<s:HTTPService id="login_email"

               result="handlePlain(event);"

               fault="handleFault(event);"

               method="POST"

               url="http://mydomain.com/email.php"

               useProxy="false">

 

<mx:request xmlns="">

            <firstname>{first_name.text}</firstname>

            <lastname>{last_name.text}</lastname>

            <email>{email.text}</email>

            <comment>{comments.text}</comment>

            </mx:request>       

 

</s:HTTPService>

                       

 



 

 

 

 

 

 

 

Here is the PHP File:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

</head>

 

<body>

 

<?php

 

            $first = $_POST['first_name'];

            $last = $_POST['last_name'};

            $email = $_POST['email'];

            $comments = $_POST['comments'];

           

            $to = 'myemailaddress@aol.com';

            $subject = 'Contact from EPK';

            $msg =  "$first\n"."$last\n"."email\n"."comments\n";

                                   

            mail($to, $subject, $msg, 'From: ".$email);

           

?>                  

</body>

</html>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Any help would be greatly appreciated.

Thanks

Upgrading SVNKIT

$
0
0

I have Flash Builder 4.7 installed on Mac OSX Mavericks (10.9).  I am getting errors when accessing the SVN server we use, that has been working fine for a while.  Message is that the SVN 1.7 wil not work with SVNKIT 1.3.x.  So I installed SVNKIT 1.8.x, but it does not change in the SVN Interface drop-down.  I tried deleting the svnkit 1.8.x and now I do not see the option in the drop-down, but I cannot install the plugin again, becasue it says it already is installed.  How can I clean up the config files for Flash builder so it doesn't think this is still installed.  Hopefully that will allow me to choose the new svnkit fromthe drop down.


Thanks,

 

Jeff

Are there an ebook for Flex 4.6 ?

$
0
0

Dear Sir,

Do you know an ebook for Flex 4.6 ? Or an Used book ?

Would you like to send me links please ?

Best Regards

 

Mursit Hakan Cil


FlashBuilder NullPointerException while building (invoking Compiler)

$
0
0

Hello.

I've a problem building project, which is a AS3 library project.

The error I got in eclipse log is:

 

 

!ENTRY org.eclipse.core.resources 4 75 2014-04-14 10:14:33.378
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2014-04-14 10:14:33.378
!MESSAGE Errors running builder 'Compiler' on project 'MyProjectName'.
!STACK 0
java.lang.NullPointerException    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.calcBuildTotalWork(FlexProjectBuilder.java:214)    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:227)    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:171)    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)    at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)    at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)    at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

I keep wondering how is that possible anyway, meaning for such an expensive product to be still that buggy?!

NPE means someone saved him self some time not checking if something was null and displaying a proper message in eclipse, which could help me solve the problem (if in .project or .actionScriptProperties or .flexLibProperties for example).

The point of using expensive software when building our software is to work! I guess I've any right to a good explanation, thou I don't beleave that's what I will get.

 

Version details:

Adobe Flash Builder 4.7
Version: 4.7.0.349722

Flash Builder very slow

$
0
0

Dear all,

 

InFlashBuilder4.7I haveabigslowdownduringencoding.

 

IfIrestartthe applicationspeedisOKbutaftera fewminutesitbecomesveryslow (Ctrl + Z, Copy/Paste...).

Sameproblemon2 PCs, includingaCorei5,8 GBRAM,andSSD.


Thank youforyourhelp in advance!

 

Best regards,

PY

Syntax coloring known class types

$
0
0

Is there no available plugin or feature for syntax coloring on known class types, i.e. Object, int, number etc (FB 4.7)

 

I have scoured the internet and old threads on the forums without any answers regarding this issue.

License problem with automation.swc and mxmlc

$
0
0

We are currently migrating our flex application from flex 3.6 to flex 4.6 framework. To functionally test our application, we use RIAtest. RIAtest uses the automation.swc library to test the user interface automatically. automation.swc seems to be a proprietary library and you need a Flash Builder Premium license. We have such a license for Flash Builder 4 Premium. We do not really use flash builder to develop, but we use build scripts to trigger the mxmlc directly from ANT. The build scripts pass the license to the mxmlc compiler using the license flag. This all worked perfectly when we used flex 3 SDK. We use the SDKs that were included in the Flash Builder distribution.

 

But now we try to migrate our application to flex 4 SDK. Everything compiles and runs, we solved a minor amount of issues for that. But automatically testing the application with RIAtest does not work. After a few seconds we get the error:

 

"License not present. With trial version only limited replays are allowed"

 

Which turns out to be caused by the automation library not accepting our license. But we are unable to solve the issue. We tried everything possible but the mxmlc compiler is just IGNORING our license. The license should be valid, it works perfectly with flex 3 SDK. But with flex 4, we get the error described above while testing. The mxmlc compiler does not give any feedback AT ALL what is wrong with the license.

 

We now pass in the license like this, but we tried many variations.

 

'-license=flashbuilder4,"xxxx-xxxx-xxxx-xxxx-xxxx-xxxx"'

 

  • We use the Flex SDK version 3.6.0 and Flex SDK version 4.6.0 both installed by Flash Builder version 4.
  • We use a volume license for flash builder. When i try to register the volume license in my adobe account it also does not accept it. Although we can use it to register flashbuilder. Maybe this is part of the problem

 

We have the following questions:

  • How can we solve this issue?
  • How do we debug what is going wrong because mxmlc is giving no feedback?
  • How can I validate my license?

 

I found multiple topics on this forum similair to this problem, but they where all about licensing in general. We only have problems with SDK 4.

 

Regards, Martin

FB 4.6 projects run/debug in separate browser instance?

$
0
0

I am moving a bunch of projects from Flex Builder 3 to Flash Builder 4.6. One project is a login component which logs in to a PHP server session, and the other components assume the user is already logged in.

 

In Flex Builder 3 I can test the components locally by having them all in the same FB workspace and just run the login component first. But in Flash Builder 4.6 the other components do not detect that the user has logged in. It's as if they are running in a separate browser instance.

 

Same behaviour with Run and Debug.

 

The browser in both cases is IE9, so the problem doesn't seem to be the browser or browser settings.

 

I am also using newer Flex libraries but I doubt that matters.

 

Is this a known change in FB 4.6? Is there a way to control it?

 

Help would be appreciated. Thanks!

Viewing all 1802 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>