Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Posts
    15

    AutoPlay folder problem

    Ok, I posted a thread asking for help on the TrimLeft action (and got it, thanks!) but when working on it I realized that my problem was quite a bit more complicated.

    Some images in my project are dynamic. I do this by setting whatever variable and depending on it's value I set a different image. Now the image is there no matter what, it's only the color that changes. So what I did is use the Image.SetProperties function and assigned ImageFile = whatevervariable. This works like a charm.

    However when I build my project I have to change the AutoPlay folder name. Doing this every function works fine except any image using the above code. The images do not display and I get the missing image placeholder.

    I have tried hardcoding the new folder name, setting a variable, everything I can think of but nothing works. And unfortunately I HAVE to change the name of that folder for it to work where it's destined to (wierd system admin thing going on there...).

    Any ideas?

  2. #2
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    Iit could be any number of reason's. Can you show us the code that's not working? It would be easier to help you. Also I'm a little unclear why you would have to change the folder name. Can you clarify?

  3. #3
    Join Date
    Sep 2007
    Posts
    15
    Here is the rogue code:

    Code:
    	numLoopCount = 1;
    	repeat
    		Image.SetProperties("statbar_" .. numLoopCount, {ImageFile= "AutoPlay\\Images\\" .. xstatus .. "_" .. numLoopCount .. ".gif"});
    		numLoopCount = numLoopCount + 1;
    	until 
    		numLoopCount == count;
    This is an example. There are other places where I use this and where it crashes as well. the key is the line ImageFile= "AutoPlay\\Images\\". Each time I use this it bugs, otherwise it works.

    As far as changing the name, it's because if it's called AutoPlay it will get wiped every week; it's a feature on the servers that deletes any file name or folder with key words in them, and Play is one of them... I know....... trust me it causes a lot of headaches.
    Last edited by melblanc; 02-11-2008 at 02:50 PM.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    its because the function is expecting a indexed table and you have entered 1 table item


    try it like this
    Code:
    		numLoopCount = 1;
    	repeat
    		tbImageProps={}
    		tbImageProps.ImageFile= "AutoPlay\\Images\\" .. xstatus .. "_" .. numLoopCount .. ".gif"
    		Image.SetProperties("statbar_" .. numLoopCount, tbImageProps);
    		numLoopCount = numLoopCount + 1;
    	until 
    		numLoopCount == count;
    but it would be easer like:
    Code:
    		numLoopCount = 1;
    	repeat
    		Image.Load("statbar_" .. numLoopCount, "AutoPlay\\Images\\" .. xstatus .. "_" .. numLoopCount .. ".gif");
    		numLoopCount = numLoopCount + 1;
    	until 
    		numLoopCount == count;
    Last edited by RizlaUK; 02-11-2008 at 05:40 PM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Sep 2007
    Posts
    15
    Thanks RizlaUK, I realize the flaws in my code - especially that I plain missed Image.Load!. Unfortunately I've tried both methods and I hit the same wall... exact same problem.

  6. #6
    Join Date
    Sep 2007
    Posts
    15

    Bump

    Anyone able to help me? I've tried everything...

Similar Threads

  1. cookies
    By goukilord10 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-20-2005, 04:08 PM
  2. HOWTO: Build and Burn Your AutoPlay Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 03:43 PM
  3. PROBLEM: AutoPlay Application Does Not Start Automatically
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-25-2002, 02:21 PM
  4. PROBLEM: AutoPlay Application Does Not Start Automatically
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-25-2002, 12:39 PM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts