Page 1 of 1

Create image in another card

Posted: Mon Mar 11, 2013 5:43 pm
by CenturyMan1979
Hey All,

Is there a way to create an image in a card that is not the current card? Wanted to create a card that could be used to preload images into it but can't seem to figure out how to do it.

Re: Create image in another card

Posted: Mon Mar 11, 2013 6:21 pm
by sturgis
The easiest way is something like this.

Code: Select all

   lock screen -- keeps the changes from showing
   go card "imagesC" -- card where you want the image
   create image "newImage" -- create the image (could be an import or whatever)
   go card "mainC" -- go back to your start card
   unlock screen 

Re: Create image in another card

Posted: Mon Mar 11, 2013 7:50 pm
by CenturyMan1979
Thanks for the idea sturgis but that will not work to well for the way my application is setup. I did end up finding a way to load images into a card that is not the current card.

You need to create a group in the card you want to create the images in, then you can use the following code,

Code: Select all

create image in group "groupName" of card "cardName"

Re: Create image in another card

Posted: Mon Mar 11, 2013 8:45 pm
by sturgis
Yep that works too. Glad you found a way that will fit into your app!

Re: Create image in another card

Posted: Fri Jul 08, 2016 9:33 pm
by mrcoollion
Maybe an old post but just for the fun of it..

I solved this issue without using a group with an invisible dummy image ''CopyImage"

Code: Select all

      copy image "CopyImage" of this card to card "Imageholder"
      set the name of image "CopyImage" of  card "Imageholder" to newimagename