Hi All,
I’m developing a Plex client app for the popcorn hour, the popcorn hour is limited to flash lite 3.0 and AS2 so being an Actionscript board i was hoping you guys and girls could help.
First a preview of what I have so far
youtube -> youtube.com/watch?v=M-VJcXeJmX8
(sorry no links till 50+ posts.)
Bit of back ground, I have change how I store the Plex server data (XML) as i now use XMLObject from Sephiroth -> sephiroth.it/file_detail.php?id=134 and am havign one of those brain blank moments in building the menu system.
I now have a data structure that looks like
Code:
MediaContainer[
0[
Directory[
0[
Location[
1[
data:undefined,
attributes[
path:/c/media/Videos/Anime/Movies
]
]
0[
data : undefined
attributes : undefined
path : /c/media/Videos/Movies
]
]
data:null,
attributes[
refreshing:0
key:1
type:'movie'
title:'Movies'
art:'/:/resources/movie-fanart.jpg'
agent:'com.plexapp.agents.imdb'
scanner:'Plex Movie Scanner'
language:'en'
updatedAt:1343211306
createdAt:1343125742
]
]
etc....
15[
Location[
0[
data:undefined
attributes[
path:'/c/media/Videos/TV'
]
data:null
attributes[
refreshing:0
key:2
type:'show'
title:'TV Shows'
art:'/:/resources/show-fanart.jpg'
agent:'com.plexapp.agents.thetvdb'
scanner:'Plex Series Scanner'
language:'en'
updatedAt:1343137658
createdAt:1343125781
]
]
data:null
attributes[
size:2
mediaTagPrefix:'/system/bundle/media/flags/'
mediaTagVersion:1343151776
title1:'Plex Library'
identifier:'com.plexapp.plugins.library'
]
]
]
I need/want to display a scrolling menu with Directory[0-15].attributes.title been the text but with only 5 items/title visible at a time as in the preview now this is where I get stuck.
The user can move up or down through the menu if they are moving up and get too the first item then there next move up will show the last item and vice versa if they move down.
Now I was thinking of using five text boxes txt_00 – txt_04 so to start with
Code:
txt_00 = Directory[14].attributes.title
txt_01 = Directory[15].attributes.title
txt_02 = Directory[0].attributes.title
txt_03 = Directory[1].attributes.title
txt_04 = Directory[2].attributes.title
then on up key
Code:
txt_00 = Directory[13].attributes.title
txt_01 = Directory[14].attributes.title
txt_02 = Directory[15].attributes.title
txt_03 = Directory[0].attributes.title
txt_04 = Directory[1].attributes.title
and so on but the code to do this escapes me for now.
All so i would like to put some tweening in there to mimic the scroll action. This one’s really messing with my head so any ideas on how i would do this would be greatly appreciated.
Thanks for your time and any help.