script error

View: New views
10 Messages — Rating Filter:   Alert me  

script error

by Barry Barber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello List group,

I have a group of images containing a green and a blue button, each of which lays above an invisible image which when shown appears as a halo or glow around the button img as a hilite.
The script in each is the same, apart from the colour names, as below and of course works fine.
 
on mouseEnter
    set the vis of img "greenglo.png" to true
end mouseEnter

on mouseLeave
    set the vis of img "greenglo.png" to false
end mouseLeave

However, I need several of these groups on the same card to control different objects but when I duplicate it, despite it receiving a different ID, the script activates the visible of the images in the original group not those the mouse is over!
I have tried defining the group specificly (with and without quotes) but then nothing happens in either the original or the
copy and I get this error message.

Type    Chunk: can't find background
Object    greenbutton.png
Line    set the vis of img "greenglo.png" of this group to true
Hint    true

What background is it looking for and why is true indicated as an error?

Always grateful for any help
Barry Barber



      Posta, news, sport, oroscopo: tutto in una sola pagina.
Crea l'home page che piace a te!
www.yahoo.it/latuapagina
_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: script error

by J. Landman Gay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Barry Barber wrote:

> However, I need several of these groups on the same card to control different objects but when I duplicate it, despite it receiving a different ID, the script activates the visible of the images in the original group not those the mouse is over!
> I have tried defining the group specificly (with and without quotes) but then nothing happens in either the original or the
> copy and I get this error message.
>
> Type    Chunk: can't find background
> Object    greenbutton.png
> Line    set the vis of img "greenglo.png" of this group to true
> Hint    true
>
> What background is it looking for and why is true indicated as an error?

"This" can only be used with cards or stacks. "This group" isn't a valid
construct. However, if the script is in the group, then you can refer to
it as "me":

  set the vis of img "greenglo.png" of me to true

--
Jacqueline Landman Gay         |     jacque@...
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

MySQL timeout

by Terry Judd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a 'startup' routine that checks to see whether my mySQL database is
online. The problem if that when it isn't it hangs for 75 seconds. Is there
a way to specify a (much) shorter timeout interval?

Terry...

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: MySQL timeout

by Ken Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




On 7/15/08 4:13 PM, "Terry Judd" <tsj@...> wrote:

> I have a 'startup' routine that checks to see whether my mySQL database is
> online. The problem if that when it isn't it hangs for 75 seconds. Is there
> a way to specify a (much) shorter timeout interval?

How are you checking? Are you using the mysqladmin "ping" command? Oh and
what platform(s) are you doing this on?


Ken Ray
Sons of Thunder Software, Inc.
Email: kray@...
Web Site: http://www.sonsothunder.com/


_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: MySQL timeout

by Terry Judd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16/7/08 7:50 AM, "Ken Ray" <kray@...> wrote:

> On 7/15/08 4:13 PM, "Terry Judd" <tsj@...> wrote:
>
>> I have a 'startup' routine that checks to see whether my mySQL database is
>> online. The problem if that when it isn't it hangs for 75 seconds. Is there
>> a way to specify a (much) shorter timeout interval?
>
> How are you checking? Are you using the mysqladmin "ping" command? Oh and
> what platform(s) are you doing this on?

Hi Ken - Nothing as fancy as that. I'm just using revOpenDatabase to get a
connection ID. If either I or the database are offline I get the spinning
pizza (Mac OSX) for a full 75 seconds before it returns a 'Can't connect to
Mysql' error.

Terry...

>
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray@...
> Web Site: http://www.sonsothunder.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution@...
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: MySQL timeout

by Terry Judd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16/7/08 7:59 AM, "Terry Judd" <tsj@...> wrote:

> On 16/7/08 7:50 AM, "Ken Ray" <kray@...> wrote:
>
>> On 7/15/08 4:13 PM, "Terry Judd" <tsj@...> wrote:
>>
>>> I have a 'startup' routine that checks to see whether my mySQL database is
>>> online. The problem if that when it isn't it hangs for 75 seconds. Is there
>>> a way to specify a (much) shorter timeout interval?
>>
>> How are you checking? Are you using the mysqladmin "ping" command? Oh and
>> what platform(s) are you doing this on?
>
> Hi Ken - Nothing as fancy as that. I'm just using revOpenDatabase to get a
> connection ID. If either I or the database are offline I get the spinning
> pizza (Mac OSX) for a full 75 seconds before it returns a 'Can't connect to
> Mysql' error.

Hmm, seems like sockettimeoutinterval doesn't work with revDB functions.
There is a web server on the same box as the mySQL server so I guess I can
set the sockettimoutinterval to something small and try to get a url from
that. If it's offline then mySQL will probably be as well.

Terry...

>
> Terry...
>>
>>
>> Ken Ray
>> Sons of Thunder Software, Inc.
>> Email: kray@...
>> Web Site: http://www.sonsothunder.com/
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution@...
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: MySQL timeout

by Ken Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Hi Ken - Nothing as fancy as that. I'm just using revOpenDatabase to get a
> connection ID. If either I or the database are offline I get the spinning
> pizza (Mac OSX) for a full 75 seconds before it returns a 'Can't connect to
> Mysql' error.

There's an environment variable called "$MYSQL_CLIENT_TIMEOUT" that you can
set... I'm reading the value from a preference and executing:
 
  put gPrefsData["MySQLTimeout"] into $MYSQL_CLIENT_TIMEOUT

The timeout value is in seconds, btw...


Ken Ray
Sons of Thunder Software, Inc.
Email: kray@...
Web Site: http://www.sonsothunder.com/


_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: MySQL timeout

by Terry Judd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16/7/08 9:51 AM, "Ken Ray" <kray@...> wrote:

>
>> Hi Ken - Nothing as fancy as that. I'm just using revOpenDatabase to get a
>> connection ID. If either I or the database are offline I get the spinning
>> pizza (Mac OSX) for a full 75 seconds before it returns a 'Can't connect to
>> Mysql' error.
>
> There's an environment variable called "$MYSQL_CLIENT_TIMEOUT" that you can
> set... I'm reading the value from a preference and executing:
>  
>   put gPrefsData["MySQLTimeout"] into $MYSQL_CLIENT_TIMEOUT
>
> The timeout value is in seconds, btw...

I set it to 3 seconds but the revOpenDatabase function still blocks for 75
seconds :(

Terry...

>
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray@...
> Web Site: http://www.sonsothunder.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution@...
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Parent Message unknown Re: MySQL timeout

by Malte Brill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Terry,

I experienced the same. The problem was only the case, if the machine  
running the mySQL server is not found on the Network though. If the  
machine is there, but the server is down it times out immediately, so  
I went for pinging the server first using shell and if that was  
successful try to connect to the DB.

Hope that is any help,

Malte
_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: MySQL timeout

by Terry Judd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16/7/08 11:56 PM, "Malte Brill" <revolution@...> wrote:

> Hi Terry,
>
> I experienced the same. The problem was only the case, if the machine
> running the mySQL server is not found on the Network though. If the
> machine is there, but the server is down it times out immediately, so
> I went for pinging the server first using shell and if that was
> successful try to connect to the DB.
>
> Hope that is any help,

Very helpful - thanks Malte.

Terry...

>
> Malte
> _______________________________________________
> use-revolution mailing list
> use-revolution@...
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
LightInTheBox - Buy quality products at wholesale price