Apache Flex

Apache Flex is a highly productive, open source application framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and devices (including smartphones, tablets and television). It provides a modern, standards-based language and programming model that supports common design patterns suitable for developers from many backgrounds. Flex applications can be deployed to the Adobe Player in the browser, Adobe AIR on desktop and mobile devices or to native Android, iOS, Windows or Mac applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello

What would be the best way to assign two diffrent color borders to an shape?
var rectangle:Shape = new Shape();
rectangle.graphics.lineStyle(2, 0xffffff);
and then also:
rectangle.graphics.lineStyle(1, 0xcccccc);
0
I have been trying to start learning a mobile development language and there is a 1 to 1 debate on whether Actionscript 3.0 is the best language to program 2D games and applications or it is not.

Some say Since it works on both (iPhone and Android) platforms it is the best way to go.
And some say Actionscript might not have good future and might be stopped using.
What do you expert think?
Is Actionscript the best option to go for developing mobile 2D games and Apps? Please advice. And if it is the best option then is there certification for it so I can make myself more valuable in the job market?


Regards,
Paul
0
I need someone to learn actionscript with. So we can bounce idea and concepts off each other.
0
Hello

How would you make a function that returns an shape based on getting a image from a url then just put the image in the background(fill) of a shape(Rectangle) and return it in a function so you can use it like:
addChild(GetShapeAndImage('www.randomimage.com/myimg.png')); ?
0
Hello

I am having a problem, with something I don't understand why:

I have a timer that will start(timer will still run when you are on other view), I wan't the timer handler to only do something when I am on the current view:

if (navigator.activeView.className == 'TestView'){
                                          //function
}

It gives an null error when I change the view and the timer handler fires:
Cannot access a property or method of a null object reference.

Yes, I have a trace function in the init function on the other views that I change to and it gives a valid name back in the 'console', why does my if function give an null error when it is not == with the current view class name, I also now made a trace before the if statement, it seems that the timers current view is null on other views but not on the view that the timer started on?

Here is a demo project showing you the problem:
http://www.megafileupload.com/en/file/418802/TestCurr-fxp.html
0
Hello Experts,

I am calling a flex function  from javascript, flex function is getresults(), which returns a array of numbers.

It works perfectly fine when I run the html file on server or localhost.

I want to know is there any way to call the function getResults() when the html and all associated files are placed in non server environment?

Look froward to your replies and suggestions.

Regards
Parag T
0
Hello

I am in this simple position where I wan't a button to refresh the current view, how can this be done?
0
Hello, I am using this code, can't really also release the asp script(license) that this code requires for the database connections but you get the idea:

mssqlQuery("SELECT * FROM Test_Locations WHERE FID = '"+ MFID +"'","GetFriendInfo");

Open in new window


public function mssqlQuery(sql:String,fid:String):void {
				var http:HTTPService = new HTTPService;
				var parm:Object = new Object;
				parm.fas_sql = sql;
				parm.fas_db = mssql_db; 
				http.url = mssql_url+"?irand="+Math.random();
				http.showBusyCursor = true;
				http.request = sql;
				http.addEventListener(ResultEvent.RESULT, mssqlResult);
				http.addEventListener(FaultEvent.FAULT, mssqlFault);
				http.method = "POST";
				sqlToken = http.send(parm);
				sqlToken.param = fid;
			}
			
			private function mssqlFault(event:FaultEvent):void {
				var err:String = event.fault.faultString;
				trace(err);
			}
			
			/********************************************************
			 * mssqlResult() should be used to handle all of the
			 * returns of your queries. This will end up being a 
			 * long case list.
			 * 
			 *********************************************************/
			
			private function mssqlResult(event:ResultEvent):void{
				
				//Note: All Results are stored in the
				// event.result object
				
				//Create a new case/break for each of your
				//sql query statements
				
				var directionList:ArrayCollection;
				var countdrac:int = 0;
				switch(event.token.param){
					case 

Open in new window

0
Hello

I want to create an array(Object) that holds ID and Name of an user, after that then also how to do the for each user and grab the current Name and ID in the 'for each' statement.

How can this be done, both the population of the array and also the manegement of the 'for each' statement for it.

Data sample:
Username:ID
hest:12873127389
john:71283723
Niel:2311232312
0
Hello
I am trying to make an app that will use the mobile's GPS sensor, the problem is that I wan't to make it as a function where it return the coordinate, how can I do this?

I have tried this:
Gps flex code example
private function SetGeoLocation:void
		{
			 if (Geolocation.isSupported)
			 {
				geo = new Geolocation();
				geo.setRequestedUpdateInterval(100);
				geo.addEventListener(GeolocationEvent.UPDATE, geolocationUpdateHandler);
			 }
			 else
			 {
				log.text =  "No geolocation support.";
				log.setTextFormat(format)
			 }
		}
      private function geolocationUpdateHandler(event:GeolocationEvent):void
      {
         log.text = "lat:" + event.latitude.toString() + " - ";
         log.appendText("long:" + event.longitude.toString() + "° - ");
         log.appendText("Accuracy:" + event.horizontalAccuracy.toString() + " m");
         log.setTextFormat(format)
}

Open in new window


How can I change this so I will just have a function where it will return the current gps location insted of having the UpdateHandler do it?
0
I got  a project which uses flex 4.5 and I wanted to change that to the latest sdk.
How do I do it?
0
Please see the attached file.  You will see that the PDF can accept file attachment, and they names of the files will populate the listbox.  However, if the PDF is closed and reopened, the listbox will not remain populated with the file names.  Is there a way to maintain a list of all uploaded files, that will remain accurate upon closing and reopening the file?
addattachments.pdf
0
Hello

I am using this http://www.flexappsstore.com/index.php?route=product/product&product_id=65 and wan't to call a stored procedure with parameters but I am having some problems.

mssqlQuery(“sql string”, “unique query token”);
So if I use mssqlQuery(“Select * from users”,”getUsers”); it works fine, but I want to execute a stored procedure with parameters, the documentations says this:

      // To call a stored prodeduce, simply enter the stored
      // Prodedure name. If your SP takes parameters, you can
      // append to the string just as you would in ASP.
      mssqlQuery("ProcedureName, “unique query token”);

Here is my try on how to do it
      mssqlQuery("APP_SetMyInfo @myparm1=1391283009, @myparm2=56.162939, @myparm3=10.203921, @myparm4=3","SetMyInfo");

So what is wrong with my sql query string?

Stored procedure script works fine, tested it by executing with similar values as above.
It is expecting these values:
 @myparm1bigint,
 @myparm2 float,
 @myparm3 float,
 @myparm4 int

You got any idea how to do the stored procedure call with parameters?
0
Hello

I've seen the solution on previous question: that I need to edit MobileLoginWindow.as
(vars.redirect_uri = FacebookURLDefaults.LOGIN_SUCCESS_URL;    to      vars.redirect_uri = FacebookURLDefaults.LOGIN_SUCCESS_SECUREURL)

http://code.google.com/p/facebook-actionscript-api/downloads/list
GraphAPI_Mobile_1_8_1.swc

How do you edit it, I am new to AS3, download the source library and recompile the library?

Thank you.
0
I am developing an application in Flex.

I have a page that display 7 thumbnails of size 300px by 230 px.

I need the gallery to display the images with slight angular rotation to give the effect of photographs thrown on the table unevenly.

I am using the rotation property with angle 30 degrees for some of the images.

If the image is shown without rotation, is shows properly, but when i apply the rotation, it gets distorted and pixellated.

How can i correct this?
0
Hello I am using this to connect to my database:
http://www.flexappsstore.com/index.php?route=product/product&product_id=65

The problem is when I try to read the data with example a for each.

Sql select statement - the flex extension
private function getOrders():void {
	mssqlQuery("SELECT id FROM Test","getOrders");
}

Open in new window


private function mssqlResult(event:ResultEvent):void{
	
	//Note: All Results are stored in the
	// event.result object
	
	//Create a new case/break for each of your
	//sql query statements
	
	var directionList:ArrayCollection;
	
	switch(event.token.param){
		case "test":
			readdb.text = event.result.results.record;
			var i:int = event.result.results.record.length;
			break;	
		
		case "getOrders":
			
			for(var count:int = 0; count < event.result.results.record.length; count++)
			{
				trace(event.result.results.record.getItemAt(count));
			}
			
			var index:int = 0;
			var data:ArrayCollection = new ArrayCollection();
			var length:int = event.result.results.record.length;
			
			for(index; index < length; index++){
				trace(data.addItem(event.result.results.record[index]));
			} 
			
			
			//readdb.text = event.result.results.record;
			//trace(event.result.results.record.length);
			break;	
		
	}	
}

Open in new window


I get these output:
First line of code you see:
[object Object]
[object Object]
[object Object]
[object Object]

From the Next for each with collection array.
undefined
undefined
undefined
undefined

It is reading from the database because when I add a ned row it adds one more of the [object Object] or undefined to their list.

Any idea how to read from them without a datagrid view?
0
When I try to run my application in Flash Builder 4.5 using Chrome the page loads blank every time. If I run the same program in IE9 everything works fine. I found an article saying to pass the --disable-hang-monitor parameter to fix this but that didn't work. Any ideas as to what is happening here?

I also made sure Google Chrome had the latest update to its built in Flash Player Plugin.
0
I want to make web-program (preferably in HTML5, if at least one browser supports it or by flash), wich will capture (get) output audio (overall output sound, wich "moves" to speakers or headphones) and create sound diagram dynamically. The question: how can i capture that audio, is there any possibility?
Thanks in advance.
Best wishes, Vladimir.
0
What are the options for rendering PDF content in a Flex web app running as a SWF in a browser?
0
I am brand new to Flex and FlashBuilder. My team is converting an existing AIR desktop app (that we did not write) to an AIR web app so that it can run as a SWF in a browser. I am having trouble identifying and fixing differences between the two target runtimes.

Is there a way to access the AIR application descriptor file from an application running as a SWF in a browser?

The desktop app uses NativeApplication.nativeApplication.applicationDescriptor, but the web app cannot use that approach because the NativeApplication class is not available in the Flash Player runtime.
0
I am brand new to Flex and FlashBuilder. My team is converting an existing AIR desktop app (that we did not write) to an AIR web app so that it can run as a SWF in a browser. I am having trouble identifying and fixing differences between the two target runtimes.

Specifically, the Adobe documentation seems to indicate that the flash.html.HTMLLoader is supported on the Flash Player runtime. When I browse the types in my web project in FlashBuilder to Flex 4.6.0 + playerglobal.swc + flash, there is no html subpackage. The HTMLLoader type does not appear to exist anywhere in the namespace. When I browse the types in the desktop project, airglobal.swc contains the flash.html package

HTMLLoader is used to render PDFs in the desktop app. Can I use it the same way in the web app? If not, what is the best alternative?

Documentation on HTMLLoader: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/package-detail.html
FlashNamespaceMissingHTMLLoader.PNG
0
This is my first attempt at storing XML data. I have a record with the following dummy data:

<reportData><incidentDate id="incidentDate">Tue Mar 5 00:00:00 GMT-0800 2013</incidentDate><location>Location</location><exactLocation>Exact Location</exactLocation></reportData>

I'm not quite sure how to query this data.

I created the xml in Flex using the fx:XML data model in e4x. I stored the data into SQL Server as an xml data type through ColdFusion. Now I want to pull it back out and create a report (in ColdFusion), or if I can pull it out in tsql, that would be fine.

Is there any way to achieve this:

SELECT reportData.incidentDate as incidentDate, reportData.location as Location
REPORT
0
Dear all,

any URL and books quick and simple/clear enought to build the Adobe live steaming video infrastructure?


1) how many web server we need?
2) any video inventory server to store video? can this server install with Windows ?
3) can the database server runs the SQL server 2008 R2 /2012 standard edition and this one will store in Trust zone?
4) For the Video inventory server, can this one simply attach to the SQL server as a group of very large storage so we can avoid building one more server for the storage only purpose ?
5) what is Adobe AIR? the one that serve the same thing as the MS sliverylight 5?
6) can Adobe has product that we host internally as a video broadcasting server, what is it ?
7) how cna we host advertise video or picture on Adobe? what sofware we need?
8) Any URL or doc to describe all the component and steps to settup all these up and let us broadcast and let user upgrade the video, We expect that the advertise will process automatically on the location of video fronpage we design, is it possible?
0
Was curious if anyone could provide me with some good resources for example applications \ components ?
0
I have a script that already meets me but would like to send warning signals to my client that something is wrong I was able to change the line color to red I'm working

this can happen in diversar lines and not in sequence. How can I apply this setting?

Below script:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
    <![CDATA[
        import mx.controls.Alert;
        import mx.controls.TextInput;
        import mx.events.DataGridEvent;
        import mx.events.DataGridEventReason;
        
        [Bindable]
        var Acumula:int = 0;

        protected function checkInput(event:DataGridEvent):void
        {
        	
        	
            if (event.reason == DataGridEventReason.NEW_ROW || event.reason == DataGridEventReason.NEW_COLUMN)
            {
                var editor:TextInput = (event.currentTarget as DataGrid).itemEditorInstance as TextInput;
                var text:String = editor.text;
                var myEditor:TextInput =  TextInput(event.currentTarget.itemEditorInstance);

               
                Acumula += int(myEditor.text);
                if(int(Acumula) > int(event.itemRenderer.data.score)) 
                    {                           
                        Acumula = 0;

                        event.preventDefault();

                        Alert.show(text + "ULTRAPASSOU!");

                        return;
                    }
         

Open in new window

0

Apache Flex

Apache Flex is a highly productive, open source application framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and devices (including smartphones, tablets and television). It provides a modern, standards-based language and programming model that supports common design patterns suitable for developers from many backgrounds. Flex applications can be deployed to the Adobe Player in the browser, Adobe AIR on desktop and mobile devices or to native Android, iOS, Windows or Mac applications.

Top Experts In
Apache Flex
<
Monthly
>