[Flashcoders] Accessing SVN from JSFL
Hi List I am hoping to create a custom Flash panel which can interface with Subversion. Is it possible to execute external apps, or command line access from JSFL? Thanks Jake ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MultiLanguage
Hi Dave I've done quite a few muiltilanguage sites, including Chinese and Korean. The way I've tackled this in the past is to load the fonts from an external SWF at run-time, using shared runtime libraries. It's a bit of a roundabout method, and if a single part of the process is not done correctly, it will fail (silently of course!) and you will not see any text rendered. But it's worth it! You can use Shared Fonts Manager, where the process is documented here: http://sharedfonts.com/eng/help.html The Shared Fonts Manager itself just helps you manage the fonts, and you can use the same method with your own management if you don't want to use the product, your choice. When you get it to work it means you can paste all your chinese copy into the font library FLA, use autofill, then only embed the characters you need. In my experience this leads to a total of no more than 500KB of font data for Chinese (and you only need to load that when the site is actually displayed in Chinese). It also has the benefit of only having to load the fonts once, even if your site is spread across multiple SWFs. Hope that helps, Jake On 24/01/2008, Kerry Thompson [EMAIL PROTECTED] wrote: I'd think so, but it doesn't seem to be the case. In my interface for example, I need to support Chinese simplified and traditional - and in my tests some characters are not appearing if I just choose the traditional level 1 support. So I need to include support for both which is like 18,000 glyphs. For some reason traditional is 5609 glyphs and 'simplified' is 13000+. Simple my ass. Yeah, I was surprised at the number of characters in the Level 1 Simplified. There should be fewer--part of Mao's simplification was combining words that were pronounced the same but had different characters in traditional Chinese. For example, hou (4th tone) can mean empress or behind, depending on the character. In traditional Chinese, there are two characters, while simplified Chinese uses just one for both. Hmmm - a thought... maybe I can just do the 5609 and then add in missing characters as needed. So far, there only a couple that are not showing if I use only the level 1 support. I doubt that will work for simplified. Not only were characters combined, a lot of characters were simplified to use fewer strokes. For example, my Chinese name, Tan, is actually a combination of 3 characters (not unusual). The one on the left, called the radical, is 2 strokes in simplified Chinese, and 7 strokes in traditional. Other characters, like those for door and country also use far fewer strokes in simplified Chinese. So just using the traditional character set and filling in probably won't do it for you. You'll probably end up displaying traditional characters (actually called complicated-body characters in Chinese), which some people in Singapore and mainland China won't be able to read. It's not optimal, I know, and the file will be bigger than you want. Maybe you could have them choose the language up front, then load a swf with just the right character set embedded. Cordially, Kerry Thompson ___ 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] AS3 instantiating a new class object from a string value
I'm not sure about the actual code to instantiate, however make sure that the class you are creating is actually compiled in the first place. If it is not explicitly mentioned in your code somewhere it will not be compiled and will not be able to be created at run-time. jake On 26/07/07, Matt Muller [EMAIL PROTECTED] wrote: Hi, I'm trying to instantiate a new class object from a xml attribute which is a string, but its not having any of it. I've tried casting the string to an object and also using this['class_id'] etc but no luck. Does someone have a solution? Thanks, MaTT ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Skewing text
Hi Returning to this now as it seems simple distortion is not satisfactory and I do need to have real perspective. I have played a bit with Papervision and it's not too hard to render text with perspective. However the designs that I am working to require quite precise placement and orientation of the text. Using the distort class I could simply specify the 4 points of the plane in 2D space on the stage and render the text like that, but this is not the way Papervision works. My question is, is it possible to render a plane in true perspective just by specifying the 4 points in 2D on the stage? In Zeh's diagram (http://hosted.zeh.com.br/misc/perspective.png) he shows that you can't split the line 50-50 to get the 3D halfway point, is there a way of working out what the proportion would be? If so I want to ammend the distortImage class to take this into account. jake On 03/07/07, Jake Prime [EMAIL PROTECTED] wrote: Hi JC Yes as Zeh has illustrated the Sandy distortImage class distorts, and does not create perspective. For my purposes this is fine as the perspective is not too pronounced (certainly not disappearing off into the horizon). Jake. On 03/07/07, Zeh Fernando [EMAIL PROTECTED] wrote: Thanks for the replies, I found the Sandy distortImage class to be the easiest to implement. http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html Yes, but again - be careful. Skewing/distortion is not perspective. If you do that with text you won't get the same result as a star-wars-like text, as the glyphs that are farther from the viewer won't be vertically scaled as they should. To explain it visually, http://hosted.zeh.com.br/misc/perspective.png Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Skewing text
OK I have worked out how to divide up the space into triangles to create perspective: http://www.rjprime.co.uk/perspective.html However now I cannot for the life of me get the right matrix to use in the beginBitmapFill function to correctly map a texture. Can anyone help me with being able to map a specific triangle from a bitmap to a specific triangle area on screen. I have calculated the points for both. Thanks Jake On 20/07/07, Jake Prime [EMAIL PROTECTED] wrote: Hi Returning to this now as it seems simple distortion is not satisfactory and I do need to have real perspective. I have played a bit with Papervision and it's not too hard to render text with perspective. However the designs that I am working to require quite precise placement and orientation of the text. Using the distort class I could simply specify the 4 points of the plane in 2D space on the stage and render the text like that, but this is not the way Papervision works. My question is, is it possible to render a plane in true perspective just by specifying the 4 points in 2D on the stage? In Zeh's diagram (http://hosted.zeh.com.br/misc/perspective.png) he shows that you can't split the line 50-50 to get the 3D halfway point, is there a way of working out what the proportion would be? If so I want to ammend the distortImage class to take this into account. jake On 03/07/07, Jake Prime [EMAIL PROTECTED] wrote: Hi JC Yes as Zeh has illustrated the Sandy distortImage class distorts, and does not create perspective. For my purposes this is fine as the perspective is not too pronounced (certainly not disappearing off into the horizon). Jake. On 03/07/07, Zeh Fernando [EMAIL PROTECTED] wrote: Thanks for the replies, I found the Sandy distortImage class to be the easiest to implement. http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html Yes, but again - be careful. Skewing/distortion is not perspective. If you do that with text you won't get the same result as a star-wars-like text, as the glyphs that are farther from the viewer won't be vertically scaled as they should. To explain it visually, http://hosted.zeh.com.br/misc/perspective.png Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Skewing text
Thanks for the replies, I found the Sandy distortImage class to be the easiest to implement. http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html Jake On 02/07/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, I put together a very simple example for fun, maybe it's of use, nothing fancy though and pretty unoptimized. http://objectpainters.com/blog/?p=38 greetz JC On 7/2/07, Duncan Reid [EMAIL PROTECTED] wrote: chiming in a little late on this one... i need to preface the fact that i have not tried using these classes YET but this cat: http://lab.mathieu-badimon.com/ seems to have packaged up some nice stuff here: http://five3d.mathieu-badimon.com/ along with some documentation and a getting started guide. again, i haven't tried it yet but on the surface it looks like something you might be able to toy with... good luck, Dunc On 7/2/07, Hans Wichman [EMAIL PROTECTED] wrote: whether you screw or skew the movieclip that still wont be a perspective distortion:) On 7/2/07, David Ngo [EMAIL PROTECTED] wrote: Couldn't you just stick a TextField inside of a MovieClip then use a transformation matrix to screw the MovieClip? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Monday, July 02, 2007 2:17 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Skewing text I need to skew some text to give the impression it is going off into the distance (think opening text on Star Wars, though without movement). I know this effect can be done using the triangular method as used in Papervision. However I'm not creating a 3D scene here, I just want the skewing. Can this be easily done with Papervision, or can anyone recommend any other resource (AS2 only)? I understand the principles behind the technique, I just don't want to re-invent the wheel by implementing from scratch. The effect is not just skewing. It *is* 3d, in the meaning that the perspective is distorted because the middle points are moved away depending on the angle. So yes, your faster/best bet would be to use any 3d class such as Papervision3D. It should be fairly simple as you'll just need a rotated plane with the content of a movieclip projected on it. Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Skewing text
Hi JC Yes as Zeh has illustrated the Sandy distortImage class distorts, and does not create perspective. For my purposes this is fine as the perspective is not too pronounced (certainly not disappearing off into the horizon). Jake. On 03/07/07, Zeh Fernando [EMAIL PROTECTED] wrote: Thanks for the replies, I found the Sandy distortImage class to be the easiest to implement. http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html Yes, but again - be careful. Skewing/distortion is not perspective. If you do that with text you won't get the same result as a star-wars-like text, as the glyphs that are farther from the viewer won't be vertically scaled as they should. To explain it visually, http://hosted.zeh.com.br/misc/perspective.png Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Skewing text
Hi List I need to skew some text to give the impression it is going off into the distance (think opening text on Star Wars, though without movement). I know this effect can be done using the triangular method as used in Papervision. However I'm not creating a 3D scene here, I just want the skewing. Can this be easily done with Papervision, or can anyone recommend any other resource (AS2 only)? I understand the principles behind the technique, I just don't want to re-invent the wheel by implementing from scratch. Any help appreciated Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Identifying a unique Flash plugin
Hi Is there any way to uniquely identify a single Flash plug-in? Perhaps there is an indentity code, or is there anyway to get something unique from a user's computer through Flash (something like the MAC address)? Basically we need to know whether a user has played a game before but we don't want them to register / login, and we can't rely on cookies / local shared objects. Thanks Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Identifying a unique Flash plugin
Thanks Jason. Unfortunately if we can't use IP addresses as if you have multiple computers behind a proxy server (e.g. universities) they all have a single IP address. It really needs to be something unique to a single machine. However the more I look the more it seems impossible to do... jake On 15/05/07, Merrill, Jason [EMAIL PROTECTED] wrote: You can grab something like the IP address with Javascript and/or server scripts, and use ExternalInterface or FlashVars to get the value. Lots of links if you Google get ip address with javascript Other than that, the Flash security model does not allow you to access much at all about the local machine, especially if you say you cannot do logins/cookies/shared objects. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jake Prime Sent: Tuesday, May 15, 2007 9:53 AM To: Flashcoders mailing list Subject: [Flashcoders] Identifying a unique Flash plugin Hi Is there any way to uniquely identify a single Flash plug-in? Perhaps there is an indentity code, or is there anyway to get something unique from a user's computer through Flash (something like the MAC address)? Basically we need to know whether a user has played a game before but we don't want them to register / login, and we can't rely on cookies / local shared objects. Thanks Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadVars.sendAndLoad with POST
Hi Jer I just tried your page in IE / Windows and using Fiddler saw the following result: 4 POST a Array ( 35 [helpme] = this must work somehow ) GET Array ( ) 0 Seems like it's working? Hope that's of some help (or at least doesn't add to your woes!) Jake On 11/04/07, Jer Brand [EMAIL PROTECTED] wrote: This just gets weirder and weirder. Based on a few pages found in google with people having the same issue, I tried switching out sendAndLoad() with send(), and the data gets posted. Switch it back to sendAndLoad() and it fails. I've reduced this code to the simplest possible, in the PHP and the AS including a new swf with nothing more than the code below on frame 1. There are still no variables in POST -- firebug shows them empty. I've also created a simple HTML page and posted to testing.php, and this works fine. Has anyone seen this before? I've been through quite a few pages listing this same problem, and none of those forums/pages has a solution. Example at: http://aut0poietic.us/quiz/sendloadtest.html ActionScript: var _send_lv = new LoadVars() ; var _result_lv = new LoadVars() ; _send_lv.pleasePost = Bite Me ; var result = _send_lv.sendAndLoad(testing.php, _result_lv) ; PHP (testing.php) print(POST\n) ; print_r($_POST) ; print(GET\n); print_r($_GET) ; response (from firebug) POSTArray ( ) GET Array ( ) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Entities are Hell!
Hi Steven Try: theClip.txt.text = xmlNode.firstChild.firstChild.nodeValue; Jake On 04/04/07, Steven Loe [EMAIL PROTECTED] wrote: I'm loading xml with special characters. These display as their entity codes i.e. as . If I put enitity codes in the xml, I still get entity codes displaying on screen. What am I doing wrong? Any thoughts? Thanks!!! Screen Output: Akbar Jeffapos;s ActionScript Hut my_xml.xml: hut_data titleAkbar Jeff's ActionScript Hut/title /hut_data class: class LoadXml { private static var xmlUrl:String = my_xml.xml; private var rootRef; private var theClip:MovieClip; function LoadXml(rootRef) { this.rootRef = rootRef; var xmlDoc:XML = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = function(success:Boolean) { if (success) { this.owner.displayData(this); } else { trace(error loading xml); } }; Object(xmlDoc).owner = this; xmlDoc.load(xmlUrl); } private function displayData(xmlDoc:XML) { var xmlNode:XMLNode = xmlDoc.firstChild; if (xmlNode.nodeName.toString() == hut_data) { theClip = this.rootRef.createEmptyMovieClip(theClip, 1); theClip.createTextField(txt, 10, 10, 10, 250, 20); theClip.txt.html = true; theClip.txt.text = xmlNode.firstChild.firstChild; } } } Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q: Differences in Mozilla vs IE player...why?
Hi From your email address I would have guessed that you use Mac and were talking about the Mac plugins, but then again I'm guessing you wouldn't be running IE on the Mac these days, so you must be talking PC. Personally I can't say I've experienced any differences on the PC plugins, other than the fact I have found a significant performance increase when running very processor intensive Flash movies (especially games) in IE. Jake On 16/03/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Though I'd ask the flash community their opinion since this has been on my mind lately and has caused no shortage of grief. Perhaps the title of my post should be 'Why is the Mozilla/Firefox Flash Player plugin so much better?' One thing I've noticed is that an iidentical flash app played in both Firefox and IE doesn't always play the same. If there are 'bugs', they can usually be traced to timing diffences. In my expereince code/loops seem to execute much slower in the IE/plugin and also there is the 'geturl' bug (or is this a feature?) wherby simultaneous geturl calls are correctly resolved in Firefox but IE only recognizes the last one. I'm not a C coder but to me, it would make sense to make it a HUGE priority to ensure both versions of the plugin perform identically, Any thoughts? [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash IDE thinks standard #include .as file is aclass file
I seem to recall that I had this issue a while back. Turned out that when the .as file started with a capital letter, it treated it as a class, but when it started with a lower case letter it was fine. I just did a simple test and this doesn't appear to always be the case, so there must have been other contributing factors. But if yours starts with a capital, it's worth a pop. Jake On 16/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are you working on a LAN? I had the same issue here, the cause was that my computer clock were different from the network computer clock. When I moved the files to my HD it worked out. Muzak wrote: I've seen this happen when the include .as file had the same name as the fla it's included in. Just a thought.. regards, Muzak - Original Message - From: Mike Mountain [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, February 16, 2007 12:58 PM Subject: [Flashcoders] Flash IDE thinks standard #include .as file is aclass file I've been working on an as file for some time - it's used as an #include, it isn't a class (although it's part of a project which has classes), just a means for me to tidy away some pretty rudimentary timeline code from designers. Everything was working fine but now the IDE won't validate the code - even though there's nothing wrong with it - it keeps spitting out errors: ActionScript 2.0 class scripts may only define class or interface constructs. Blah Copy the code into a brand new as file, click the tick, works fine - save it out with a filename, click the tick, breaks. I've deleted my ASO files and still no joy - even if I comment out all the code it still bloody complains. Anyhow, anyone shed any light on this? - Or how to fix it, I think it start when I put some imports in the file by mistake. Cheers M ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Obfuscator
Hi all At this point in time is there any obfuscator that will prevent a SWF from being decompiled with ASV (or whatever the current best decompiler is)? I know this has been asked before and the answer was no, but as both obfuscators and decompilers are improved over time I was wondering if the situation had changed. Our current policy here is to put a URL checker in all our games and then obfuscate the SWF with Amayeta SWF Encrypt. It's a bit of a pain and if this really is a complete waste of time I'd rather stop bothering. Thanks Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] [JOB] Actionscript games developer - Central London
Hi We are looking for another permanent Actionscript developer to join me here at Skive (http://www.skive.co.uk). Please don't judge us by the website, it's a quite a few years old now and the new one is currently in production! We specialise in games, but also a fair share of complex Flash websites. I can certainly recommend it personally as a great place to work, situated just by Oxford Circus with a great Actionscript department (well currently I am the Actionscript department ;o)) So if you're an Actionscript programmer at the top of your game, get turned on by a well structured OO Flash project, fancy making games and want to do it in the middle of London, get in contact! Jake Prime Actionscript Developer Skive ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Area of a triangle using perimiter values only
Hi Jason If the number is coming out negative the most likely reason is that the numbers you are supplying do not make a triangle. (e.g. two sides are length 1 each and the third is 2 or more). I've tested your code and it does produce positive numbers for all valid triangles I've tried. Jake On 14/12/06, Merrill, Jason [EMAIL PROTECTED] wrote: I'm trying to figure the area of a triangle in Actionscript using the perimeter values only, not the traditional simple formula: area = (height/2)*base because figuring the height is tricky given the triangle will be drawn in odd ways (i.e. a not horizontally alinged base), so I am exploring other triangle area forumulas that only take in the perimiter values (a,b,c), like Heron's formula or this one, which I like: given a,b,c are the length of the sides of the triangle, then the formula is: squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c) ___ 4 So in trying to translate that to actionscript, I wrote: public static function areaOfTriangle(a:Number, b:Number, c:Number):Number{ return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4; } But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative number, and this the square root cannot be taken. Or perhaps I am interpreting the forumula incorrectly: http://mathworld.wolfram.com/TriangleArea.html What am I doing wrong here? Thanks. Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Why does this work in Flash 6 Actionscript 2 but not Flash 7 Actionscript 2 ...
Hi Stephen, You are incrementing nCounter without ever initializing it. In Flash 6 and earlier if you incremented an undefined value it treated it as 0, but in Flash 7 and later it remains undefined. Set nCounter to 0 first and all should be well. Jake On 11/12/06, Stephen Ford [EMAIL PROTECTED] wrote: Why does the following work when published as Flash 6 Actionscript 2, but not Flash 7 actionscript 2 (or Flash 8 Actionscript 2).var nInt:Number;var oMain:Object = {};var nCounter:Number;var sClipName:String;var nClipDepth:Number;function spawnClip():Void{var mcTemp:MovieClip = this.attachMovie(mcCircle, mcCircle+nCounter, nCounter, oMain);mcTemp._x = Math.random()*600;mcTemp._y = Math.random()*400;nCounter++;}nInt = setInterval(this, spawnClip, 500);Thanks,Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Old Flash Problem - Clips stop receiving clicks
On 29/11/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Looks like general Flash wonkiness and who knows why. Still interested if somebody knows. I've seen this happen before when using the MM Combo Box component and changing it's state in code. We fixed the issue by setting focus on any other button or movieclip on the next line after the Combo Box action. Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Dynamic url for shared movie clips
Hi Sönke, I had this problem on a project a while back. Unless I am missing something this solution does not appear to be making the path dynamic, but instead setting the path using swfmill rather than the Flash IDE. What I needed to do, and I think what Ellen needs here, is to be able to change the path at runtime. Is this possible with swfmill? Jake On 27/11/06, Sönke Rohde [EMAIL PROTECTED] wrote: Yes, just take a swf with set sharedlib, swfmill swf2xml, change the path in the XML, swfmill xml2swf And you got it ;) Cheers, Sönke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ellen Sundh Sent: Monday, November 27, 2006 5:12 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Dynamic url for shared movie clips Thanks! Looks interesting! Ellen ... Ellen Sundh | Flash Developer | Great Works Mobile: +46 73 200 40 73 | Office: +46 8 528 077 73 Address: Sveavägen 66 | SE-111 34 Stockholm www.greatworks.se Sönke Rohde wrote: Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ellen Sundh Sent: Monday, November 27, 2006 3:56 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Dynamic url for shared movie clips Hi! I want to be able to change the url of my movie clip that is imported from a shared library in runtime. Instead of entering the url for runtime sharing in the authoring enviroment in hte Linkage dialouge box, I want to do it on the fly. Is this possible? Thanks in advance! The only way I know is using SWFMill (http://swfmill.org/) Cheers, Sönke ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?
Hi Seb Seconded. If you find the time I'd love to read that blog. Jake On 14/11/06, Ben Smeets [EMAIL PROTECTED] wrote: Oe, I'm liking this one very much. More background would be greatly appreciated :D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seb L Sent: maandag 13 november 2006 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..? We did this at FlashCodersBrighton : http://www.flashcodersbrighton.org/wordpress/?cat=1 We used a mode7 style technique. It was actually a bit complicated, but maybe I'll post a blog about it if enough people are interested? cheers! Seb Lee-Delisle http://sebleedelisle.com On 10/11/06, Andrew Murphy [EMAIL PROTECTED] wrote: Hello. I'm trying to take a vector map of North America and produce the sense of 'flying over' it. I want to have the flat map tipped along the X axis, so that the bottom (Florida, Texas, etc.) appear closer and the top (Nunuvut, Greenland, etc.) appear farther away. Then I want to be able to pan the map left and right, up and down, and 'zoom' in by scaling it.. scaling it a little faster vertically so that it seems to flatten out a bit as you get closer to the ground. So far I've only been able to achieve that in Illustrator and then saving the perspectively squished vectors as a .swf What I'd love to do is to get that perspective squish done within Flash 8 using script. I know about 3D program extensions for Flash like Sandy, but I find them cryptic (at best) and over kill for my simple needs. Any suggestions..? Thanks. :) - - - - - - - - - -[andrew murphy]- flash developer [EMAIL PROTECTED] delvinia interactive inc. 214 king street west, suite 214 toronto canada M5H 3S6 voice 416.364.1455 ext. 232 cell 416.820.8723 fax 416.364.9830 www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.14.1/527 - Release Date: 09/11/2006 6:00 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Undefined value
On 14/11/06, Laurent CUCHET [EMAIL PROTECTED] wrote: var reliure_var; if (_global.pie_glo !== || _global.pie_glo !== undefined) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } I can see two possible problems here Laurent. Firstly I think you need to change the || to . You are testing whether a value is not one thing or not another. Because it can't be both of them at once one of those will always be true, therefore the whole statement will always be true. Secondly, you are testing for the string undefined, whereas you probably want to be testing against the value undefined itself. (It's possible that's not the case, I haven't seen the rest of your code. Hope that helps. Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Music visualisation in Flash 9
Hi I have just been asked about the possibility of making an app which will play MP3s, and display visual effect to match it. Does this sound like something that is possible in AS3? As I see it the issues are: - being able to load and play an MP3 from the users harddrive - converting the MP3 to PCM format - analysing the PCM for volume / tempo (and possibly frequency) I will be researching this fully myself now, but if anyone has any experiences or thoughts they want to share I'd be grateful. Cheers Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] trying to make htmlText more w3c valid
On 31/10/06, Adrian Ionut Beschea [EMAIL PROTECTED] wrote: Is there a way to at least make the tags lower case ? I'm looking for an actionscript or php solution. Hi Adrian This will make tags lower case: function toLowerCaseTags ( htmlTxt:String ) : String { var a:Array = htmlTxt.split( ); for (var i:Number=0 ; ia.length ; i++) { a[i] = a[i].split( ); a[i][0] = a[i][0].toLowerCase(); a[i] = a[i].join( ); } return a.join( ); } Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Center align multiline textfield?
Autosize doesn't work in multiline textfields. If you think about it, when you set autosize to true (or right or center) you are asking Flash to shrink the textfield to the smallest size possible to fit the text. This is fine in a single line textfield, but with a mulitline field Flash won't know whether to make the field shorter, narrower or a combination. As Giles has mentioned, use TextFormat.align: var format:TextFormat = new TextFormat(); format.align = center; subhead.setTextFormat( format ); Jake On 10/10/06, Keith Reinfeld [EMAIL PROTECTED] wrote: Blake, Use the paragraph tag's align attribute: htmlText='p align=centerfont face=KnockoutHTF51Middleweight size=16 color=#ffSI.com\'s Peter King says T.O. is going to explode before long, but Dallas is tough enough to survive./font/p'; -Keith http://home.mn.rr.com/keithreinfeld -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perdue, Blake Sent: Tuesday, October 10, 2006 10:26 AM To: Flashcoders mailing list Subject: [Flashcoders] Center align multiline textfield? I'm trying to get a multiline textfield to be center aligned. Here's the code: this.createTextField('subhead',20,1,435,434,200); with (this.subhead) { html=true; embedFonts=true; selectable=false; wordWrap=true; multiline=true; autosize='center'; htmlText='font face=KnockoutHTF51Middleweight size=16 color=#ffSI.com\'s Peter King says T.O. is going to explode before long, but Dallas is tough enough to survive./font'; } The autosize seems to only work for single line textfields, not multiline. Anyone know how to accomplish this? Thanks. Blake Perdue | 212.522.1292 | AIM: blakepCNN ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Weak bounce easing equation
Hi Is there anywhere I can find a greater range of Penner type easing equations than are normally around? Specifically I want a much weaker bounce than the usual easeOutBounce. All my searches come up with the same basic equations. I have tried editing the bounce function resulting in something looking more like a teleporting UFO than a bouncing ball :o) Thanks Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Weak bounce easing equation
On 05/10/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Take a look at the Tween class and its various easing methods documented under the components language reference in the help. Unless I'm missing something, you don't get any control over the quantity of bounce there. The only thing it depends on is the distance travelled. If I want to tween a movieclip quite a long way, but only want a small bounce effect I can't see how to do that. IIf I can't find a pre-written easing equation, it's not the end of the world, I can always just string together a few normal tweens one after the other to create the same effect. Always nice to do it in one line if you can though :o) Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Disabling Nested MCs?
Hi Kevin, Using Laco's tweens you can pass a callback function to be called when the tween is complete. For example something like this: function disableMap () { map._visible = false; } map.alphaTo( 0, 2, linear, 0, disableMap ); Jake On 03/10/06, Kevin Cannon [EMAIL PROTECTED] wrote: Hey, I'm using Laco's tweens, but maybe it has something similar. I'll look into it. Thanks for the pointer. - Kevin On 02/10/06, Rich Rodecker [EMAIL PROTECTED] wrote: just add the map._visible = false part to after the tween ends. If you're using the built in Tween class there is an onMotionFinished event handler you can use on the tween, and pretty much most of the other tweening engines have something comparable. On 10/2/06, Kevin Cannon [EMAIL PROTECTED] wrote: Hi Jake, Ahh, I so that's how you do it. I think the current way I have tweens working won't allow be to easily do that, but when I start using Fuse Kit it should be a doddle. Thanks, - Kevin On 02/10/06, Jake Prime [EMAIL PROTECTED] wrote: Hi Kevin Try: map._visible = false; This will disable all buttons in map, and if the whole map is 0 alpha anyway will make no visible difference. Jake On 02/10/06, Kevin Cannon [EMAIL PROTECTED] wrote: Hi, I have an interactive map with various clickable countries on it. At certain times the map fades out to alpha = 0. When that happens the country movieclips are still clickable so I need to disable them. I expected map.enabled = false; to do it, but it seems to have no effect since the map movieclip itself has no actions. If there a way to disable the nested MCs without having to do it by manually disabling them all? I don't want to reinvent the wheel if there's a native way of doing it. Thanks, - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Disabling Nested MCs?
Hi Kevin Try: map._visible = false; This will disable all buttons in map, and if the whole map is 0 alpha anyway will make no visible difference. Jake On 02/10/06, Kevin Cannon [EMAIL PROTECTED] wrote: Hi, I have an interactive map with various clickable countries on it. At certain times the map fades out to alpha = 0. When that happens the country movieclips are still clickable so I need to disable them. I expected map.enabled = false; to do it, but it seems to have no effect since the map movieclip itself has no actions. If there a way to disable the nested MCs without having to do it by manually disabling them all? I don't want to reinvent the wheel if there's a native way of doing it. Thanks, - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Mute Flash Application, mac.
Hi Aaron Detour provides individual sound control for each app running on Mac OS. http://www.versiontracker.com/dyn/moreinfo/macosx/20128 I'm not a Mac user, so I can't vouch for it. Good luck. Jake On 22/09/06, aaron smith [EMAIL PROTECTED] wrote: Does anyone know of an application that can mute flash or browsers for a mac? or maybe a way to do it through the terminal? thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Working on Flash 6 player but not on Flash 8
Hi Berkay Have you set counter to a value before incrementing it? If you fail to initialise a variable in F6, it will assume it is 0 and increment to 1. If you do this in F8 it treats it as undefined, and will stay undefined no matter how many times you increment it. Jake On 21/09/06, Berkay Unal [EMAIL PROTECTED] wrote: Hi Coders, Can someone please tell me whats the problem with this code . it's working on fl6 but not fl8 . Thanks Code: -- counter++; // hiding the first dot dot._visible = false; // particle generator // setting of the shape and velocity for each new dot this[dot+counter].gotoAndStop(shape); this[dot+counter].speedx = (random(speed*10)/10)-(random(speed*10)/10); this[dot+counter].speedy = (random(speed*10)/10)-(random(speed*10)/10); // FX scaling and fading for every dots for (i=counter; icounter-maxdot; i--) { this[dot+i]._x = this[dot+i]._x+this[dot+i].speedx+Math.cos((counter+i)/frequency)*amplitude+forcex/friction; this[dot+i]._y = this[dot+i]._y+this[dot+i].speedy+Math.sin((counter+i)/frequency)*amplitude+forcey/friction; //friction this[dot+i].speedx = this[dot+i].speedx/friction; this[dot+i].speedy = this[dot+(i)].speedy/friction; if (fxscale == true) { this[dot+i]._xscale = (maxdot-(counter-i))*(100/maxdot)*scale; this[dot+i]._yscale = (maxdot-(counter-i))*(100/maxdot)*scale; } else { this[dot+i]._xscale = 100*scale; this[dot+i]._yscale = 100*scale; } if (fxfade == true) { this[dot+i]._alpha = (maxdot-(counter-i))*(100/maxdot); } else { this[dot+i]._alpha = 100; } } // removing old dots if (counter=maxdot) { eleman = counter-maxdot; removeMovieClip(this[dot+eleman]); } // managing maxdots changes : destroying unused dots maxdotdif = maxdot-maxdot0; if (maxdotdif0) { for (i=counter-maxdot; i=counter-maxdot0-1; i--) { removeMovieClip(this[dot+i]); } } trace(a); maxdot0 = maxdot; -- Berkay UNAL [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FLV size
Hi Dennis When you choose your compression rate in Flash Video Encoder, and probably other compression tools, you are choosing it in kilobits per second (kbps). Therefore the filesize is dependent on how long the video is, and not how large the dimesions are. You should notice however that the smaller video will be considerably better quality than the large one. Jake On 14/09/06, Dennis - I Sioux [EMAIL PROTECTED] wrote: Hey, I have a strange situation with converting avi's to flv. When I convert a 4 minute 720x576 avi to a 720x576 flv the file size is 25,6 MB But when I convert the same video to a 320x256 flv the size is 24,1 MB So the difference in filesize is very little compared to the difference in video size. I would expect it to be half the MB size. Anybody familiar with this weird outcome? Regards, Dennis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Returning a value from file upload
Hi I am uploading a file in Flash 8 and I would like to get a return value from the server. Now I know I'm not the first person to want to do this, and I have searched around. From everywhere I've looked the answer seems to be it's not possible and I need to make a second call to the server. I was just wondering if anyone here has ever found a way? Thanks Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Dynamically loading a Shared Library symbol
Hi all Is there any way to dynamically set the path for loading a shared library object? I am using a shared library system to have a central store for all fonts in a mulitlanguage site. Unfortunately I'm not permitted to use relative links in the site. I am being given an absolute root path as a FlashVar, and appending that to all loading. Any help appreciated Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com