LogoLogo
  • Home
  • Projects
  • About
  • Contact

Adding Flash/Actionscript Content to a Flex Project

by Devon O.· March 29, 2008· in Actionscript, Flash· 0 comments
In my recent quest to quick cram as much Flex knowledge possible into my head, I thought I’d take a look at injecting Flash or pure actionscript content into Flex. For those who’ve been using Flex, this will be old hat. For those such as myself, though, who are just making their way into Flex from a Flash development point of view, this may just save a bit of frustration and aggravation. Probably the easiest way to add a little Flash to a Flex project is to load in a compiled .swf file using the SWFLoader component. Let’s begin with a basic rotating cube made with Actionscript and Papervision3D. I’ll add this to a package named com.onebyonedesign.cube which will later be in the Flex project’s classpath, but for a moment, I’ll just be using good ol’ Flash. CubeExample.as [crayon-6046c2e666368884156009/] Now, let’s open up Flash and compile a 400×400 pixel .swf containing the CubeExample using the following document class: [crayon-6046c2e666379875650382/] Now, fire up a new Flex project however you normally do so (personally I use the FlashDevelop Actionscript editor and the free Flex SDK). Make sure the .swf you just generated above (we’ll call it “cube.swf”) is in your output directory (usually named […]
Read More

Passing Arguments to Event Listening Methods

by Devon O.· March 28, 2008· in Actionscript· 1 comments
I’ve seen this question asked in several forums. Enough, anyway, that I would remark on it. The question takes many a form, but it boils down to this: How does one pass arguments to a method acting as an event listener in Actionscript 3? In general there are three broad routes to take: Using a custom object and accessing its properties with the currentTarget property of whatever Event the method is listening for. Dispatching a custom event which can contain its own properties. Using a Dictionary object instance to hold references associated with event dispatching objects.  Let’s take a little look at each of these. With the custom object approach, arguments you wish to access in an event listener are added to the event dispatching object as properties. This is most useful when you want the event handling to be performed in a class which contains the dispatching object. A quick example: The custom object: [crayon-6046c2e66ed05514203164/] And document class: [crayon-6046c2e66ed17292435581/] As you can see, the foo and bar properties are “passed” to the event listening method as actual properties of the object clicked. The custom event approach is most useful when you wish event handling to be done within the dispatching object. […]
Read More

Officially Certifiable

by Devon O.· March 14, 2008· in Flash, Life· 0 comments
They all said the day would come.. But you know the sorts of things “They” like to say… But after returning from another sisyphean week of floating in the Atlantic, I discovered the Good News in my inbox. Back in December I was one of the lucky few (or many – who knows) who was allowed to participate in the beta program for Adobe’s new ACA (Adobe Certified Associate) test. Long story short, I am now an official Adobe Certified Associate in Rich Media Communication using Adobe Flash CS3.. Whew.. that’s quite a mouthful…  For a gander at the certificate, check out the little ACA badge in the sidebar to the right. And the pantokrator smiles…
Read More

“FontBox” – ComboBox for Font Selection

by Devon O.· March 02, 2008· in Actionscript, Flash· 0 comments
Many moons ago someone over at the Kirupa forum asked how to create a combo box that could display a list of fonts in their “natural state”. Sounded pretty interesting so I whipped together a quick example that made use of some graphics in the .fla library. It was nice and worked, but I thought I’d revisit this idea and rework it so no custom graphics were necessary. Unfortunately, it still requires fonts to be included in the .fla library which, of course, jacks up the file size, but that can’t really be avoided. The final result is here: the graphics class [crayon-6046c2e66eef5584959673/] The event class: [crayon-6046c2e66eefe377278873/] The “main” class: [crayon-6046c2e66ef09607060836/] And finally a document class test: [crayon-6046c2e66ef0c989218430/] which yields:
Read More
Devon O. Wolfgang

AIR | Unity3D | AR/VR

Unity Certified Developer

Technical Reviewer of “The Essential Guide to Flash CS4 AIR Development” and “Starling Game Development Essentials”

Reviewer of “The Starling Handbook”

Unity Engineer at Touch Press.

Categories
  • Actionscript (95)
  • AIR (16)
  • Flash (99)
  • Games (7)
  • Liberty (13)
  • Life (53)
  • Shaders (20)
  • Unity3D (21)
Recent Comments
  • MainDepth on Unity Ripple or Shock Wave Effect
  • Devon O. on Unity Ripple or Shock Wave Effect
  • Feral_Pug on Unity Ripple or Shock Wave Effect
  • bavvireal on Unity3D Endless Runner Part I – Curved Worlds
  • Danielius Vargonas on Custom Post Processing with the LWRP
Archives
  • December 2020 (1)
  • December 2019 (1)
  • September 2019 (1)
  • February 2019 (2)
  • December 2018 (1)
  • July 2018 (1)
  • June 2018 (1)
  • May 2018 (2)
  • January 2018 (1)
  • December 2017 (2)
  • October 2017 (1)
  • September 2017 (2)
  • January 2017 (1)
  • July 2016 (1)
  • December 2015 (2)
  • March 2015 (1)
  • September 2014 (1)
  • January 2014 (1)
  • August 2013 (1)
  • July 2013 (1)
  • May 2013 (1)
  • March 2013 (2)
  • December 2012 (1)
  • November 2012 (1)
  • September 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • April 2012 (1)
  • December 2011 (2)
  • October 2011 (3)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • May 2011 (2)
  • April 2011 (2)
  • March 2011 (1)
  • February 2011 (1)
  • January 2011 (2)
  • December 2010 (3)
  • October 2010 (5)
  • September 2010 (1)
  • July 2010 (2)
  • May 2010 (5)
  • April 2010 (2)
  • March 2010 (7)
  • February 2010 (5)
  • January 2010 (5)
  • December 2009 (3)
  • November 2009 (1)
  • October 2009 (5)
  • September 2009 (5)
  • August 2009 (1)
  • July 2009 (1)
  • June 2009 (2)
  • May 2009 (6)
  • April 2009 (4)
  • March 2009 (2)
  • February 2009 (4)
  • January 2009 (1)
  • December 2008 (5)
  • November 2008 (2)
  • September 2008 (1)
  • August 2008 (6)
  • July 2008 (6)
  • June 2008 (9)
  • May 2008 (4)
  • April 2008 (3)
  • March 2008 (4)
  • February 2008 (9)
  • January 2008 (7)
  • December 2007 (6)
Copyright © 2021 Devon O. Wolfgang