Re: detecting quicktime player
At 19:11 2003-09-02, matt johansson wrote: Good point! From your experience mark, which 3rd party xtra would be the best option for doing something like this? The one I've been using is Buddy API. At the time I purchased it, it was the easiest to use since it didn't require digging around in the Registry (QT2 and QT3+ can coincide on the same Windows system). You'll want to take a look at its features and compare them with the other similar Xtras to decide which is best for you. Particularly if you're doing cross-platform work. -- Mark A. Boyd Keep-On-Learnin' :) [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: Flash text box link not triggering Director behavior
Thanks, Mark. You wrote a very impressive article. I skimmed it but I'll try to read it more carefully when it's revised. Let us all know! I hate to say it, but I'm still super-stumped. I've tried every conceivable combination of asfunction, event, getURL, etc. entered into the hyperlink field for a link in a text box, but it just isn't passing on to Director. My latest miss is: asfunction:getURL("event: linkFromFlash(\"" + "http://www.boston.com"; + "\""); The behavior attached to the Flash sprite has a handler called linkFromFlash which should open a browser window. It sort of seems that escaped characters choke it for some reason. Is there anyone out there reading this who has had this issue? 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 [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: using an non standard shape as a button
It's not always true that what's invisible to the eye is also invisible to mouse events. It's true with vectors, but not with images. Even with the matte ink applied to a 32-bit image, there's still the alpha slider which lets you control which levels of partial transparency are opaque and which levels are transparent. Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 cell: 859/608-9194 - Original Message - From: "Ron Woodland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 02, 2003 6:34 PM Subject: Re: using an non standard shape as a button > Is a vector star or a pixel image? I assume you want the mouse events > to work only within the boundaries of the star. It's a non-issue when > using a vector-based non-rectangular shape. You can draw the star in > Director using its vector drawing tools, but I would suggest > Illustrator 10 to create as fancy a star as you want (even with a > soft-edged drop shadow), then export it as a SWF file. It works very, > very, very well. Try it. > > Pixel images always exist as a rectangle, but it's not hard to limit > the mouse events to the star part. With a white, black, or web-legal > background color, the "matte" ink mode is the simplest way to go. The > downside is that you often get a jagged fringe around the shape from > the limited masking ability of that ink mode. You can also use an > alpha channel to mask the shape you want with smooth edges and no > fringe, but 32-bit images can be RAM and performance expensive. For > best appearance of a pixel-based star, I would suggest an 8-bit GIF > star image and an 8-bit grayscale mask in the very next slot of the > cast after the star (then set the star's ink mode to "mask"). Half the > memory of a 32-bit image, same result. > > Bottom line: the part that's invisible to the eye is also invisible to > mouse events. > > Ron Woodland > > > On Tuesday, September 2, 2003, at 02:37 PM, Jeremy P. McKay wrote: > > > Hi All, > > > > I want to use a star shape for mouse events? Is there any way to do > > this other than using a bunch of squares and rectangles? > > > > - > > Jeremy > > > > [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: Flash text box link not triggering Director behavior
Hmm, odd...I know I have done this before. Does your linkFromFlash handler have a me reference? Also, back at the beginning of the thread, you mentioned that linkFromFlash was on a frame script...I think event: in a flash member sends messages to the sprite that your particular flash movie lives in. At least that was the only way I ever used it. May be worth a try to see if it works --behavior script on flash sprite on linkFromFlash me theURL --do stuff end HTH, ~Mathew > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Mendelsohn, Michael > Sent: Wednesday, September 03, 2003 9:55 AM > To: [EMAIL PROTECTED] > Subject: RE: Flash text box link not triggering > Director behavior > > > Thanks, Mark. You wrote a very impressive article. I skimmed it but > I'll try to read it more carefully when it's revised. Let us > all know! > > > I hate to say it, but I'm still super-stumped. I've tried every > conceivable combination of asfunction, event, getURL, etc. > entered into > the hyperlink field for a link in a text box, but it just > isn't passing > on to Director. My latest miss is: > asfunction:getURL("event: linkFromFlash(\"" + > "http://www.boston.com"; + > "\""); > > The behavior attached to > the Flash sprite has a handler called > linkFromFlash which should open a browser window. It sort of > seems that > escaped characters choke it for some reason. Is there anyone > out there > reading this who has had this issue? > > 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 [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: Flash text box link not triggering Director behavior
> To call the behavior attached to the Macromedia Flash sprite, > use the following syntax: > > > getURL("Event:myDirectorFunction, \"myParameter\"") > > > In Director, use: > on myDirectorFunction me, param1 > put "param1 = " & param1 > end myDirectorFunction Mark, I've used this technique a lot, and I like it. I have found that I sometimes need to run the Flash sprite in lock step with the Director movie, especially if the Director movie is code-heavy. We had crash bugs on one of my projects when the Flash sprite wasn't lock step. Admittedly, that project had a couple thousand lines of code, and up to a couple dozen objects instantiated at any one time. Apparently, when Flash calls the Director handler, it executes immediately, which can have a disastrous effect if you have other code executing (especially if the other code is in the object the Flash sprite calls). Just something to watch for. 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: Flash text box link not triggering Director behavior
Hi Mathew, Odd indeed! Yes, my linkFromFlash handler has a me reference. And, it was someone else chiming in to the thread who said *theirs* was on a frame script. My call from flash to lingo is in the flash text box as a hyperlink. I've done event: and lingo: many times but all to no avail. Below is the lingo sitting in a behavior on the flash sprite. One of the problems is that when I type some asfunction string (or something like it?!?) in that link field in Flash, the link doesn't even show up in the text when it's playing. What would you think of that? - Michael M. on linkFromFlash(me, whatSite) put "TEST!" End __ Hmm, odd...I know I have done this before. Does your linkFromFlash handler have a me reference? Also, back at the beginning of the thread, you mentioned that linkFromFlash was on a frame script...I think event: in a flash member sends messages to the sprite that your particular flash movie lives in. At least that was the only way I ever used it. May be worth a try to see if it works --behavior script on flash sprite on linkFromFlash me theURL --do stuff end [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!]
spontaneous selection
hello list I don't remember the workaround to avoid the spontaneous selection of a text member after we click on the stage previously in the background. thanks. jean-louis valero [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: cpu usage
On Tuesday, Sep 2, 2003, at 18:55 America/Chicago, Tony Åström wrote: I check the topic on Direct-L and be back if I find an solution. If the program does not have to update its stage with regularity you can use 'pause' instead of 'go the frame'. If it does have to update its stage you might be able to use a combination of 'pause' and timeout objects. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [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: detecting quicktime player
On Tuesday, Sep 2, 2003, at 17:10 America/Chicago, matt johansson wrote: Cath has shown the 'quickTimeVersion', whats the other method? There's quickTimePresent, but that only tells you whether QT is installed or not (true/false), not the version. I was being a little tongue-in-cheek there and implying you could look up 'quicktImeVersion' in the docs. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [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: blinking QTVR
Sorry, I came in late and repeated some of Mathews advice. To rule out your other scripts as being a problem, why not simply try the QTVR out in an empty movie with only a go the frame - script? If you still have blinking with DTS on, look up the QTVR codec in QT Pro. >Maybe something else is fighting with the QT to be Direct To Stage. Do you have any other sprites that could be DTS in addition to the DTS one? ~Mathew I didn't understand what you asking me, but: - all the other sprites are BITMAPS - there is a lot of prepareframe handlers on other sprites - some of the other sprites are generated thorougt imagin lingo this is the one things that I know that can be causing the problem... Luiz [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: blinking QTVR
I have a QTVR sprite that doesn't quit blinking (its visibility) when its being used by the user (tilted, zoomed, pan, etc/...) it doesn't happen when it is NOT set as a direct to stage sprite.. what could my movie be doing that causes that strange behavior??? Not much, in my experience. But the non-direct-to-stage stability is strange. 1. What scripts are active on the frame you are looping on? 2. Is there any Flash sprite on the same frame as the QTVR? In that case, are they overlapping one another? If so you will get blinking unless you turn off direct to stage for one of the sprite members. No two objects with direct to stage activated can overlap each other on stage - not two QTVRs or two Flashes either. 3. What codec are you using for the QTVR? Photo JPEG is a good QTVR codec (although there may be better ones), Sorenson is not very good for QTVR. Luiz [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: blinking QTVR
Hey Mats: hehe, how stupid am I for not trying the QTVR on a blank movie? It DOES blink, even in a blank movie... :// the codec used is: CINEPAK (it is an old QTVR) can someone advice me a 'good' codec to use these days with standard QT6 install?? PS: it does blink even on Quicktime player 6 Luiz [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: detecting quicktime player
It's my remembrance that one needs to verify 'the quicktimePresent' before trying 'the quickTimeVersion' or else you can get a Lingo error since the QT Xtra can't load if QT's not installed (the version detection method isn't accessible since resides within the Xtra). Of course the final answer is to try it. hth -Buzz At 12:17 PM -0500 9/3/03, you wrote: On Tuesday, Sep 2, 2003, at 17:10 America/Chicago, matt johansson wrote: Cath has shown the 'quickTimeVersion', whats the other method? There's quickTimePresent, but that only tells you whether QT is installed or not (true/false), not the version. I was being a little tongue-in-cheek there and implying you could look up 'quicktImeVersion' in the docs. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [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: using an non standard shape as a button (USED VECTOR) thanks
Thanks to all. I ended up using a png file. Everything I am working with is coming from flash, so a vector file was the obvious solution, that I did not see. [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: detecting quicktime player
I think quicktimeversion() returns 0 or Void if there is no quicktime. Like you say, try it and see. Cath At 13:16 3/9/2003 -0700, you wrote: It's my remembrance that one needs to verify 'the quicktimePresent' before trying 'the quickTimeVersion' or else you can get a Lingo error since the QT Xtra can't load if QT's not installed (the version detection method isn't accessible since resides within the Xtra). Of course the final answer is to try it. hth -Buzz At 12:17 PM -0500 9/3/03, you wrote: On Tuesday, Sep 2, 2003, at 17:10 America/Chicago, matt johansson wrote: Cath has shown the 'quickTimeVersion', whats the other method? There's quickTimePresent, but that only tells you whether QT is installed or not (true/false), not the version. I was being a little tongue-in-cheek there and implying you could look up 'quicktImeVersion' in the docs. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [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: detecting quicktime player
Cath is right. I use the version checking command in my stub project to verify presence and version in one step, then if QuickTime is not installed or it's an older version, I give the viewer the option of quitting or installing the latest version (standalone installer is conveniently present on the CD-ROM) which I launch for them from within the projector. Unfortunately, on the Mac at least, that requires a restart after installation, so the process isn't quite as seamless as I'd like. Ron Woodland On Wednesday, September 3, 2003, at 03:35 PM, Cath Sample wrote: I think quicktimeversion() returns 0 or Void if there is no quicktime. Like you say, try it and see. Cath At 13:16 3/9/2003 -0700, you wrote: It's my remembrance that one needs to verify 'the quicktimePresent' before trying 'the quickTimeVersion' or else you can get a Lingo error since the QT Xtra can't load if QT's not installed (the version detection method isn't accessible since resides within the Xtra). Of course the final answer is to try it. hth -Buzz At 12:17 PM -0500 9/3/03, you wrote: On Tuesday, Sep 2, 2003, at 17:10 America/Chicago, matt johansson wrote: Cath has shown the 'quickTimeVersion', whats the other method? There's quickTimePresent, but that only tells you whether QT is installed or not (true/false), not the version. I was being a little tongue-in-cheek there and implying you could look up 'quicktImeVersion' in the docs. [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: Flash text box link not triggering Director behavior
Hi My revised article is back online in the Director Dev center with all the code revisions etc.. back in place. It can be found at: http://www.macromedia.com/devnet/mx/director/articles/flash_in_director.html Okay, that aside, if the goal is to simply to handle a standard link within a Flash textfield and reroute it to a browser or for post processing in Director then the following methodology will handle it. There is really no need for fancy getURL event/lingo or asfunction to do this. I forwarded this example to Michael earlier today from my Hotmail account but I'm not sure whether he got it or not. Here goes: In the hyperlink field of the flash property inspector, get rid of all the asfunction, getUrl stuff and simply replace it with your http://www.boston.com link as if you were working in Flash and not going to be running it in Director. ie. In your textfield, select the text that is to act as a link. Remove the getURL and or asfunction stuff and replace it with your standard html link reference for boston.com. Test your Flash movie standalone and see if your link works.. it should, or at least it should do something. On my computer it opens a browser window and displays http://www.boston.com when running as a test movie from Flash. Cool hopefully. that works just as planned. Next step: Import the movie back into Director, for the heck of it, do it to a brand new Director movie just so that it doesn't pick up any crud and keeps things simple. Next place it in sprite channel 1 and then add a go to frame script in the frame channel for good measure. Next right click on the flash sprite, choose script to generate a new behavior. Replace the default on mouseUp handler with the following: on getURL(me, sURL) put sURL if (sURL <> "") then gotoNetPage(sURL,"_blank") end if end getURL and then test the Director movie. Click on the link should open a new browser window and display your boston.com url. Simple quick and dirty. No messy crap to deal with. Make sure your network preferences are set up to launch a browser window when needed (in case like me you don't have that still set to the default values). Sincerely Mark R. Jonkman [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!]