Hi Tom, Thanks for the answer, I realized afterwards that my question about 'all actionscript commands' was rather wide :P (Personally I'd rather do everything in Lingo as I prefer that anyway).
I'll try and give an example of a problem I have at the moment that I'm hoping will be solved with Director MX. I have a SWF file as a sprite, it has a graphic image and some text fields that are filled via some variables. Now these fields are a specific size as they are set between two graphics and I only want text to be allowed in the visible space between them, at the moment I do this by setting the character limit in the fields. That is all fine and everything works until you use the carriage return as the SWF counts it as one character eventually leading to a situation where the text would scroll in the visible field area (not talking about scrollbars here, just scrolling text), so I have some code that only allows the visible area to be filled with text regardless if it is all characters or carriage returns (sorry I don't have the code to hand otherwise I'd show you); but at the moment the code only works in Flash 6(MX) SWF files not Flash 5 SWF files. So once it is loaded as a director sprite the code stops working as I have to publish to Flash 5. So what I'm hoping is the new version of director will allow this MX actionscript to run as it uses string manipulation actionscript from the MX actionscript dictionary. I don't expect that the FScommands etc. would work in director just hoping that a lot of the internal processing like string manipulation does. Although I never thought about the components before, that really does open up the possibilities of using SWF's in Director. From your example and explanation I think it looks as if I will be able to do what I need with the new version, something both I and my client will be extremely happy about. Thanks for taking the time, I appreciate it. Peter. ----------- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Higgins Sent: Monday, November 25, 2002 6:25 PM To: '[EMAIL PROTECTED]' Subject: RE: <lingo-l> ANN: Director MX (SWF interaction) Peter, > I do have a quick question though. One thing I am desperate for on 2 > current projects is the ability to copy and paste text in to a SWF > sprite within a projector file. Will this now be possible easily with > MX? I am sure there is a work around at the moment if I look hard > enough, but I'm all for the easier route :P. There is no direct capability to do this but hopefully with the new easier access to objects (like a dynamic/editable text field on stage in your SWF) the work-around won't be too difficult. > Also I'm assuming that all the MX actionscript commands etc. will now > work happily within Director MX? I'm not sure exactly what you mean by this but I'm inclined to say that it's not correct. Saying "all the MX actionscript commands...will no work happily within Director MX" is a dicey statement. We don't support all ActionScript as an alternate syntax if that's what you meant. We do support access to a wide variety of Flash objects from Lingo, and once you've pulled an object reference you can then use its methods/properties as defined in ActionScript, but that's not the same as "all MX actionscript" in my head. Example: tMath = newObject("Math") put gMath.asin(-0.2328) -- -0.2350 Is that what you meant by your statement? If not can you be more precise as to what you meant as I'd be happy to provide more info as necessary. Cheers, Tom Higgins Product Specialist - Director Team Macromedia [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!]
