flashplayer: Category
Category: flashplayer
Talking Trash – An overview of Player GC
Posted At: October 11, 2011 11:42 AM | Posted By: Michael Labriola
Related Categories: actionscript3, AIR, flashplayer, Uncategorized
Cheers, Labriola
What’s under your skin
Posted At: September 21, 2010 1:52 PM | Posted By: Jeff Tapper
Related Categories: actionscript3, adobe, as3, flash, flashplayer, flex4, fp10, skins, Speaking Conferences
At 360|Flex DC yesterday, I presented my “Whats under your skin” presentation, all about architecting components with skins and layouts. I had a great audience, who was very engaged and asked lots of pertinent questions.
For anyone interested, here are the slides. The code for the ShoppingList component can be found below from the download link. The code for the Clocks are proprietary, and can not be shared. Sorry. Download
Ouch, it hurts when i do that
Posted At: March 10, 2010 2:03 PM | Posted By: Jeff Tapper
Related Categories: actionscript3, as3, flash, flash9, flashplayer, flex, flex3, flex4, fp10, Speaking Conferences
Flex 4 for Flex 3 developers
Posted At: February 26, 2010 2:02 PM | Posted By: Jeff Tapper
Related Categories: flash, flashplayer, flex, flex3, flex4
Flex 360 tickets selling fast
Posted At: December 17, 2009 12:12 PM | Posted By: Jeff Tapper
Related Categories: actionscript3, flash, flashplayer, flex, flex3, flex4, FlexUnit4, fp10, fp9, Speaking Conferences
FlexUnit 4 feature overview
Posted At: May 20, 2009 9:05 AM | Posted By: Jeff Tapper
Related Categories: actionscript3, AIR, as3, flash, flashplayer, flex, flex3, FlexUnit4, Fluint
I woke up this morning…
Posted At: May 15, 2008 8:05 AM | Posted By: Jeff Tapper
Related Categories: actionscript3, as3, flash, flashplayer, fp10
My Speaking Engagements for the first half of 2008
Posted At: January 22, 2008 12:01 PM | Posted By: Jeff Tapper
Related Categories: actionscript3, adobe, apollo, as3, cfmx7, cfunited, ColdFusion, enterprise, flash, flash9, flashplayer, flex, flex3, FMS, fp9, Speaking Conferences
1/18 – Flex Camp Chicago
1/24 – Flex Camp Omaha
2/24-2/27 – Flex 360 Atlanta
3/12-3/13 – CFUnited Europe
5/1-5/4 – CF.Objective()
5/19-5/23 – WebManiacs
6/25-6/28 – CFUnited
Hey, what am I doing on blogs.digitalprimates.net?
Posted At: December 6, 2007 10:12 AM | Posted By: Jeff Tapper
Related Categories: actionscript3, as3, books, enterprise, flashplayer, flex, flex2, flex3, FMS, ria
I've been a bit slow in getting this announcement out, as I see several other bloggers have already posted on this, but the rumors are true. Tapper, Nimer and Associates. Inc. has teamed up with Digital Primates Inc. Some of you may recall, it was just over a year ago that I teamed up with Mike Nimer to form Tapper, Nimer and Associates. It's quite an odd experience for me to go from a solo propietorship to a team of 15 or so developers in about 16 months. With all the great minds from both our companies working together, we will be able to help more customer on bigger and better projects.
Many of you probably know Mike Labriola for his work on custom Flex Components, he has extended the Flex framework in ways that the developers at Adobe never even imagined. He is also frequently speaking at conferences and User groups. Both Nimer and I ran across him at dozens of speaking events across the country, and as we talked, we found there were far more similarities between us then differences.
One of our first meetings at a conference ended up with him as a co-author on the Flex 2 book. A year and a half of meeting at conferences later, and we were helping each other out on projects so frequently that it made sense to explore further integrating our companies. When the opportunity for Nimer and I to join forces with him and his company, it was much too enticing to pass up.
We are looking forward to doing great work together, continuing to build cutting-edge applications for our clients, continuing to teach the world to build better RIAs, and continuing to serve the community.
Reflecting an image in Flex
Posted At: September 21, 2007 7:09 PM | Posted By: Jeff Tapper
Related Categories: actionscript3, as3, flash, flash9, flashplayer, flex, flex2, flex3, fp9, runtime
Increasingly, clients have been asking for a "reflection" effect, showing a vertically flipped image of a component next to the actual component. After reinventing the wheel on this several times, I came up with this simple reusable component:
package com.tappernimer.components{import mx.containers.Canvas;import mx.core.UIComponent;import flash.display.BitmapData;import flash.geom.Matrix;import flash.display.IBitmapDrawable;public class VerticalReflection extends Canvas{private var _component:UIComponent;public var trans:Number=.5;public var filterArray:Array=new Array();public var skewY:Number=0;public var skewX:Number=0;public function get component():UIComponent{return _component;}
public function set component(c:UIComponent):void{this._component = c;// hack to work around issue with component being// a dynamically loaded image its possible for the// image to be fully loaded, but its height or width// not yet set this call later, keeps retrying until// the values are set.if(c.width ==0 || c.height==0){callLater(resetComponent,);return;}doReflection();}
private function resetComponent(c:UIComponent):void{this.component = c;}
private function doReflection():void {// create bitmap objectvar bmpData:BitmapData = new BitmapData(component.width,component.height);// create matrixvar invertMatrix:Matrix = new Matrix(1,skewY,skewX);// set matrix to invert vertically, but normal horizontallyinvertMatrix.scale(1, -1);// move matrix, so top is at bottom, and vice versainvertMatrix.translate(0, component.height);// draw component flippedbmpData.draw(component as IBitmapDrawable,invertMatrix);// create a new holder for the imagevar ref:UIComponent = new UIComponent();// match new holders size to the originalref.setActualSize(component.width,component.height);// fill the new component with the imageref.graphics.beginBitmapFill(bmpData);ref.graphics.drawRect(0, 0,component.width, component.height);ref.graphics.endFill();// set the transparencyref.alpha = trans;// apply any filtersref.filters = filterArray;// add image to stageaddChild(ref);}
}
}
This component can then be passed any other component to reflect, accepting filters (filterArray), alpha value (trans), and arguments to allow you to skew the reflection. In fact, using it can be as simple as this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns:c="com.tappernimer.components.*"layout="absolute">
<mx:Image id="image" source="images/tn_logo_full.jpg"/><c:VerticalReflection id="ref"component="{image}"x="{image.x}" y="{image.height}"filterArray="{new Array(new BlurFilter())}"/>
</mx:Application>
Here is the code running: