Archive for the ‘ActionScript’ Category

AS3 UML Class Mapping Continued…

Thursday, July 10th, 2008

Just a note… I spoke to Choudary Kothapalli over at MaintainJ, Inc. and he said they are looking into supporting ActionScript… If they do (Hint: write to them and ask them to) the round about way described below won’t be necessary.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

ActionScript Class Mapper Continued…

Thursday, July 3rd, 2008

Well, in the course of time, I’ve found a round about way of UML Class Mapping of ActionScript 3.0 projects…

Here’s how it goes…

  1. Convert your AS3 files to Java (you can use the J2AS3 app that the guys over at PhysicsDev have made and provide for free I might add…give them a round of applause please :-) ).
  2. Get a copy of Visual Paradigms Smart Development Environment (plugin for Eclipse). The “Standard Version” is the lowest price version you can buy that has the [”Reverse engineer source code or executables to class diagrams using Instant Reverse feature”] feature and it costs $299 without any maintenance contract. NOTE: If you know of a free application that will do the same thing…please chime in! and save people $300.
  3. Open the folder you saved all the files in from step one and then click “Instant Reverse” from the “Modeling” drop down menu at the top menu bar. Then select Java as the language and your done.

 Viola’… you now have a visual representation of your classes in any given project. It makes it much easier to see what you need to do when making decisions and for maintenance.

I must add that I don’t think it will be long before someone builds an app specifically for this purpose and if they add AS3 code generation, we’ll be REAL happy.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

Flex is to ActionScript as ColdFusion is to Java

Thursday, May 15th, 2008

I was just thinking this morning… [ frightening, I know ] but anyway, I was thinking about ColdFusion and why some people don’t like it…and I think really it’s because they don’t get it.

If you’ve used Flex2 or Flex3, you know how EASY those MXML tags make writing ActionScript. I mean, if you understand ActionScript and have a good handle on the documentation and a little experience, you can write anything for the FlashPlayer in pure ActionScript and many people do. But if you’ve used Flex you know how EASY it is to write ActionScript code using MXML that compiles down to pure ActionScript.

Well, ColdFusion is really the same thing for Java. Does not all ColdFuion CF tags compile down to Java classes? So if you know Java, you “could” write the whole back end in Java, but why wouldn’t you use ColdFusion when it makes it so EASY??

And just like you can mix and match pure ActionScript code with MXML (in some predefined ways) you can mix and match ColdFusion with Java code (in some predefined ways).

Anyway, I know that is nothing new to most of you, but for relative newcomers like myself, it is like a beautiful awareness :-)

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

.SWF, .SWC, Lib Class Mapper…???

Thursday, April 17th, 2008

I deleted my orginal post becuase it was the ramblings of a madman. :-)  Ok, just a very tired man late at night.

I still want to explore an possible application that will allow one to extract class relationships from a swf file or swc file, or even class libraries. It would be based on the import statements and would show class relationships graphically. So what do you say?

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

Embed Text in Flex Application, Why?

Friday, April 11th, 2008

I just needed to make a clients web site into a projector file, but since I rarely embed assets (opting to load them at runtime), the projector file was not loading the text.

If you have even a slight interest in this, you know that embeding graphical assets is trivial. While embeding text from an external file is still trivial, it can be a little confusing until you see how it’s done.

So enjoy the code below, it is the easy way to embed text into your flex application. (I embedded html text by the way)

import mx.core.ByteArrayAsset;
import flash.utils.ByteArray;

[Bindable]
[Embed(source=”myText.txt”, mimeType=”application/octet-stream”)]
private var _myTextClass:Class;

var daTxt:ByteArrayAsset = ByteArrayAsset(new _myTextClass());
var daTxtStr:String = daTxt.toString();
textControl.text = daTxtStr;

or you could grab the ByteArrayAsset data this way:

var daTxtStr:String = daTxt.readUTFBytes(daTxt.length);

That’s it. Pretty simple after you see it done.

loan auto 84 month 4.99loans ameriquest homeloans 24102c000 personalafter auto bankruptcy loans$1000 loanbridge about loans homeloan advance arizona cashpennsylvania loans home affordableadjustable mortgage rate loanadvance brokers loan fee

movies ladies dildos withporn and younger movie lesbianhot movie longlong movie clips sexbeast mature moviesmilf mature moviefood messy sex moviesfucking milf moviesmilf movies samplemovie mimi rogers nude

american pharmacy college accreditationcredit union 1stchoiceaccreditation liberty universitycredit adverse mortgage belfastprep courses lsat accreditedorganization accredited accupuncturistwarren accreditation wyoming of universityunion americas springfield mo credit Map

sex video alanaamatuer panties teenactriz pornoniche adult pornadult sexual clubs bi virginiaporn amateur dumper1000 porn 1 woman manoral sex amatuer Map

albq casinos mnage wisconsin 18 gamblingage ohio casinos cleveland for inamerican casinos friendly onlinemichigan treatment addiction gamblingor feathers casino 7amazon casino royalecredit gambling merchant card account Map

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!