Setting script in object not working...

Mike Bonner bonnmike at gmail.com
Wed Mar 21 20:23:18 EDT 2012


Might set up a hidden image object with the script already there and just
clone or copy it. That way you don't have to worry about whether its a
scriptlimits issue if nothing else.

On Wed, Mar 21, 2012 at 5:12 PM, Alex Tweedly <alex at tweedly.net> wrote:

> I'd try adding your 'start' and 'test' buttons to the real stack, and see
> if they work there.
> If they do, add an image 'test1' and have the 'start' button set its
> script as well.
> If that works, try doing that *after* you have created all the other
> images (in case its an issue with total number of script lines set).
>
> No other ideas yet ....
> -- Alex.
>
>
> On 21/03/2012 22:52, Glen Bojsza wrote:
>
>> Hi Pete,
>>
>> I am not trying to save the new images in the standalone but only show
>> them. If the user wants to save the images they are exported as png's.
>>
>> But I am now certain that there is something amiss... I can set the
>> tooltip
>> for the images and it works fine in both ide and the application.
>>
>> I have also tried adding a couple of test buttons, one that cycles through
>> the images of the group and sets their script and one that reads the list
>> of image ids that I store and then set the scripts with direct
>> references... both fail in the application but work in the ide.
>>
>> This looks like it will come down to massive trial and error to solve the
>> problem... so any ideas on tackling the issue?
>>
>> By the way the behavior idea failed.
>>
>> thanks,
>>
>> Glen
>>
>> On Wed, Mar 21, 2012 at 4:27 PM, Pete<pete at mollysrevenge.com>  wrote:
>>
>>  Is this another manifestation of not being able to save anything in a
>>> stack
>>> in a standalone program?
>>> Pete
>>>
>>> On Wed, Mar 21, 2012 at 3:01 PM, Glen Bojsza<gbojsza at gmail.com>  wrote:
>>>
>>>  Hello,
>>>>
>>>> I have a stack where I generate a series of images.
>>>>
>>>> I then set the script of each image to a script that is stored in a
>>>>
>>> custom
>>>
>>>> property.
>>>>
>>>> In the ide the script works when you click an image and when you inspect
>>>> the image's script in the script editor it is there.
>>>>
>>>> But when I take the stack and make it into an application it looks as if
>>>> the images contain no script because when an image is clicked nothing
>>>> happens.
>>>>
>>>> I have tried making the script very simple ie
>>>>
>>>> on mouseUp
>>>> answer "Success" with "OK"
>>>> end mouseUp
>>>>
>>>> Again this works in the ide but not in the final application?
>>>>
>>>> I have tried several other methods such as adding a button that I can
>>>> manually test in the application to copy a script to an image but this
>>>> fails?
>>>>
>>>> Has anybody experienced this before or have any suggestions?
>>>>
>>>> thanks,
>>>>
>>>> Glen
>>>> ______________________________**_________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>>>>
>>>>
>>>>
>>> --
>>> Pete
>>> Molly's Revenge<http://www.**mollysrevenge.com<http://www.mollysrevenge.com>
>>> >
>>> ______________________________**_________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>>>
>>>  ______________________________**_________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>>
>>
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list