PDA

View Full Version : tile list y values



rondog
February 26th, 2009, 04:13 PM
Not sure if you guys remember flash paper or not, but basically I am trying to clone it in AS3. The layout anyway, not the actual conversion.

I have my PDF pages and SWF format and I have them loading into a tile list. I want to get the Y value of each item in the tile list so I can make a page browser.

Anyone have an idea how to get those values?

mathew.er
March 3rd, 2009, 08:17 PM
You mentioned tile list... do you mean the TileList control in Flex? If so, you'll need to get the item renderer and then read the y value, try ListBase.indexToItemRenderer or ListBase.itemToItemRenderer functions.

creatify
March 3rd, 2009, 09:44 PM
so, your pdf->swf... you found something that converted a pdf into an swf - is this correct?

If correct, then you have basically one tall swf? or is it paginated or something? if the pages are the same size and the padding between are the same size, can't you just use that static property and multiply it by page number?