Traversing the display list

Source http://lab.polygonal.de/2010/02/02/traversing-the-display-list/

A great HaXe feature is that you can define your own Iterator and execute it with the for-syntax.
It can be used in many different ways and drastically improves readability of your code. AS3 developers often need to look at the display list, so I wrote a basic DisplayListIterator to handle this task. Here is an example:

using de.polygonal.gl.DisplayListIterator;

for (i in Lib.current.stage) trace(i);

This will print out all display objects in the display list.
If you are not familiar with HaXe, Lib…

Read more >>

AS Quiz #15 (Hardest Quiz Yet)

Source http://actionsnippet.com/?p=2697

This is probably the hardest quiz yet. After yesterdays very easy quiz I figured I’d do something really trickey… binary is always a good way to make a quiz hard… so most of the questions are about binary operators and ByteArray… there is also one question about Bezier math.
Number of Questions : 7
Difficulty : Hard
Topic : Binary and Bezier

Which random sequence would you associate the below snippet with?

for (var i:int = 0; i<4; i++){
trace(int(Math.random()*2) – 1 | 1);
}
1, 0, 1, 02, 1, 0, 10, 0, 0, 01, -1, -1, 1-2, 1, -2, 1Which of the below sequences would you associate with the following snippet?

for (var i:int = 0; i<10; i++){
trace(i & 2);
}

You may want to work this out on paper 0,0,0,2,2,0,0,0,2,2
0,0,0,0,4,4,4,4,0,0
0,1,0,1,0,1,0,1,0,10,0,2,2,0,0,2,2,0,0
0,2,0,2,0,2,0,2,0,2A quadratic Bézier curve is the path traced by the function B(t), given points P0, P1 and P2…

Read more >>

Debugging Responder Result Functions

Source http://flexdiary.blogspot.com/2010/02/debugging-responder-result-functions.html

Lots of times when we use AsyncTokens with Responders, something will go wrong between when the call is made and when it returns. Usually if there is a problem, the fault handler will fire. Because of this, it's fairly straightforward to get information on what has happened in the fault responder function by looking at the FaultEvent's properties, such as the fault property.But what about when

Read more >>

Some little gems on OSX you might want to know

Source http://www.rialvalue.com/blog/2010/02/01/some-little-gems-on-osx-you-might-want-to-know/

Here are some little things that might speed you up when working on a Mac.
1. View hidden files in Finder
In terminal type:
1defaults write com.apple.finder AppleShowAllFiles TRUE
To hide them again:
1defaults write com.apple.finder AppleShowAllFiles FALSE
2. Manage clipboard from command line
To copy the output of a parameter you can use pbcopy:
1pwd | pbcopy
The result from pwd will be copied to the clipboard. You can seamlessly use pbpaste
3. Copy directory trees without overrideing
Imagine you’ve got 2 folders: v1 and v2 and you want to copy the contents of v1 inside v2 recursively (merging the contents)…

Read more >>

AS Quiz #14

Source http://actionsnippet.com/?p=2693

Today’s quiz is about TextFields.
Number of Questions : 6
Difficulty : Easy
Topic : TextFields
Please go to AS Quiz #14 to view the quiz

Read more >>

Interview With Elad Elrom

Source http://www.insideria.com/2010/02/interview-with-elad-elrom.html

Elad Elrom is a technical writer, technical lead, and senior Flash engineer. As a technical writer, Elad wrote books covering Flash technologies. He maintains an active blog and has spoken at several conferences regarding the Flash platform. He has helped companies follow the XP and Scrum methodologies to implement popular frameworks, optimize and automate built processors and code review, and follow best practices. Elad has consulted a variety of clients in different fields and sizes, from large corporations such as Viacom, NBC Universal, and Weight Watchers to startups such as MotionBox…

Read more >>

Apple’s iPad, HTML5 Video, Gaia Flash Framework – JXLTV ...

Source http://feedproxy.google.com/~r/jessewarden/~3/i9l1MDNFeHA/apples-ipad-html5-video-gaia-flash-framework-jxltv-episode-3.html

I talk developing for Apple’s new iPad, how you can use your existing video to play on it. Also the Gaia Flash Framework’s history with a quick summary of what she does.
Mentioned links:

Apple iPad
Alternative Videos for iPhone/iPad
Building iPad apps with Flash CS5
Gaia Flash Framework
Ruby on Rails
Unload Flex Modules

Beers

Shiner Bock
Lagunitas Brown Shugga
Bridgeport Hop Czar
New Belgium Fat Tire

Read more >>

Page 1 of 2312345»1020...Last »