RE: lingo-l attaching behaviors at runtime

2003-09-12 Thread Kristian
I'm writing out of Sweden... And someone once made somtehing called time
zones up. And they annoy me too. :)

Will get back with results.

Thanks
//Kristian 

 heh heh - i'm way to used to instant messaging ;-) sorry for sounding 
 impatient.
 
 -Evan
 guess i picked a bad week to quit sniffing glue
 
 
 Evan Adelman wrote:
 
  Not to be rude, but are my messages not coming through?  Or perhaps
  I'm not explaining things well ... I don't know. Let me know if 
  there's something that I've explained that doesn't apply, 
 let me know 
  and I'll try again...
 
  here's another reference movie
 
  http://www.evanadelman.com/scriptInstanceList/scriptInstanceList.dir
 
  -Evan
 
 
  Craig Taylor wrote:
 
  Hey Rob,
 
   
 
  on mouseDown me
   pCounter = pCounter + 1
   if pCounter mod 2 then
 pSL = sprite(1).scriptInstanceList
 sprite(1).setNum(random(100))
 sprite(1).scriptInstanceList = []
   else
 sprite(1).scriptInstanceList = pSL
   end if
  end
 

 
 
  Had  a similar sample that also worked fine, aong as you 
 hard-coded 
  the spriteNum.  The problem seems to arise if you use me to 
  reference the sprite from where you are executing the code.  It 
  simply fails to recognize that sprite.  I just sent a 
 response back 
  to Kristian, as such.  In other
  words, if you hardcode the spriteNum or even use sprite(the
  currentSpriteNum) as an alternative, it works fine, as 
 long as you don't
  reference the object??
 
  Weird...
 
  -_Craig
 
 
 
  [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!]
 
   
 
 
 
 -- 
 
 
 
 _  _  _  _  _  _  _  _  _  _  _ _  _  _  _  _  _  _  _  _  _  
 _  _  _  _
 
 
 *m u t a n t
  m e d i a*   /solutions for success
 //
 //
 / *Evan Adelman* | 917.916.7378 | 303 E 71st St  NY NY 10021 
 [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED] | 
 www.mutantmedia.com 
 http://www.mutantmedia.com
 
 
 
 [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!]


lingo-l Screen resolution Xtra.

2003-09-12 Thread Kristian
Experiences with Xtras regarding checking/changing/restoring the screen
resolution and color depth would be appericiated. Need for cross-platform
compatibility.

Am trying out ResolutionXtra from andradearts.com right now and it looks OK
like it can do the job.

//Kristian


[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 attaching behaviors at runtime

2003-09-12 Thread Kristian
Ok, thanks all... He code below is very useful if you just want to attach a
behavior on the fly, to a puppeted sprite that holds a flash member, for
showing the regular hand mouse-overs on the flash buttons. Any
comments/lessons that can optimize this/my coding is appereiciated (like
de-attaching).

This worked for me:

-- CODE FOR ATTACHING BEHAVIOR
xCursor = (script flaCursorScript).new(num)
sprite(num).scriptInstanceList.Add(xCursor)
sendSprite(num, #beginSprite)


-- BEHAVIOR CODE
property spriteNum, pSpriteRef

on new me, whichChannel
  spriteNum = whichChannel
  return me
end

on beginSprite me
  pSpriteRef = spriteNum
end

on exitframe me
  if sprite(pSpriteRef).hitTest(the mouseLoc) = #button then
if sprite(pSpriteRef).cursor  280 then
  sprite(pSpriteRef).cursor = 280
end if
  else
if sprite(pSpriteRef).cursor  -1 then
  sprite(pSpriteRef).cursor = -1
end if
  end if
end


 Okay I re-read your and Kristian's posts.
 
 There should be no problem with the me reference if you add 
 code such as
 
 put me
 
 you will see that a proper reference to me is output 
 
 The problem stems from the fact that both of you were 
 creating a new script 
 instance with the new() command. Behaviours work in such a 
 way that when they 
 are dropped on a sprite and then are instantiated the 
 automatically create a 
 property called spriteNum and assign the current sprite 
 number to it. However 
 when you call the new() event on the script no such 
 automation occurs. You can 
 get around this by forceably creating a the spriteNum 
 property after call the new()
 
 x = script(whatever).new()
 x[#spriteNum] = theNumber
 
 Craig in my example the spriteNum is hard coded because it is 
 communicating to 
 another sprite, I could have used sendAllSprites and it would 
 have worked. Also 
 all the instances in the scriptInstanceList will have their 
 spriteNum defined since 
 they were instantiated under regular circumstances so if in 
 the alert line you add
 
 me.spriteNum
 
 you'll see that the correct reference shows up. No problems 
 at all. If you explore 
 this in the future and still have problems send me a code 
 sample I know I can 
 make it work.
 
 hth,
 
 Rob
 
 
 
 
 11/09/2003 11:42:12 AM, Craig Taylor 
 [EMAIL PROTECTED] wrote:
 
 Hey Rob,
 
  on mouseDown me
pCounter = pCounter + 1
if pCounter mod 2 then
  pSL = sprite(1).scriptInstanceList
  sprite(1).setNum(random(100))
  sprite(1).scriptInstanceList = []
else
  sprite(1).scriptInstanceList = pSL
end if
  end
 
 
 Had  a similar sample that also worked fine, aong as you 
 hard-coded the 
 spriteNum.  The problem seems to arise if you use me to 
 reference the 
 sprite from where you are executing the code.  It simply fails to 
 recognize that sprite.  I just sent a response back to Kristian, as 
 such.  In other words, if you hardcode the spriteNum or even use 
 sprite(the
 currentSpriteNum) as an alternative, it works fine, as long 
 as you don't
 reference the object??
 
 Weird...
 
 
 
 
 [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!]


lingo-l delete(fileObj) vs baDeleteFile

2003-09-12 Thread Andy Talbot
Which one should I use?

fileObj = new(xtra FileIO)
openFile (fileObj,filename,2)
delete(fileObj)

or

if baFileExists(fileName) = 1 then  
OK = baDeleteFile(filename)
end if

I don't really like the look of the top one.

Thanks, Andy.
[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 Screen resolution Xtra.

2003-09-12 Thread Daniel Nelson
Hi Kristian,

I've had good results with the Resolution Xtra from Andrade Arts.  The one item to 
note is that if you use the hide desktop option, be certain to keep a variable around 
that tells you whether it is set or not.  If it is set, then before calling halt, the 
desktop must be revealed.
I found that if the desktop was hidden and tried to be revealed on stopMovie, then it 
threw an error.

Regards,

Daniel

Kristian wrote:

 Experiences with Xtras regarding checking/changing/restoring the screen
 resolution and color depth would be appericiated. Need for cross-platform
 compatibility.

 Am trying out ResolutionXtra from andradearts.com right now and it looks OK
 like it can do the job.

[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!]


lingo-l Director MX - 2004

2003-09-12 Thread Dan Sheridan
Hi list, 

Few questions, 

Does anyone know if Macromedia will be updating Director MX - to the new
2004 product line? And does Director MX now require a new Flash Asset Xtra
to use Flash 2004 swfs etc?

We are going to upgrade to Director MX as soon as OSX 10.3 comes out, but I
might hold off if a new version will be released.

Cheers, 

Dan ;)

[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 Director MX - 2004

2003-09-12 Thread Troy Rollins
On Friday, September 12, 2003, at 10:15 AM, Dan Sheridan wrote:

Does anyone know if Macromedia will be updating Director MX - to the 
new
2004 product line? And does Director MX now require a new Flash Asset 
Xtra
to use Flash 2004 swfs etc?
Macromedia posted a FAQ somewhere that says there will indeed be such a 
Director version.

It is the general belief that there would need to be a new Flash asset 
xtra to support any new features in Flash. The Director dev team is 
aware of that also.

I'm in somewhat the same boat. We currently use DMX, but our Flash 
developers are chomping at the bit for 2004 studio.

--
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 Director MX - 2004

2003-09-12 Thread Kraig Mentor
 Does anyone know if Macromedia will be updating Director MX - 
 to the new
 2004 product line? 

Yes! We are working on it as I type.

 And does Director MX now require a new 
 Flash Asset Xtra
 to use Flash 2004 swfs etc?

Check out...

http://www.macromedia.com/software/director/productinfo/fl2004_faq/


Regards,
Kraig
[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!]


lingo-l lingo-lTurning a string into lingo

2003-09-12 Thread Matt Wells
Shouldn't this work?

  gCode = member( QUOTE text QUOTE ).char[1..10].hyperlink = 
QUOTE www.macromedia.com QUOTE 

put value(gCode)

Shouldn't this change this string into a line of code?


[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 Director MX - 2004

2003-09-12 Thread Mathew Ray
Hi Dan,

Not to spread rumors, but several from Macromedia have stated that they
are 'heads down' on the next version. I have also heard from some others
that a new fmx2k4 xtra won't be available until the release (don't know
how reliable this info is, but that's what they did last time). The big
question is schedule... I personally doubt it will be less than a year
away, but that is uninformed conjecture. I just hope director has a
project panel like flash does now with integration into source control
and repository software :0)

~Mathew



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sheridan
 Sent: Friday, September 12, 2003 10:15 AM
 To: [EMAIL PROTECTED]
 Subject: lingo-l Director MX - 2004
 
 
 Hi list, 
 
 Few questions, 
 
 Does anyone know if Macromedia will be updating Director MX - 
 to the new
 2004 product line? And does Director MX now require a new 
 Flash Asset Xtra
 to use Flash 2004 swfs etc?
 
 We are going to upgrade to Director MX as soon as OSX 10.3 
 comes out, but I
 might hold off if a new version will be released.
 
 Cheers, 
 
 Dan ;)



[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 Director MX - 2004

2003-09-12 Thread Kraig Mentor
Flash MX 2004 allows for exporting in earlier Flash formats, if thats any help in your 
situation. 

Regards,
Kraig

 -Original Message-
 From: Troy Rollins [mailto:[EMAIL PROTECTED]

 I'm in somewhat the same boat. We currently use DMX, but our Flash 
 developers are chomping at the bit for 2004 studio.

[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 lingo-lTurning a string into lingo

2003-09-12 Thread Eric Frericks
look at the do command

-Original Message-
From: Matt Wells [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 9:30 AM
To: [EMAIL PROTECTED]
Subject: lingo-l lingo-lTurning a string into lingo


Shouldn't this work?

  gCode = member( QUOTE text QUOTE ).char[1..10].hyperlink = 
QUOTE www.macromedia.com QUOTE 

put value(gCode)

Shouldn't this change this string into a line of code?


[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!]


lingo-l memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread Michael von Aichberger
Hi List,

I know how to calculate the amount of memory an image takes:

img.width * img.height * img.depth / 8



If I import a 24-bit image, the resulting cast member is 32 bit.

Or if I create an image in 24 bit color depth:

img = image(width, height, 24)

img.depth always gives 32.

Maybe it's because my video card supports 8 bit, 16 bit or 32 bit color
depth, but not 24 bit. I don't know.


Anyway here's my question. Those originally 24-bit images, do they really
consume 33 % more memory as necessary in the above mentionned case?

If so, what can I do to change this?

I have to preload a large amount of image data for fast and instant use and
memory useage really matters!

Thanks in advance



Michael










[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 Director MX - 2004

2003-09-12 Thread Troy Rollins
On Friday, September 12, 2003, at 10:40 AM, Kraig Mentor wrote:

Flash MX 2004 allows for exporting in earlier Flash formats, if thats 
any help in your situation.
Maybe. We'll probably pick up a copy and test. Flash MX would export as 
Flash 5 as well, but if you scripted anything against the Flash 5 
rules, you had problems.

One of the biggest strengths that Director has enjoyed is the full 
compatibility with the latest Flash version. Everybody else had to work 
with a version back and Flash 5. Now even Director is in the version 
back mode.  ;-(

--
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 lingo-lTurning a string into lingo

2003-09-12 Thread Matt Wells
Thank you,

I knew there was a way but, I've been away from lingo for so long I tend
to forget. Im old - pushin 30 this year ;) - Man that just sound
depressing

Thanks again.


--


look at the do command

-Original Message-
From: Matt Wells [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 9:30 AM
To: [EMAIL PROTECTED]
Subject: lingo-l lingo-lTurning a string into lingo


Shouldn't this work?

  gCode = member( QUOTE text QUOTE ).char[1..10].hyperlink = 
QUOTE www.macromedia.com QUOTE 

put value(gCode)

Shouldn't this change this string into a line of code?


[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!]

[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 memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread Daniel Nelson
Hi Michael,

I would guess that this has to do with how each pixel is represented.  On a 32-bit 
architecture, each integer can be divided into pixels a number of ways neatly: four 
8-bit pixels, two 16-bit pixels, one 32-bit pixel.  To span a pixel across integers 
would be inefficient.  So for
24-bit images, the last 8 bits are simply wasted.  (This is all merely speculation on 
my part.  I don't know how a Director engineer would respond.)

On a different, but related note, try using 1-bit members versus 32-bit.  1-bit will 
animate slower than 32-bit, even though it is 32 times as small.

Regards,

Daniel

[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 lingo-lTurning a string into lingo

2003-09-12 Thread Charlie Fiskeaux II
Another way would be to create a custom script in the cast and then execute
a handler that you created.  This would be a good method if you wanted to
have the code around later for whatever reason.

new(#script, member(1,1))
myScriptText=on myCustomHandler  RETURNput   QUOTE  my string
 QUOTE  RETURN  end
member(1,1).scripttext=myScriptText

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194



[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 return hilited text in a field

2003-09-12 Thread Charlie Fiskeaux II
member(x).char[(the selStart)..(the selEnd)]

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194

- Original Message - 
From: Matt Wells [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 7:37 PM
Subject: lingo-l return hilited text in a field



 Hello,

 I have a question that I can't seem to find any answers to maybe you all
 can me help out.

 When a user hilites any set of char in field how can I return which set
 of chars are hilited.

 Thanks for the help.
 Matt,

 [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 sql db dipping

2003-09-12 Thread Mathew Ray
AFAIK, SQL is not a db unless you are talking about Microsoft SQL
Server... SQL is a scripting language used to gather info from the
databases. Valentina only talks to valentina databases, the same is true
with arca... The file that is on the local network, what format is it
in? Comma separated, MS access, filemaker? Also, can you go through an
import process, or will the db need to be used 'on the fly.' This will
probably help determine which xtra to use...

HTH,
~Mathew



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
 Sent: Friday, September 12, 2003 11:28 AM
 To: [EMAIL PROTECTED]
 Subject: lingo-l sql db dipping
 
 
 So what has everyone used to read sql data into director? Luckily in 
 this case it's a file on a local network being read by one 
 application 
 rather than supporting a consumer application over the web, so i'm 
 thinking the new Arca might be fine, but in the chance that 
 it could go 
 consumer downloads I'm checking up on updatestage as to what other 
 xtras do sql...and I'm sort of confused by the descriptions - ie 
 Valentia - does it talk directly to a sql db?



[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 sql db dipping

2003-09-12 Thread grimmwerks
On Friday, September 12, 2003, at 11:49  AM, Mathew Ray wrote:

AFAIK, SQL is not a db unless you are talking about Microsoft SQL
Server...
I understand what you're saying; I think in this case it IS Microsoft 
SQL.

SQL is a scripting language used to gather info from the
databases. Valentina only talks to valentina databases, the same is 
true
with arca... The file that is on the local network, what format is it
in? Comma separated, MS access, filemaker? Also, can you go through an
import process, or will the db need to be used 'on the fly.' This will
probably help determine which xtra to use...

I'm in the process of finding out the format, but here's the big 
problem, and why I might have to veer to a 'true' sql SERVER situation 
rather than reading in a flat file.
It's got to happen on the fly, but the db has to be polled with a 
timeout object for changes; the db is being fed from an rss feed, and 
I'm to update changes within the db.

My first thought was the translating of the rss feed into a sql db kind 
of helped me, but there's part of me that thinks perhaps I should just 
parse the rss feed - like use a flash object xml socket or 
something...but that would make my job a bit harder as the feed is a 
bit of a mess.

[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!]


lingo-l MUS server question (was sql db)

2003-09-12 Thread grimmwerks
Is there in fact a way to have an MUS server be able to access an sql 
file? Since it's a flat file all that stuff is built into MUS 3, no?

[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 sql db dipping

2003-09-12 Thread Mathew Ray
Yeah, IMO, Flash would be easier, since lots of stuff has already been
designed to to ~exactly~ what you mentioned: reading RSS feeds. Sorry I
don't have any examples offhand, but I am sure you can find some looking
at flashcoders or just by looking at some of those peoples' blogs.

You could also have director do the xml parsing if you feel like it :0)

~Mathew


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
 Sent: Friday, September 12, 2003 12:24 PM
 To: [EMAIL PROTECTED]
 Subject: Re: lingo-l sql db dipping
 
 
 
 On Friday, September 12, 2003, at 11:49  AM, Mathew Ray wrote:
 
  AFAIK, SQL is not a db unless you are talking about Microsoft SQL
  Server...
 
 I understand what you're saying; I think in this case it IS Microsoft 
 SQL.
 
  SQL is a scripting language used to gather info from the
  databases. Valentina only talks to valentina databases, the same is 
  true
  with arca... The file that is on the local network, what 
 format is it
  in? Comma separated, MS access, filemaker? Also, can you go 
 through an
  import process, or will the db need to be used 'on the 
 fly.' This will
  probably help determine which xtra to use...
 
 I'm in the process of finding out the format, but here's the big 
 problem, and why I might have to veer to a 'true' sql SERVER 
 situation 
 rather than reading in a flat file.
 It's got to happen on the fly, but the db has to be polled with a 
 timeout object for changes; the db is being fed from an rss feed, and 
 I'm to update changes within the db.
 
 My first thought was the translating of the rss feed into a 
 sql db kind 
 of helped me, but there's part of me that thinks perhaps I 
 should just 
 parse the rss feed - like use a flash object xml socket or 
 something...but that would make my job a bit harder as the feed is a 
 bit of a mess.



[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 return hilited text in a field

2003-09-12 Thread Bertil Flink
This *should* work, but it doesn't quite.
It captures one character before the visible selection.

If you select the first word, the selStart is 0, and all the text of the field is 
returned.

So you have to add 1 to the selStart:
member(x).char[(the selStart +1)..(the selEnd)]

I can't remember having to do this in previous version of Dir, but I could be wrong.


Specs: DirMX, Win2K, light drizzle outside.


Bertil Flink
Creative Media


- Original Message - 
From: Charlie Fiskeaux II [EMAIL PROTECTED]


 member(x).char[(the selStart)..(the selEnd)]
 

 
 - Original Message - 
 From: Matt Wells [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 7:37 PM
 Subject: lingo-l return hilited text in a field
 
 
 
  Hello,
 
  I have a question that I can't seem to find any answers to maybe you all
  can me help out.
 
  When a user hilites any set of char in field how can I return which set
  of chars are hilited.
 
  Thanks for the help.
  Matt,
 

[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 Screen resolution Xtra.

2003-09-12 Thread alpha
 Experiences with Xtras regarding checking/changing/restoring the screen
 resolution and color depth would be appericiated. Need for cross-platform
 compatibility.
 
 Am trying out ResolutionXtra from andradearts.com right now and it looks OK
 like it can do the job.

That will do it, and give you control over the OS X dock and menu bar as well.

Buddy is another option (you should have buddy anyway), and DirectOS does the 
trick. I have one product where I use DirectOS to change resolution on the 
Mac, and Buddy to change resolution on Windows. I forget exactly what the 
issue was, but there was something Buddy couldn't do on the Mac.

Cordially,

Kerry Thompson
[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 Director MX - 2004

2003-09-12 Thread alpha
 Does anyone know if Macromedia will be updating Director MX - to the new
 2004 product line? And does Director MX now require a new Flash Asset Xtra
 to use Flash 2004 swfs etc?

I imagine they will update it--they always have, at least to keep up with 
their other products like Flash. However, anybody who knows their plans has 
likely signed an NDA, and can't talk about specifics in public.

I can't say what their plans are re Flash 2004, but yes, there will need to be 
a new Flash Asset Xtra. 

 We are going to upgrade to Director MX as soon as OSX 10.3 comes out, but I
 might hold off if a new version will be released.

I'd go ahead with MX. I don't know when a new rev of Director will be 
released, but MX has only been out, what, a year? Less, I think. I'd be in 
serious shock if they had a release schedule faster than 18 months, and I 
think a couple years is more likely.

Just speculation. I don't know the specifics--just the history.

Cordially,

Kerry Thompson
[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 lingo-lTurning a string into lingo

2003-09-12 Thread alpha
 Shouldn't this work?
 
   gCode = member( QUOTE text QUOTE ).char[1..10].hyperlink = 
 QUOTE www.macromedia.com QUOTE 
 
 put value(gCode)
 
 Shouldn't this change this string into a line of code?

Nope. Check out the do command. Value changes it into a number (or, in some 
cases, a list).

Cordially,

Kerry Thompson
[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 memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread alpha
 On a different, but related note, try using 1-bit members versus 32-bit. 
 1-bit will animate slower than 32-bit, even though it is 32 times as small.

Really? I've been using 1-bit bitmaps for my text highlighter, with the belief 
that I can resize and reposition them more quickly and reliably than a bitmap 
with more color depth. Have I been deluding myself? Performance has been an 
issue, but I figured it was just because there was so much Lingo.

Cordially,

Kerry Thompson
[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 memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread Daniel Nelson
Hi Kerry,

It's definitely an issue.  In one project, I have a white and black bitmap covering 
the entire stage (and it's a large stage, matching the monitor up to 1400X1050).  It 
is dynamically rendered to connect different elements of a visual data structure.  At 
1-bit, it was totally
unnacceptable, even on a fast machine.  At 8-bits, it plays fine.

I've also seen such hits elsewhere.

For my text highlighter, I use QuickDraw rectangles.

Kind Regards,

Daniel

[EMAIL PROTECTED] wrote:

  On a different, but related note, try using 1-bit members versus 32-bit.
  1-bit will animate slower than 32-bit, even though it is 32 times as small.

 Really? I've been using 1-bit bitmaps for my text highlighter, with the belief
 that I can resize and reposition them more quickly and reliably than a bitmap
 with more color depth. Have I been deluding myself? Performance has been an
 issue, but I figured it was just because there was so much Lingo.

 Cordially,

 Kerry Thompson

[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!]


lingo-l [ANN] BinaryIO Xtra ported to OSX

2003-09-12 Thread Gretchen Macdowall
There is a new version of BinaryIO Xtra available for OSX. BinaryIO is a
cross-platform xtra that reads and writes binary files. 

Read more about BinaryIO

http://www.updatestage.com/xtras/binaryio.html

Order page

http://www.updatestage.com/xtras/xtraorder.html

The upgrade is $99.00, free for those who purchased on or after June 1,
2003. Please e-mail [EMAIL PROTECTED] if you qualify for a free upgrade.

Gretchen Macdowall
updateStage, inc.



[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 memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread Tab Julius
The problem with one-bit stuff is getting that bit out of there.  You have 
to break apart a byte to get at each bit and it's a hassle with code.  It 
keeps the image size down, sure, but it's not fast.

You'd be much better off going with 256-color images.  Still enough color 
to do most artwork, animates fast (one-byte per pixel, easy to calculate 
offsets), and small in size.

Other than that, 32-bit would be fastest from the point of view of 
accessing (quickest to access a 32-bit offset) but it's a pig when it comes 
to space.

- Tab

At 02:02 PM 9/12/03, [EMAIL PROTECTED] wrote:
 On a different, but related note, try using 1-bit members versus 32-bit.
 1-bit will animate slower than 32-bit, even though it is 32 times as small.
Really? I've been using 1-bit bitmaps for my text highlighter, with the 
belief
that I can resize and reposition them more quickly and reliably than a bitmap
with more color depth. Have I been deluding myself? Performance has been an
issue, but I figured it was just because there was so much Lingo.

Cordially,

Kerry Thompson
[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!]


AW: lingo-l memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread Michael von Aichberger
 32-bit would be fastest from the point of view of
accessing (quickest to access a 32-bit offset) but it's a pig when it comes
to space.

Thanks Tab and all who answered. The 1-bit, 8-bit or 16-bit solutions don't
interest me, because my images are and have to be 24-bit.

Can anybody please confirm that 24-bit images always take up the same memory
space as 32-bit images?

And if so:
Can anybody tell me why in the import-dialog box for cast members one can
choose betwenn 32-bit (stage) and 24-bit (media) and above all why these
settings seems to have no effect at all?

I mean there must be some reason?

Thanks again!

Michael

[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 memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread alpha
 It's definitely an issue.  At 1-bit, it was totally
 unnacceptable, even on a fast machine.  At 8-bits, it plays fine.
 
 For my text highlighter, I use QuickDraw rectangles.

Thanks. I've used vectors for text highlighting, too. This was an inherited 
project, and the outgoing engineer insisted that the 1-bit bitmap was faster, 
easier, more reliable than 32-bit.

I'm updating the product now. I'll give the 32-bit thing a try. Thanks.

Cordially,

Kerry Thompson
[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: AW: lingo-l memory usage of bitmap 24/32-bit images/ bitmap cast members

2003-09-12 Thread alpha
 Can anybody please confirm that 24-bit images always take up the same memory
 space as 32-bit images?

One word: alpha.

There really is no such thing as 32-bit color, at least in common useage. A 32-
bit image has 24 bits for color, and 8 bits for the alpha channel. I think 
Director keeps that alpha channel, even if you don't use it.

Cordially,

Kerry Thompson
[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!]


lingo-l Buddy API - sending some keys

2003-09-12 Thread Locke
Hey,

I got Buddy API and am using the following method to send stuff to an
outside App.

on sendStuff me
step1 = baActivateWindow(getAt(theWin, 1))
baWaitForWindow(getAt(theWin, 1), active, 300)
if step1 = 1 then
step2 = baSendKeys({ENTER})
if step2 = 0 then
step3 = baSendKeys(theMsg)
if step3 = 0 then
step4 = baSendKeys({ENTER})
if step4 = 0 then
step5 = baActivateWindow(baWinHandle())
baWaitForWindow(baWinHandle(), active, 300)
else
alert mess up 4step4
end if
else
alert mess up 3step3
end if
else
alert mess up 2step2
end if
else
alert mess up 1step1
end if
end

theMsg  is a string and   theWin  is a list that has the correct windows
handler.

The problem is when this script is run, (for instance with WordPad being
theWin), WordPad only halfway comes up (it was minimized), nothing is
entered and the mouse locks.  The only way to break out is to Ctrl+Alt+Del,
and then the movie moves on, having not accomplished its job.

Any ideas?

W. Locke Morgan

[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!]