Actionscript 3.0 :: TileList Tile Spacing?

Nov 2, 2010

Is there a way of actually controlling the spacing of the tiles I tried imagePadding, but it just pads the image within the tiles. But the tiles still stay next to each other. You can see this when you do a mouse over.

View 3 Replies


Similar Posts:


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 :: Check The Existance Of Another Tile To The Left, Right, Or Above And Below, Otherwise The Tile Should Not Be Placed?

Apr 19, 2011

I'm making a game where you place tiles on a grid. When placing a tile, I need to check the existance of another tile to the left, right, or above and below, otherwise the tile should not be placed.. Here is a function I thought would work, that accepts one variable (the position of the tile just as it is about to be placed) :-
 
private function checkSurroundingTiles(gridPosition:uint) {                 var t1 = gridPosition - 12;     var t2 = gridPosition - 1;     var t3 = gridPosition + 1;     var t4 = gridPosition + 12;                 for(i = 0; i < gridRefArray.length; i++) {          var checkTile = gridRefArray[i];                          if(checkTile == t1) {               return true;

[code]....

View 11 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

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 2.0 :: Tile Map Using StartDrag()?

Feb 5, 2009

I'm making a strategy game the uses a tile map to show information about the other players! Every tile is 50*50px and when you start the map it loads about 50 tiles and puts them together (all this from a Flash->ASP->MySQL which i managed to do on my own)

What i need to do is to make the map draggable (kinda like maps.google.com) and make every tile clickable! I can't manage to do both of these things at the same time All the tiles are in a movieclip called mapMc so by creating a big button above the visible map area and write:

ActionScript Code:
on (press) {
allSize = _global.fullMapSize/2; //This gets the size of the map after all tiles have loaded[code].....

And that kinda works (except for the boundaries)Second, when you press a tile, which i stupidly constructed as another button, so every tile is a button (loaded dynamically) with as that fetches the tile information (already fixed ) But how do I combine them?

View 0 Replies

ActionScript 3.0 :: How To Separate A Tile Set

Jun 22, 2011

i no i will use the bitMap draw function and push each 1 into a array in order. but im unsure on how to separate 1 image into seprate 1s. can any1 just give me a quick knolage burst. as soon as im told how to ill be fine coding it just getting my head araound the math(not my strongest subject, bad i no).

View 3 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

Flex :: TileList With Associative Array?

Apr 7, 2010

I have an associative array that I want to display using TileList. However, it doesn't understand what is being fed to it. All I got is [object] in the TileList.

[bindable]
public var people as array = new array();
private function loadArray():void{

[code].....

View 1 Replies

As3 :: Add An Event To Movieclip Inside Tilelist

Jul 7, 2010

I am working on a component where i need to register a click event on a button inside the moviclip which is inside a tilelist, can somebody point me in the right direction.Tilelist -> movieclip -> button (i need to register a click event on the button).

View 2 Replies

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

Flex :: Highlight The First Item In The Tilelist?

Nov 3, 2011

I am navigating the items of tile list using next and previous button. I need to highlight the first item in the tilelist by default ( like the first item is being selected by default)

View 1 Replies

ActionScript 3.0 :: Add An [x] Button Inside A TileList?

Dec 19, 2010

I'm developing an application in flash which uses tabs. As the actual buttons for the tabs, I've created a tileList object. Tabs are dynamically added to this as they are created.

What I would like to is add a close button inside the tab button, inside the tileList object. If you are unsure about what I mean then please take a look at the tabs on your browser, that's what I'm aiming to achieve.

View 0 Replies

ActionScript 3.0 :: Creating A Gallery Using Tilelist ?

May 16, 2011

i have an directory of images saved on the server... i want to use the tilelist component to display them all ... either by xml.. or by direct load all images if this is possible..the images are made and stored by a filename of date and time.. as an example "1305549409.jpg".so could be a pain to automatically update xml..

once an image is clicked in the tile list i want this to load up full screen, is this possible......OR is there a way to make a flash gallery using all the images form a directory.. direct loading all the images to placeholders.. or even a random set of images..

View 0 Replies

ActionScript 3.0 :: Drag From TileList To MovieClip?

Jan 9, 2012

I have a Tile List wich all my movie clips, and i want to 'drag' the movieClip from Tile list and drop it into my movieClip called "palco", [URL] that my code to populate my TileList:

[Code]....

View 0 Replies

IDE :: Adding Gap Between Elements In A TileList Component?

May 12, 2010

Pff is there a way to add padding between elements in a TileList

View 1 Replies

IDE :: Add Some Spacing Between The Text?

Feb 12, 2012

I am currently designing a countdown clock and I would like to add some spacing between the text. But every time I add the spacing it does not work. I just want the days to show and I need them to go over boxes that require the numbers to be spaced out.

View 2 Replies

ActionScript 3.0 :: Image Of Tile Only Showing Once?

Apr 16, 2011

Image of tile only shows once, how can I make it show more than once with my newTile MoiveClip object?
Game.fla
Actionscript Code:
import myPackage.GameBoard;var Map1:Array = [[1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1]];
var Game1:GameBoard = new GameBoard(30, 30);
Game1.setTile(1, waterTile); Game1.setTile(0, dirtTile);
Game1.buildMap(Map1); addChild(Game1);
[Code] .....

View 3 Replies

ActionScript 3.0 :: Tile A Movieclip Instead Of A Bitmap

Jan 31, 2009

I am wokring on a movie and I want to tile a movieclip instead of a bitmap in AS3. I have figured out masking and the bitmap tiling in AS3, but am still encountering trouble finding a good solution for simply tiling an MC symbol across a set width and height in AS3.

View 7 Replies

Flash - Tile Objects In Grid AS3

Apr 8, 2011

I want to put an array of objects into a grid. I know the code is simple but somehow I'm not getting what I want.

Code:
const PADDING:Number = 10:
const COL:Number = Math.floor(Math.sqrt(tiles.length);
const ROW:Number = Math.floor(Math.sqrt(tiles.length);
for(var i:int = 0; i< COL; i++) {
var tile:TileSprite = tiles[i];
tile.x = i * tile.width + PADDING;
for(var j:int = 0; j < ROW; j++) {
tile.y = j * tile.height + PADDING;
}}

Notes:
- The array is declared else where as a public variable
- This is to be part of a game engine I'm building so I want it as flexible as possible
- The tiles as reading their properties for an XML file. But I don't want to use the XML to hard code the tiles' positions.

View 1 Replies







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