[Flashcoders] Mustek PMP 638 Flash 2.1 problem / experience / references ?
hello, According to Mustek the PMP 638 support Flash 2.1, but i can always only see the first frame as fixed-image. I am looking for an working example or any references. Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash and 3d asset options
I don't think it's a papervision game or 3D game at all. You have 3D looking graphics with movieclips animated over it. They may be 3D models or artist drawn cycles. I don't have experience of the Swift3D 3D studio exporter, but I know of the Lightwave one. It doesn't export a 3D model, it exports a 3D animation as a Flash movie. You can do this as a sequence of poses, or an animated movie. Either way, within Flash you won't be dealing with 3D models just Flash .swf assets. Paul - Original Message - From: Shannon Romano [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 08, 2008 11:44 PM Subject: [Flashcoders] flash and 3d asset options Hi List I came across this site the other day while researching 3d games and possibilities with Flash: www.nbc.com/american_gladiators/gameshttp://www.nbc.com/american_gladiators/games I don't think it's a Papervision game although I could be wrong. Rather, it looks to me some 3d models were exported out for use within Flash. Does anyone have experience with this or give me your opinion please? I have looked into the Swift3D tools (http://www.erain.com/products/Plug-ins/ ) ( after extensive Google trolling ) for exporting from 3DStudio Max but I don't have an first-hand knowledge of Swift Tools. If anyone has used it I would love to hear how well it works. Thanks for your time, -shannon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash and 3d asset options
- Original Message - From: Paul Andrews [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 09, 2008 1:53 PM Subject: Re: [Flashcoders] flash and 3d asset options I don't think it's a papervision game or 3D game at all. You have 3D looking graphics with movieclips animated over it. They may be 3D models or artist drawn cycles. I don't have experience of the Swift3D 3D studio exporter, but I know of the Lightwave one. It doesn't export a 3D model, it exports a 3D animation as a Flash movie. You can do this as a sequence of poses, or an animated movie. Either way, within Flash you won't be dealing with 3D models just Flash .swf assets. Just to elaborate a bit more.. Take the pyramid game. When the player moves left in the game the player movieclip is playing a sequence of frames showing the character moving left as the character movieclip is moved left. When the up arrow is used, the character switches the frames being played to indicate the character is climbing and the movieclip is moved upwards. It's well done on the site but standard game/cartoon development practice without manipulation of a true 3D object. The pyramid they climb is a 2D image (of a 3D pyramid) that's moved according to movement of the player. Paul - Original Message - From: Shannon Romano [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 08, 2008 11:44 PM Subject: [Flashcoders] flash and 3d asset options Hi List I came across this site the other day while researching 3d games and possibilities with Flash: www.nbc.com/american_gladiators/gameshttp://www.nbc.com/american_gladiators/games I don't think it's a Papervision game although I could be wrong. Rather, it looks to me some 3d models were exported out for use within Flash. Does anyone have experience with this or give me your opinion please? I have looked into the Swift3D tools (http://www.erain.com/products/Plug-ins/ ) ( after extensive Google trolling ) for exporting from 3DStudio Max but I don't have an first-hand knowledge of Swift Tools. If anyone has used it I would love to hear how well it works. Thanks for your time, -shannon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash and 3d asset options
If you right click and zoom in you can see that these games are all pre-rendered 3D bitmaps. I've used Swift3D, but prefer plugins for real 3D applications, such as Illustrate! for 3DS Max. Discreet used to sell a product called Plasma too, which was kinda 3D Studio Max lite with native support for SWF output, which was great, especially for 3DS users! Pete ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: AVM1Movie unload and static variables
In fact this problem applies not only for AS2/AS3 interop. How can I unload MovieClips and thus unload static variables to have a fresh startover, when loading the same MovieClip later again? Matthias On Jan 9, 2008 3:32 PM, Matthias Dittgen [EMAIL PROTECTED] wrote: Hello Flashcodes, I isolated a recent problem I had using AVM1Movies. I have build this everywhere mentioned Proxy for old Flash content (Flash8 and before), that enables my AS3 Application to communicate with the loaded AS2 based MovieClip using LocalConnection. Now I load an old Movie for the first time into an own container within my proxy AVM1Movie and I lockroot it, too. Later the Movie gets unloaded and sometime later the Movie ist loaded again to a new container. The second time, the Movie does NOT work as expected, because static variables from its former incarnation are still set. Questions: Why are these variables still there and not deleted by garbage collection or the like? How can I have it work? Is there more than lockroot, I can do? Any help or comment on this is welcome. Matthias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Beginning of String matching algorithm?
BTW I'm using AS 2. --- Steven Loe [EMAIL PROTECTED] wrote: Subject: [Flashcoders] Beginning of String matching algorithm? I have a plan, but I suspect that it not a great approach: I have an alpha sorted xml file containing hundreds of titles. I'd like to create an array of items whose beginning contains my search string. So if the search string is Ba and this is my list, I'd want the 3rd and 4th items only: 10 Things I Hate About You Agent Cody Banks Baby Story, A Back to the Future Yoga for Back Care Zona de Batalla My plan is: Do a binary search on the keyCode of the first letter, get all of the items that start with B. Then, use substring to see which of these items start with Ba and add these to my array. What do you think? Is there a better way to approach this? Thanks for your time Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Compile .fla from Flex?
How can I unregister from group? If you mean unsubscribe, use the URL at the bottom of every Flashcoders message: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Compile .fla from Flex?
Thanks Jason, Your process is exactly what I am trying to do. Looks like this is a good reason for me how to figure out Ant. On Jan 8, 2008 6:43 PM, Jason M Horwitz [EMAIL PROTECTED] wrote: You could do this with Ant and JSFL - check out the buildfile and safeTestMovie.jsfl from my FDTKit project: http://fdtkit.googlecode.com/svn/trunk/build.xml http://fdtkit.googlecode.com/svn/trunk/bin/scripts/SafeTestMovie.jsfl I think the test_movie ant target does pretty much what you're looking for: automates switching from Eclipse (or FlexBuilder) to Flash for compiling (in this case whatever the current/open fla is). What I do is have Eclipse/FDT/Flex open in one space (assuming OS X), and Flash with my fla in another and simply do a good old fashioned Cmd+Enter (which I map the default ant task keybinding in eclipse). The result is a nice test movie which switches focus/spaces screen from eclipse to flash and does a preview, a simple Cmd+W, Cmd+Tab closes the preview and returns me to where I left off in Eclipse. Hope this helps, ... . jason m horwitz // Sekati On Jan 8, 2008 3:47 PM, Jason Van Cleave [EMAIL PROTECTED] wrote: I know FDT can do this but I am having issues with the new version and AS3. Has anyone found a way of targeting a .fla from a Flex Builder Actionscript Project? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] capture and email
If its AS2 you could create an array of rgb values captured from a ButeArray and send it via AMF also. Leandro Ferreira On 1/8/08, Matthew James Poole [EMAIL PROTECTED] wrote: If its AS3 You could use the JPEGEncoder class to send a ByteArray over remoting using AMF3 and create the jpg serevr side and add it to an attachment of an email you send or embed it... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bo Parker Sent: 08 January 2008 17:26 To: Flashcoders mailing list Subject: [Flashcoders] capture and email I have an application that allows people to build, and customize buildings. The client would like the functionality available to screen capture their final building and attach to an email through a flash based email form. The email form is no problem but 1) Im not sure how to is best to capture what they have built on screen 2) not sure how to take that capture and attach the email. Can you guys possibly steer me in the right direction? Thanks, -- Bo Parker, AIGA Bo Co. Design 650 W Vickery Suite 130 Fort Worth, Texas 76104 817.332.4700 phone 817.332.4710 facsimile www.rmcfw.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs. http://www.virtual-universe.net __ Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London NW6 6RJ Tel: +44 (0) 870 788 6000 Fax: +44 (0) 870 788 6689 Web:www.virtual-universe.net - CONFIDENTIALITY NOTICE This e-mail may contain information which is confidential and privileged. If you are not the named addressee of this e-mail, you may not copy or use it, or forward or otherwise disclose it to anyone else. If you have received this e-mail in error, please e-mail the sender by replying to this message and then fully delete it from your system. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Amplefuture Group. Amplefuture Group reserves the right to monitor e-mail communications from both external and internal sources for the purposes of ensuring correct and appropriate use of our communication equipment. __ This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs. http://www.virtual-universe.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Compile .fla from Flex?
My pleasure - if you need help just getting that up and running you might want to check out the Adding a Buildfile section of the FDTKit wiki: http://code.google.com/p/fdtkit/wiki/Documentation - even if you aren't interested in using the project it should help you get started with Ant (note the page is actually a bit dated as its from FDT 1.5 days). Best, jason m horwitz // Sekati On Jan 9, 2008 11:43 AM, Jason Van Cleave [EMAIL PROTECTED] wrote: Thanks Jason, Your process is exactly what I am trying to do. Looks like this is a good reason for me how to figure out Ant. On Jan 8, 2008 6:43 PM, Jason M Horwitz [EMAIL PROTECTED] wrote: You could do this with Ant and JSFL - check out the buildfile and safeTestMovie.jsfl from my FDTKit project: http://fdtkit.googlecode.com/svn/trunk/build.xml http://fdtkit.googlecode.com/svn/trunk/bin/scripts/SafeTestMovie.jsfl I think the test_movie ant target does pretty much what you're looking for: automates switching from Eclipse (or FlexBuilder) to Flash for compiling (in this case whatever the current/open fla is). What I do is have Eclipse/FDT/Flex open in one space (assuming OS X), and Flash with my fla in another and simply do a good old fashioned Cmd+Enter (which I map the default ant task keybinding in eclipse). The result is a nice test movie which switches focus/spaces screen from eclipse to flash and does a preview, a simple Cmd+W, Cmd+Tab closes the preview and returns me to where I left off in Eclipse. Hope this helps, ... . jason m horwitz // Sekati On Jan 8, 2008 3:47 PM, Jason Van Cleave [EMAIL PROTECTED] wrote: I know FDT can do this but I am having issues with the new version and AS3. Has anyone found a way of targeting a .fla from a Flex Builder Actionscript Project? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ::: : jason m horwitz // sekati llc // nyc + mke : [EMAIL PROTECTED] | [EMAIL PROTECTED] : http://sekati.com | http://cv.sekati.com : +1.414.455.4406 | +1.646.662.3331 : aim/skype: n0kati ::: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flash and 3d asset options
FYI - Swift3D now exports to Papervision, and provides the code for you, so you can easily do real 3D in Flash. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter B Sent: Wednesday, January 09, 2008 9:28 AM To: Flash Coders List Subject: Re: [Flashcoders] flash and 3d asset options If you right click and zoom in you can see that these games are all pre-rendered 3D bitmaps. I've used Swift3D, but prefer plugins for real 3D applications, such as Illustrate! for 3DS Max. Discreet used to sell a product called Plasma too, which was kinda 3D Studio Max lite with native support for SWF output, which was great, especially for 3DS users! Pete ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flash and 3d asset options
Yah, after looking a while longer I realized what they were doing with the movement of clips. Creating movieclips of a sequence of bitmaps will be pretty easy to use and manipulate it seems. I'll look into the Lightwave exporter you mentioned and the Illustrate! product that Pete mentioned. Thanks for your help! -s -Original Message- From: Paul Andrews [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 6:31 AM To: Flash Coders List Subject: Re: [Flashcoders] flash and 3d asset options - Original Message - From: Paul Andrews [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 09, 2008 1:53 PM Subject: Re: [Flashcoders] flash and 3d asset options I don't think it's a papervision game or 3D game at all. You have 3D looking graphics with movieclips animated over it. They may be 3D models or artist drawn cycles. I don't have experience of the Swift3D 3D studio exporter, but I know of the Lightwave one. It doesn't export a 3D model, it exports a 3D animation as a Flash movie. You can do this as a sequence of poses, or an animated movie. Either way, within Flash you won't be dealing with 3D models just Flash .swf assets. Just to elaborate a bit more.. Take the pyramid game. When the player moves left in the game the player movieclip is playing a sequence of frames showing the character moving left as the character movieclip is moved left. When the up arrow is used, the character switches the frames being played to indicate the character is climbing and the movieclip is moved upwards. It's well done on the site but standard game/cartoon development practice without manipulation of a true 3D object. The pyramid they climb is a 2D image (of a 3D pyramid) that's moved according to movement of the player. Paul - Original Message - From: Shannon Romano [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 08, 2008 11:44 PM Subject: [Flashcoders] flash and 3d asset options Hi List I came across this site the other day while researching 3d games and possibilities with Flash: www.nbc.com/american_gladiators/gameshttp://www.nbc.com/american_gladiators/games I don't think it's a Papervision game although I could be wrong. Rather, it looks to me some 3d models were exported out for use within Flash. Does anyone have experience with this or give me your opinion please? I have looked into the Swift3D tools (http://www.erain.com/products/Plug-ins/ ) ( after extensive Google trolling ) for exporting from 3DStudio Max but I don't have an first-hand knowledge of Swift Tools. If anyone has used it I would love to hear how well it works. Thanks for your time, -shannon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Compile .fla from Flex?
Yes, I saw went through it and got it going. I had some issues trying to find the ant tasks as I was looking for it under the run button menu but once I realized the external tools was only connected through the run menu I got it to work. Thanks for this, I'd wish I had found it earlier this year when I finally went all over to the Mac/Eclipse/FDT. There is a lot of good info up there. On Jan 9, 2008 2:53 PM, Jason M Horwitz [EMAIL PROTECTED] wrote: My pleasure - if you need help just getting that up and running you might want to check out the Adding a Buildfile section of the FDTKit wiki: http://code.google.com/p/fdtkit/wiki/Documentation - even if you aren't interested in using the project it should help you get started with Ant (note the page is actually a bit dated as its from FDT 1.5 days). Best, jason m horwitz // Sekati On Jan 9, 2008 11:43 AM, Jason Van Cleave [EMAIL PROTECTED] wrote: Thanks Jason, Your process is exactly what I am trying to do. Looks like this is a good reason for me how to figure out Ant. On Jan 8, 2008 6:43 PM, Jason M Horwitz [EMAIL PROTECTED] wrote: You could do this with Ant and JSFL - check out the buildfile and safeTestMovie.jsfl from my FDTKit project: http://fdtkit.googlecode.com/svn/trunk/build.xml http://fdtkit.googlecode.com/svn/trunk/bin/scripts/SafeTestMovie.jsfl I think the test_movie ant target does pretty much what you're looking for: automates switching from Eclipse (or FlexBuilder) to Flash for compiling (in this case whatever the current/open fla is). What I do is have Eclipse/FDT/Flex open in one space (assuming OS X), and Flash with my fla in another and simply do a good old fashioned Cmd+Enter (which I map the default ant task keybinding in eclipse). The result is a nice test movie which switches focus/spaces screen from eclipse to flash and does a preview, a simple Cmd+W, Cmd+Tab closes the preview and returns me to where I left off in Eclipse. Hope this helps, ... . jason m horwitz // Sekati On Jan 8, 2008 3:47 PM, Jason Van Cleave [EMAIL PROTECTED] wrote: I know FDT can do this but I am having issues with the new version and AS3. Has anyone found a way of targeting a .fla from a Flex Builder Actionscript Project? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ::: : jason m horwitz // sekati llc // nyc + mke : [EMAIL PROTECTED] | [EMAIL PROTECTED] : http://sekati.com | http://cv.sekati.com : +1.414.455.4406 | +1.646.662.3331 : aim/skype: n0kati ::: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Error 1120?
Would anyone be able to assist, and tell me why am I getting a 1120: Access of undefined property MathUtil. and a 1180: Call to a possibly undefined method MathUtil. error.. here is the code below.. import com.bigspaceship.util.math.*; myMathUtil:MathUtil = new MathUtil(); var num = MathUtil.getRandom(4,100); * package com.bigspaceship.util.math{ class MathUtil { private var min_num:int = 0 private var max_num:int = 0 public function MathUtil() { trace(lollolol); } static public function getRandom(min_num:int, max_num:int) { //return min_num + Math.floor(Math.random() * (max_num + 1 - min_num)); } static public function getRandomFloat(min_num:int, max_num:int) { //return (min_num + Math.random() * (max_num - min_num)); } static public function getCenterPoint(num1:int,num2:int) { //return (num1 - num2 )/ 2; } } } _ Make distant family not so distant with Windows Vista® + Windows Live™. http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1120?
You're attempting to access instance vars in a static method. Make min_num and max_num static. Also, you don't need to put a constructor in a static class. Also, you should follow common practice and put public before static when declaring functions and variables. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error 1120?
thanks so much for help me out but its not working still here is the updated code.. ** inside fla import com.bigspaceship.util.math.MathUtil; var num:Number = MathUtil.getRandom(4,100); trace(num) * Class file below package com.bigspaceship.util.math{ class MathUtil { static var min_num:Number; static var max_num:Number; static var num1:Number; static var num2:Number; public static function getRandom(min_num, max_num) { //return min_num + Math.floor(Math.random() * (max_num + 1 - min_num)); } public static function getRandomFloat(min_num, max_num) { //return (min_num + Math.random() * (max_num - min_num)); } public static function getCenterPoint(num1,num2) { //return (num1 - num2 )/ 2; } } } Date: Wed, 9 Jan 2008 18:35:18 -0800 From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Error 1120? You're attempting to access instance vars in a static method. Make min_num and max_num static. Also, you don't need to put a constructor in a static class. Also, you should follow common practice and put public before static when declaring functions and variables. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Watch “Cause Effect,” a show about real people making a real difference. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1120?
Try : public class MathUtil { - James On Jan 9, 2008, at 10:00 PM, Dwayne Neckles wrote: thanks so much for help me out but its not working still here is the updated code.. ** inside fla import com.bigspaceship.util.math.MathUtil; var num:Number = MathUtil.getRandom(4,100); trace(num) * Class file below package com.bigspaceship.util.math{ class MathUtil { static var min_num:Number; static var max_num:Number; static var num1:Number; static var num2:Number; public static function getRandom(min_num, max_num) { //return min_num + Math.floor(Math.random() * (max_num + 1 - min_num)); } public static function getRandomFloat(min_num, max_num) { //return (min_num + Math.random() * (max_num - min_num)); } public static function getCenterPoint(num1,num2) { //return (num1 - num2 )/ 2; } } } Date: Wed, 9 Jan 2008 18:35:18 -0800 From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Error 1120? You're attempting to access instance vars in a static method. Make min_num and max_num static. Also, you don't need to put a constructor in a static class. Also, you should follow common practice and put public before static when declaring functions and variables. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Watch “Cause Effect,” a show about real people making a real difference. http://im.live.com/Messenger/IM/MTV/? source=text_watchcause___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders James Booth [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error 1120?
It worked.. Guys you have no idea how much I appreciate your assistance! Does that mean that brushing up on the basics of as3 should be in order? geez.. add public IS important! Thanks Everyone!! From: [EMAIL PROTECTED] Subject: Re: [Flashcoders] Error 1120? Date: Wed, 9 Jan 2008 23:21:55 -0500 To: flashcoders@chattyfig.figleaf.com Try : public class MathUtil { - James On Jan 9, 2008, at 10:00 PM, Dwayne Neckles wrote: thanks so much for help me out but its not working still here is the updated code.. ** inside fla import com.bigspaceship.util.math.MathUtil; var num:Number = MathUtil.getRandom(4,100); trace(num) * Class file below package com.bigspaceship.util.math{ class MathUtil { static var min_num:Number; static var max_num:Number; static var num1:Number; static var num2:Number; public static function getRandom(min_num, max_num) { //return min_num + Math.floor(Math.random() * (max_num + 1 - min_num)); } public static function getRandomFloat(min_num, max_num) { //return (min_num + Math.random() * (max_num - min_num)); } public static function getCenterPoint(num1,num2) { //return (num1 - num2 )/ 2; } } } Date: Wed, 9 Jan 2008 18:35:18 -0800 From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Error 1120? You're attempting to access instance vars in a static method. Make min_num and max_num static. Also, you don't need to put a constructor in a static class. Also, you should follow common practice and put public before static when declaring functions and variables. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Watch “Cause Effect,” a show about real people making a real difference. http://im.live.com/Messenger/IM/MTV/? source=text_watchcause___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders James Booth [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Put your friends on the big screen with Windows Vista® + Windows Live™. http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_012008___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: AVM1Movie unload and static variables
Hi, you might want to try deleting all your classes. It's a nasty trick however and who knows what you'll run into next time. Another option is: don't use singletons or finalize them before you exit your current application instance. Assuming all your classes are in a package org.dittgen, you could try delete _global.org.dittgen before loading the movie again. greetz JC On Jan 9, 2008 4:20 PM, Matthias Dittgen [EMAIL PROTECTED] wrote: In fact this problem applies not only for AS2/AS3 interop. How can I unload MovieClips and thus unload static variables to have a fresh startover, when loading the same MovieClip later again? Matthias On Jan 9, 2008 3:32 PM, Matthias Dittgen [EMAIL PROTECTED] wrote: Hello Flashcodes, I isolated a recent problem I had using AVM1Movies. I have build this everywhere mentioned Proxy for old Flash content (Flash8 and before), that enables my AS3 Application to communicate with the loaded AS2 based MovieClip using LocalConnection. Now I load an old Movie for the first time into an own container within my proxy AVM1Movie and I lockroot it, too. Later the Movie gets unloaded and sometime later the Movie ist loaded again to a new container. The second time, the Movie does NOT work as expected, because static variables from its former incarnation are still set. Questions: Why are these variables still there and not deleted by garbage collection or the like? How can I have it work? Is there more than lockroot, I can do? Any help or comment on this is welcome. Matthias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders