lingo-l XML, fileIO, encoding

2006-09-28 Thread Mendelsohn, Michael
Hi list... I'm reading in an XML file with fileIO and in the original test file I made, I got a few extra weird characters before the ?xml? tag. They're not there now, after I've created a new .txt file and renamed it .xml. But, other people will be editing this xml file, so how can I be sure

lingo-l CDPRO xtra question: eject()

2006-06-27 Thread Mendelsohn, Michael
Hi list... Does anyone use the CDPRO xtra? I have a routine that finds the correct drive and ejects the disc, but after doing this, if you display My Computer, the icon for that disc persists, even though it's ejected. It won't change upon refreshing, and it will only change if you put in

lingo-l In lieu of no arguments.caller?

2006-06-02 Thread Mendelsohn, Michael
Hi list... I have a Flash sprite that's calling a lingo function from two places: either within the Flash sprite itself, or from a MUI callback. Called from within the swf sprite, whichClip is a valid reference to the movieclip within the swf, but when called from the MUI, it's void. The

lingo-l Is not OK to attach?

2006-02-24 Thread Mendelsohn, Michael
Hi list... I'm dabbling in the js syntax and I've found that adding the below to a behavior won't allow it to attach to anything. Am I missing something? - MM function isOKToAttach(spriteType, spriteNum){ switch (spriteType) { case symbol(graphic): return true;

RE: lingo-l Is not OK to attach?

2006-02-24 Thread Mendelsohn, Michael
Sorry Tom, that didn't work. For some reason, when I add that handler, the behavior won't attach to anything. - MM In contrast to what you state, there's no scriptReference param passed?? From the documentation: // JavaScript syntax function isOKToAttach(aSpriteType, aSpriteNum) {

RE: lingo-l buddy api xcopyprogress without dialog problem

2006-02-23 Thread Mendelsohn, Michael
Hi Julian... If you'd like, post the code you've got. I'm curious to see what's going on. I am skeptical that it's an SP2 problem. That's what I have too. Have you tried: On baCopyProgressUpdate pct, fileName put pct put fileName End Is it getting the right values there? -

lingo-l Sprite(-5) stealing the show

2006-02-23 Thread Mendelsohn, Michael
Hi list... I have a frame script that's interrupting the flow of code. I suspect a bubbling issue. A swf sprite, on mouseUp, calls a parent script. When debugging, I can see it gets to the parent handler, but this always occurs on a frame that has a frame script on it. In that frame script, I

lingo-l Passing {} to a swf sprite

2006-02-17 Thread Mendelsohn, Michael
Hi list... The following line of lingo works, but the params object gets ignored: sprite(2)._root.attachMovie(clip, clip, 50, {_x:40, _y:85}) The clip MC shows up at point(0,0). Could this be some wacky syntax issue I'm missing? Thanks, - Michael M. [To remove yourself from this list, or

RE: lingo-l code

2006-02-17 Thread Mendelsohn, Michael
Great for the fundamentals... http://www.jmckell.com/ Anybody know of some good new sites where I can take lingo code examples for games and interesting effects for free? [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post

lingo-l Umm...gee...can I ask this question?

2006-02-17 Thread Mendelsohn, Michael
Hi list...ahem...Tom... I have a project that could benefit greatly by using the On2 video encoder for Flash 8 instead of the Spark for 7. Just curious, when will the Flash 8 xtra be available? Humbly asking, but not expecting specifics, just semantics, - Michael M. [To remove yourself from

lingo-l Reg entry reliability

2006-02-09 Thread Mendelsohn, Michael
Hi list... I'm using the following reg entry to retrieve the three letter language locality (using buddyAPI): HKEY_CURRENT_USER\Control Panel\International\sLanguage I'm wondering if this reg entry is available on all the various versions of Windows, or somehow if this entry could appear in

lingo-l Smoothly animating maximizing a MIAW

2006-01-26 Thread Mendelsohn, Michael
Hi list... I'm working on a handler for a window with a maximize button where clicking it stretches out the rect and drawRect of the MIAW to fit the screen. It works, but it's really choppy. Is there anything I can do to the math here that will help to smooth out my transition? Thanks, -

RE: lingo-l scriptInstanceList

2006-01-17 Thread Mendelsohn, Michael
Hi Rob... Thanks for responding. I have no idea why it returned []. Anyway, I switched the code to reference the scriptList instead, and I'm able to do what I want that way. It's a mystery why scriptInstanceList isn't working there, because it works everywhere else I use it. Perhaps you're

RE: lingo-l scriptInstanceList

2006-01-17 Thread Mendelsohn, Michael
Thanks, Tom and Rob for responding. I do appreciate it. - MM Agreed, do check your code as any behaviors found in the scriptList should get instanced at run-time and then be found in the scriptInstanceList, unless you do something to change that. I too can confirm on my end that all seems

lingo-l js syntax weirdness

2005-12-23 Thread Mendelsohn, Michael
Hi list... In js syntax, I can't get the following to work: if(pVidSprite.member.type == symbol(VisibleLightOnStageMedia)){ //do stuff } When I trace(pVidSprite.member.type); // #VisibleLightOnStageMedia pVidSprite is always correctly sprite(21). The result I am experiencing when

RE: lingo-l getPropertyDescriptionList: js syntax

2005-12-20 Thread Mendelsohn, Michael
Thanks for answering all the questions, Tom. You da man! I wouldn't have ever guessed that proplist() is the constructor for a new [:] in js syntax. I would have thought it would be Mylist = new propList(); or myObj = {}; I guess there's going to be a lot of trial and error in learning what I

lingo-l getPropertyDescriptionList: js syntax

2005-12-19 Thread Mendelsohn, Michael
Hi list... I'm trying to convert a GPDL handler from lingo syntax to js syntax. I keep getting illegal character errors. I've tried many different combinations of quotemarks and pound signs denoting symbols as lingo symbols or strings, but I can't figure this out. Anyone done this before?

lingo-l Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
Hi Adobe friends... I'm taking a stab at converting my lingo scripts to javascript syntax. I started with a very easy one. My question is why does on beginSprite(me) NOT translate to function beginSprite(this){}. That returns an error of missing formal parameter, and function beginSprite(){}

RE: lingo-l Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
Thanks for the response Tom. Score one for Adobe customer service. :-) I think I mostly understood that. But, I don't understand: you *don't* have to declare your script's properties at the beginning of a js script? And how do you distinguish between declaring a global and a property at the

RE: lingo-l Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
Thanks, Tom, it makes sense. I never imagined you could emulate public and private variables within a behavior that simply. It has sunk in, but getting it to stick in my brain is a different story... Going forward, I may have more questions on js syntax. A recent project I just completed made

RE: lingo-l Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
See, Tom? I knew it wouldn't be long before I had another js question. Say I declare a global variable called gData in a movie script written in Lingo syntax. I want to access gData in a behavior written in js syntax. Is it declared at the beginning of the js behavior? _global.gData And how

RE: lingo-l PDF - searching

2005-12-01 Thread Mendelsohn, Michael
Below is a handler utilizing buddyAPI that opens pdfs to a specific spot, so long as your audience has Acrobat version 6, which is the minimum version that handles opening parameters. Hopefully it will work for you. - MM on mOpenPDFwithParams(me, whichOne, theFolder, openingParams) --

RE: lingo-l PDF - searching

2005-12-01 Thread Mendelsohn, Michael
Also...there's a great document available on the Adobe web site: PDF Open Parameters Technical Note #5428 There's some really cool stuff there. - MM [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

RE: lingo-l lastIndexOf lingo equivalent

2005-11-22 Thread Mendelsohn, Michael
is it the # of the last element in a list? Sorry, Buzz. I should've been clearer. I'm looking for a quick way to take a path (string) and chop it down to just the file name. I came up with this: on reduceToFileName(thePath) -- chops off all slashes (char 92) and returns just the file name.

lingo-l Determining the language and regional version

2005-11-08 Thread Mendelsohn, Michael
Hi list... I need to determine the (Windows) UI language and further, which geographic version of that language. For instance, are they using English (en), but is it American English or UK English...or French or Canadian French? Creating a Flash Object on the fly and using

RE: lingo-l Determining the language and regional version

2005-11-08 Thread Mendelsohn, Michael
Hi list... I figured it out. Read the reg entry for HKEY_CURRENT_USER\Control Panel\International\sLanguage which retrieves a three letter code of the ISO language two letters + one letter for the region. The values are here:

RE: lingo-l Projector expiration date

2005-10-26 Thread Mendelsohn, Michael
Thanks everyone for the responses, I appreciate them. I think with the circumstances I have to work with, Tim's response is most suitable. I'm not sure I can rely on the users having internet access with Slava's or Ben's ideas, and I've been using buddyAPI all throughout the project anyway.

RE: lingo-l Projector expiration date

2005-10-26 Thread Mendelsohn, Michael
Slick idea Kurt. That is indeed an extra curve ball I just might implement. - MM [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 lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L

lingo-l Emailing with baOpenURL

2005-10-07 Thread Mendelsohn, Michael
Hi list... Is it possible to send an attachment with an email message generated out of baOpenURL? baOpenURL(mailto:[EMAIL PROTECTED],Normal) -- works baOpenURL(mailto:[EMAIL PROTECTED]attachment=abc.doc,Normal) -- ?? Thanks, - Michael M. [To remove yourself from this list, or to change to

lingo-l on activate/deactivate application

2005-10-05 Thread Mendelsohn, Michael
Hi list... In my movie script, I have on activeApplication and on deactivateApplication handlers. I have one MIAW running, and the stage is closed (not forgotten). These handlers work fine if I do the following: on activateApplication put a end on deactivateApplication put d end I get

lingo-l Passing strings from XML attributes

2005-10-05 Thread Mendelsohn, Michael
Hi list... I have a projector that's told what to do via XML. Each node has a command parameter like so: theNode command=gTools.mMethod(want_a_string_here)/ ...where my main engine reads the value of the command attribute and does a do(whatsInsideCommandQuotes). The question is, I'd like to

RE: Re[3]: lingo-l Dir -- Flash communication (static)

2005-09-20 Thread Mendelsohn, Michael
Seems very interesting, but can you change the value of a prop of an uninstantiated script? So for example, instances of a script can each refer to 'me.script.propertyName', and they all therefore have access to that same property, essentially a 'static variable'-esque property. [To remove

lingo-l Dir -- Flash communication (static)

2005-09-19 Thread Mendelsohn, Michael
Hi list... It seems to me that if you have a static variable in an external class in a Flash swf, that property is not recognized by Director. Can anyone else confirm? For instance, I have a swf with a variable _root.gTools (an instance of class theTools with a static property pTrack). In

RE: lingo-l Dir -- Flash communication (static)

2005-09-19 Thread Mendelsohn, Michael
Hi Tom... Ok, but can you use Lingo/JS to access pTrack regardless of the OI issue? I'm just trying to sort out if this is a OI display bug or if this is something more generic that's preventing even code-based access as well. Thanks for replying. Seemingly not. I'm testing this scenario in

RE: RE: lingo-l Dir -- Flash communication (static)

2005-09-19 Thread Mendelsohn, Michael
Yes, Buzz. That's how static things operate. I read the AS2.0 book by Colin Moock that explains it. Actually, I really, really like the static attribute and hope it may find its way into lingo at some point. I've found it to be quite useful. In that book, it explains that referencing a static

RE: lingo-l OT: javascript/CSS question

2005-09-09 Thread Mendelsohn, Michael
Thanks Chuck. That link doesn't seem to work. Oh well. [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 lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and

RE: lingo-l OT: javascript/CSS question

2005-09-09 Thread Mendelsohn, Michael
Thanks for the resource, Tom. I just can't wait for the day when all the browsers have the same code. :-) I'm not holding my breath though. - MM [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

lingo-l Getting folders...

2005-07-27 Thread Mendelsohn, Michael
Hi list... [WinXP] I use the below buddy command to get a safe place to store data for the projector. I'm wondering if this registry key has been the same in previous versions of Windows, and will likely stay the same with Windows Vista, that is, if anyone has a crystal ball. (And if you do

RE: lingo-l Getting folders...

2005-07-27 Thread Mendelsohn, Michael
Thanks Daniel and Valentin. I noticed in Buddy Help under baSysFolder, there's a list of corresponding numbers/folders in the Windows Platform SDK. Where's that list available? Also, I'm wondering if there's a web page somewhere that lists common environment variables you can use in

RE: lingo-l Getting folders...

2005-07-27 Thread Mendelsohn, Michael
Excellent, Stephen. Thanks for the tip. - MM [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 lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with

RE: lingo-l xtra mui - #layoutStyle (#left, #centerH, #right) question

2005-06-24 Thread Mendelsohn, Michael
Hi Cole... I've seen what you're talking about where all the widgets align to the left. I've had plenty of success when the window #mode is set to #dialogUnit. - Michael M. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post

RE: lingo-l set/getpref in projector on locked down Windows systems?

2005-06-10 Thread Mendelsohn, Michael
Hi Cole... Our machines are as locked down as you can get, and I've been writing to this spot with a projector: -- XP, returns a path ALWAYS available to write to: C:\Documents and Settings\LocalService\Application Data theAppData =

RE: lingo-l baOpenFile quirk

2005-06-09 Thread Mendelsohn, Michael
Man, I'm stumped on this one. I made sure that the whole length of the paths and file names are about 80 characters in length, but some machines still get this file not found error. As baOpenFile is successfully opening the pdf document, I'm not quite sure what else to do besides suppress the

RE: lingo-l baOpenFile quirk

2005-06-09 Thread Mendelsohn, Michael
Thanks for the idea, Neil. I tried it, and unfortunately, the error still came up. The pdf isn't used anywhere else. Maybe if I use Acme Error-B-Gone, It'll go away. - MM Did you try this? f = your filepath baOpenFile( baShortFileName( f ) , normal ) Or maybe it's the PDF. Is it being

RE: lingo-l GPDL not holding values

2005-05-26 Thread Mendelsohn, Michael
Hi Buzz and Kraig... As always, thanks for responding. I figured it out. Something happened that I've never experienced before. In my GPDL, I had a #format of #string and instead of setting the #default value to , I set it to void. That ended up erasing all values throughout the GPDL dialog.

lingo-l GPDL not holding values

2005-05-25 Thread Mendelsohn, Michael
Hi list... I'm stumped - my getPropertyDescriptionList values aren't being held. I drop the behavior on the sprite, set my values in the GPDL, and then in the behavior panel, the values are gone. I've looked over the code again and again. What silly obvious thing am I overlooking? Thanks, -

RE: lingo-l Open pdf to specific page

2005-05-19 Thread Mendelsohn, Michael
Forgive me list, I figured it out. I had the params coming after the file, but the params need to come after the app. RIGHT: theApp /A page=8 thePath WRONG: theApp thePath /A page=8 I would have checked the archives, but it seems like Lingo-L search archives isn't working. Oh well. Have a

lingo-l Member.erase()

2005-04-19 Thread Mendelsohn, Michael
Hi all you Adobe Director fans... Documentation under erase() method states: For best results, use this method during authoring and not in projectors. Using this method in projectors may cause memory problems. My question is, what kind of memory problems in the projector, and is it always fatal?

RE: lingo-l Member.erase()

2005-04-19 Thread Mendelsohn, Michael
Thanks, Buzz (and Alexx). That's sort of what I've decided to. I've got a placeholder bitmap that I'm just changing the image of. If you really need to do it, working within an external castLib using saveCastLib periodically may clean up the issues. Regards, - Michael M. [To remove

RE: lingo-l Member.erase()

2005-04-19 Thread Mendelsohn, Michael
Thanks, Buzz! That's a great tip. - MM If you use importFileInto repeatedly, that will chew up memory in the same way. use 'set the filename' (or the modern syntax) for better memory management [To remove yourself from this list, or to change to digest mode, go to

RE: lingo-l RE: Buddy API Help!

2005-04-13 Thread Mendelsohn, Michael
Side note to this post: I recently did a project that sounds similar to this. One caveat: the users of my DVD-ROM that copies files sometimes copy a PowerPoint file with linked videos. In a nutshell, be sure that files with linked assets that are copied from the disc, whatever type of files they

lingo-l SES 10 questions

2005-04-08 Thread Mendelsohn, Michael
Hi all... I'm updating a project to (scriptExecutionStyle = 10), and I'm wondering a few things: 1. Why has (the floatPrecision) not been updated to (_movie.floatPrecision)? 2. Does any subtle difference exist between (the stage) and _movie.stage? 3. Is there an SES10 equivalent to (the

RE: lingo-l newObject and mouse wheel

2005-04-06 Thread Mendelsohn, Michael
unfortunately mouseWheel didn't work at all. Oh well. Thanks anyway, Valentin. I think I'll note that on the wish list... - Michael M. [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

lingo-l newObject and mouse wheel

2005-04-05 Thread Mendelsohn, Michael
Hi list... How's everyone? [PC: Dir Flash MX2004] In Flash, there's a Mouse object, where you can attach a mouse listener with an onMouseWheel handler to do something when the user moves the mousewheel. Nifty, so I thought I'd try to apply that through lingo using a global newObject.

RE: lingo-l Achieving luminosity mode with inks SOLVED

2005-03-17 Thread Mendelsohn, Michael
Hi Arthur... I have tried and tried to make this work and I cannot. Do you have a small director file that does this that you can send me so that I can study it. Luckily, I caught your email to me, as it got filtered into Lingo-L! The entire behavior is below, and it gets attached to a 1-bit

RE: lingo-l baOpenFile and baFindDrive

2005-03-09 Thread Mendelsohn, Michael
Thanks for the idea Stephen. I might have to go with that because I can't seem to get baFindDrive working. - MM what does a bafileexist() return I wonder... Stephen Mendelsohn, Michael wrote the following on 3/9/2005 8:55 AM: Hi list... I'm opening PDFs from a CD using baOpenFile

RE: lingo-l baOpenFile and baFindDrive

2005-03-09 Thread Mendelsohn, Michael
to go with that because I can't seem to get baFindDrive working. - MM what does a bafileexist() return I wonder... Stephen Mendelsohn, Michael wrote the following on 3/9/2005 8:55 AM: Hi list... I'm opening PDFs from a CD using baOpenFile. Simple enough, but occasionally, the file

lingo-l OT: Flashcoders post

2005-02-25 Thread Mendelsohn, Michael
It seems the Yahoo toolbar isn't popular with the Flashers either (as seen in a post: RE: [Flashcoders] [off-topic] Yahoo Toolbar bundle with Flash). - MM [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,

lingo-l Simple MUI question

2005-01-07 Thread Mendelsohn, Michael
Hi list... Just curious, what is the purpose of the MUI xtra's #windowBegin and #windowEnd widgets? They don't seem necessary. thanks, Michael M. [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

RE: lingo-l Simple MUI question

2005-01-07 Thread Mendelsohn, Michael
Thanks for responding Sean. I've got that chapter in a three-ring binder myself. Despite what Bruce wrote, I have created plenty of MUIs before *without* those two widgets, and the dialogs have always worked fine anyway. So I was just wondering what the deal was. - Michael M. [To remove

lingo-l Achieving luminosity mode with inks

2004-12-29 Thread Mendelsohn, Michael
Hi list... I'm working on some imaging lingo where I'm trying to convert a normal RGB/32 bit full color image into a colorized monochromatic version of it where only the photo's brightness values are preserved. Below are two ways I've been able to approach the effect I want, but neither is truly

RE: lingo-l Re: Achieving luminosity mode with inks

2004-12-29 Thread Mendelsohn, Michael
Hi Whit... Looks nice. One thing I'm a little iffy about in your code is that I understand setPixel and getPixel to be slow, so I usually avoid them. When you do a repeat within a repeat of each pixel going across each row, and then down, I'd think that would be slow on some machines, and the

lingo-l MUI #label attributes

2004-12-08 Thread Mendelsohn, Michael
Hi all... WINXP, MX2004 I'm putting together a MUI with a label (snippet of code below) that should have some bold larger text, but I can't get the attributes settings to take effect. Is it being hindered by Windows? My MUI's #mode is #dialogUnit -- does that make a difference? Also, the

RE: lingo-l OT: up one level

2004-12-03 Thread Mendelsohn, Michael
BRILLIANT -- THAT WORKED! INGENIOUS!! God bless this list. backspace? [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