Gosh! Wouldn't it just be easier to delete the file and then rewriting to
it rather than going through all those repeats and stuff?
Easier? Maybe, but as much fun? I say thee nay! =)
Deleting the file requires recreating the file and then writing
to the file again. What's easier? Running
Hello,
I have a problem with File IO I'm trying to solve.
I am writing a list to a text file and the last item
in the list is 3 numbers long, except in one case, it
is 4 numbers long and the last one is 0. Well, when
it writes to the file with a 3 number final item after
it has written with
I'm using Director 6 so I can't use dot syntax :(
Allow me to get a little more detailed.
FileIO obviously doesn't overwrite an entire text file
when it writes to a file, it just writes from char a to char b.
If there are more characters already in the text file beyond
char b, they remain
sorta...
I figured out a workaround, clunky as it may be.
---
set gTheWriteText = removeQuotes(gTheWriteText)
if the last item of gTheWriteText = 3110 then
nothing
else
put SPACE after gTheWriteText
end if
on removeQuotes dataString
repeat with a = 1 to the number of
2) I can't call FUNCTIONS in a flash sprite, ie even something like
sprite(x).callframe(_root.buttondown.allbuttons.switchThem) - but that's
really doing a telltarget...hmm
Any ideas?
You can create a controller movieclip called functions or something.
Inside it, put all the functions,
really sounds like you have a path problem going to the secondary
movie. maybe it's hard coded, maybe you have spaces in the file
folder names, dunno. is the folder you have the secondary movie in
directly under the stub is the path to it being properly called. put
an alert in the calling
in shared casts that
have ever needed to be Adjusted (even once!).
Cheers,
Steven Sacks
[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
No, this needs to be all done from inside Director without any
interaction from the end user. They can't even create the folder
path on the network drive because they say it is too much effort.
This network drive is a local drive to each store across the nation,
but it is managed from one
How would I use Buddy API in this case?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Kerry Thompson
Sent: Friday, August 03, 2001 6:39 PM
To: [EMAIL PROTECTED]
Subject: RE: lingo-l FileXtra 3 - can't create folder across network
in NT but can
How about this:
gStartTime = the short time
put gStartTime
-- 3:55 PM
gEndTime = the short time
put gEndTime
-- 5:23 PM
set the item delimiter = :
set sHour = value(item 1 of gStartTime)
set sMin = value(item 2 of gStartTime)
set eHour = value(item 1 of gEndTime)
set eMin = value(item 2 of
Steve,
Can you use the ticks?? This is a running count and can only (I
think) be
reset by re-booting the computer.
This seems easier:
on startMovie
gStartTime = the ticks
end
on stopMovie
gEndTime = the ticks
gTotalTime = gEndTime - gStartTime
tHours = gTotalTime/60/60/60
tMins
PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Steven Sacks
Sent: Thursday, August 02, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject: lingo-l tracking time elapsed using the short time
Hello,
Director 6.5, Win NT
I'm developing a program for Windows NT and I need to write
a script
to the short time for 12/24 clocks
-- turn it into a string that looks like HH:MM
end
on stopMovie
global gStartTime, gTotalTime
set gStopTime = the short time
set gTotalTime = gStopTime - gStartTime
-- Can you do direct math on the short time like that?
end
Thanks in advance,
Steven Sacks
1:49:56
In ticks, that's 395760.
Add 23:28.
In ticks, that's 84480.
If we add the time code we get 2:12:24.
If we add the ticks we get 480240.
Convert 480240 to time code and we get:
2:13:24
We gained a minute, though I don't see where.
If anything, though, since I'm not using seconds,
it
I'd like to learn Flash too, but right now I can't afford to.
See the .sig below.
It is of the highest importance, therefore, not to have useless
facts elbowing out the useful ones
Flash is cake. I remember everything about Director, and,
if anything, programming in Flash has improved my
based on the user information.
Any help would be much appreciated. All of this needs to
go on in the background with no user interaction.
Thanks in advance,
Steven Sacks
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post
IMNSHO if you don't want the user to know about it then I personally
wouldn't writer it on the Desktop...
I only want the user not knowing about it insomuch as
they don't see any prompts or Director losing focus.
I just want it to take place in the background without
requiring any interaction.
Hello,
I've been asked to find a server across a network
by the name of the server (not drive number) and
then map it to a local drive (not even sure what
all that means). This is to save a simple comma
delineated list in a text file that needs to be
saved into a specific folder on a named
Sorry, this is for D6.5 on Windows NT 4.
Thanks!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Steven Sacks
Sent: Wednesday, July 18, 2001 4:22 PM
To: [EMAIL PROTECTED]
Subject: lingo-l HELP! - Network: find server by name and map to local
property myRedBoxDate, mySprite, spriteNum
on beginSprite me
myRedBoxDate = whatever date
mySprite = sprite(spriteNum)
if myRedBoxDate startDate and myRedBoxDate endDate then
mySprite.blend = 60
end if
end
That may require a little touch up, but that's the concept right?
Be aware - FS Command does not work on Mac in the IE browser.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Diana Robson
Sent: Monday, June 04, 2001 4:42 PM
To: [EMAIL PROTECTED]
Subject: lingo-l FSCommand and lingo
I'm working on a director
Hello,
I have a unique situation where I need to capture keyboard
events off of a specialty keyboard. I tried to capture the
key and keycodes but it returns a square for the key and
16 for the keycode for all of those (just like an F key).
What can I do to get a unique key code from each of
sure! select the film loop in the cast, click on the i
and check the box for Play Once.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mel Kloscheim
Sent: Saturday, May 12, 2001 4:14 PM
To: [EMAIL PROTECTED]
Subject: lingo-l Is there a way for
What is HTH ?
Hope That Helps
[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.
The MU server ... runs only on Mac and PC if that's an issue.
As opposed to...a Commodore? ;)
I think you mean Mac OS and Microsoft Windows.
AFAIK, you can run Unix, BeOS, etc. on either Mac or PC.
[To remove yourself from this list, or to change to digest mode, go to
Yes, plagiarism is a dead clever way to pass
the first year of your degree. ;)
Without actually seeing the code, you probably
need to declare pRectList as a property at the
top of the script
property pRectList
Cheers,
Steven
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
what are you going to do when the teacher
asks you how the code works?
"how's [being clever] working out for you?"
- Tyler Durden (paraphrased) from Fight Club
[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
i had the same exact problem with a presentation i built.
hmmnobody had a response before.
mine didn't do it every minute, but it did it often enough
to render my kiosk program a nightmare. macromedia has no
technotes on this that i can find.
i'm watching closely. i hope somebody knows
somebody made an xtra awhile back (D5, I think) that let
you put the cursor anywhere you wanted on the screen.
forgot the name. somebody here must know it.
so the answer is, you can.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Tab Julius
Sent:
sprite(x).constraint = sprite(y).
make a constraint sprite and put it on the stage and make
it invisible. a white on white square shape set to background
transparent should help.
steven
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL
You could make two film loops, with one being the fade-out
animation. Then, when you click it, simply swap out the
cast member with the fade out film loop.
I missed the original post, so I'm sorry if this
idea isn't in line with what you are doing.
Steven
-Original Message-
From:
does NOT go to "lesson"; but label("lesson") DOES put the frame number of
"lesson".
if this works
put label("lesson")
but this doesn't
go frame "lesson"
then try this variation
x = label("lesson")
go frame x
Have you
a two frame loop that sets those variables
to whatever variables you are trying to track)
may help solve your problems.
Good luck,
Steven Sacks
[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
heh, what does this have to with the thread
"Flash question urgent"??
heheh. =)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jason [JZway.com]
Sent: Friday, January 19, 2001 6:34 AM
To: [EMAIL PROTECTED]
Subject: RE: lingo-l Flash question
These all do the same thing:
go the frame
go to the frame
go frame 10
go to frame 10
go 10
Which do you like more? go to the frame
is easier to read for some, while go the frame
is easier to read for others.
Personally, I prefer go the frame and go frame 10
because it is a happy medium of
er by hard coding waitTime in on beginSprite.
on beginSprite me
waitTime = 5.5
end
where 5.5 is the number of seconds.
HTH,
Steven Sacks
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Slava Paperno
Sent: Wednesday, January 03, 20
Heh, I was being a little sarcastic there, though I
appreciate your testing tips.
As far as markers being read as numbers, I did some
tests and looked up the command in the Dictionary...
put marker("this")
-- 15
x = "this"
put marker(x)
-- 15
From the lingo dictionary:
Function; returns the
Not the answer to your problem, but a related funny quote:
"Computer games don't affect kids. I mean, if pac man affected us as
kids we'd all be running around in darkened rooms, munching pills and
listening to repetitive music."
Uh...huh... :-)
-Original Message-
From:
an
Mark R. Jonkman Consulting
ADDRESS: 20 Windermere Crt., Guelph, ON, CANADA N1E 3L4
PHONE: 519-837-8509
EMAIL: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Steven Sacks
Sent: Fri
i think the trouble is with go to marker.
tell the stage to go frame "xx"
HTH,
Steven Sacks
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Vanden Broeck, Daniel
Sent: Friday, December 22, 2000 2:34 AM
To: '[EMAIL PROTECTED]'
Subjec
, and will perform
much better.
There are many better and easier ways to accomplish
what you are doing. Also, I recommend not doing your
puppetsprite x, FALSE on startMovie, but instead do
it on the first frame of the movie on prepareFrame.
HTH,
Steven Sacks
[To remove yourself from this list
You keep resetting your list everytime, which is
why it isn't adding correctly.
Perhaps a property list is best here so you only
need one list to keep track of every marker.
First, initialize countList in your movie script
on startMovie
global countList
countList = [:]
end
Then, put this
OOPS!
change this line
if imgCount = (imgList.count() + 1) then imgCount = 1
sorry
steven
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Steven Sacks
Sent: Sunday, November 19, 2000 7:28 PM
To: [EMAIL PROTECTED]
Subject: RE: lingo-l RE: Lingo
A Stinkpad? Oh no!
Heh, I had to develop a multimedia presentation on
a Stinkpad once a few years ago. Not for one, on one.
Ack! Those things cost so much and are terrible at
multimedia. I heard the newer ones aren't as bad, though.
My 2 cents.
-Original Message-
From: [EMAIL
Thanks to everyone who helped.
Here is the solution. I'm not sure if it can get
anymore succinct or elegant, but it works.
on putTime cFrame, tFrames
ttsec = integer(tFrames-(10*integer(tFrames/10)))
twsec =
Heh, well, the truth was I was making it for Flash,
but I was figuring out the script in Director b/c
Director is a heck of a lot easier to script and
test in, even with the new syntax in Flash 5.
The only thing I can do to hasten the process,
is instead of making three duplicate sets of
For some reason, when I try to reply to Lingo-L threads,
it sometimes emails ME instead of penworks.
I don't understand why that is, so I have to
reply to a different thread, copy and paste
the subject, and send it that way.
I didn't know it would cause a problem.
I'm using Outlook (ugh, i
set the sound to stream is one option.
puppeting all the sound channels 1-8 to 0 might help.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Tim Koster
Sent: Tuesday, November 07, 2000 8:56 AM
To: [EMAIL PROTECTED]
Subject: lingo-l flash audio in
the QT movies. Just to let you know,
but I had that exact problem.
HTH,
Steven Sacks
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Nick Youmans
Sent: Monday, November 06, 2000 11:13 AM
To: Penworks Lingo Mailing List
Subject: lingo-l loosing fl
Navigation is a tool, interaction is using it.
=)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mahmood Akhtar
Sent: Thursday, October 26, 2000 2:26 AM
To: Lingo-l
Subject: lingo-l Difference?
Hi Lingo Gurus!
What is the difference
What would that make clients??
the full service attendants who fill your car
with gas while lowering the air in your tires.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of John Aquilina
Sent: Thursday, October 26, 2000 2:57 AM
To: lingo-l
A simple solution would be to put a big black (white?)
box in the highest sprite channel all the way through
your movie that covers the stage entirely, or, even better,
a loading image that covers the stage. When you are done
rendering you can move it off the stage, or alter its
member or
Hmm...I've never had any problems with using cue points in
AIFF files, whether I use the tempo channel to wait for cue,
or if I use lingo isPastCuePoint() or on cuePassed.
I'm wondering what you mean by throwing off the animation.
Are you saying that the animation halts while it waits for
the
(hence, me).
me.spriteNum is the spriteNum associated with the behavior,
the sprite that the behavior is attached to.
Check out this article for more on OOP, me, and dot syntax:
http://www.mcli.dist.maricopa.edu/director/tips/oops/035.html
and
http://www.zeusprod.com/nutshell/dotsyntax.html
HTH,
St
54 matches
Mail list logo