Posted in August 15th, 2008
Somebody dropped me a comment, and gave me a totally awesome link:
http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/example-binaries/RaVisExplorer.html
This relates to all the following posts:
Paint Canvas Application - Paint Canvas Source
Drawing with the UIComponent in Flex (part 3) Application - Drawing with the UIComponent in Flex (part 3) Source
Making Flex look 3D
Programmatic Visualization
Drawing with the UIComponent - 4
Drawing with the UIComponent [...]
read more from this topic.....
Posted in April 30th, 2008
Embedding fonts is something that I’ve had to do a ton at my new job at gallup. When trying to meet a certain brand, not to mention world wide application usage, you struggle with fonts multi-language fonts, and the horrible file size that comes with embedding them.
I knew you could limit the character ranges in [...]
read more from this topic.....
Posted in April 14th, 2008
This post is a brief note on how to use reserved words like “id” and “class” with e4x in flex.
Basically you have reserved keywords in flex like “id” and “class” amongst others… I was traversing through some xhtml that i brought in remotely and it had many div tags. One of the issues I ran [...]
read more from this topic.....
Posted in April 9th, 2008
This is another example of drawing with your mouse… This iteration has added one main feature, ResizeHandles to the LineTool. Now you can resize the Line as you please.
Application - Source
The basis of what changed in the line tool, is exactly what I stated above… if you take a look at Version 3 [...]
read more from this topic.....
Posted in April 4th, 2008
This is a post just to link and remind myself for this awesome engine.
http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/
note: i haven’t used it yet, but need to save the link so i don’t forget it… the demo’s are really awesome.
read more from this topic.....
Posted in April 3rd, 2008
This is a short example on calling javascript from flex using ExternalInterface…
Application - Source
Please Note: Javascript has to be on in your browser and the javascript is in the html-template > index.template.html file.
read more from this topic.....
Posted in April 2nd, 2008
This is a really awesome mp3 player that I made to mimic an actionscript 2 xspf player, but built with actionscript 3 and flex… it’s great and open source!
Finally it’s here…
OPEN SOURCE FLEX XML MP3 PLAYER
Flex xml mp3 player
Basically you can specify an xml playlist from the url, and have it play whatever is in [...]
read more from this topic.....
Posted in April 2nd, 2008
Again, another post on how the Flex RichTextEditor blows goats… I’ve now completely taken the source from it, and made methods public or protected for extending in addition to adding the xhtmlText property… You can now override styling in the RichTextEditor and inject inline styles into things like a href tags…
Application - Source
This post is [...]
read more from this topic.....
Posted in March 28th, 2008
There was a post on Adding animations and effects to Tooltips in flex at blog.flexexamples.com I thought this was a great simple example… I wanted to show how to customize a PopUp with a similar effect. Application - Source You can also right click to view the source.
1. Create a component for the [...]
read more from this topic.....
Posted in March 26th, 2008
Ever want to drag a container, and have an Image of the container and it’s contents drag along with the mouse, much like when dragEnabled is set to true on a ListBase Component Like List, Tree, DataGrid, etc… You see the data that your dragging, in this image that has it’s alpha set to .5…
Application [...]
read more from this topic.....
Posted in March 24th, 2008
Extending the mx.core.RichTextEditor to give it and xhtmlText property using regular expressions. That sentence is pretty self explanatory.
Application - Source
I’ve written on the the mx.controls.RichTextEditor before in flex… and there are some issues with the HTML that it outputs. That post states that the htmlText the the RichTextEditor pretty much blows as [...]
read more from this topic.....
Posted in March 20th, 2008
This example walks through a simple implementation of filtering data in an ArrayCollection. It shows how to use an ItemRenderer, and to utilize the new ItemsChangeEffect in Flex 3.
Application - Source
In flex 3 they introduced a new listBased effect, so it effects anything that is listbased, the datagrid, the list, the tree, the tilelist, [...]
read more from this topic.....
Posted in March 11th, 2008
Using the Tree with Drag and Drop Functionality
APPLICATION - SOURCE
Here are some of the things I’m going to run through:
1. A brief description of what the data scriptor is, and how you might use it
2. Walking the Tree
3. LiveDocs DefaultDataDescriptor Documentation
4. Why you would use xml, what you initially get out of it
-Heirarchical [...]
read more from this topic.....
Posted in March 11th, 2008
Extend the DataGrid to make a selectedValue.
Note: This is very much just a modified version of what Ben Forta’s Fix to this issue is the ColdFusions CFForm Combobox having a selectedValue. Here is his post
I did find use of the selectedValue very appealing, and wanted the datagrid to have the [...]
read more from this topic.....
Posted in March 11th, 2008
APPLICATION - SOURCE
Long time no tech talk….
Alright so one of the recent things we had to do at cfwebtools was create an application for a client, where they had total control over all of these form fields… they essentially want to be able to create any form, for anything, and [...]
read more from this topic.....
Posted in March 1st, 2008
While making this flying spaceship, I want the ship to rotate to my mouse, to do this, here is the basic code to do so….
var dx:Number = mouseX - x;
var dy:Number = mouseY - y;
var angle:Number = Math.atan2(dy, dx);
this.rotation = angle * 180 / Math.PI;
Application - Source
Please note this is straight out of the [...]
read more from this topic.....
Posted in February 29th, 2008
Protecting an object from going out of a certain x value. Use “D” on the keyboard to move the ship right, and “A” to move left.
Application - Source
This is a continuation off from my post Keyboard Management for games in Actionscript 3 where I talk about managing multiple keys being held down at once, [...]
read more from this topic.....
Posted in February 10th, 2008
there is a known bug in the counter on the quiz app
Site:
http://www.sonburst.com/nng/
Explanation of Problem:
the timer randomly skips seconds
Fix:
Currently Unknown but working on
More InDepth:
/*
do this to get acutal seconds out of the output which are millisecons
*/
var pos = Math.round(sound.position/1000);
read more from this topic.....
Posted in February 10th, 2008
Files:
============
Quiz.fla
- Create this file with flash 8.
- Create a movie clip and export it
for as 2.0 name(mcImage)
- Drag that movie clip onto the stage,
in the top left corner…
- Create a Layer called “a” (actions) open the actions
panel, and type the following.
#include “main.as”
#include “xmlHandler.as”
stop();
read more from this topic.....
Posted in February 10th, 2008
The object dumper is a great way to open up and get more feedback out of the object instead of for instance:
[Object Object]
This is the blog i got it from THANK YOU!
import mx.data.binding.ObjectDumper;
trace(ObjectDumper.toString(_global));
This is fantastic! thank you Jen deHaan
read more from this topic.....