RE: lingo-l Whiteboard, how do I get a brush to only appear once on mouseDown?

2001-08-13 Thread Chris Angle

I may have already asked this question, sorry if I have.

How do I get the brush tool to only appear once on mouseDown on the canvas
without the image dragging across the screen.  I have used all the default
behaviours to build my whiteboard, can anyone help? 

Cheers
Chris Angle
Agenda Multimedia

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l MIAW.forget() error: object expected?

2001-08-13 Thread Martha Arifin

Hi list,
I've tried to work out the problem i have when forgetting a MIAW. It gives 
me the dialog box error of 'Object Expected' whenever i tried to 'forget' 
the MIAW. If i take out the .forget() line and leave it with only .close(), 
it works fine.  Here's the scenario:

i have a button on stage that opens up a MIAW: ( i also have another 3 
buttons opening different MIAWs )
-
global gAirMiaw

on mouseUp me
  gAirMiaw = window (Air Review 1)
  gAirMiaw.filename = the moviePathdirsthe 
itemDelimiterairreview1.dir
  gAirMiaw.windowType = 2
  set aRect1 = rect (400,80,600,480)
  set gAirMiaw.rect = aRect1
  gAirMiaw.visible = true
end

-
Then on the MIAW itself i have attached the following script on the 'CLOSE' 
button:
-
global gOpenMiaw, gAirMiaw, gCloseMiaw

on mouseUp me
  tell the Stage
gOpenMiaw = gAirMiaw
gCloseMiaw = 1
  end tell
end
-
Again, on the main movie i put a framescript like this:
-
global gOpenMiaw, gCloseMiaw, gAirMiaw

on exitFrame

  if gCloseMiaw then
gOpenMiaw.close()
gOpenMiaw.forget()
  end if
  go the frame

end
-

I've searched the archives and posted a kinda same problems with the 
stopping sound with miaw long time ago but couldnt find the solutions to 
this problem. This is my second director project, so... any input is greatly 
appreciated =)

Martha


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l MIAW.forget() error: object expected?

2001-08-13 Thread Martha Arifin

Hi list,
I've tried to work out the problem i have when forgetting a MIAW. It gives 
me the dialog box error of 'Object Expected' whenever i tried to 'forget' 
the MIAW. If i take out the .forget() line and leave it with only .close(), 
it works fine.  Here's the scenario:

i have a button on stage that opens up a MIAW: ( i also have another 3 
buttons opening different MIAWs )
-
global gAirMiaw

on mouseUp me
  gAirMiaw = window (Air Review 1)
  gAirMiaw.filename = the moviePathdirsthe 
itemDelimiterairreview1.dir
  gAirMiaw.windowType = 2
  set aRect1 = rect (400,80,600,480)
  set gAirMiaw.rect = aRect1
  gAirMiaw.visible = true
end

-
Then on the MIAW itself i have attached the following script on the 'CLOSE' 
button:
-
global gOpenMiaw, gAirMiaw, gCloseMiaw

on mouseUp me
  tell the Stage
gOpenMiaw = gAirMiaw
gCloseMiaw = 1
  end tell
end
-
Again, on the main movie i put a framescript like this:
-
global gOpenMiaw, gCloseMiaw, gAirMiaw

on exitFrame

  if gCloseMiaw then
gOpenMiaw.close()
gOpenMiaw.forget()
  end if
  go the frame

end
-

I've searched the archives and posted a kinda same problems with the 
stopping sound with miaw long time ago but couldnt find the solutions to 
this problem. This is my second director project, so... any input is greatly 
appreciated =)

Martha


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l Quicktime language

2001-08-13 Thread Natalia Tjelum

Hi List

Is it possible to start the Quicktime Installer in a specific language?
I have downloaded the full Installer from their website in English, but if I
run the installer on a Machine with a Danish operating system, it will show
the license agreement in Dutch, probably because it is trying to show Danish
text, can't find it, and then finds Dutch to be the nearest available
option.

Maybe there is a parameter I can use, i.e. open(quicktimeInstaller.exe,
#English)??

-Natalia





[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Al Hospers

 Getter and Setter
  methods are evil or something to that effect. Essentially
 it says that if
  you have a method that simply returns any private data
 (such as properties
  in a lingo object) that this is essentially just a cheat
 for making private
  data public. Wow! Pretty strong statement. But it made me
 think. It goes on
  to say that when one object requests another object's
 private data so that
  it can perform a task with that data, there is a
 fundamental flaw with your
  OOP structure (I'm paraphrasing here). Instead you should
 modify either the
  object structure or move the task into the object that has
 the required
  property.

snip

 That was exactly the point which got me thinking too. Some of
 the other
 stuff in that article (particularly to do with GUIs) is less
 relevant in a
 Director context because almost everything is part of the GUI
 anyway, but
 this is the suggestion that made the most impact on me:

 Never ask an object for the information you need to do
 something; rather,
 ask the object that has the information to do the work for you.

SNIP

OK, so I've read Meyer's Object Oriented Software Construction. I
write a lot of OOP code for all of my projects. tho I admit not all
because like others I need to get things done sometimes. I would
definitly say I am into the OOP concepts. still, this absolutely no
Get/Set data statement is one of those purist things that is so
difficult to implement in real life, that I have a difficult time
adhering to it.

for example, imagine that you have an object to manage some MPG or QT
movies. you have an  object that monitors the state of the movie,
contains all the play/pause/stop type of functionality and keeps track
of the current position. you have a behavior that moves a slider
around that needs the current position data. would you

1) have the object publish the data publicly to a global variable?

this will work fine, tho I just try to keep globals down.

2) have an accessor method in the object so the slider can get the
data as needed?

this one goes against all the OOP principles that are expoused by the
big guys/gals, but it works well.

3) duplicate the movie location monitoring functionality in the slider
behavior?

this is OK but I hate duplication, and keeping this functionality in
the main object means that I only have to update it in one place.

4) include the slider functionality in the object?

IMHO this makes the object way too big  unwieldy.

5) something else?

is there something that I am missing, is there some other ground here?

hmmm...

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT





[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 MIAW.forget() error: object expected?

2001-08-13 Thread Christian Wach

Hi Martha,

 I've tried to work out the problem i have when forgetting a MIAW. It gives
 me the dialog box error of 'Object Expected' whenever i tried to 'forget'
 the MIAW. If i take out the .forget() line and leave it with only .close(),
 it works fine.

snip

add

 on exitFrame
   if gCloseMiaw then
 gOpenMiaw.close()
 gOpenMiaw.forget()

  gCloseMiaw = 0

   end if
   go the frame
 end

after the forget command, otherwise you'll be forever trying to
close and forget the window.

Christian


Christian Wach
m: +44 (0) 7980 549 556
[EMAIL PROTECTED]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread pranavn



snip

1) have the object publish the data publicly to a global variable?

this will work fine, tho I just try to keep globals down.
snip

This one works just fine if speed is the issue here. Kerry had mentioned a
project he tackled a while back which illustrates this point very nicely.
He had a sprite bouncing around on stage amongst other sprites and he
simply used a global to remember the position of the main sprite. A pure
OOP method meant using a sendAllSprites (there were 40 sprites if I
remember correctly) or a call on the list of sprite behaviors. Globals made
things easier for code management and also took fewer processor cycles. I
think I still have that thread saved on my machine at home.


snip
2) have an accessor method in the object so the slider can get the
data as needed?

this one goes against all the OOP principles that are expoused by the
big guys/gals, but it works well.
snip

I use this method when writing generic behavior libraries. In fact, even if
the method simply returns a single property without performing any other
steps on it, I prefer this method. The reason being this:
When I write the script, I may want it to perform only one activity -
return a particular property as is. But later if I need to do some
pre-processing on the property before returning it, its more difficult to
go and change the accessing syntax in the rest of my scripts. For example:

foo = gObject.someProperty
This will return only the property as is.

foo = gObject.SomeHandler()

- In foo 
on SomeHandler()
 -- Process property
 -- Return new value instead of original property
end SomeHandler()

This one saves me a few steps that I might have to put in my other scripts
that use the data returned by the foo object. Execution speed does suffer,
though. Small price to pay for reusability.

snip
3) duplicate the movie location monitoring functionality in the slider
behavior?

this is OK but I hate duplication, and keeping this functionality in
the main object means that I only have to update it in one place.

4) include the slider functionality in the object?

IMHO this makes the object way too big  unwieldy.
snip


I agree with Al on these two counts


My general opinion is that globals are good when speed is of importance.
However, too many globals are a strict no-no. How much is too much? That
depends on the size of the project and the comfort of the programmers.
Objects are good while building reusable code libraries.



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Pete Carss

I've come from a smalltalk background (not that it is useful for 
anything anymore) which has to be one of the most anal OOP environments 
there is...

in Al's example:
you have a behavior that moves a slider around that needs the current 
position data

...Maybe your approach is still too procedural. Can the slider not 
just tell the object its new position once it gets moved and have the 
object calculate the new movie position from this. These kind of 
discussions are hard with hypothetical examples. Its also very difficult 
for us lingo OOP people because we only have half an OOP environment. If 
you want to make a subclass of a text box so that you don't have to 
re-invent the textbox wheel, but you want to add a few funky methods of 
your own...Where do you go?

Pete

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




SV: SV: SV: lingo-l collisions ?

2001-08-13 Thread Magnus Ewald

hi 

I have a car-model which is moved around using buttons. I also have a
regular box on stage which the car can collide with. The problem is that the
collisions only occures in an area at the centre of the box (In the field of
wiev of camera(1)I think.? )
Could i have been forgetting any setting that creates this strange collision
area of the box ?

thanx /magnus

-Ursprungligt meddelande-
Från: Agustín María Rodríguez [mailto:[EMAIL PROTECTED]]
Skickat: den 10 augusti 2001 18:15
Till: [EMAIL PROTECTED]
Ämne: Re: SV: SV: lingo-l collisions ?


Just tell me what kind of movement you want for the box.

Magnus Ewald wrote:

 thanx.

 Now i have the problem of moving box to a new position if a collision
 occurs, any suggestions?

 -Ursprungligt meddelande-
 Från: Agustín María Rodríguez [mailto:[EMAIL PROTECTED]]
 Skickat: den 9 augusti 2001 19:08
 Till: [EMAIL PROTECTED]
 Ämne: Re: SV: lingo-l collisions ?

 I´ve modified this example from balls to boxes and some other things. I
hope
 it
 solves your problem.

 Behavior attached to some sprite:

 on mouseUp me
   w=sprite(me.spriteNum).member
   w.resetWorld()
   box=w.newModelResource(box, #box)
   box.radius=1
   box1=w.newModel(box1, box)
   box2=w.newModel(box2, box)

   box1.addModifier(#collision)
   box1.collision.enabled=true

   box2.addModifier(#collision)
   box2.collision.enabled=true

   box1.collision.resolve=true
   box2.collision.resolve=true

   box1.collision.setCollisionCallBack(#col, (callscript))
   box2.collision.setCollisionCallBack(#col, (callscript))
 end

 Movie script:

 on CallSpcript me
   on col me, colData
   beep
   datlist=[coldata.modela, coldata.modelb, coldata.pointOfContact,
 coldata.collisionNormal]
   sendAllSprites (#collisionNotification, datlist)
 end

 Another movie script puts the info into the stage:

 on collisionNotification me, collisionData
   sprite(me.spritenum).member.text = string(collisionData)
 end

 on beginsprite me
   sprite(me.spritenum).member.text = 
 end

 Agustín

 Magnus Ewald wrote:

  Hi List
 
  Im a 8.5 newbie and i am trying to get the collision detection working
 with
  a setCollisionCallback(), but i cant get it to work. I have 2 models,
  box and box2, how do I easyest ,to say, show an alert message when
 these
  collide ?
 
  thanx /magnus
 
  [To remove yourself from this list, or to change to digest mode, go to
  http://www.penworks.com/LUJ/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/LUJ/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/LUJ/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/LUJ/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/LUJ/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!]




lingo-l Thanks! and another :(

2001-08-13 Thread wobbly

Thanks list for the help for jumping to a particular marker in a movie.

I am beginning to suspect the inbuilt behaviours are not the help they first
seem:(

I have a set of bitmap members representing a tango dancing couple. all goes
well with the direction changes e.g. keycode for left arrow  they dance away
to the left. I have a rhomboid dance floor thinking I could use the
constrain to sprite behaviour to stop them dancing up the walls, I have
constrained the sprite with the bitmap to the rhomboid. Now if use the
direction keys the tangoing sprite scales up with each keypress. What have I
misunderstood?
I am using Director 8.5 with movies converted from version 8

 I do want to scale the sprite up and down as they dance in and out of the
screen.  but I'll use quads to do this (unless someone knows a better
way...)

Best doodahs

from Andy on the sunny  coast of East Sussex.

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 MIAW.forget() error: object expected?

2001-08-13 Thread Martha Arifin

Thanks Dave,
i used gOpenMiaw  because i have 3 other MIAWs open from other buttons. This 
is to keep reference to which MIAW is to close when the 'close' button is 
pressed. I've tried the code you gave me, but still doesnt work.  I use 'put 
' command to check which MIAW window it's refering to, and it's the right 
one. But why is it not able to find the same miaw to 'forget' ?

  global gOpenMiaw, gCloseMiaw, gAirMiaw

  on exitFrame

if gCloseMiaw then
 gOpenMiaw = gAirMiaw (for other miaws, i use gOpenMiaw = gSecondMiaw 
or gOpenMiaw = gThirdMiaw)
  gOpenMiaw .close()
  put gOpenMiaw  -- this gave me (window Air Review 1) in the 
message window
  gOpenMiaw .forget()
end if
go the frame

  end


Martha

It looks like you are very close to the right sort of code, but I wonder if
the reference gAirMIAW is still pointing to the window as you are then 
using
gOpenMIAW.close() and gOpenMIAW.forget()   And the object error is seeing
this.  Why have you used gOpenMIAW instead of the original gAirMIAW.  Try
the following code, sorry haven't tested it but I had the same problem and
this is the way I resolved it.

global gAirMiaw
on mouseUp me
gAirMiaw = window (Air Review 1)
gAirMiaw.filename = the moviePathdirsthe
itemDelimiterairreview1.dir
gAirMiaw.windowType = 2
set aRect1 = rect (400,80,600,480)
set gAirMiaw.rect = aRect1
gAirMiaw.visible = true
end

on mouseUp me
tell the Stage
  -- remove the following line and just keep gAirMiaw as the reference 
to
your MIAW
  --gOpenMiaw = gAirMiaw
  gCloseMiaw = 1
end tell
end

  global gOpenMiaw, gCloseMiaw, gAirMiaw

  on exitFrame

if gCloseMiaw then
 -- change the MIAW ref to gAirMiaw
  gAirMiaw .close()
  gAirMiaw .forget()
end if
go the frame

  end


Dave MacDougall

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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: SV: SV: SV: lingo-l collisions ?

2001-08-13 Thread Agustín María Rodríguez

Hhmmm... Have you set the collision mode?
member(whichCastmember).model(whichModel).collision.mode
This can be:
member(3d).model(yourModel).collision.mode = #mesh (#box or #sphere).

But this does not seem to be your problem. Other option is to use the Havok
Xtra.



Magnus Ewald wrote:

 hi

 I have a car-model which is moved around using buttons. I also have a
 regular box on stage which the car can collide with. The problem is that the
 collisions only occures in an area at the centre of the box (In the field of
 wiev of camera(1)I think.? )
 Could i have been forgetting any setting that creates this strange collision
 area of the box ?

 thanx /magnus

 -Ursprungligt meddelande-
 Från: Agustín María Rodríguez [mailto:[EMAIL PROTECTED]]
 Skickat: den 10 augusti 2001 18:15
 Till: [EMAIL PROTECTED]
 Ämne: Re: SV: SV: lingo-l collisions ?

 Just tell me what kind of movement you want for the box.

 Magnus Ewald wrote:

  thanx.
 
  Now i have the problem of moving box to a new position if a collision
  occurs, any suggestions?
 
  -Ursprungligt meddelande-
  Från: Agustín María Rodríguez [mailto:[EMAIL PROTECTED]]
  Skickat: den 9 augusti 2001 19:08
  Till: [EMAIL PROTECTED]
  Ämne: Re: SV: lingo-l collisions ?
 
  I´ve modified this example from balls to boxes and some other things. I
 hope
  it
  solves your problem.
 
  Behavior attached to some sprite:
 
  on mouseUp me
w=sprite(me.spriteNum).member
w.resetWorld()
box=w.newModelResource(box, #box)
box.radius=1
box1=w.newModel(box1, box)
box2=w.newModel(box2, box)
 
box1.addModifier(#collision)
box1.collision.enabled=true
 
box2.addModifier(#collision)
box2.collision.enabled=true
 
box1.collision.resolve=true
box2.collision.resolve=true
 
box1.collision.setCollisionCallBack(#col, (callscript))
box2.collision.setCollisionCallBack(#col, (callscript))
  end
 
  Movie script:
 
  on CallSpcript me
on col me, colData
beep
datlist=[coldata.modela, coldata.modelb, coldata.pointOfContact,
  coldata.collisionNormal]
sendAllSprites (#collisionNotification, datlist)
  end
 
  Another movie script puts the info into the stage:
 
  on collisionNotification me, collisionData
sprite(me.spritenum).member.text = string(collisionData)
  end
 
  on beginsprite me
sprite(me.spritenum).member.text = 
  end
 
  Agustín
 
  Magnus Ewald wrote:
 
   Hi List
  
   Im a 8.5 newbie and i am trying to get the collision detection working
  with
   a setCollisionCallback(), but i cant get it to work. I have 2 models,
   box and box2, how do I easyest ,to say, show an alert message when
  these
   collide ?
  
   thanx /magnus
  
   [To remove yourself from this list, or to change to digest mode, go to
   http://www.penworks.com/LUJ/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/LUJ/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/LUJ/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/LUJ/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/LUJ/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/LUJ/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 OOP and ancestor access

2001-08-13 Thread Al Hospers

 in Al's example:
 you have a behavior that moves a slider around that needs
 the current
 position data

   ...Maybe your approach is still too procedural. Can the
 slider not
 just tell the object its new position once it gets moved and have
the
 object calculate the new movie position from this.

ah, DOH of course. you are absolutely correct. I just wasn't seeing
it...

put all of the control of the movie in the object, as it currently is.
then the behavior on the slider just monitors where it is on its
slide. when you move the slider it sends the position on its slide to
the object as a % (or something) and the movie object figures out
where that is in the movie  does the correect thing to the movie.

now how to address the slides moving as the movie plays. one method
may be to register the appropriate slider method  sprite with the
object. then the object would send the current movie position to the
slider at regular intervals. the slider would perform the calculations
to display itself appropriately. that would require no additional
globals.

interesting thread. I haven't really thought about some of these
baseline issues in a while.

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Pete Carss


 interesting thread. I haven't really thought about some of these
 baseline issues in a while.


I think OOP is only just coming of age - its only now that us 
normal programmers start hashing out the issues. This is a 
particularly interesting thread because Director isn't locked into any 
real OOP metaphors yet.

Pete

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 CurrentScript

2001-08-13 Thread Yariv Alter Fin

Message did not seem to arrive, 2nd attempt...

Dear All,

This is a long desired feature - currently only available using server-side
Lingo and the Multiuser Server.  Best approach (sloppy but it works) is to
have each handler post their symbol (or other ID) to a global variable when
they start running:

on yourHandler ...
   gCurrentHandler = #yourHandler
   -- actual code goes here
end yourHandler

Indeed a very desired feature, and so I have decided to let lingo 
generate those scripting additions rather then typing it manually 
into each handler... the addHandler will add a line to each script 
regsitrating its names, all sent variable names and their values in a 
global string to use at the alerthook:



on addHandlerRegistration
   temp=the itemdelimiter
   the itemdelimiter=,

   repeat with c=1 to the number of castlibs
 repeat with m=1 to the number of members of castlib c
   mem=member(m,c)

   if mem.type=#script then

 t=mem.scriptText
 memnam=mem.name
 if memnam= then memnam = string(mem)

 repeat with l = 1 to t.line.count
   th=t.line[l]
  
   if th starts on  then
 if offset((,th)0 then put space into char 
(offset((,th)) of th
 if offset(),th)0 then put space into char 
(offset(),th)) of th
 nam=th.word[2]
 if nam=addHandlerRegistration or 
nam=removeHandlerRegistration or nam=regisrateHandler or 
nam=getPropertyDescriptionList or memnam=show error or 
nam=alertHook then next repeat
 rest=th.word[3..th.word.count]
 if rest starts -- then rest = 
 if offset(--,rest)0 then 
rest=rest.char[1..(offset(--,rest)-1)]
 varstr=
 repeat with v=1 to rest.item.count
   if rest= then exit repeat
   var=rest.item[v]
   repeat while var.char[1]= 
 delete char 1 of var
   end repeat
   varstr=varstrquotevar = quotestring(var)return
   if vrest.item.count then varstr=varstr
 end repeat

 isvars=
 if varstr then isvars=,varstr
 
zin=regisrateHandler(quotenamquote,quotememnamquoteisvars)

 if t.line[l+1] starts regisrateHandler then
   put zin into line[l+1] of t
 else
   if t.line[l+1]zin then put returnzin after line l of t   
 end if

   end if
 end repeat

 mem.scriptText=t
   end if
 end repeat -- members
   end repeat -- castlibs

   the itemdelimiter=temp
end

--- to clean the program after debugging

on removeHandlerRegistration
   repeat with c=1 to the number of castlibs
 repeat with m=1 to the number of members of castlib c
   mem=member(m,c)
   if mem.type=#script then  
 t=mem.scriptText
 if not (t contains regisrateHandler) then next repeat
 repeat with l = 1 to (t.line.count-1)   
   th=t.line[l+1]
   repeat while th.char[1]=space
 delete char 1 of th
   end repeat
   ch=th.char[1..16]
   if ch=regisrateHandler then
 delete line (l+1) of t
   end if
 end repeat
 mem.scriptText=t
   end if
 end repeat
   end repeat
end

 this is the registering handler itself, being called from 
each handler at runtime

on regisrateHandler nam, mem, vars
   global continueRegistrating
   if not continueRegistrating then exit
   global ErrorString
   ErrorString=handler nam of member mem:returnreturnVars
end



on alertHook me, err, msg
   global continueRegistrating
   continueRegistrating=0 -- making sure registration stops after the error
   errorReport=errreturnmsgreturnErrorString
   -- here you can do whatever you wish with the resulting error string
end

---

it does work wonderfully, even if slowing the application quite a 
bit. another option is to add a first line to scripts that should not 
be marked for registration, either because they happen to often and 
therefore will slow the whole too much, or simply if they are not 
likely to produce an error.

I wonder if macromedia is working on lingo tools for shockwave 
debugging at all. these seem quite nesseccary considering the amount 
of time it takes to trace a simple bug in such a 'minimal feedback' 
environment.

Best Regards to all,

Enjoy,

Yariv Alter Fin


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l MIAW.forget() error: object expected? - solved

2001-08-13 Thread Martha Arifin

Of course! Thanks Christian.

add

on exitFrame
   if gCloseMiaw then
 gOpenMiaw.close()
 gOpenMiaw.forget()

  gCloseMiaw = 0

   end if
   go the frame
end

after the forget command, otherwise you'll be forever trying to
close and forget the window.

Christian

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l MIAW.forget() error: object expected? - solved

2001-08-13 Thread Martha Arifin

Of course! Thanks Christian.

Martha

add

        on exitFrame
   if gCloseMiaw then
 gOpenMiaw.close()
 gOpenMiaw.forget()

  gCloseMiaw = 0

           end if
   go the frame
end

after the forget command, otherwise you'll be forever trying to
close and forget the window.

Christian


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l lingo and coldfusion

2001-08-13 Thread Fang Ding

I am working on a lingo game to create a highscore table for the game using
cold fusion. Where Can I find an example?
 Fran


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Christian Wach

Al Hospers wrote:

 now how to address the slides moving as the movie plays. one method
 may be to register the appropriate slider method  sprite with the
 object. then the object would send the current movie position to the
 slider at regular intervals. the slider would perform the calculations
 to display itself appropriately. that would require no additional
 globals.

I may be missing something, but (as the subject line implies) how
about making the monitoring object an ancestor of the slider object?

If the slider 'inherits' all the methods and properties of the monitoring
object, then surely there's no need for the global... and no need to do
the registration.

Christian


Christian Wach
[EMAIL PROTECTED]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 XML object to file again

2001-08-13 Thread Watson, Christopher

My first questions to you would be:

1) What are you using to the perform the parse?
2) How are manipulating the data in the document?

Christopher Watson
Sr. Software Engineer
Lightspan, Inc.


-Original Message-
From: Aulis [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 12, 2001 6:08 AM
To: [EMAIL PROTECTED]
Subject: lingo-l XML object to file again


Hi all. I'm alright with parsing the XML file. I can parse it and get
the object finally.
After that I change some attributes and values, and now I need to
transform my changed object to XML file again. How to do this? Anyona
has light and pretty idea?


Thank you all,

Sergey.

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Al Hospers

 I may be missing something, but (as the subject line implies) how
 about making the monitoring object an ancestor of the slider object?

 If the slider 'inherits' all the methods and properties of
 the monitoring
 object, then surely there's no need for the global... and no
 need to do
 the registration.

I was thinking of what you refer to as the monitoring object as
really the object that contains all of the code to
play/Paue/Stop/revind...  monitor the status of the movies. that's a
lot of stuff to have as a part of the slider code, yes? saying this I
show my ignorance of really using ancestor functionality. I need to go
back  read the section on that  prehaps Irv's book.

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Colin Kettenacker

 Brennan Young wrote:

 Glad you brought this up again, Colin.

I'm sure others are not so happy;)


  1) It's more difficult to program (but so was switching to OOP
 for me a few
  years back and now I never program without it).

 Perhaps, yes. I've found it easier than I expected to take this
 approach to
 the centre of my practice. There are certainly some hairy moments, but the
 discipline is delicious when you really have a completely opaque
 implementation working.

I concur completely, there was always something that nagged me the wrong way
when I used getter methods in the past and now I feel that by forcing
myself to not use them has made my objects better, stronger, faster (ok, not
necessarily faster but I could not resist the 6 million dollar man
reference)

Something I forgot to mention in my original post -- I do anticipate that
programming with this technique will eventually get easier for me.


  2) It seems to increase the size (lines of codes) of my objects.

 I found this too, but then I also found that I could break down
 the objects
 further than I had expected, and in ways I hadn't considered at first.
 Because they were well-encapsulated to start with, I could do this without
 fear of 'breaking' something else.


I agree. I knew that somehow, with time and effort I could break my larger
object back down to the smaller objects that I use to enjoy so much. But
deadlines have prevented me from doing this. Fortunately, I am currently
working on an ongoing project, that with each client, I get to refine as I
go along. I will get the chance to see if I can further refine my objects
while still attempting to avoid getter methods. I'm actually enjoying the
challenge.



 For me, it's been useful to think about how my active objects can provide
 'services' to other objects, rather than acting as mere data wrappers or
 gatekeepers. The encapsulation should never be in question. If I start
 asking 'should the object let others see this propertyby using a getter
method?' then I know I
 didn't encapsulate properly.

Bingo! This is exactly the same the same litmus test I use as well.

 and
 it all comes
 down to knowing *why* the 'foreign' object needs that private data. If you
 know what it's going to be used for, there's no longer any need
 for a get function.

Canasta (sp??? Just didn't want to say bingo again)


 It would be interesting to hear what else you discover.

If any further enlightenments come my way I will let you know.

 and what
 others think.

It appears that Al has started an interesting thread on the topic.

ck



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l CMYK exports via Xtras?

2001-08-13 Thread scott


 Hi. I'm working on a project that results in both print and
 web media components. For the print side, it would be awesome if
 I could take an rgb/jpg file and convert it to a cmyk/jpg. Does
 anyone know of any xtras with this functionality? Or should I
 focus on ye olde image batch process via photosomething? :)

 Thanks,
 Scott Southworth 

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l pacth

2001-08-13 Thread Daniel Campos

I created a projector that i comercialise

Did a little program whose which I commercialized, there were  some bugs in
this program.
I alread fix these bugs, therefore i don't want to send a NEW program for
all of my clients,
my question is the following :

how do I do to create a pacth (a little program) that when it runs it
correct the bugs ?




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 CMYK exports via Xtras?

2001-08-13 Thread Al Hospers

  Hi. I'm working on a project that results in both print and
  web media components. For the print side, it would be awesome if
  I could take an rgb/jpg file and convert it to a cmyk/jpg. Does
  anyone know of any xtras with this functionality? Or should I
  focus on ye olde image batch process via photosomething? :)

well... searching the Mile High Table at UpdateStage.com here

 http://www.updatestage.com/products_table.html

yields:

DirectXport Xtra: BMP, BMP24, DCX, DIB, EPS, EPS2, EPSF, EPSI, EPT,
GIF, GIF87, HTML, JPEG, JPEG24, MIFF, PCD, PCDS, PDF, PICT, PS, PSD
and TIFF.

RavWare: JPEG, PNG, TIFF, CUR, ICO, BMP/DIB, RLE , TGA and others.

both export files in a lot of formats. explore them  see if they can
do CMYK.

hth

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Al Hospers

 how do I do to create a pacth (a little program) that when it runs
it
 correct the bugs ?

well, there are some products out there that do this kind of thing, I
think RTPatch is one. dunno if it works on Director projectors tho. if
you were smart enough at the beginning to make the program use a stub
projector  separate movies  external castlibs you could just update
the pieces you need to for customers. if not then it's RTPatch or the
whole enchilata. grin

hth

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Al Hospers

Daniel,

eggOnFace

sorry about the X-Post message I sent. I was futzing with my rules 
it seems my emailer put stuff into the wrong in-basket. I thought you
posted the original message I replied to onto Direct-L. apparently it
was here on Lingo-L.

please accept my apologies.

/eggOnFace

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l powerpoint files

2001-08-13 Thread Marta Segadães

Hi there!
I'm now starting to use Director, but I'm having some problems to understand
how it works. So, if you know any beginner's tutorial I'll be very happy
with it.
For now, I'ld like to introduce a powerpoint file into a director file.
Is there anyone who can help me?
Thanks for your time.

M. Segadaes



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Daniel Campos

no problem, 

10x for the tip anyway

Daniel

- Original Message - 
From: Al Hospers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 5:00 PM
Subject: RE: lingo-l pacth


 Daniel,
 
 eggOnFace
 
 sorry about the X-Post message I sent. I was futzing with my rules 
 it seems my emailer put stuff into the wrong in-basket. I thought you
 posted the original message I replied to onto Direct-L. apparently it
 was here on Lingo-L.
 
 please accept my apologies.
 
 /eggOnFace
 
 Al Hospers
 CamberSoft, Inc.
 alatcambersoftdotcom
 http://www.cambersoft.com
 
 Shockwave and Director development, Lingo programming, CGI scripting.
 
 A famous linguist once said:
 There is no language wherein a double
 positive can form a negative.
 
 YEAH, RIGHT
 
 
 
 
 [To remove yourself from this list, or to change to digest mode, go to
 http://www.penworks.com/LUJ/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/LUJ/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 powerpoint files

2001-08-13 Thread Eva Crawford

Marta:

As I understand it director will only accept powerpoint 4 documents.  Just
go to xtras/import powerpoint file.  The macromedia manuals explain the
specifics of importing PP files if you need further clarification.

Eva Crawford
(Head of Interactive media)
Opfer Communications Inc.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Al Hospers

Daniel,

tho it is surely enticing to post the same question to a lot of lists,
it is generally better form to post one  wait to see if you get any
responses. at the very least put a X-Post in the subject.

I made some suggestions on Direct-L.

Al Hospers
CamberSoft, Inc.
alatCamberSoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Colin Kettenacker


 eggOnFace
 
 sorry about the X-Post message I sent. I was futzing with my rules 
 it seems my emailer put stuff into the wrong in-basket. I thought you
 posted the original message I replied to onto Direct-L. apparently it
 was here on Lingo-L.
 
 please accept my apologies.
 
 /eggOnFace
 
 Al Hospers

Sorry Al, but you do not get to close the eggOnFace tag for that one:)

ck (The HTML cop)



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Al Hospers

 I am from brasil, besides all the stuff i
 produce here, i consider myself a newbie in lingo.

 By the way,

 where do i get this file ?

if you are talking about RTPatch, it is a commercial product. you can
get it here:

 http://www.pocketsoft.com/

BTW- you should always post follow-up questions back to the list so
that others can benefit from the response  it gets into the archives.

hth,


-Original Message-
From: Daniel Campos [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: RE: lingo-l pacth


Hi ,




Daniel



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 pacth

2001-08-13 Thread Al Hospers

 Sorry Al, but you do not get to close the eggOnFace tag for that
one:)

oh please, oh please. I fessed up officer. I'll TRY not to do it
again. please let me off this time... g

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 powerpoint files

2001-08-13 Thread Mark A. Boyd

At 06:02 12/08/2001, Marta Segadães wrote:
For now, I'ld like to introduce a powerpoint file into a director file.
Is there anyone who can help me?
Thanks for your time.

In addition to the others' suggestions, you might want to take a look at 
several articles on the DOUG site:

PowerPoint Quick Links
http://www.director-online.com/quickLink.cfm?id=237



--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 OOP and ancestor access

2001-08-13 Thread Mark A. Boyd

At 11:56 13/08/2001, Colin Kettenacker wrote:

It appears that Al has started an interesting thread on the topic.

Indeed, and speaking as one who's OOP light bulb is not just popping on 
as I've seen mentioned in several places (it seems to be on a dimmer 
switch) , I always read these threads with much interest.

I've created several object scripts in my experimentation and even have a 
few out there on published CDs, but this most recent thread has given me 
more confidence in my structuring of the objects. I was starting the 
scripts with the getter/setter methods, but by the time the scripts were 
done, I didn't really have any use for the methods. I've always left them 
in just in case, though.

I agree. I knew that somehow, with time and effort I could break my larger
object back down to the smaller objects that I use to enjoy so much. But
deadlines have prevented me from doing this. Fortunately, I am currently
working on an ongoing project, that with each client, I get to refine as I
go along. I will get the chance to see if I can further refine my objects
while still attempting to avoid getter methods. I'm actually enjoying the
challenge.

In my case, all my projects could be considered 'on going' since they all 
use Director movies from a large library of modules we've created over the 
years. I find the biggest challenge here is updating such projects later. 
My version tracking leaves a lot to be desired. When I add a module with 
the new and improved or refined code, it sometimes doesn't fit well within 
the older project. And deadlines usually put a crimp on bringing older 
projects fully up to date in the code.

Client: We just want to add some of your new stuff and update some of our 
old stuff on the existing CD. That should only take a day or two, right?

I AM finding that OOP is making this much easier, and I expect it will get 
much smoother as I implement more of it.

Just my acknowledgement and a big thanks to all the OOPers out there who 
discuss these things on line. My OOP light is beginning to illuminate my 
world now.



--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l I SEARCHED THE archives...

2001-08-13 Thread the nightboy

Does anyone happen to know if, after using imaging lingo to create a new
bitmap, I can save it to an external file/cast?

also, is it possible to script a sprite to span 1000 frames? or does there
already have to exist a sprite with that span?

tia,

b


 Brian Douglas  (:ub)


Programming such sites as:

http://www.imaginarystudio.com
http://www.redflowerworld.com









[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l Re: Lingo-L Digest V1 #2108

2001-08-13 Thread Brennan Young

Pete Carss [EMAIL PROTECTED] wrote

 Its also very difficult 
 for us lingo OOP people because we only have half an OOP environment. If 
 you want to make a subclass of a text box so that you don't have to 
 re-invent the textbox wheel, but you want to add a few funky methods of 
 your own...Where do you go?

... or a subclass of a digital video movie that sends messages to a
dedicated slider regularly... OK, we can do something like that with a
behavior, which is fine as long as you are thinking of sprites all the time,
but I still miss the ability to create our own subtypes of cast members. 

You can (of course) set an ancestor to one of Director's own object types,
such as member, list or rect. Alas, cast members do not inherit the
properties and handlers of cast member scripts (stupid stupid stupid), so
using a member as an ancestor is not very useful. Even so, try this:

-- script xyz
property ancestor

on new me, str

  f = new(#field)
  f.text = str
  ancestor = f
  return me

end

on doit me
  put me.text
end


-- message window code follows:
a = new(script xyz, test)
a.doit()
-- test



BTW, One of the best ways to avoid 'get' functions is to use callbacks. An
object asks another object to call him when she's done with his task, then
goes into some kind of waiting state. In some cases, such as with timeout
objects, the callback itself is the service provided, but usually you'd want
a little more.

Check out these hypothetical examples:

Example 1;

ObjectA updates itself every frame with data it gets from ObjectB by calling
ObjectB's getData() function.


Example 2;

ObjectA registers itself for callbacks with ObjectB. Every frame, ObjectB
sends a message to the callback handler of ObjectA with some data as a parameter.


If ObjectA is the slider, and ObjectB is a wrapper behavior for a Quicktime
sprite, then we have an opaque implementation in Example 2. Example 1 would
work, but there's data being sneaked out of ObjectB, whose role is more that
of 'sloppy gatekeeper' which makes me wonder why ObjectA doesn't just poll
the Quicktime sprite directly.


Can anyone suggest a thorny example - from a real world project perhaps -
which absolutely could not be implemented without 'get' functions?


-- 
_

Brennan

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l puppetSound vs forget window

2001-08-13 Thread gregory david lewis

I recently was given the answers to my questions about adding volume
controls to my puppetSounds (thank you).

I am now facing a new problem. I have 6 buttons each one of which opens
a different MIAW and at the same time closes any other MIAW that may be
open. When I used the close window command to close the preceding the
active puppetSound is unaffected and will play through, however when I
create my projector my individual MIAW's do not run correctly. I solved
the MIAW problem by using the forget window command but this will stop
any puppetSound from playing?.
Is there some way around this?

Thanks again for you help in the past


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l XML object to file again Message 1.2

2001-08-13 Thread Aulis


Hello, thank you for reply. Here are the answers:

1) What are you using to the perform the parse?

  importFileinto member(2), xml.xml
  gParserObject = new(xtra xmlparser)
  gParserObject.parseString(member(2).text)

This way, so I use XMLParser extra.

2) How are manipulating the data in the document?

I want to order directly what a object point value is to be.

Something like this:

  gParserObject.child[1].child[1].attributeValue[1] = DESIRED TEXT
  sprite(1).member.text = gParserObject.child[1].child[1].attributeValue[1]

But this doesn't work unfortunately - I cannot manipulate gParserObject
elements. 

After changing the Object, I need to transform it to XML file onto hard
disk. 

What is the way to perform these tasks?

Sergey. 


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 I SEARCHED THE archives...

2001-08-13 Thread Buzz Kettles

At 6:45 PM -0400 8/13/01, the nightboy wrote:
Does anyone happen to know if, after using imaging lingo to create a new
bitmap, I can save it to an external file/cast?

after you make the image what you want

then determine
which castLib you want {= castLibNumber),
which cast position you want (= castPosition),
 use these:

newMemb = new(#bitmap, member (castPosition, castLibNumber))
newMemb.image = image_to_be_saved

hth

-Buzz


also, is it possible to script a sprite to span 1000 frames? or does there
already have to exist a sprite with that span?

tia,

b


  Brian Douglas  (:ub)


Programming such sites as:

http://www.imaginarystudio.com
http://www.redflowerworld.com









[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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/LUJ/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 OOP and ancestor access

2001-08-13 Thread Al Hospers

this is a good idea. let's talk thru an analysis of a real-life useful
OOP module. that should get this thread hoppin, right. I'll start it
up. let's take the example that I mentioned before, the QT/digital
movie object? let's not write any code yet, let's just do a sketch.
here are the various methods that I can think of that we'll need:

1 - instantiation: setup initial property values

2 - monitorPlaybackStatus: is it playing, stopped, paused

3 - getCurrentPosition: what is the current position of the movie

4 - play: start playing at the current location

5 - stop: stop playback  reset to start

6 - pause: pause playback at current location

7 - rewindToStart: reset the current time to the beginning

8 - jumpToPosition: jump to an arbitrary position in the movie

9 - fastForward: play the movie at a fast rate

10 - rewind: play the movie backwards at a fast rate

11 - playDone: handler to execute when the movie is finished

12 - killObject: cleanup the object when you are done with it


OK, that is a start. can anyone think of anything else?

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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 I SEARCHED THE archives...

2001-08-13 Thread Al Hospers

 Does anyone happen to know if, after using imaging lingo to
 create a new
 bitmap, I can save it to an external file/cast?

sure you can. you just need an Xtra to do it. from what I understand
you can do it with the MUS Xtra if all you need is JPEG. otherwise go
to the www.updateStage.com site  look at the Mile High Table O
Products under graphics. there are a couple of Xtras there that will
do the job.

hth

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, Lingo programming, CGI scripting.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]




lingo-l Hiding Cursor - in Password field

2001-08-13 Thread mister shaik

Dear Friends,

I am using two fields, one for username and the other for password.

For Password Entry, I am taking keystrokes in keydown event and changing them to 
*. while doing this my cursor appearing at starting point of the field. 

Also, i used   sprite(2).cursor = 200 in enterframe script and in my  keydown event 
script too, still it is not working.


Can anyone help me to hide the cursor while typing into a editable field or suggest me 
to proceed.

Thanks  Regards,
Shaik ilyas.



_
For Rs. 2,000,000 worth of Aptech scholarships click below
http://clients.rediff.com/clients/aptechsch/index.htm




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]