**UPDATE July 19th**
This code uses FlashVars and SWFObject. I ran into a problem, as we continued to build, w/ getting data to show in the swf.
To fix this error switch outActionscript:
so.addParam("wmode", "transparent");with
Actionscript:
so.addParam("wmode", "opaque");or delete it all together
**UPDATE July 19th**
I'm working on a TileList for work for a peek at our Portfolios. Right now I'm trying to adapt the TileList to my liking with back and forth button instead of the scrollpanel. But I wanted to share the wealth w/ what I've dug up on this Flash CS3 component. I find most of what's online to be really crappy and not too robust.
I've provided a zip to my work: titelist.zip
-
import fl.controls.ScrollBarDirection;
-
import fl.events.ListEvent;
-
import fl.controls.listClasses.*;
-
import flash.net.*;
-
import flash.events.*;
-
import fl.data.*;
-
-
var xml:XML;
-
// this set a var for parameter xmlData that is set in the
-
// SWFObject
-
var _xmlData:* = root.loaderInfo.parameters.xmlData;
-
-
// if someone for got to set the xmlData parameter
-
// load default xml
-
if(_xmlData == undefined)
-
{
-
_xmlData = "xml/default.xml"
-
}
-
-
trace(root.loaderInfo.parameters.xmlData);
-
// request xml file
-
var requester:URLRequest = new URLRequest(_xmlData as String);
-
//load xml file
-
var loader:URLLoader = new URLLoader(requester);
-
-
//set dataprovider to the loaded xml
-
function setItems(evt:Event):void
-
{
-
xml = XML(evt.target.data);
-
trace(xml);
-
list.dataProvider = new DataProvider(xml);
-
}
-
-
loader.addEventListener(Event.COMPLETE, setItems);
-
-
//on click of item go to data/url
-
function onItemClick(e:ListEvent):void
-
{
-
navigateToURL(new URLRequest(e.item.data),"_self");
-
-
}
-
-
list.addEventListener(ListEvent.ITEM_CLICK, onItemClick);
-
-
// Set scroll bar direction
-
list.direction = ScrollBarDirection.HORIZONTAL;
-
-
// position TileList and set column and row values
-
list.move(0,0);
-
list.columnWidth = 122;
-
list.rowHeight = 112;
-
-
list.width = 366;
-
list.height = 112;
-
list.columnCount = 3;
-
list.rowCount = 1;
Last 5 posts in as3
- Roman Numeral/Arabic Convertion AIR App - Johnny V Now Available - December 25th, 2008
- How to convert Roman Numerals and Arabic numbers in ActionScript 3 - December 17th, 2008
- Flash Player 10 Pure Flash Keyboard using SampleDataEvent - September 3rd, 2008
- Using Flash Player 10 to produce Dynamic Musical Notes - May 20th, 2008
- Flash Player 10 Dynamic Sound Generation - May 20th, 2008
Last 5 posts in components
- Yahoo Maps ActionScript 3.0 Released - February 11th, 2008
- How to fade in and fade out a Yahoo Astra Menu Component - August 29th, 2007
Last 5 posts in flash
- Roman Numeral/Arabic Convertion AIR App - Johnny V Now Available - December 25th, 2008
- How to convert Roman Numerals and Arabic numbers in ActionScript 3 - December 17th, 2008
- Flash Player 10 Pure Flash Keyboard using SampleDataEvent - September 3rd, 2008
- Using Flash Player 10 to produce Dynamic Musical Notes - May 20th, 2008
- Flash Player 10 Dynamic Sound Generation - May 20th, 2008
Last 5 posts in flash CS3
- How to use Bitmap and BitmapData in ActionScript 3 - v2 - April 23rd, 2008
- How to use the FileSystem in AIR to find the users directory folders - March 1st, 2008
- Yahoo Maps ActionScript 3.0 Released - February 11th, 2008
- Update: Flash/Flex Tidbit #2 How to use Alpha Mask in Flash CS3 - January 8th, 2008
- Custom ColorPicker Component - How to extend a Flash CS3 Component Class - December 13th, 2007
Last 5 posts in work
- Temp Dev Rig - December 26th, 2007
- New Job is official - December 1st, 2007
Last 5 posts in XML
- Adobe Evangelist Daniel Dura visits Travelocity - April 15th, 2008
- How to create a PureMVC app with Actionscript 3 - February 13th, 2008
- Flash CS3 animator class and loading XML animation at runtime - May 4th, 2007
Josh Weatherspoon, A self-proclaimed millionaire who for some reason has to work as a Flash Developer, at Travelocity in Dallas(Southlake), TX.
Horaayy..there are 4 comment(s) for me so far ;)
Zip with this example is not available anymore?
Got "404" when tried to access http://www.joshspoon.com/TileList.zip
I'll get on that.
http://www.joshspoon.com/TileList.zip
is still missing.
thanks!
the link is fixed. Just use the one in the post.