as3
Submitted by jrowny on Wed, 05/26/2010 - 11:08
I previously posted how I solved the problem of RadioButtonGroups inside repeaters, you can see that post here. Unfortunately, today, I discovered that radio button groups are a scam. You don't need them at all!? Why, you ask? If you just set the "groupName" property, they are automatically created.
<mx:Repeater id="someRepeater">
<mx:HBox>
<mx:RadioButton id="Yes" groupName="{someRepeater.currentIndex}"/>
Submitted by jrowny on Tue, 03/23/2010 - 11:08
If there's one thing I've learned from writing a lot of jQuery, it's that you can write a whole lot of code without pressing the enter key. Between all the method chaining and inline functions, you can do quite a bit with a small amount of code.
Submitted by jrowny on Fri, 03/19/2010 - 11:08
Once again I let my jQuery habits get into my ActionScript code.
this.addEventListener(MouseEvent.MOUSE_OVER,
function():void{
cursorId = CursorManager.setCursor(Cursors.MOVE,CursorManagerPriority.HIGH,-16,-16); });
this.addEventListener(MouseEvent.MOUSE_OUT,
function():void{ CursorManager.removeCursor(cursorId); });
What do you think? Should I leave it?
Submitted by jrowny on Wed, 10/22/2008 - 07:00
This may seem obvious to most people but I needed to use calllater today in a mediator because its view component was not done initializing and I realized "callLater is a method of the flex framework, specifically the UIComponent, and the mediator, being an AS3 only class, doesn't have a callLater function! OH NO!"
Okay, so the solution is so simple. A mediator has a view it is responsible for, viewComponent... right? So just callLater on that.
Submitted by jrowny on Wed, 10/22/2008 - 07:00
Getting a roll over to work properly in Flex is no fun.
The Scenario
Mouse rolls over a tab, then the tab "slides out" revealing a tool bar or something.
The Tutorial
There are a few things you need to do to get this working right, let's walk through the steps.
- There's a few ways to do this, but I'm shooting for easiest. Let's say you have a top-oriented menu (top-right) that needs to slide down from 25 pixels to 80 pixels tall. Start by making our canvas.