New topic: Help with a special array problem
<http://forums.realsoftware.com/viewtopic.php?t=43923> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message beginner_kev Post subject: Help with a special array problemPosted: Mon May 07, 2012 9:42 pm Joined: Mon May 05, 2008 9:07 pm Posts: 27 Hello, i need to compile a RB program that contains 15 (200 X 200) pixel png images that will display in a canvas. These are not allowed to be accessible to anyone due to copyright & usage laws so they have to be bundled in the program when it compiles. I need 2 buttons so the user can either move to the next picture in the list of 15, or to the previous picture in the list. How can i accomplish this ? anyone have an idea ? thanks Top DaveS Post subject: Re: Help with a special array problemPosted: Mon May 07, 2012 9:48 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 3660 Location: San Diego, CA you do realize that even "bundling" the images in the compiled app does not protect them from being extracted? ESPECIALLY if it is a MAC OSX app.... 15 images 200x200 is a small amount..... just drag them into your project like any other image. Your only other recourse is to encrypt the images in your bundle, then decrypt them in memory.... but screen shots are easy to do as well. _________________ Dave Sisemore MacPro, OSX 10.7.3 RB2011r3 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top beginner_kev Post subject: Re: Help with a special array problemPosted: Mon May 07, 2012 11:47 pm Joined: Mon May 05, 2008 9:07 pm Posts: 27 Hi , yeah, drag them into my app is what i meant. I was able to get it working like this: module property names(3) as picture window property i as integer = 0 open event of window names(0) = apple names(1) = battery names(2) = banana names(3) = book canvas1.backdrop = names(i) pushbutton if I < 3 then i = i + 1 else i = 0 end canvas1.backdrop = names(i) the apple, battery, banana and book are the 4 pictures dragged into my app. So it just keeps cycling thru as i click so apparently this will work just fine, unless there is a reason i should do it differently. They can still be extracted like this ??? I licensed these thru a photo licensing site and they can't be available for extraction from software programs. Thanks for chiming in so quick, i appreciate the help! Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
