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.
Create image in another card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Create image in another card
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
-
- Posts: 86
- Joined: Tue May 15, 2012 5:56 pm
Re: Create image in another card
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,
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
Yep that works too. Glad you found a way that will fit into your app!
-
- Posts: 738
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Create image in another card
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"
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