actionscript 3
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.
Submitted by jrowny on Wed, 10/22/2008 - 07:00
Well, as you may have noticed, I finally went through all the posts and used a standard way to do code highlighting. It's called Syntax Highlight and you can get it here: http://alexgorbatchev.com/wiki/SyntaxHighlighter
Fortunately, there's a Drupal Plugin so I didn't actually have to do anything except edit all my old posts to use this format:
<pre class="brush:as3">
This is my code
</pre>
The one thing I wish it could do is combine brushes, so I can have MXML and AS3 in one block.