Another Tilelist Question
If I have a tilelist populated with mc's from the library, is it possible to access those items on the ROLL_OVER/ROLL_OUT event? Like if each mc has another frame and I want to goto it. I remember doing things like this in AS2 components once I figured out the right path.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 07-22-2008, 06:00 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Tilelist Please Help
If I have a tilelist populated with mc's from the library, is it possible to access those items on the ROLL_OVER/ROLL_OUT event? Like if each mc has another frame and I want to goto it. I remember doing things like this in AS2 components once I figured out the right path.
TileList RSS URL's
Help.
I have a problem getting the "link" node of my RSS feed to click to it's source. Normally this is an easy thing to do, but in this case I have made several movieClips which each include a couple of dynamic text boxes and a UILoader to handle the RSS "Title", "Description" and "Enclosure" nodes. Each movie clip is set to receive a specific "Item" node. I have exported each movieClip to actionscript, and have created a new instance of each clip in my AS3 code. I have then created a new TileList and populated it with the movieclips.
ActionScript Code:
// Create instance of MovieClips
var myclip_0 = new empnews_mc0();
var myclip_1 = new empnews_mc1();
var myclip_2 = new empnews_mc2();
var myclip_3 = new empnews_mc3();
// Add four images to the TileList instance
myTileList.addItem({label:"", source:myclip_0});
myTileList.addItem({label:"", source:myclip_1});
myTileList.addItem({label:"", source:myclip_2});
myTileList.addItem({label:"", source:myclip_3});
When I use my normal Click to URL code it does not work.
ActionScript Code:
myclip_0.addEventListener(Event.CHANGE, myclip_0Clicked);
function myclip_0Clicked(e:Event):void {
navigateToURL(new URLRequest(empxml.channel.item[0].link));
}
Any ideas?
Forrest
TileList RSS URL's
Help.
I have a problem getting the "link" node of my RSS feed to click to it's source. Normally this is an easy thing to do, but in this case I have made several movieClips which each include a couple of dynamic text boxes and a UILoader to handle the RSS "Title", "Description" and "Enclosure" nodes. Each movie clip is set to receive a specific "Item" node. I have exported each movieClip to actionscript, and have created a new instance of each clip in my AS3 code. I have then created a new TileList and populated it with the movieclips.
// Create instance of MovieClips
var myclip_0 = new empnews_mc0();
// Add MovieClips to the TileList instance
myTileList.addItem({label:"", source:myclip_0});
When I use my normal Click to URL code it does not work.
myclip_0.addEventListener(Event.CHANGE, myclip_0Clicked);
function myclip_0Clicked(e:Event):void {
navigateToURL(new URLRequest(empxml.channel.item[0].link));
}
Any ideas?
Is It Possible To Preload TileList's?
I need to preload the source images for a TileList component. Is it possible and if so how?
I don't want to preload the source images into any other Loader or UILoader, I just want them to be loaded directly into the source property of the TileList component. Thx!
TileList With External XML
Anyone see a sample of using the tileList with an external XML file? I eventually want to use this as a menu for an FLV player in a flash site. I'm just a good hack coming from AS2. Learning this stuff is not so easy.
TileList Examples?
So, the tileList is made to load things like images. Great. Now how about a preloader to show that they are loading? I can't find any examples on the web or Adobe docs. Anyone know of one? Seems kinda essential.
You can see my implementation of it at www.skypark.cc The images load via an xml document. I'd love to loose the scroll bar and have the mouse scroll the list left and right, but examples are few and far between of tricking out this otherwise useful component. Makes me think I should just buy afcomponents scroll panel.
Is It Possible To Preload TileList's?
I need to preload the source images for a TileList component. Is it possible and if so how?
I don't want to preload the source images into any other Loader or UILoader, I just want them to be loaded directly into the source property of the TileList component. Thx!
Problem With TileList.
I have written code where the user selects a directory and all the contents of the directory are displayed in a TileList. At least that is what I supposed it would do. The contents are displayed but in this fashion "[object File]". Changing the itemRenderer to mx.controls.Image of the list just gives me a blank image.What I am doing wrong? Any suggestions please? Also, I want the tilelist to display only the *.jpg files will I do the filtering in the Array?
Code:
[Bindable]
public var d:File;
public function dir():void
{
d = new File(null);
d.browseForDirectory("Select Directory");
d.addEventListener(Event.SELECT, dirSelect);
}
public function dirSelect(event:Event):void
{
d = event.target as File;
var dirs:Array = d.getDirectoryListing();
list.dataProvider = dirs;
}
TileList AddChild Help
I have a tileList that's populated with mc's from the library and I'm trying to attach the corresponding mc via addChild to the stage or an empty movieclip. I'm getting the "Type Coercion failed: cannot convert "star1" to flash.display.DisplayObject" error and I can't find a way to do this properly. Here's the code:
HTML Code:
package {
import fl.controls.TileList;
import fl.data.DataProvider;
import flash.display.Sprite;
import flash.events.Event;
import fl.controls.ScrollBarDirection;
import fl.events.ListEvent;
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class TileListExample extends Sprite {
public function TileListExample() {
var dp:DataProvider=new DataProvider;
var totalEntries:uint=3;
var i:uint;
for (i=0; i < totalEntries; i++) {
dp.addItem({label:"star" + i,source:"star" + i,scaleContent:true});
}
var empty:Sprite = new Sprite();
empty.x = 50;
empty.y = 50;
addChild( empty );
var myTileList:TileList=new TileList;
myTileList.direction = ScrollBarDirection.VERTICAL;
myTileList.allowMultipleSelection=true;
myTileList.columnWidth=125;
myTileList.rowHeight=150;
myTileList.dataProvider=dp;
myTileList.columnCount=3;
myTileList.rowCount=1;
myTileList.move(10,10);
addChild(myTileList);
myTileList.selectedIndex = 0;
myTileList.addEventListener(Event.CHANGE, listListener);
function listListener(event:Event) {
var myMC:MovieClip = new MovieClip();
myMC.name = "star" + myTileList.selectedIndex;
var instance = myMC.name;
empty.addChild(instance);
}
}
}
}
TileList Problem
hi,
i am really new to AS 3.0
here im trying to create TileList. Its defined in a class, and i am instantiating the class file from main.fla
but getting following error, can any one help me with this ?
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at TileListDemo$iinit()
at TileList_fla::MainTimeline/TileList_fla::frame1()
main fla file
ActionScript Code:
var tileTesting:TileListDemo = new TileListDemo();
addChild(tileTesting);
Class File
ActionScript Code:
package
{
import flash.display.Sprite;
import fl.controls.TileList;
import fl.controls.ScrollBarDirection;
import flash.text.TextFormat;
public class TileListDemo extends Sprite
{
private var tlc:TileList;
public function TileListDemo()
{
// create TileList instance
var tlc:TileList = new TileList();
// add content to the TileList
tlc.addItem({label:"Image 1", source:"some/1.jpg"});
tlc.addItem({label:"Image 2", source:"some/2.jpg"});
// set column and row values
tlc.columnWidth = 500;
tlc.rowHeight = 300;
tlc.columnCount = 1;
tlc.rowCount = 1;
tlc.height = 320;
tlc.width = 500;
// enable scrolling
tlc.scrollPolicy = "on";
// position
tlc.move(stage.stageWidth/2 - tlc.width / 2,stage.stageHeight/2 - tlc.height/2);
// add to the display
addChild(tlc);
}
}
}
TileList Label
Is there a way to make the TileList label only appear on mouseover, cover the entire image, and have multiple lines? Thanks!
TileList Not Appearing
Hi,
I am having trouble getting the TileList (thumbnailViewer) to appear. I have tried swapping the order of the fuction calls in the init() function in case it is simply loading in below another object on the stage. I have also tried adding an addChild in both the main class and the ThumbnailViewer class, one at a time and both at the same time, yet still nothing appears. When i have an addChild in both classes at the same time I get 1009 error. When i run the program I know the TumbnailViewer object is being created as I have added a trace statement in its body, each time this trace statement is triggering, yet no TileList is appearing. Can anyone make a suggestions as to where I may be going wrong.
Thanks
Barry.
My Code
---------------------------------------
Attach Code
MainClass
-----------------------------
function init():void
{
createThumbnailViewer();
.....
}
// createThumbnailViewer()
function createThumbnailViewer():void
{
var thumbnail_Viewer:ThumbnailViewer = new ThumbnailViewer();
addChild(thumbnail_Viewer);
}
ThumbnailViewer class
--------------------------------------
package
{
// import statements
import flash.display.Sprite;
import fl.controls.TileList;
import fl.controls.ScrollBarDirection;
// public class ThumbnailViewer()
public class ThumbnailViewer extends Sprite
{
// constructor function ThumbnailViewer()
public function ThumbnailViewer():void
{
makeThumbnailViewer();
}
private function makeThumbnailViewer():void
{
var thumbnailViewer:TileList = new TileList();
thumbnailViewer.addItem({label:"Image 1", source:"http://www.helpexamples.com/flash/images/image1.jpg"});
thumbnailViewer.addItem({label:"Image 2", source:"http://www.helpexamples.com/flash/images/image2.jpg"});
thumbnailViewer.addItem({label:"Image 3", source:"http://www.helpexamples.com/flash/images/image3.jpg"});
thumbnailViewer.direction = ScrollBarDirection.VERTICAL;
thumbnailViewer.columnWidth = 200;
thumbnailViewer.rowHeight = 134;
thumbnailViewer.columnCount = 1;
thumbnailViewer.rowCount = 2;
thumbnailViewer.move(10, 10);
trace("Thumbnail Viewer created");
}
}
}
Nested TileList
I’m using tileList in a nested movieClip. Everything works fine, but text labels won’t display, formatted or not. Does anyone know how to overcome this?
TileList Labels
I'm using a TileList component on my flash project.
I've changed the appearance of the "scrollbar" and the "cellrenderer" editing the movieclips
I've found in the library under "component assets",
but I cannot find a way to change the visualization of the labels attached to item.
(something like text position or text color or no background).
Anyone could give me a hint?
Is It Possible To Preload TileList's?
I need to preload the source images for a TileList component. Is it possible and if so how?
I don't want to preload the source images into any other Loader or UILoader, I just want them to be loaded directly into the source property of the TileList component. Thx!
Populating A TileList
Hi, When I use the following code to populate my tile list, the source variable is always blank. I've traced both the title and imgfile, and the title works fine, but the imgfile is blank. Anyone know why this might be happening? The XML output is listed below. Thanks.
Code:
import fl.controls.*;
import fl.data.DataProvider;
var clothing_xml:XML;
var xmlReq:URLRequest = new URLRequest("http://localhost/mysite/index.php");
var xmlLoader:URLLoader = new URLLoader();
function xmlLoaded(event:Event):void {
clothing_xml = new XML(xmlLoader.data);
for (var i=0; i<clothing_xml.clothing.length(); i++) {
image_list.addItem({label:clothing_xml.clothing[i].title,source:clothing_xml.clothing[i].imgfile});
}
}
xmlLoader.load(xmlReq);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
Code:
<clothes>
<?processing instructions?>
<!-- XML for a clothing store- comment -->
−
<clothing>
<title>Test Shirt 1</title>
<imgfile>shirt1.jpg</imgfile>
<desc>this is a simple test shirt</desc>
<sku>SHIRT001</sku>
</clothing>
−
<clothing>
<title>Shirt 2</title>
<imgfile>shirt2.jpg</imgfile>
<desc>this is shrit 2</desc>
<sku>SHIRT002</sku>
</clothing>
</clothes>
TileList Not Refreshing
Hello,
I am using a tilelist in my application. I am using a dataProvider to supply the info. Based on a user selection the items in the tilelist should change.
So, it works great the first time, but when I update the dataProvider with new info, the tilelist does not update itself. The old items stay and the new ones are added it it.
I have tried both using both dataProvider.removeAll(); and dataProvider.invalidate();
Neither of them are removing the data from the tilelist.
Thanks for any help.
~squirt
TileList Border In AS3
Is there a way to remove border on the individual cells created by a TileList component in AS3? I have tried almost these things that I could find googleing about it:
1. myTile.setStyle("borderStyle", "solid");
myTile.setStyle("borderThickness", 0);
2. myTile.setStyle("borderStyle", "none");
myTile.setStyle("borderThickness", 0);
3. Changing the skin of the default UP skin in cell renderer and removing the border there.
The first two have no effect because when I do getStyle() before calling these set functions, both the borderStyle and thickness are returned as 'null'. That gives me an impression that these properties are not valid on TileList component.
Anyway, none of these has any effect. I still see a border around the cells. Any ideas? I do not want any border around the cells at all.
Custom Scrollers For The TileList
Anyone know how, or seen a tutorial on how to control the scroll bar position of the TileList component? I'd like to turn them off, and use the mouse position left or right of center to scroll it in one direction or the other. I've seen similar things with out the component for AS2, but that just willn't do.
Thanks.
Problems W/ TileList Component
I'm starting to hate components! I do a trace on my TileList instance with "getItemAt(i)" in a loop and it tells me that every item is an instance of my movieclip I want displayed...however, I get these errors and I don't know why. Obviously, something is "null", but what?
PHP Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawBackground()
at fl.controls::TileList/fl.controls:TileList::draw()
at fl.core::UIComponent/::callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/fl.controls:BaseButton::drawBackground()
at fl.controls::BaseButton/fl.controls:BaseButton::draw()
at fl.core::UIComponent/drawNow()
at fl.controls::ScrollBar/fl.controls:ScrollBar::draw()
at fl.core::UIComponent/::callLaterDispatcher()
I like using components because I don't want to reinvent the wheel, but they seem so buggy! Your thoughts...
Tilelist Bane Of My Existence
I have been fighting off and on with tilelists with very little head way.
currently is all i have left to finish my project so now i am stuck having to solve my problems with it.
I want to be able to, in a perfect world, drag and item from the tilelist and onto a nested movieclip and have the image from the tilelist replace that which is in the nested movieclip.
Currently I have an SWF unloaded into a movieclip... this is so I can change the line up of place holders and images to which you can drag images from the tilelist on to. works great... I can even call the nested movieclips (nested in the SWF which is uploaded into a movieclip using addchild) and switch the placeholder image to what i wish it to be.
My tilelist loads its images from a XML file. Works great. I even was playing with the google drag and drop code to see if i can get there drag function to work with this experiment. But thats not going to well... I can drag them image but can't seem to find a way to call the image properly to be able to then turn around and call the nested movieclip to replace the image.
Any Guru's out there think they can step up to the plate and polish off this last problem of mine?
UILoader And TileList Not Loading
Would someone have time to look at some classes and an XML to try to tell me why nothing is loading?
I have:
A simple interface with two combo boxes (that do load) and they are linked to two separate classes. One cb class should load an UILoader class and the other cb class initiates a TileList (linked) class. each of the 4 classes are linked to there components.
additionally I have two seperate classes to handle the XML and the URLRequest?
Thanks
Steve
TileList Issues In FLV Player
I am using the Adobe demo files to make an FLV player for my site and am running into an issue. (I am using the VidePlaylistSeq.fla master file, that allows thumbnails to be previewed as well).
If I adjust the width of the tileList movie clip in the main fla/swf to be narrower my vertical scrollbar disappears.
In my VideoPlayList.as file I am setting the size, however it seems to not affect the final piece.
Any insight is appreciated.
Scrolling A TileList With OnMouseMove
Hey, has anyone tried controlling a TileList with the stage's onMouseMove event? I tried searching, but no luck.
I have it working... until I roll over the TileList - then it's resetting the scroll. The way I'm adjusting the scroll is like so:
MyTileList.horizontalScrollPosition = my calculated mouse x;
Eventually I'll have to do a hit test between the cursor and the images so that they only scroll when rolled over, but as it stands they won't scroll when I mouse over them! Any help would be appreciated, thanks.
TileList InnerWidth Issue
OK, from my perspective, the innerWidth property of the TileList component does not work right. I would be glad to have SOMEONE PROVE ME WRONG! *hint hint*
I want to know the width of the "content" of the TileList, not the TileList component itself, which is exactly what the Flash Help documentation says it does. However, when I try using it, it doesn't give me the width of the content; the closest it comes is giving me width of the columns that I define in the Flash authoring environment for that component.
I need to know the content width dynamically! Thx for your help!
Tilelist Label Issue
Hello everyone .I found tilelist as a very useful class to display data and images coming from xml.But there is one thing i dont know that how to put label on the right hand side of image also how to get data at selected index of tilelist.I use to do
list.selectedIndex.label
for list component is there something similar in tilelist.I had seen class reference but haven't find it there.If anybody can help
Thanks in adavance
TileList Change Dataprovider
Hi ll,
I have one TileList and different array as data provider , i have 2 button so when i click on each button it need to change the data provider .
How to update the TileList after changing the dataprovider
TileList Dynamic Focus
I have a tilelist with a bunch of items in it, let's say:
myTilelist.addItem({source: image_1});
...
myTilelist.addItem({source: image_99});so it is a very long scrollable list.
Is there any way to add a function (with a button or whatever) to "jump" to a given item inside my tilelist without having to manually scroll to such item?
(I mean dynamically scroll up or down the list and focus on a given item)
THANK YOU!!!
Tilelist Not Rendering Buttons
Hi, I just created a tilelist with a couple of movie clips as items.
something like this:
myTilelist.addItem( {source:myClip1} );
myTilelist.addItem( {source:myClip2} );
Both clips are linked and exported to actionscript so they appear nicely in the list.
My problem is that my movie clips are rendered as images, so the buttons inside each one are disabled.
How can I enable the buttons of the objects inside the tilelist?
PLEASE HELP!
THANX!!!
Tilelist Bane Of My Existence
I have been fighting off and on with tilelists with very little head way.
currently is all i have left to finish my project so now i am stuck having to solve my problems with it.
I want to be able to, in a perfect world, drag and item from the tilelist and onto a nested movieclip and have the image from the tilelist replace that which is in the nested movieclip.
Currently I have an SWF unloaded into a movieclip... this is so I can change the line up of place holders and images to which you can drag images from the tilelist on to. works great... I can even call the nested movieclips (nested in the SWF which is uploaded into a movieclip using addchild) and switch the placeholder image to what i wish it to be.
My tilelist loads its images from a XML file. Works great. I even was playing with the google drag and drop code to see if i can get there drag function to work with this experiment. But thats not going to well... I can drag them image but can't seem to find a way to call the image properly to be able to then turn around and call the nested movieclip to replace the image.
Any Guru's out there think they can step up to the plate and polish off this last problem of mine?
TileList RSS Movieclip Sizing
Hello. I have created a monster and now am stuck how to get the last part to work.
I have created a Flash ad which parses an RSS feed and displays various nodes in 11 Movie Clips which each contain 2 dynamic text fields and 1 UILoader instance, which are then all loaded into a Tile List.
All is working fine except that the MovieClips that are; a) loading a jpg from the RSS (not all of them do), and, b) are displaying below the visible height of the TileList (ie: you need to scroll to see them), are coming in at a very reduced size. If you scroll down and up and then down again they display just fine. Here is a link to a proof.
I have tried preloading the photos and the MovieClips. I tried PreLoading the entire .swf. I tried changing the columnwidth and the rowheight of the TileList. I am wits end.
The code is too extensive to post here, so if anyone wants to have a look and offer and suggestions (or just call me an idiot) let me know and I will mail you the FLA.
Forrest
A Couple Of Questions Regarding TileList .
I want to give my cells in a TileList a bit of padding, but I do not understand how to use the ImageCell renderer to this.
Also I have ScrollPolicy.OFF, but there is still a visible track where the scrollbar would have been - how do I make this go away?
Any advice would be really appreciated.
Tilelist Won't Work In Blogger
I realize there's no guarantee anything will work in Blogger, but I'm used to including code for swfs in Blogger as shown below but it won't display the images, even though they are on the server and it all works fine in an html page. Is this a sandbox issue? In my flash file I just use relative urls since they're all same level.
Attach Code
<embed src="http://www.funonmars.com/bosstile1.swf" type="application/x-shockwave-flash" height="370" width="525"></embed>
TileList Custom Label
I am using the tileList component to make xml driven thumbnails for the FLVplayback component and I want to make it so the labels only show up over the image on mouseover. I also want the label background to slide down from top to bottom, similar to http://www.commonskymedia.com/index.html#reel4. Any thoughts on how i can do this. I am pretty new to Actionscript 3 so please explain in as much detail as possible. Thanks!
TileList Update Image
I have a TileList in which I want to update indivudal tile pictures.
Is there a way to use the selectedIndex property to update the pics on a one-by-one basis ?
...or what is the best way to do this ?
Thanks for any advice.
Customize TileList Component
I recently came across the tileList component. while pretty nice, i'd like to customize it a bit.
I know you can reskin the tileList component but what i'd like to do is customize what can be contained "in" each tile / cell in the list. out of the box, you can set a label and thumbnail.
lets say i wanted to add a couple of text fields to the tile and then change the layout of all contained parts (e.g. the original label, thumb and my new text fields). it looks like i'd have to bind that info to a data provider in some way too.
does anybody know IF / HOW that can be done? maybe a link or two or a possible dummy skeleton function?
i've searched a long time and it seems like google is throwing me all kinds of erroneous stuff. closest i've found is reskinning the default or a lot of stuff in flex which isn't a help because i'm coding in AS3 without flex.
thanks
Tilelist : Preload Images?
I have an image gallery browser i created using the tilelist component. There is over a hundred items in the list, and it seems to only load the images that are visible. When you scroll it unloads the images that are scrolled out, and has to load them back in if you scroll back. Is there anyway to load all the images? If you are doing a lot of scrolling then you start to get errors.
Tilelist : Preload Images?
I have an image gallery browser i created using the tilelist component. There is over a hundred items in the list, and it seems to only load the images that are visible. When you scroll it unloads the images that are scrolled out, and has to load them back in if you scroll back. Is there anyway to load all the images? If you are doing a lot of scrolling then you start to get errors.
Dynamically Populate TileList With MCs
Hi,
i'm loading an undefined number of imagepaths from a xmlfile.
I want to load these images each into a dynamically generated mc(based on a master/class/template), and populate a TileList component with these mc's.
After hours of searching and testing, i just can't figure out, how this can be done in AS3...
Basic problem is to make the mc's with iteration in their names.
Second is to get the Images inside the mc's.
Since i have tried 42 versions of code, i don't know which sample is closest to the solution that i should post here....
Any suggestions, hints, solutions appreciated
Thanks in advance!
MovieClip In TileList Sizing
Hello. I have created a monster and now am stuck how to get the last part to work.
I have created a Flash ad which parses an RSS feed and displays various nodes in 11 Movie Clips which each contain 2 dynamic text fields and 1 UILoader instance, which are then all loaded into a Tile List.
All is working fine except that the MovieClips that are; a) loading a jpg from the RSS (not all of them do), and, b) are displaying below the visible height of the TileList (ie: you need to scroll to see them), are coming in at a very reduced size. If you scroll down and up and then down again they display just fine. Here is a link to a proof.
http://www.canada.com/calgaryherald/webproof/600x400_proof.html
I have tried preloading the photos and the MovieClips. I tried PreLoading the entire .swf. I tried changing the columnwidth and the rowheight of the TileList. I am wits end.
The code is too extensive to ost here, so if anyone wants to have a look and offer and suggestions (or just call me an idiot) let me know and I will mail you the FLA.
Forrest
TileList Component And ImageCell
Hello everyone,
Is there any chance someone has a good tutorial on customizing the tile component, and more specifically the ImageCell and custom renderer's?
I've read everything I could find on Adobe's site. Perhaps I'm hoping for more out of this component than it can actually do but here's what I'm hoping to try and learn.
I need to customize the tile list items to have a image, and to the right of the image in a blank area have a title and small description. From everything I've read you can use a custom renderer to change the background skins and such, and change the font formatting in the lable area, but you can't actually move the label from over top the image to say an area to the right or left off the image. This is basically a tile list for items in a photo gallery of sorts, but includes 360 VR's and movies as well.
I'm sure the guru's may think this is easy but I've tried tons of things and it seems the using a data provider or addItem always expects just a raw bitmap or sprite. I can't figure out how to layout a sub object to have the configuration I want and then add that as a tile item.
Below is an image of the basic look I'm trying to achieve. Again I'm just looking for a tutorial or something to help me learn how to achieve this... if possible.
TileList UI Component DisplayList
I'm trying to understand something about the TileList and I don't see anything in the lang ref.
basically, when it is full of external images (in this case, small thumbnails from the web) it seems that when an ImageCell goes out of the TileList view area, it either unloads or is removed from the DisplayList.
When I scroll quickly, many of the ImageCells are blank, and they reappear when I stop scrolling. If I scroll slowly, they return just after the ImageCell appears in the view area.
I'm trying to figure out if this behavior can be prevented?
or if not, at least I'd like to understand why it's doing that.
does anyone know why? Does anyone know where to find out stuff like this?
thanks.
TileList InnerWidth Issues
OK, from my perspective, the innerWidth property of the TileList component does not work right. I would be glad to have SOMEONE PROVE ME WRONG! *hint hint*
I want to know the width of the "content" of the TileList, not the TileList component itself, which is exactly what the Flash Help documentation says it does. However, when I try using it, it doesn't give me the width of the content; the closest it comes is giving me width of the columns that I define in the Flash authoring environment for that component.
I need to know the content width dynamically! Thx for your help!
TileList Image Preloader.
So the tileList was made to display such things as images. How do you setup a preloader that shows the progress of the images loading into it? My tileList is loading from an XML doc.
[FLEX] - TileList Scrollbar
Hey Guys,
I have a TileList working fine, but I want to be able to modify the style of the Vertical Scroll Bar that it is bringing up. Looking in the API it appears as though TileList has no public "verticalScrollBar" property, but it does have a protected property... is there any way I can modify this so that I can apply the .setStyle to the vertical scroll bar.
Is this even possible? Wouldn't make sense if it wasn't...
Cheers,
--d
TileList Component - How To Remove Spacing?
So I've created a tilelist component.
Populated 15 images into it, in a 3x5 grid.
I removed the "CellRenderer" skin from it (that little black border around the images). However, now the images have white space in between them.
How can I remove this whitespace between the images?
TileList: Multiple Lines Of Text
I am playing around with the Lisa Larson tutorial on creating a flash video player with dynamic playlist (XML). I want to add another text field, but am running into trouble with the TileList.
How can I create two different labels with TileList and call to them?
I want "Title" and "Desc". I can work around it by putting it all into one label, but then I cannot style the title seperate from the description.
Code:
tileList.addItem({label:item.attribute("title").toXMLString() + "
" + item.attribute("desc").toXMLString(),
data:item.attribute("src").toXMLString(),
source:thumb});;
This gets set:
content.text = data.label;
content.setTextFormat(textStyle);
I also tried to use an array and dataProvider without any luck:
Code:
var dp:Array = [
{label:item.attribute("title").toXMLString()},
{label:item.attribute("desc").toXMLString()},
];
tileList.dataProvider = new DataProvider(dp);
tileList.addItem( dp );;
This is how I tried to set it: (It would grab the title of the very last XML entry)
title.text = data.dp[0];
title.setTextFormat(textStyle);
Uiloader And Tilelist Load But No Display
my uiloader
partial code
Code:
sourceValue=theXML.key[key].swfFile;
trace("///// ui key "+sourceValue+" //////////////////");
uiImage.source=sourceValue;
If my url is correct and it is in sourcValue which it is. Shouldn't uiImage.source=sourcValue display the file?
likewise
Code:
var imageImage:String=theXML.key[tImage].swfFile;
trace("////////////////// "+imageImage+" //////////////////");
arrayImage.push({source:imageImage});
}
dp=new DataProvider(arrayImage);
tlImage.dataProvider=dp;
all the correct URL are in the arrayImage[] and the only thing I have left is frame one(action) in the .fla which is:
the tilelist
partial code
Code:
var cbMajorComponent:CBMajorComponent=new CBMajorComponent();
cbMajorComponent.cbMajor.setSize(200, 22);
cbMajorComponent.cbMajor.prompt = "Select a Major Key";
cbMajorComponent.cbMajor.editable=false;
cbMajorComponent.cbMajor.rowCount=15;
cbMajorComponent.cbMajor.width=110;
cbMajorComponent.cbMajor.move(0,0);
cbMajorComponent.cbMajor.x=10;
cbMajorComponent.cbMajor.y=20;
this.addChild(cbMajorComponent.cbMajor);
var cbMinorComponent:CBMinorComponent=new CBMinorComponent();
cbMinorComponent.cbMinor.setSize(200, 22);
cbMinorComponent.cbMinor.prompt = "Select a Minor Key";
cbMinorComponent.cbMinor.editable=false;
cbMinorComponent.cbMinor.rowCount=15;
cbMinorComponent.cbMinor.width=110;
cbMinorComponent.cbMinor.move(0,0);
cbMinorComponent.cbMinor.x=10;
cbMinorComponent.cbMinor.y=50;
this.addChild(cbMinorComponent.cbMinor);
var uiImageComponent:UIImageComponent=new UIImageComponent();
uiImageComponent.uiImage.setSize(50,50);
uiImageComponent.uiImage.x=135;
uiImageComponent.uiImage.y=13;
//uiImageComponent.uiImage.width=110;
//uiImageComponent.uiImage.height=50;
this.addChild(uiImageComponent.uiImage);
var tlImageComponent:TLImageComponent=new TLImageComponent();
tlImageComponent.tlImage.move(135,185);
tlImageComponent.tlImage.width=375;
tlImageComponent.tlImage.height=120;
tlImageComponent.tlImage.columnWidth=160;
tlImageComponent.tlImage.rowHeight=185;
this.addChild(tlImageComponent.tlImage);
|