lingo-l DIR -- FLASH comm problem...
Hi, I have a on the stage in Director two puppetsprites each containing a #flash-member; one of the sprites is a menu that depending on what item is clicke loads the acutal content #flash-member in the other sprite. I also have a handler that activates a certain page in the content #flash-member, this is done kinda like this: the menu #flash: function sendSomething(inVar) { getURL(getURL(event: getParamFromSub,\ + varChapter + \, \ + varPage + \) } triggers a frame-handler that recieves and takes care of the actions that needs to be done in Director; loads a new member into the sprite and so on and when that is done I want to send the avove varPage to the newly loaded content #flash member and direct it to the correct page, something like this: on setPage (whatPage) flaRoot = sprite(3).getVariable(_root,FALSE) flaRoot.gotoActivePage(whatPage) flaRoot = end Of couse there is a function in flash that recieves this and takes action according to conditions... NOW this works FINE as long as the functions gets triggered from a mouse click, but when I try to trigger the setPage-handler (whitout using the menu #flash function) by just triggering it from inside my Director-movie WITHOUT mouse-clicks it does not respond at all... except from when I first start the movie. Parts of the actual code is below... What I can not seem to understand is why the last flash-function gets triggered when the command comes from a mouse-click within the first flash, but not when I try to trigger it with just code... Anyone??? Please? HELP... //Kristian -- MENU #FLASH MEMBER - sends this... function setActiveSubLevel(var_subLevel,var_contentPage) { _root.collapseMenu1(); arrayMC_subName[var_subLevel].gotoAndStop(5); sendSubLink = (arrayMC_subLink[var_subLevel]); if (sendSubLink != ) { getURL(event: getParamFromSub,\ + sendSubLink + \, \ + var_contentPage + \); } } -- FRAME SCRIPT IN DIRECTOR RECIEVES AND PASSES ON... on getParamFromSub me, subMenuID, conPageID respondToParamFromSub(subMenuID, conPageID) end getParamFromSub -- ACTUAL HANDLER IN DIRECTOR TAKES CARE OF BUSINESS... on respondToParamFromSub(subSectionID, contentPageID) member(gContentMemberName gActiveMemberList.aTopItem gActiveMemberList.aSubMain).unload() gActiveMemberList.aSubMain = subSectionID gActiveMemberList.aSubSub = member(gContentMemberName gActiveMemberList.aTopItem subSectionID).preload() sprite(3).member = member(gContentMemberName gActiveMemberList.aTopItem subSectionID, contentCast) if (member(gContentMemberName gActiveMemberList.aTopItem subSectionID, contentCast).loaded) then flaSetActiveConPage(contentPageID) end if end -- DIRECTOR HANDLER THAT TALKS TO THE CONTENT #FLASH MEMBER on flaSetActiveConPage(conPage) updatestage flaRoot = sprite(3).getVariable(_root,FALSE) flaRoot.gotoActiveContentPage(conPage) flaRoot = end -- FUNCTION THAT RECIEVES THE PARAM FROM DIRECTOR AND GOES TO THE FRAME function gotoActiveContentPage(pageID){ for (i = 0; i arr_getPageID.length; i++) { if ((arr_getPageID[i] == pageID)) { MC_ch10.gotoAndStop(arr_getPageNum[i]); } } } [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 dynamic text fields, how-to...
That's exactly what I was talking about earlier. Erasing members at runtime leaves their memory unclaimable, so you get bloated files. Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 cell: 859/608-9194 - Original Message - From: Daniel Nelson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 6:06 PM Subject: Re: lingo-l dynamic text fields, how-to... Charlie Fiskeaux II wrote: Members can be deleted dynamically during runtime, with member(x).erase(). From the docs: For best results, use this command during authoring and not in projectors, which can cause memory problems. 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!] [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 MediaPlayer Xtra?
Hello, Has any one used; MediaPlayer Xtra? Does this work reliably when playing back mpg files? I need to play mpg-1 files in director on computers as old as Windows 98 98ME. I have tried other xtras and had system error problems on play back. Any feedback would be greatly appreciated. Thank you Tom [EMAIL PROTECTED] [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 dynamic text fields, how-to...
Well, thinking of it that way you are right, maybe it´s not a lgitch after all, ok, but you must aree that is very annoying whrn you want four texts onscreen and just have to creae four different members just to put a text beside a picture or something like that, but youre right when you say that keeping track of texts is easier with one way objects. - Original Message - From: Daniel Nelson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 5:37 PM Subject: Re: lingo-l dynamic text fields, how-to... Isn´t it annoying when you find out that something is not working corretly just when you are deep inside coding and have done most of it, and it is just (at least in this case) from some malicious glitch in Director. This is not a glitch. It is very beneficial to be able to access and control the text of a field or text member without knowing what sprite it is in. If each sprite used the same member, you'd have to hard code sprite references to gain access over those text members, which would be miserable software development practice. 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!] [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 dynamic text fields, how-to...
On Thursday, Aug 28, 2003, at 09:21 Pacific/Auckland, Diego Landro [EMAIL PROTECTED] wrote: The problem with text (or fields for that matter) members is that you can´t change the text within the sprite without affecting the member itself. It does not work for text or fields as it does for shapes. With shapes you can create different sprites (instances of the original object if you´re familiar with OOP), but it is no good with text. This is exactly the same for text, shapes, bitmaps, etc. If you put several copies of a text cast member on the stage i.e. create several sprites as intances of the same cast member, changes to the contents (text) of the cast member will be reflected in all instances (sprites) of that cast member. If you create a red ball in the paint window, create several instances of the red ball as sprites on the stage and then edit the red ball in the paint window, all intances (sprites) of the paint cast member will change to reflect the edit. The written text is the contents of the text cast member, just as the red ball is the contents of the bitmap cast member. A sprite is an instance of a cast member. Alter the cast member and all instances will change to reflect that alteration. This is the same in Flash -- create an instance from a symbol and then change the symbol. All instances will change. Tony Bray I came into this world with nothing. Fortunately I have still got most of it left. [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 playing wmv files
Hi List, I need to play a number wmv files (audio and video) as part of the CD content. This I have successfully done. I have experimented with 2 xtras but both have their own problems. 1. xMedia xtra from dvelectric - I am unable to set the video position using lingo. The moment I set the video position, the entire video freezes. 2. Streaming Media Xtra from Tabuleiro - This xtra seems to be good except that the audio breaks. Any thoughts will be highly appreciated. Thanks and Regards, Anand Ravi [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 deleting from a text file with fileIO
Original Message - From: Daniel Nelson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 10:33 PM Subject: Re: lingo-l deleting from a text file with fileIO Oops. Thanks for correcting me. Regards, Daniel Kerry Thompson wrote: Don't delete and create again, just open in write mode (or read/write) and start writing with the file pointer at 0. Actually, that won't shorten the file. It will write the new stuff, and leave old stuff in the rest of the file. You need to delete it and write it again. It's a known issue with fileIO. I don't have time to look up the call, but explicitly delete it before you try to create it. You can use the 'delete' method of the fileio xtra to explicitly delete the file. Eg: delete(myObj) [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 DIR -- FLASH comm problem...
Hi! On an earlier project, I had to integrate flash and director. From director, I set the value of a specific variable to a predefined value using the setvariable command. In flash I had a movieclip that would process the values of the specific variable and take appropriate action accordingly. This may not be the best soln. but it worked for me and my client was happy with the performance. Hope this helps. Regards, Anand Ravi [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 deleting from a text file with fileIO -is this a bug ?
Hi again, right it simply wasn't working for me so i've eventually stripped it down to what i see is causing the problem.Can anyone offer an explanation for the following. frame script on frame 2 on exitFrame me set schedulefile =new(xtra fileio) createFile(schedulefile, tempschedule.txt) filestatus = status(schedulefile) alert schedulefile.error(filestatus) openFile(schedulefile, tempschedule.txt, 0) closeFile(schedulefile) set schedulefile=0 set schedulefile =new(xtra fileio) openFile(schedulefile, tempschedule.txt, 0) delete(schedulefile) closeFile(schedulefile) set schedulefile=0 end I'm not sure what you're trying to do. This script creates a file, then deletes it without ever writing or reading anything. What are you trying to do and what errors are you getting? Sorry if that was in there some place, but I couldn't tell from your post. Try again, and clearly state what you are trying to do, and exactly what is going wrong, and where. 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 deleting from a text file with fileIO -is this a bug ?
Try this order and see if it helps: on exitFrame me schedulefile=new(xtra fileio) openFile(schedulefile, tempschedule.txt, 0) delete(schedulefile) createFile(schedulefile, tempschedule.txt) filestatus=status(schedulefile) alert schedulefile.error(filestatus) delete(schedulefile) closeFile(schedulefile) set schedulefile=0 end If you're trying to create a text file or other file for another program to read, then stick with FileIO. But if you're just trying to save out data that will only be accessed by your program, then I recommend using the PropSave xtra rather than FileIO. It easily saves out Director's native data types and reads them back in (so there's no converting needed). Also, using FileXtra4 for your file open dialogs and such might work better than the MUI xtra. 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 DIR -- FLASH comm problem...
On an earlier project, I had to integrate flash and director. From director, I set the value of a specific variable to a predefined value using the setvariable command. In flash I had a movieclip that would process the values of the specific variable and take appropriate action accordingly. So basically intstead of calling a function, I set a variable in my #flash member and in the swf have an MC that checks (kind of enter frame) and if not empty do this or that and then call the function?? This may not be the best soln. but it worked for me and my client was happy with the performance. Any other similar solutions to the problem?? Thanks //Kristian Hope this helps. Regards, Anand Ravi [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 playing wmv files
hi anand, you could check MediaPlayer Xtra from http://www.starsoftmultimedia.com/ you might also try to use the WindowsMediaPlayer directly as ActiveX-Control without an xtra. regards, valentin Anand Ravi wrote: Hi List, I need to play a number wmv files (audio and video) as part of the CD content. This I have successfully done. I have experimented with 2 xtras but both have their own problems. 1. xMedia xtra from dvelectric - I am unable to set the video position using lingo. The moment I set the video position, the entire video freezes. 2. Streaming Media Xtra from Tabuleiro - This xtra seems to be good except that the audio breaks. Any thoughts will be highly appreciated. Thanks and Regards, Anand Ravi [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 playing wmv files
I think Tab mentioned at one point that Penworks did one as well. May want to check the archives or the table of products at updatestage.com ~Mathew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Valentin Schmidt Sent: Thursday, August 28, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: Re: lingo-l playing wmv files hi anand, you could check MediaPlayer Xtra from http://www.starsoftmultimedia.com/ you might also try to use the WindowsMediaPlayer directly as ActiveX-Control without an xtra. regards, valentin Anand Ravi wrote: Hi List, I need to play a number wmv files (audio and video) as part of the CD content. This I have successfully done. I have experimented with 2 xtras but both have their own problems. 1. xMedia xtra from dvelectric - I am unable to set the video position using lingo. The moment I set the video position, the entire video freezes. 2. Streaming Media Xtra from Tabuleiro - This xtra seems to be good except that the audio breaks. Any thoughts will be highly appreciated. Thanks and Regards, Anand Ravi [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!]
lingo-l re deleting from a text file with fileIO -is this a bug ?
Hi again kerry - these scripts are there to show my problem, as you say a file should be created and then deleted so when the playhead returns to frame 2 after running the button script it should then do this again BUT if i have selected a file from a directory below the movies directory by either buddy api or Mui xtra ie gresult=the moviepath/somefolder/somefile , then fileIO returns 'file already exists' - try it for yourself and see if it happens to you. THe file does not exist we've deleted it , but it keeps telling me it does if i use either of the other two xtras in the way explained. thats my problem, hope that is clearer. Charles - the order change has no effect. I cant see either fileXtra4 or PropSave Xtra on macromedias xtra listing - where are they available ? cheers for your time Lee Blinco Multimedia Developer AVR Productions +44 (0)1462 819603 [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 re deleting from a text file with fileIO -is this a bug ?
kerry - these scripts are there to show my problem, as you say a file should be created and then deleted so when the playhead returns to frame 2 after running the button script it should then do this again BUT if i have selected a file from a directory below the movies directory by either buddy api or Mui xtra ie gresult=the moviepath/somefolder/somefile , then fileIO returns 'file already exists' Ok, that's clear. Charles was on the right track--you just need to close the file you just deleted. Try this: on exitFrame me schedulefile=new(xtra fileio) openFile(schedulefile, tempschedule.txt, 0) delete(schedulefile) closeFile(schedulefile) -- you need to close it createFile(schedulefile, tempschedule.txt) filestatus=status(schedulefile) alert schedulefile.error(filestatus) delete(schedulefile) closeFile(schedulefile) set schedulefile=0 end You might also want to use the global gresult you set in frame 10. E.g., openFile(schedulefile, gresult, 0) I cant see either fileXtra4 or PropSave Xtra on macromedias xtra listing - where are they available ? I haven't used the PropSave Xtra, but the fileXtra 4 is available from Kent Kersten at http://kblab.net/xtras/FileXtra4/. Remarkably, especially considering what a great Xtra it is, it's still free. 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 re deleting from a text file with fileIO -is this a bug ?
I think the PropSave Xtra is one of the least known yet most useful secrets in all Xtra-dom. Because it saves and reads your Director data straight to disk, there's almost no chance of data loss, plus it's quick and easy. It's located at http://pimz.com/?id=xtrassection=propsave 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!]
lingo-l Loading, unloading and memory.
Hi, just wondering if anyone know of any resource websites/articles regarding the loading of sprites and members (memory management) in Director. I am currently working on a project which uses a lot of external casts and members. Especially resources/articles regarding the use of #Flash members. Some of the questions I am looking for answers to are: Is it useful to unload a puppetSprite while it is stil on the stage (right before changing its member)? Can you unload a member in a puppet sprite before changing it? I am using #Flash members, but it seems that .preload and .loaded does not affect them, is this the case? (Found this out when I used the .percentStreamed) Well just looking for some info on how to handle loading, unloadin and memory in an effiecent way (not to wirte lines of code that does not do any good anyways) Tjipp //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 re deleting from a text file with fileIO -is this a bug ?
On Thursday, Aug 28, 2003, at 12:11 America/Chicago, Charlie Fiskeaux II wrote: I think the PropSave Xtra is one of the least known yet most useful secrets in all Xtra-dom. Yes, it's quite a useful tool... And at a great price! ;) It's located at http://pimz.com/?id=xtrassection=propsave 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!]