Joeflash’s Enigmacopaedia


Flash CS3 UIScrollBar Not Scrolling Bug

Posted in ActionScript 3.0, Flash CS3, Flash CS4 by Joeflash on the May 13th, 2009

So I’m updating an old Flash project to AS3, and I need a quick solution to add a few scrollbars onto a few textboxes. So I get out the Flash CS3 UIScrollBar. Only problem is, it’s not working. Works in a standalone FLA, but when I bring it into my app, there’s no scroll bar, no arrows, and the component is unresponsive to textfield content changes.

The UIScrollBar class is a simple scrollbar component that ships with Flash CS3 and CS4, that when associated with a given TextField, enables you to scroll that TextField. Simple, right? Or it should be. After cursing the gods for yet another buggy Flash component — I mean, I thought the days of hacking through the Flash component set to get it to frakin work were done with! So after slogging through a few useless hacks — like purposefully populating the textfield with a gazillion line feeds to get the scrollbar to initialize, then deleting them — I figured out a solution.

There must be a bug with the component, because it was not registering new text being added to the TextField. If the TextField was populated with more text than vertical space allows before the UIScrollBar initialized, then the scrollbar would work. But this was the exception to the rule, since most textfields in the app would be dynamically populated form an XML file. So I needed a way to force an update of the scrollbar when the content in the TextField had changed.
(more…)

Converting Flash Projects into Flex

A Rallying Cry for Net Neutrality In Canada

Posted in Flash, News, AIR, ActionScript 1.0, ActionScript 2.0, ActionScript 3.0, Flex, Events, Adobe, DRM, Net Neutrality by Joeflash on the February 13th, 2009

Three ActionScript 3.0 Conversion Books of Interest

Posted in Flash, ActionScript 1.0, ActionScript 2.0, ActionScript 3.0, Books, Publishing, Flash CS4 by Joeflash on the February 11th, 2009

Server Side ActionScript 3.0: Coming to a ColdFusion Server Near You

Posted in ActionScript 3.0, Flex, ColdFusion by Joeflash on the November 18th, 2008

Flash-Flex Integration: Coding With Flash Components in Flex Builder

Posted in Flash, ActionScript 3.0, Flex, Flex 3, Flash CS3 by Joeflash on the July 9th, 2008

showSettings Method Incorrectly Listed in Camera Class Documentation

Posted in Flash, ActionScript 3.0, Flex by Joeflash on the July 1st, 2008

Flex Skin Design Extension for Flash CS3 ReferenceError 1056 Workaround

Posted in Flash, ActionScript 3.0, Flex, Workflow, Flex 3, Flash CS3 by Joeflash on the April 12th, 2008

The SWF Metadata Tag Documented

Posted in ActionScript 3.0, Flex by Joeflash on the March 25th, 2008

A Plea To Adobe: Open Source The v2 Architecture!

Posted in Flash, ActionScript 2.0, ActionScript 3.0, Flex, Adobe, Components, Macromedia by Joeflash on the February 6th, 2008
Next Page »