using icons for a file menu instead of data grid ???

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
pTom
Posts: 40
Joined: Wed Sep 18, 2013 10:44 pm

using icons for a file menu instead of data grid ???

Post by pTom » Tue Apr 29, 2014 5:11 am

Hi guys, for the tablet version of my app, I am experimenting with creating a menu of files using floating icons instead of the data grid "menu list" (similar to what you see when you look at the home screen on your iPad or Android tablet). I have seen a number of apps do this for the tablet versions of their app instead of using the data grid menu list appearance.

I have been searching around for how to get started doing something like this but am at a loss. Any ideas on how to direct me?

Thanks for your help!
Attachments
mars-hill-church-1300-4-s-307x512.jpg

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3900
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: using icons for a file menu instead of data grid ???

Post by Simon » Tue Apr 29, 2014 5:39 am

I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

pTom
Posts: 40
Joined: Wed Sep 18, 2013 10:44 pm

Re: using icons for a file menu instead of data grid ???

Post by pTom » Wed Apr 30, 2014 3:40 am

Thanks, Simon! I am using the scroller in Livecode instead of the carousel in mobGUI. A followup question...
I am using this to create a menu of selectable images. When a user clicks on an image, they will be taken to another card which will show a video. And then they will be able to return to this "image menu" card when they are finished watching the video by clicking on a "back" button. Here is my question:
Is there any easy way to associate the appropriate video url (which is on my Livecode server) with the image that they are clicking on?
*I suppose you should know the image menu is created dynamically each time the person goes to the card since there will be an ever growing menu of options which they can click on

Any thoughts? Your help is greatly appreciated!

Tom

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3900
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: using icons for a file menu instead of data grid ???

Post by Simon » Wed Apr 30, 2014 3:54 am

Hi Tom,
I'm thinking an easy way would be to name the images the last part of the URL e.g. http://www.mysite.com/theGoodVid.flv (maybe .html) would be "theGoodVid"
then the script of the group (all images are in a group) would be

Code: Select all

on mouseUp
put the short name of the target into tName
put "http://www.mysite.com/" & tName & ".flv" into gURL
go cd 2
end mouseUp
untested... hmmm I see that you may have to download the image as theGoodVid.png so remove the png
gURL would be a global

How does that sound?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “Summer School 2013”