You have a set of custom ActionScript components that extend the SkinnableComponent class and expose skin parts and skin states with the [SkinPart] and [SkinState] metadata tags. You want to create a MXML skin for them in Flash Catalyst.
Solution
Place your components in a Flex library project, solve the Flash Catalyst compatibility warnings, export the library as a FXPL then skin the parts of your component.
You want to get NetworkInfo between iOS and Android but one uses a Native Extension (iOS)
Solution
The methods that the NetworkInfo Native extension for iOS uses are the same as the native ActionScript. After adding the native extension to your Flex project, create an interface that defines the methods you want to use. Then create two classes that implement that interface.
How does apply work? In this short video we will take a short tour of the basic ways to work with apply. In less then 5 minutes you can get the advantage of this advanced coding strategy.
Solution
It is very easy. Apply in a way gives you under the hood access to a function enabling you to send to it your parameters as an array. Very useful in some scenarios that we will explore in the video on this page.
Working with events in AS3 isn't as easy as it used to be in the past. While you need to monitor every event in your application there is no real easy way to do it without manually remembering all of your events and remembering to remove them on a one by one bases(ohi so much work...).
With all the new features and powers of AS3 came a lot of leg work. So many classes out there tried to tackle this issue from many interesting and different directions. But most of them demand a large learning curve and a big shift in the way you would interact with your code, some through a framework that locks you into a development style, some changed the way flash handles events.
Solution
Essentially Event Controller is an easier way to keep track of events in actionscript 3. Event Controller is a simple extension to your normal workflow that allows you to easily tag, group and remove any and all events, pause events and restore them when you want them back and more.
We know that there are many great solutions out there from very talented people. But we wanted to bring out another option the most simple one we could think about and we are with our ears to the community(so far in our 3rd revision) to making it even easier. The goal is to create the most simple yet feature rich event hub. Let unknown leaks be a thing of the past by taking our library out for a spin.
The biggest question of most developers i encounter is this: this a good time to learn flash? is it to late to join the party? Is the next party going to be in flash or a different language is swiftly coming to take over (JavaScript?HTML5?)?
Solution
I know knowing things is important but what is the most bang on the buck? I'm going to attempt to prove how and why flash is still king when it comes to the most fun,profitable, and time effective platform to work on. Does that mean HTML5/Javasciprt is out? no not at all Flash isn't in the same play ground as Javascipt is and we will look into what that means as we explore a personalized perspective of web/dev history.
Sometimes we need to be noticed when something such as a click on a button or when a new contact is added to our electronic schedule, for example. In these cases, Events are very useful and creating our custom ones we can listen to specific operations.
Solution
Building custom events we can verify specific operations that are happening in our app and make our code reusable for others.
You want to implement a 3 state checkbox for use in a checklist tree view.
Solution
The default spark checkbox extends from ToggleButtonBase which has 2 selection states, selected or not selected. But since we are dealing with 3 state checkbox, we need more. So we are going to make a checkbox extended from ButtonBase which is the base class of most button controls.
We create moving media clips of people moving around websites, coming out from behind web windows, text blocks, etc. so there cannot be a navigation bar attached to the video clip. Is there a way to put the "Pause" functionality somewhere on the web page so the user can pause the video clip? Is there a way to achieve this using ActionScript?
Solution
It sounds like you can't have this solved all within Flash but you can have Flash ready for a pause by creating an externally available method in that way the HTML / JavaScript can call your pause command at will.
This site is produced in partnership with O'Reilly.