script not working when the stack is password protected, why?

runrev at animabit.de runrev at animabit.de
Fri Aug 22 05:12:05 EDT 2008


Hi,

the problem is in the line
copy image "i1" of group "vorlage" of card 2 to group "kopfleiste"

It tries to cut an image of card 2 before copiing it to card 1.
=> can't cut object (stack is password protected)

This is not allowed when the stack is password protected (in older versions I remember I could get image 1 of card 1 of this stack even when password protected - I am glad about this improvement - if I remember correctly).


I try the following solution:

on openCard
if the environment <> "development" then
set the passKey of this stack to "xyz"
end if
end openCard
It seems to be secure ... in the standalone this allows the script to work, but not in the IDE.
Does this be secure? My decompile stack, which I got from the net for decompiling a 2.2 runrev -standalone exe to a 2.2 runrev file and which worked till 2.7 does not work anymore. Any newer version of the decompile script on the market ;-)


Greetings, Franz
Original Message        processed by David InfoCenter 
Subject: script not working when the stack is password protected, why? (22-Aug-2008 10:46)
From:    runrev at animabit.de <runrev at animabit.de>
To:      boehmisch at animabit.de


Hello
I have a stack for putting images together on a virtual board and make a new image from it. The following button script adds a image to the actual group "kopfleiste" which contains all images and texts etc. which then will be exported to a jpg file.
This script does not work when the stack is password protected, but works when this is not the case. What line is the reason for this?
on mouseUp
put the number of images of group "kopfleiste" into bildanzahl
copy image "i1" of group "vorlage" of card 2 to group "kopfleiste"
set the loc of it to the loc of group "kopfleiste"
put ("i" & the seconds) into bildname
set the name of it to bildname
put the layer of the group "kopfleiste" into kopfleistenlayer
set the relayerGroupedControls to true
set the layer of image bildname to (kopfleistenlayer + bildanzahl+1)
set the relayerGroupedControls to false
end mouseUp


Regards, Franz
Mit freundlichen Grüßen
Franz Böhmisch

boehmisch at animabit.de
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

To: use-revolution at lists.runrev.com



More information about the use-livecode mailing list