0

Transversing the Display List Correctly

Transversing the Display List Correctly via @largestartist Posted by Jose Cuadra on December 10, 2009 Tags: Filed Under: References

When coming from JavaScript a common mistake when drilling down through objects is that chaining doesn’t work like you would think in AS3. Yes the languages are similar but here’s a difference.

DOM

In JavaScript you would transverse the DOM using a method called “getElementsByTagName().” You can chain these to dig into the objects.

//This grabs the first input field inside the first div on the page
var textField = document.getElementsByTagName("div")[0].getElementsByTagName("input")[0];

Now in ActionScript you can’t double up on the “getChildAt()” method, because that method doesn’t have a method of “getChildAt().” Confused yet?

In ActionScript 3 you have to cast the method into an object so you can use the method again to drill down.

ActionScript 3

var sprite:Sprite = new Sprite();
var txtField:TextField = new TextField();
txtField.text = "something";
sprite.addChild(txtField);
stage.addChild(sprite);
 
//Cast the object returned to a DisplayObjectContainer 
var path:Sprite = Sprite(stage.getChildAt(1));
 
trace(path.getChildAt(0));//[object TextField]
//trace(stage.getChildAt(1).getChildAt(0));//Error - 1061: Call to possibly undefined method getChildAt through reference with static type flash.displa:DisplayObject.
0

Font Fight!

Font Fight! via @largestartist Posted by Jose Cuadra on November 7, 2009 Tags: Filed Under: Features

“It’s an all-out typeface-off in our sequel to Font Conference.” -College Humor



0

Twitter Highlights of the Week

Twitter Highlights of the Week via @largestartist Posted by Jose Cuadra on October 24, 2009 Tags: Filed Under: Archives

A logo just feels better when created in Illustrator.
9:10 AM Oct 22nd from web
Best Pool Sign. “Welcome to the ool!” http://bit.ly/CaujH
7:11 AM Oct 21st from bit.ly
RT: @theprodesigner Web & Graphic Design Tips That Will Help You If You Get Stuck http://bit.ly/12yrfs
7:09 AM Oct 21st from web
RT:@petapixel What’s the life expectancy of your camera? Camera shutter life: http://j.mp/3djbPp
7:33 PM Oct 20th from web
The Human Pantone by Pierre David http://bit.ly/KQILg
4:48 PM Oct 20th from bit.ly
Balancing Work And Social Media Addiction – WorkAwesome http://bit.ly/3ihINv
7:36 AM Oct 20th from bit.ly
Boss Around Photoshop! | CreativePro.com http://bit.ly/3G3UIM A free plug-in that lets you create custom Photoshop panels in CS4
7:33 PM Oct 19th from bit.ly
RT: @petapixel Landscape photo of the year 2009: http://j.mp/2WjOQB
5:36 PM Oct 19th from web
Body paint at it’s best: http://bit.ly/3w0SXo and http://bit.ly/36a3ou -enjoy @Michael_Zelbel
11:10 AM Oct 19th from bit.ly
The Mystery of CSS Float Property | Smashing Magazine http://bit.ly/11moJh
11:04 AM Oct 19th from bit.ly
Singapore Superhero: Batman Bin Suparman http://bit.ly/V7sBi
8:17 AM Oct 19th from bit.ly
RT: @justdesign By @jggube 7 Things Web Designers Hate Hearing from Clients http://bit.ly/3FULj0
1:36 AM Oct 19th from web
Visual Cheat Sheet: CSS Compatibility with Internet Explorer 6, 7 and 8 | TutorialFeed http://bit.ly/S6sY1
3:10 PM Oct 18th from bit.ly
RT: @assaf RT @deciara: RT @fastcompany: IdeaPaint: Turn Your Entire Office Into a Whiteboard http://bit.ly/1r7hHR <- I REALLY WANT!
4:10 AM Oct 18th from web
0

Twitter Highlights of the Week

Twitter Highlights of the Week via @largestartist Posted by Jose Cuadra on October 17, 2009 Tags: | | | | Filed Under: Archives

9 Useful Twitter Retweet Button Scripts For Blogs | cheth Studios http://bit.ly/RITHJ
8:24 PM Oct 16th from bit.ly
RT: @AmazingPics An eight year project – Photographing New York store fronts: http://j.mp/6B6ty (via @petapixel)
4:36 PM Oct 16th from web
RT: @RussAdams Cool Illustrated Facial Expressions http://bit.ly/3PsEeX
11:58 AM Oct 16th from web
RT: @flashtuts Crafty way of drawing attention whilst not actually having your site up: http://bit.ly/YB5je (thnx @netdivermag)
10:26 AM Oct 16th from web
Find myself waiting for the release of this font: http://bit.ly/1CXA6b
8:41 AM Oct 13th from web
0

Brushes, Strokes, and a Photo

Brushes, Strokes, and a Photo via @largestartist Posted by Jose Cuadra on October 9, 2009 Tags: | | Filed Under: Illustrations

The other day I dusted off my old Fujitsu tablet and powered up Windows XP with an IE6 browser. (Flash back!) After tinkering for a while I bought a beautiful photo by Alexander Yakovlev to see what effects I could achieve with Sketchbook Pro and Photoshop.

0

Funny Superman Shirts

Funny Superman Shirts via @largestartist Posted by Jose Cuadra on Tags: Filed Under: Features

Continue Reading…

0

From Work Path to Shape Layer

From Work Path to Shape Layer via @largestartist Posted by Jose Cuadra on October 8, 2009 Tags: | | | | | | | Filed Under: References

After Creating a Path…

Select the path with the Direct Selection Tool.
Translation: Take the white arrow in your toolbar and click on the path. The anchor points will appear letting you know it’s selected.
Create new fill or adjustment layer.
Translation: Click on the half white/half black circular icon at the bottom of the layers panel. From the pop up select the type of layer you wish to create. (Solid, Gradient, Pattern, etc.)

A Vector Mask generated from your Path will now be included in the layer you just created.

2

The Definitive List of Adobe Alternatives

The Definitive List of Adobe Alternatives via @largestartist Posted by Jose Cuadra on September 8, 2009 Tags: | | | | Filed Under: Resources

It’s pretty safe to say Adobe has cornered the market on software used for media. Check out some alternatives to the Adobe Empire and feel free to add your own. Remember when Macromedia was the under dog?

Continue Reading…

0

CFCACHE, IE, CSS and XHTML

CFCACHE, IE, CSS and XHTML via @largestartist Posted by Jose Cuadra on September 4, 2009 Tags: | | | | | | | Filed Under: References

Yesterday I experienced an unusual rendering issue in Internet Explorer. The entire layout was aligning left and a couple z-index declarations were being ignored. Usually you can fix the minor issues with some Conditional Comments but these inconsistencies were too great to blame on the Trident Layout Engine(MSHTML). Besides, before I added Coldfusion to the mix it rendered properly in every browser.

Continue Reading…

0

Type Doc Re-Released

Type Doc Re-Released via @largestartist Posted by Jose Cuadra on August 18, 2009 Tags: | | | | | Filed Under: Applications

Type Doc has been rewritten and released for a second round! Typedoc is simply a CSS and XHTML editor that runs in your browser with the help of jQuery. You can save the document locally or use the provided link for any purpose you have.

Continue Reading…