lingo-l Swapping images problem

2004-06-08 Thread Hermann Brandi
Hello again!

I'm trying to understand why my swapping image catalog doesn't work. I'm
making a photo catalog with 2600 images. I tried to import them to an
external cast and I couldn't because it was to large and it wouldn't fit
inside the CD. I tried to import one linked image an then use a script to
change the cast member as I would on a regular swapping image. All this is
done via Movie Script. My problem is that when the image swaps returns to
the original one almost immediately. Why is happening this? I'm using this
script as part of the larger one:

if dosIsFileExist(productImage) then
  member(3).filename = productImage
else
  member(3).filename = noImage
end if

I hope you can help me to clarify this because this is the first time that
I'm trying to change a linked file.

Best regards,

Hermann Brandi



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Swapping images problem

2004-06-08 Thread Troy Rollins
On Jun 8, 2004, at 11:51 PM, Hermann Brandi wrote:
My problem is that when the image swaps returns to
the original one almost immediately. Why is happening this? I'm using 
this
script as part of the larger one:

if dosIsFileExist(productImage) then
  member(3).filename = productImage
else
  member(3).filename = noImage
end if
I'm not sure that this tells us enough. Is there a frame script 
involved somewhere? What is calling this handler? You said this was 
part of a much larger script... have you tried setting a breakpoint to 
determine if this script is getting called without your being aware of 
it?

*Something* is almost certainly resetting your values. From what you've 
offered, it *sounds* like it is due to an exitframe handler or the 
like.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


RE: lingo-l Swapping images problem

2004-06-08 Thread Hermann Brandi
Thank you troy. I found the mistake. As a friend use to say it was between
the chair and the keyboard. When I paste the script I noticed the problem.
It was the else commented at the end. Anyway I send you the script. Thanks
for your help and illumination. ;o)

Hermann

on actualizaArticulos me
  global gTablaApparel, gTablaFootwear, gTablaHardware
  global gSegmentoElegido, gDivisionElegida, gColeccionElegida,
gGeneroElegido
  global gModelosEnLaColeccionElegida, gContadorDeLineas, gContadorDeModelos
  global gNumeroDeArticulos, gModelosEnLaColeccionElegida, gModeloActual
  global gImagenArticuloAcutal, gSpriteImagenArticulo,
gNumeroDeArticuloActual
  global gCodigoDelArticuloActual
  global gRutaDeLasImagenes

  case gDivisionElegida of
Apparel:
  mGo(gTablaApparel, gNumeroDeArticuloActual)
  put mGetField(gTablaApparel, Codigo) into member cajaCodigo

Footwear:
  mGo(gTablaFootwear, gNumeroDeArticuloActual)
  put mGetField(gTablaFootwear, Codigo) into member cajaCodigo

Hardware:
  mGo(gTablaHardware, gNumeroDeArticuloActual)
  put mGetField(gTablaHardware, Codigo) into member cajaCodigo
  end case

  codigoImagen = member(cajaCodigo).text
  a = member(cajaCodigo).char.count
  if a=6 then
imagenDelArticulo = gRutaDeLasImagenes  codigoImagen  .jpg
  else --Si el valor es 5
imagenDelArticulo = gRutaDeLasImagenes  0  codigoImagen  .jpg
  end if

  if dosIsFileExist(imagenDelArticulo) then
--sprite(2).member = member.filename(imagenDelArticulo)
member(imagen).fileName = imagenDelArticulo
--else
imagenNoDisponible = gRutaDeLasImagenes  imagenNoDisponible.jpg
--sprite(2).member = member.filename(imagenNoDisponible)
member(imagen).fileName = imagenNoDisponible
  end if
end



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Troy Rollins
Sent: Tuesday, June 08, 2004 7:43 PM
To: [EMAIL PROTECTED]
Subject: Re: lingo-l Swapping images problem



On Jun 8, 2004, at 11:51 PM, Hermann Brandi wrote:

 My problem is that when the image swaps returns to
 the original one almost immediately. Why is happening this? I'm using
 this
 script as part of the larger one:

 if dosIsFileExist(productImage) then
   member(3).filename = productImage
 else
   member(3).filename = noImage
 end if

I'm not sure that this tells us enough. Is there a frame script
involved somewhere? What is calling this handler? You said this was
part of a much larger script... have you tried setting a breakpoint to
determine if this script is getting called without your being aware of
it?

*Something* is almost certainly resetting your values. From what you've
offered, it *sounds* like it is due to an exitframe handler or the
like.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
for learning and helping with programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Swapping images problem

2004-06-08 Thread Luiz Gustavo Castelan PĆ³voas
Try making a cast for every 100 images
use a script to import them into several diferent casts.

Luiz

HB Hello again!

HB I'm trying to understand why my swapping image catalog doesn't work. I'm
HB making a photo catalog with 2600 images. I tried to import them to an
HB external cast and I couldn't because it was to large and it wouldn't fit
HB inside the CD. I tried to import one linked image an then use a script to
HB change the cast member as I would on a regular swapping image. All this is
HB done via Movie Script. My problem is that when the image swaps returns to
HB the original one almost immediately. Why is happening this? I'm using this
HB script as part of the larger one:

HB if dosIsFileExist(productImage) then
HB   member(3).filename = productImage
HB else
HB   member(3).filename = noImage
HB end if

HB I hope you can help me to clarify this because this is the first time that
HB I'm trying to change a linked file.

HB Best regards,

HB Hermann Brandi



HB [To remove yourself from this list, or to change to digest
HB mode, go to http://www.penworks.com/lingo-l.cgi  To post messages
HB to the list, email [EMAIL PROTECTED]  (Problems, email
HB [EMAIL PROTECTED]). Lingo-L is for learning and helping
HB with programming Lingo.  Thanks!]



-- 
Best regards,
 Luizmailto:[EMAIL PROTECTED]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]