Flash :: Moving The TileList Label?

Sep 23, 2010

I'm building a thumbnail viewer in Flash CS5 using the TileList component. I know that you can adjust the alpha of the label background, but is there any way to simply move it so it appears below the thumbnail? I already created a new class which extends the ImageCell class, but I can't seem to find any methods to control the positioning of the label.

View 1 Replies


Similar Posts:


Actionscript 3 :: Retrieve The Label Value From A TileList (Flash CS5)

Oct 7, 2011

I have a TileList, that i loaded with a PHP script that gives back an dinamically generated xml so i can load the TileList with the images and labels it needs. Now, i want to click on an item of the TileList an retrieve its Label so i can send it to another PHP script that uses the string of the Label to do a search query so i can load latitud and longitude to a map to where that item is located. i have been trying to trace it, but its a no go.

[Code]...

View 2 Replies

Flex :: Label - External Data In TileList?

Mar 12, 2010

I'm working for the first time with a TileList and an itemRenderer and I'm having a bit of trouble getting the information from my array collection to display Here's what I've got

private function loadData():void{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlConn;[code].....

how I go about pulling the information from the array and putting it into labels like username, userjob, userbio ect, Inside the TitleList and itemRenderer.

View 1 Replies

Actionscript 3 :: Custom TileList Component FLASH CS5 - Built A Skin For A TileList

Sep 17, 2011

has anyone made a Custom Skin for a TileList component in Flash CS5. I want to change the scrollbar of the TileList, i want the track bar as just a thin white line and the thumb a orange circle, this for a Touch Interface.

View 1 Replies

ActionScript 3.0 :: Can't Show The Selected Textfield In The TileList Items By Default The TileList Items Are Selected

Feb 1, 2012

I have placed TextFileds inside TileList Compontent. When i try to select the TextField it can't show the selected Textfield in the TileList items by default the TileList items are selected.Finally i need to select the TextFields.
 
Here is my code: 
 
import fl.controls.TileList;    import fl.data.DataProvider;    import flash.display.Sprite;    import flash.events.Event;
function TileListExample() {            var dp:DataProvider = new DataProvider();            var totalEntries:uint = 3;            var i:uint;            for(i=0; i<totalEntries; i++) {                dp.addItem( {  source:getTf(), scaleContent:false}

[code]....

View 5 Replies

ActionScript 3.0 :: TileList Smooth Scrolling In Flash?

Jan 26, 2010

I'm seeing everyone using the TileList in flex but can you create a smooth scrolling effect in AS3 swf?

Should I try to use Flex? (I'm developing for a deskstop app)

P.S. I have no IDEA what Flex is or how to use it...

View 5 Replies

Flash :: Add Item Direction In TileList Component?

Jul 10, 2011

I have Flash AS3 Project with tile list. I have buttons on stage. each of them when clicked adds tile with a picture on it to the tileList using the addTile() function. I'm using 2 columns in the tile list and I want the new tiles will appear from right to left (1st item - right column, 2nd item - left column..). additionally, is it possible that each new item will be added to the top of the tileList instead of the bottom of it?

View 1 Replies

Php :: Load Images To A TileList From Mysql And XML On Flash CS5

Sep 20, 2011

I have a mysql database with a table containing PATH's to images.

I want to load al the images to a TileList. Now i have this in PHP:

<?PHP
mysql_connect("localhost", "root", "root");
mysql_select_db("prototipo");

[Code]....

This is supposed to fetch me the PATH of the image, the name so it goes on the label of the tile that displays the image, and brings me also the id so i can launch another query when that image is clicked on.

All this is set into a dynamically created XML.

What to do o AS3?? I already have the AS3 for the tilelist, i only need to load this dynamically created XML from PHP to it.

View 2 Replies

Flash :: ScaleContent The Image Inside A TileList?

Oct 13, 2011

I have a TileList that loads its images from an XML, not all the images are the same size so they do not llook consistent wiyh the TileList.So i want the TileList to Scale the images it gets from the XML.

View 1 Replies

Flash :: Set TileList Component's Font To Be Anti-aliased?

Jul 2, 2010

I have a tileList component and i was wondering how one might go about antialiasing the font inside of each label. I have the font embedded using:

leftList.setRendererStyle("embedFonts", true);

I have tried targeting the label specifically with no luck so far.did not work.

var theTextField:TextField = leftList.label;
leftList.antiAliasType = "advanced";

View 1 Replies

Flash :: TileList Cells Respond To Mouse Events In As3

May 9, 2011

I'm making a Flash game (which is basically a version of the same game), and I've used a tileList for the board populated with movieClip pieces. I would like the pieces to respond to mouseOver, mouseOut, and mouseClick events. From looking at other question/answers, I get the idea I'll need a custom imageCell. Is that the way to go. I was hoping I could get the responses I want by putting the actions into the movieClips themselves as below, but that doesn't seem to work. (btw I'm new to the community but have wound up here several times from Google searches

[Code]...

View 1 Replies

ActionScript 3.0 :: TileList Works In Flash Preview But Not Once Published To The Web

Oct 7, 2010

I have a TileList of image thumbnails that pulls its image location and caption info from a remote XML file. when you click on a thumb it displays a larger image and changes when you click another image. it works perfectly inside Flash, but when i publish the images, xml, and swf, everything works except the thumbs do not display, and clicking an empty cell doesn't bring up the larger image. i first thought that maybe my xml file was in the wrong place, but since i am still getting 12 empty cells (12 images listed in the xml), i'm questioning whether its my xml code or my as3 code. getting no errors from flash because the entire swf functions as intended locally.

my xml file and images folder reside in the same folder as the swf on my website.

my xml code and as3 code are below:

BEGIN XML

<?xml version="1.0" encoding="utf-8"?>
<photos>
<image caption="Steve" url="images/web/DSC01921.jpg" thumburl="images/thumb/DSC01921.jpg"/>

[Code].....

View 1 Replies

Flash :: Changing The Appearance Of A Single Thumbnail In TileList Component?

Sep 22, 2010

I'm trying to create a listing of thumbnails using the TileList component, and so far it's working great. Is there a way to change the appearance of a single ImageCell within the component.I'm bringing in the thumbnail data as XML, and I have an attribute for whether it's a "new" image or not. I would like it to display a small badge over the individual thumbnail in my application.

I should note that I made a subclass of the ImageCell class (implementing ICellRenderer) to set my custom skins, but when I tried adding conditional code here (checking for the "new" parameter I set, It simply doesn't work (no error messages).

View 2 Replies

Actionscript 3 :: Change A Frame Label Within A GotoAndStop('label') With The Parameters In A Function?

Feb 29, 2012

Is it possible to change a frame label within a gotoAndStop('label') with the parameters in a function?I'm playing around with updating code as I learn more and more techniques, and at the moment the code is a basic click-a-button to select the object shape, and on press the button disappears:

// Change the object into a circle.
circle_btn.addEventListener(MouseEvent.CLICK,function(){changeShape_fun(circle_btn,circle);});
// Change the object into a square.
square_btn.addEventListener(MouseEvent.CLICK,function(){changeShape_fun(square_btn,square);});

[code]....

However I can't/don't seem to know how to change a frame label through function parameters, or if what I'm trying to do is even possible.Also to note, while I'm all ears for any more efficient ways of doing what I'm trying to do, I would still like to know how/if you can change frame labels through function parmeters.

View 1 Replies

Actionscript 3 :: Handle Unhandled #2044 Errors From Flash Tilelist When Changing Dataprovider?

Jul 9, 2010

I have a tilelist component using a custom ImageCell based item renderer. I know that at times some of the images it is trying to retrieve will not be found and I am able to handle this via an IEOrror listener on the custom ImageCell loader.However, if I set the data provider, then it is changed before all images have completed their loading or error process, the flash debug player throws up an unhandled #2044 error in firefox stating that an image could not be found. In opera with the debug player it throws a #2044 stating that a load never completed.I can't find a way to trap and ignore these errors so they don't throw the debugger player dialogue up. Also, when using the Flash Builder IDE to debug, the debugger doesn't break on these errors at all - it's only in the player while I'm able to break on other errors without problem.It is as if the error listener is being disposed of when the dataprovider changes, but the loader continues and throws an unhandled #2044.

View 1 Replies

Actionscript 3 :: Flash Cs4 - Throwing Error #1009 When Calling AddChild With A TileList As The Argument?

Mar 23, 2011

To be exact this is the error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::BaseScrollPane/drawBackground()
at fl.controls::TileList/draw()
at fl.core::UIComponent/callLaterDispatcher()

Now I've tried several of Adobe's own examples from this page, http:/[url]....., and they all throw this error as well.The error is triggered by the TileList instance being the argument of the addChild function.Here's my package, which works fine when I change the displayComponent is be a List.

package com.pennstate {
import fl.data.DataProvider;
import flash.display.MovieClip;[code]........

View 2 Replies

ActionScript 3.0 :: Making Beat Em Up - Character Stop Moving If The Attack Is Pressed And Once It Is Released Start Moving Again?

Nov 2, 2010

im currently making an "AS3 beat em up" ala streets of rage or double dragon.Currently i have my character moving and a few animations done and i am trying to figure out how to make attacks work.I have some "basic" animation for his attack, but im not sure how to get it to work correctley.What happens is, if you press control (the attack button) whilst the character is walking he just keeps moving and is stopped on the attack frame.I want the character to stop moving if the attack is pressed and once it is released start moving again.

hero.gotoAndStop('still');
var left:Boolean = false;
var right:Boolean = false;[code].......

View 2 Replies

ActionScript 1/2 :: Associate Buttons With A Moving Moving Clip?

Jan 30, 2012

what i have is a tween on a movie clip of a popcorn kernel on one layer and a tween on a button on another layer to follow the movie clip. i want to be able to roll over the kernel and make it "pop". i changed my over on the button to popped corn (this works) but i want it to stay popped for the rest of the tween.

View 11 Replies

TileList Component In An Application

Aug 2, 2009

I'm working with the TileList component in an application, and loading in an MC from the library to display multiple times across some columns and rows.How do I make an event function for the MC in the TileList, so that when a user clicks it, it will trigger a custom function?  I do not see that the TileList has something like this inherently for it's source item.I made an external class for the MC being used in the TileList, but my standard "addEventListener"s are not working.[code]}

View 2 Replies

ActionScript 3.0 :: UILoader Into TileList?

Oct 5, 2009

I'm trying to load a bunch of symbols with UILoaders into a TileList. The code executes without error but the image that I was loading into the UILoader doesn't show up. I'm looping through an array and creating a new object (the one with the UILoader), setting the UILoader source and then adding it to the TileList.

View 1 Replies

ActionScript 3.0 :: Alternative To TileList?

Mar 9, 2009

I'm looking for a lightweight alternative to the TileList component. I'm currently designing and developing an MPU Ad Creative that references an XML doc and pulls in four FLVs and their appropriate meta data. These videos will then be playable in the merch window, and there will be some opt-in data capture going on as well.

I've got a prototype going at the moment that grabs the XML and populates a TileList, and then uses ListEvent Listeners to add functionality to each of the ImageCells. All working fine, except that the file size is already at 47k without any of the data capture form fields in there. This is already over the TZ polite-load limit, and I've only added maybe 60% of the functionality. When I remove the TileList class, the swf shrinks down to 3k (a much nicer size ), and even after adding the remaining 40% I can't see this going much above 15k.

So, anyone know of anything I could use to replace TileList? I thought about creating my own class that holds all the information for each Video I need, but I thought I should check first to see if there are any other alternatives.

View 1 Replies

ActionScript 3.0 :: Get A MovieClip From TileList?

Feb 3, 2012

I have a TileList witch all my movieclips from library, i wold like to click in item and this item appear on my stage.

Code:

myTileList.addEventListener(MouseEvent.MOUSE_DOWN,clicouItemLista);
function clicouItemLista(e:Event){
//-----------------------example out

[Code]....

View 1 Replies

ActionScript 3.0 :: Manipulating Object In A TileList?

Oct 2, 2009

Okay, so I am filling a TileList component with custom "ChordUnit" MovieClip objects, each of which is associate to a ChordUnit ClassI've established a way of determining if any of these objects are being moused over or clicked:

public function setChordBinSong(song:int, extend:Boolean):void {
dpChords = new DataProvider();
for (var i=0; i < activeChords.length; i++) {

[code].....

View 10 Replies

ActionScript 3.0 :: Add Padding Between Elements In A TileList?

May 12, 2010

Is there a way to add padding between elements in a TileList .

I've passed deadline with a big project , it's all done , but he changed his mind and demands padding. And doesn't want without, i don't have time to make a new component

View 4 Replies

Professional :: SWFs In Tilelist Slowing Down?

Jul 13, 2010

I have a tileList that I'm loading swfs into. One of my swfs has a particle system in it and every time it is loaded into the tilelist the particle system slows down. Every time the swfs are loaded I use tileList.removeAll() to clear it and then tileList.addItem() to repopulate the tileList. My guess is that this isn't actually unloading the swfs completely so they are building up in memory. What do I have to do to unload the swfs completely to prevent them from slowing down?

View 1 Replies

ActionScript 3.0 :: Snapping With Tilelist Scrollbar?

Feb 21, 2011

So I'm displaying data with a tilelist and a scrollbar. I want the use of the scrollbar, but I don't want totally free scrolling. For the rows I'm displaying vertically, I don't want to be showing like half a row, I want it to snap. I know this can be achieved with the up / down buttons of the scrollbar, but that's not the way I want it to work  How would I be able to ensure that only a full row can be shown when scrolling?I've taken a look at the event you get when you subscribe to ScrollEvent from <TileList>.verticalScrollbar and they run through fl.controls::ScrollBar/handleThumbDrag and l.controls::Scrollbar/setScrollPosition before getting there, which obviously sets how the tilelist should be displayed.

View 3 Replies

ActionScript 3.0 :: Same Item Clicked In TileList?

Dec 2, 2011

I want to know when the same item in a tileList has been clicked so I can remove that item. All the tutorials I've found use a Change event on the tileList which doesn't fire when the same item has been clicked again.

View 1 Replies

Flex :: Why Does TileList SelectedIndex Not Get Updated

Aug 14, 2009

In the code below, the presentedAlbumIndex is used to control the selectedIndex of the TileList. Item "five" is initially selected. Whenever the button is pressed the first item in the array is deleted, and the presentedAlbumIndex is decremented.

In theory, the selected index should stay with "five" every time the button is clicked (until "five" is itself deleted). It works this way for the first button press. However, on the 2nd button press the highlighting changes to "six" for some reason. Also, the TileList selectedIndex is always one behind.

I tried looking into ListBase and monitoring selectedIndex. It looks like the selectedIndex is updated initially to the correct index, but then it reverts back at some point to the correct index+1. I do not know why it's setting back.

It seems it's due to the fact that I am doing a data provider delete and index change in the same operation.

Is there some function in TileList I could override to keep selectedIndex up to date?

Steve

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"

[Code]....

View 1 Replies

Flex :: TileList Item Selection?

Sep 1, 2009

In my TileList, I want to select the TileList items on rollover, as opposed to the click event. I already have the TileList setup to allowMultipleSelection = "true".

View 3 Replies

Flex :: Referencing All Data In TileList

Sep 3, 2009

I have 2 TileList component in my Flex application. 1 tilelist is filled with data much like following xml sample:
<person name="Test">
<likes>Flex</likes>
<likes>PHP</likes>
</person>
<person name="test2">
[Code] .....
data shown is the preference.

The user can click the first tilelist and then the items that person "likes" should be selected in the second tilelist (in other words they lit up). Click event on my first tilelist
private function highlightPreferences(e:ListEvent):void{
trace(e.currentTarget);
//and now I'm stuck
}

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved