SV: [Flashcoders] Flash and levels
The main timeline (_root) is a movieclip like any other. Levels are _root movieclips stacked at a given depth (-16384 + levelnumber). You can use swapDepths() on levels to change their stacking orderb just like any other movieclip. And just like with ordinary movieclips you can't put a level inbetween content of a sibbling (another level). -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Gustavo Duenas Skickat: den 28 mars 2007 04:51 Till: flashcoders@chattyfig.figleaf.com Ämne: Re: [Flashcoders] Flash and levels I have a questionthe level 20 is over or under the other movie clips the flash movie would have? Regards Gustavo Duenas P.s: the idea about a movie clip is very useful, because I'm looking for something like that for a project of mine. On Mar 27, 2007, at 7:30 PM, Omar Fouad wrote: If you need to create a movieClip on level 20 for example : var myClip:MovieClip = createEmtpyMovieClip(myClipInstance, 20) Note that the secont parameter (20), is the level number you wish the movieClip is created, in this case therefore will not get into _level0.. if you Need to get a movieClip nasted into another so: var myClip:MovieClip = containerClip.createEmptyMovieClip (otherMcInstance, containerClip.getNextHighestDepth); The second Parameter specifies the next Free Level inside the containerClip where the myClip will be nasted... Hope it helps On 3/28/07, James Tu [EMAIL PROTECTED] wrote: Is there a way to createEmptyMovieClip on a level other than _level0? I tried doing this: var tmc = _level5.createEmptyMovieClip(foo, 10); trace(tmc); //gives me undefined I also tried to load a blank .swf into _level5 and then creating a movieclip on _level5 and that didn't work either. -James ___ 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 -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ 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 -- Meddelandet har kontrollerats av CRW MailScanner och inget skadligt innehåll har upptäckts. ___ 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
SV: [Flashcoders] ASP and Character encoding in flash
You must set the ASP-charset to utf-8 as well. Add this at the beginning of the ASP file: Response.CodePage = 65001 /Johan --- I hope somebody can help with this one... I'm working on a flash application, where the settings can be dynamically imported from xml files or an asp query that sends out xml. It works fine if it's an xml file saved as UTF-8, both english and with special characters (in this case, swedish), or an asp generated xml with no special characters (==english). But when the client is trying to send out asp xml in swedish, the special characters turn into boxes and some xml fields display as undefined, similar to what you get if you save the local xml file as simple text, rather than UTF-8. Also, strangely enough, when the query is tested in the browser, IE and FF seem to be having trouble with the asp xml if the encoding at the top of the page is utf-8, but display it fine with ?xml version='1.0' encoding='ISO-8859-1'? My guess is that regardless of the encoding at the top of the page, when the asp xml reaches Flash, it's not UTF-8 but simple text. My question is - can anything be done about it? Thanks, Karina Karina Steffens | Neo-Archaic new concepts, timeless design http://www.neo-archaic.net/ www.neo-archaic.net ___ 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 -- Meddelandet har kontrollerats av CRW MailScanner och inget skadligt innehåll har upptäckts. ___ 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
SV: [Flashcoders] AS 2.0 variable declaration
The var keyword can only be used when declaring a variable in the code's own scope. Meaning that if you use a path don't use the var keyword. So this will work: var foo:MovieClip = createEmptyMovieClip(foo,1) foo.myVar:String = fooVar /Johan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jason Ross Skickat: den 11 oktober 2006 11:30 Till: Flashcoders mailing list Ämne: [Flashcoders] AS 2.0 variable declaration Hi, In migrating some AS 1.0 code to AS 2.0, I have run into a small problem. How do I write the following in AS 2.0: this.createEmptyMovieClip(foo,1) this.myVar = foovar As this returns errors: var foo:MovieClip = createEmptyMovieClip(foo,1) var foo.myVar:String = fooVar Much appreciated, Jason. Legal Disclaimer: This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore View does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by View for any loss or damage in any way arising from its use. Any views expressed by the sender of this message are not necessarily those of View. _ This message from View has been checked for all known viruses by the MessageLabs Virus Control Centre. ___ 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
SV: [Flashcoders] Allow smoothing on imported jpeg:s
Not sure if there is any other way but the only way I know to make transformations of external pictures to look good is to keep the main timeline of the level only a single frame long. However since a main timeline with a single frame doesn't wor that well with preloaders this requires you to have a movie with the sole purpose of loading the main movie... -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Johan Nyberg Skickat: den 10 oktober 2006 10:24 Till: flashcoders@chattyfig.figleaf.com Ämne: [Flashcoders] Allow smoothing on imported jpeg:s Hi everybody, anybody know if there is a way to use the allow smoothing functionality on imported jpeg:s? I want to be able to rotate imported jpeg:s, but they look awful, and there doesn't seem to be a way to switch on allow smoothing with action script. Is there a work-around? -- Varmfrontsgatan 1 128 34 Skarpnäck 070 - 407 83 00 08 - 37 16 73 ___ 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
SV: [Flashcoders] Allow smoothing on imported jpeg:s
... Which works as long as the project is a flash 8 project. ;) But I guess most projects these days are just that. -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För ??? Skickat: den 10 oktober 2006 12:53 Till: Flashcoders mailing list Ämne: Re: [Flashcoders] Allow smoothing on imported jpeg:s use the BitmapData Object to draw the jpg - Original Message - From: Johan Karlsson [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 10, 2006 4:54 PM Subject: SV: [Flashcoders] Allow smoothing on imported jpeg:s Not sure if there is any other way but the only way I know to make transformations of external pictures to look good is to keep the main timeline of the level only a single frame long. However since a main timeline with a single frame doesn't wor that well with preloaders this requires you to have a movie with the sole purpose of loading the main movie... -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Johan Nyberg Skickat: den 10 oktober 2006 10:24 Till: flashcoders@chattyfig.figleaf.com Ämne: [Flashcoders] Allow smoothing on imported jpeg:s Hi everybody, anybody know if there is a way to use the allow smoothing functionality on imported jpeg:s? I want to be able to rotate imported jpeg:s, but they look awful, and there doesn't seem to be a way to switch on allow smoothing with action script. Is there a work-around? -- Varmfrontsgatan 1 128 34 Skarpnäck 070 - 407 83 00 08 - 37 16 73 ___ 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
SV: [Flashcoders] Rollover states for sub-items
When a movieclip has a buttonevent placed on it anything inside it will not be able to get any buttonevents. What you need to do is use a mouseMove event and a hitTest to simulate a rollover/rollout event either for the nav or the subitems. E.g: Nav.onMouseMove = function() { if(this.hitTest(_root._xmouse, _root._ymouse, true) !this.open) { this.open = true; this.gotoAndPlay('expand'); } else if(this.open) { This.open = false; this.gotoAndPlay('collapse'); } } /Johan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Perdue, Blake Skickat: den 9 oktober 2006 01:27 Till: Flashcoders mailing list Ämne: [Flashcoders] Rollover states for sub-items I'm building an expandable/collapsible navigation - on rollover it expands, on rollout it collapses. I've placed event handlers on the navigation container movie clip, like so: nav.onRollOver=function() {this.gotoAndPlay('expand');} nav.onRollOut=function() {this.gotoAndPlay('collapse');} Inside of the navigation movie clip (nav), I have several movie clips that have their own onRollOver and onRollOut event handlers, like so: nav.subitem.onRollOver=function() {this.gotoAndPlay('over');} nav.subitem.onRollOut=function() {this.gotoAndPlay('out');} For some reason, because the container movie clip (nav) has rollover and rollout event handlers, the event handlers for the clips inside the container do not work. In other words, the nav onrollover/out works, but the nav.subitem rollover/out doesn't work. Does anyone know why this happens or a solution to 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
SV: [Flashcoders] Creating a SWF to dynamically create SWF';s
If you load external images when they are to be displayed the will not put weight on the until that is current. And if someone chooses to end the course prematurely images used later in the course won't hit the bandwidth at all. And finally when an image is loaded once, it should be in the browser cache. (Unless the user for some reason has turned it off). So they should only hit the bandwidth once and then never again. That is assuming the swf runs in a browser of course. But of course if the images are really simple it could be better to draw them using the drawing API. If not any dynamic creation of the images will probably create a higher payload then just loading the images on demand. /Johan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Gaia-Tek Skickat: den 5 oktober 2006 09:26 Till: 'Flashcoders mailing list' Ämne: RE: [Flashcoders] Creating a SWF to dynamically create SWF';s Hi Jason, That was the initial understanding with which I entered the project, now they don't want to do that because of the server load and bandwidth if 200 learners access the course simultaneously... They want the learner to download the course in one go (a smaller swf hopefully), and then work through it at their own speed. Any ideas?? Thanks Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 04 October 2006 14:45 To: Flashcoders mailing list Subject: RE: [Flashcoders] Creating a SWF to dynamically create SWF';s Keep all images external and just reference them in the XML. Then your .swf is 50k or less, not 6MB. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Gaia-Tek Sent: Tuesday, October 03, 2006 10:39 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Creating a SWF to dynamically create SWF';s Hi All, My client has asked me to create a SWF that reads in some XML and generates a course depending on the amount of questions images etc. in the XML. They found out today that the XML with all the images comes to about 6MB - so suddenly frightened by the implications of this, they've asked me if I can develop a SWF, that when run, will generate the same content, but then save the resultant SWF to a file, with all images, sound and questions embedded in the new SWF - and then score back to the shell application as well... Is this even possible?? .NET is NOT an option... Thanks... Don ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 02/10/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 02/10/2006 ___ 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
SV: [Flashcoders] Creating a SWF to dynamically create SWF';s
Simple put: it can't! It can't create anything outside the running player on its own. It needs a 3rd party projector generator like Zinc or some kind of serverside technology to create new files... /Johan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Peter O'Brien Skickat: den 5 oktober 2006 10:51 Till: Flashcoders mailing list Ämne: Re: [Flashcoders] Creating a SWF to dynamically create SWF';s How can a swf generate a swf? I've been asked about the subject of dynamically creating a bunch of swfs. I guess mtasc, swfmill and perhaps ant tasks - tho i know next to nothing about ant tasks. Another way would be to use jsfl. but how can a swf generate swfs? ___ 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] _url
I don't think you can. Not in a reliable way that is. You could make a get url that runs some javascript that looks up the window.location.href and sends it to a variable inside flash using setVariable() method (http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15683) But I'm not sure that this will work if the swf and html is on different domains. Other ways are to let the HTML page itself pass it's url. But that easily tampered with. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dennis - I Sioux Sent: den 26 maj 2006 10:30 To: Flashcoders mailing list Subject: [Flashcoders] _url Hey, I'm wondering if anyone knows a way to get the url of the site that is embedding an swf..(instead of the one hosting it) The _url will give the url where the swf is hosted.. but i want to get the url from the server that is showing it. Anyone? Many thanks, 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
RE: [Flashcoders] Old Flashplayer Standalone
If you can get your hands on older trial versions of flash you should get the standalone player along with it. I did a quick google and found MX 2004 trial here: http://download.macromedia.com/pub/flash/esd/flashmx_trial_en.exe /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sönke Rohde Sent: den 12 april 2006 12:36 To: 'Flashcoders mailing list' Subject: [Flashcoders] Old Flashplayer Standalone Hi, I am looking for older Flash Players standalone. I got http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266 which only offers the different plugin-versions. Are the .exe-Players available too? Thanks, 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
RE: [Flashcoders] Access DropShadow filter via AS?
1.) because the property does not return a reference to the true filters-array of the movieclip. Just a copy of it. So you need to assign it back to the movieclip after you've edited it. 2.) you can't if it's not the only filter applied. If not you should loop through the array looking for an instance of the DropShadowFilter class. You haven't already you need to import the class flash.filters.DropShadowFilter The following code will search for the dropshadow in the array and set it's quality property to 15. var myList:Array = myMC.filters; for(i in myList) { if(myList[i] instanceof DropShadowFilter) { myList[i].quality = 15; break; } } myMC.filters = myList; /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Charles Parcell Sent: den 24 januari 2006 07:03 To: Flashcoders mailing list Subject: Re: [Flashcoders] Access DropShadow filter via AS? Two questions 1) Why couldn't I just do... myMC.filters[0].quality = 15; 2) In your example, how do you know that DropShadow is at index 0? Thanks, Charles P. On 1/23/06, M S [EMAIL PROTECTED] wrote: Hello, var myList:Array = myMC.filters; myList[0].quality = 15; myMC.filters = myList; should do it, the filters array is a property of the MovieClip object, from there you can access all of the properties of said indexed filter. Peace, Mike On 1/23/06, Charles Parcell [EMAIL PROTECTED] wrote: Does anyone know how to access the parameters of a dropshadow attached (part of) a MC? Thanks, Charles P. ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] windows flash standalone able to export standalonefile?
It's not possible with flash alone. Since it won't even let you save a textfile, besides from shared objects, localy. So you would need either Director or a 3rd party app like ZSinc (http://www.multidmedia.com). But I'm not sure if Zinc allows you to save exe files though. But you could probably make an exe file that reads text/xml files that tells it how to behave... /Mirandir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of grimmwerks Sent: den 8 januari 2006 07:27 To: Flashcoders mailing list Subject: [Flashcoders] windows flash standalone able to export standalonefile? Hey all - I have to recreate a Director app/dvd I've done a few times -- it's basically a presentation creation engine that allows one to pick slides and video and create their own small presentation. The client wants the ability to export standalone files, so I was exporting quicktime moves from the app. I'd prefer to use Flash only (for Flash 8) or if I had to Flash in a Director shell -- but if I was considering a windows only application done entirely in Flash, would there be any shell that can be used to export either video ro another .swf? Thanks all. ___ 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] OT: Windows XP Level2 Cache mostly incorrect
It's Blue Screen Of Death http://en.wikipedia.org/wiki/Blue_screen_of_death -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of a / Sent: den 5 januari 2006 10:30 To: Flashcoders mailing list Subject: Re: [Flashcoders] OT: Windows XP Level2 Cache mostly incorrect What is BSOD ? a - Original Message - From: Bernard Visscher [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Thursday, January 05, 2006 9:01 AM Subject: [Flashcoders] OT: Windows XP Level2 Cache mostly incorrect Good morning (here..) everyone, I just read that Windows XP at installation sets the Level2 cache to 0 in the registry. I've changed it to my real L2 cache and had an improvement in speed of 40% with Sorenson encoding. So that's why I think it's interesting for all here. First open regedit (start-run-regedit) Then search the key: hkey_local_machine\system\currentcontrolset\control\session manager\memory management Then at the sub key secondleveldatacache you fill in your real L2 cache. Hex value 200 for 512kb, 400 for 1Mb etc.. Then reboot. DON'T fill in a larger value than the real L2 cache, it will result in a BSOD. If you don't know your L2 cache you can use this program: http://www.cpuid.com/download/cpu-z-131.zip Good luck! Greetz, Bernard ___ 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] Change layer/path of a MovieClip
Methods 1 and 2 is not possible. A movieclip can only be attached to a timeline inside the owning swf. One dirty fix would be to do the second load emidiatly after the module has loaded. Since that usually would mean it loading from the cache it would load to the next frame. And don't consider the loading done until this second load is done. Another thing you could do is to put the overlay movieclips into an swf of their own and load it to the higher depth. And of course don't consider the loading done until both movies are loaded. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Minase Sent: den 3 januari 2006 14:12 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Change layer/path of a MovieClip Hi, I was hoping someone would be able to help me with a problem i've been fiddling with for a long time. I would have thought it's fairly common, but Googling and searching this ML archive has yeilded nothing, so... I have a fairly complex application using Flash which i wont bore you all with the specifics here, but basically you have one movie which loads others as pluggable modules via external SWF files. These SWF files contain a MovieClip symbol which is linked to an AS class, which then displays stuff and communicates with the parent SWF via a standard interface. This is done with (what i assume is) the usual method of... tmp_mc=attachMovie('blankClip', 'mc'+depth, depth); tmp_mc.loadMovie(moduleName+'.swf'); code to wait for the load here... thingie=tmp_mc.attachMovie(moduleName, 'mod'+depth, depth); It is my understanding that layers are a kind of tree like layout, is this correct? So no matter what i do in tmp_mc.attachMovie() calls, movieclips will always be in the same plane as tmp_mc as far as the root clip is concerned. What i need to do, is be able to somehow attach a symbol from the moduleName+'.swf' file on a layer in the root space, not in tmp_mc's space. The reason for this, is the class that gets loaded for this particular module may need to do some kind of overlay on the display, so it'd make some call like mc=_root.requestOverlay(this, symbolName, etc etc). Am i making sense so far? There are three ways i can see to do this: 1) Find a way to address symbols located in moduleName+'.swf' from the root MovieClip. 2) Find a way to transfer MovieClips from one depth to another. I.e. tmp_mc.attachMovie(blah) and then move the result into root. This probably isn't possible...? 3) The method i am currently using, is to simply just load the module SWF a second (or third, fourth, etc...) time into a different depth, and attach much as i would the main module clip. This seems wasteful, though... and it also makes implentation much more clumsy because the method in the root clip cannot return the overlay clip immediately, it simply returns a handle and then notifies the caller at a later time when it is loaded. Is 1 or 2 possible? Or can you think of another method? Regards, - Daniel ___ 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] Game plays beautiful on PC/ not on mac. wtf?
looking at the source of your HTML(fpi_swap.js) code I find that the wmode of the movie is set as transparent. And to my experience that usually gives a huge performance hit on Mac. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kurt Dommermuth Sent: den 21 december 2005 23:19 To: Flashcoders mailing list Subject: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf? Hi Steven, 31fps is that still the magic number? thanks, Kurt At 04:58 PM 12/21/2005, you wrote: What's your frame rate set to? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kurt Dommermuth Sent: Wednesday, December 21, 2005 6:35 AM To: Flashcoders mailing list Subject: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf? Hi all, I'm really frustrated with something and hope someone out there can help. I have this game http://www.asherbartos.com/xmas2005/ plays very well on my 1.7 ghz pc laptop. plays horribly on a dual 1.2 mac. some things simply don't work, on the Mac like the arrow keys. that sucks, but the performance is what is driving me nuts. I expect to take a hit on the mac, but this is beyond anything I anticipated. is there code you should just simply stay away from on the Mac? I used a couple of listeners for arrow key control. a couple of setIntervals. nothing too hard core at all... most of the code is below if anyone cares to take a look. thanks for any help anyone can offer. Kurt goSanta = function() { this.gotoAndStop(2); var spd:Number = _root.variableSpeed; var mX:Number = this._x; var targ:Number = (_root._xmouse - mX)/spd; if(_root.variableSpeed1) { _root.variableSpeed = 1; } this._x += targ; } stopGame = function() { clearInterval(goDrink); clearInterval(goTimer); delete _root.santa.onEnterFrame; _root.santa._x = -100; } santasWasted = function() { clearInterval(goDrinks); delete _root.santa.onEnterFrame; _root.santa.gotoAndPlay(passOut); } startGame = function() { s.stop(); _root.santa.tween(_y,440,.5,'easeOutBack'); attachSFX(_root.closingScreen,start,start,50); _root.variableSpeed = 1; _root.closingScreen.gotoAndStop(1); _root.gotoAndStop(playGame); _root.santa.onEnterFrame = goSanta; _root.scoreBoard.meter.tween(_yscale,.5,.3); _root.count = 0; secondsLeft = 0; clearInterval(goDrink); goDrink = setInterval(drinkGenerator,700); clearInterval(goTimer); goTimer = setInterval(startTimer,1000); } fallingDrink = function() { this._y+=this.spd; if(this._y 340 this._y 420) { if (this.hitTest(_root.santa.santasMouth)) { attachSFX(this,this.sfx,sfx,20); _root.variableSpeed += this.potency; var perLoaded = int((_root.variableSpeed/20)*100); _root.scoreBoard.meter.tween(_yscale,perLoaded,.4); _root.santa.santasMouth.gotoAndPlay(2); if(_root.variableSpeed 20) //santa drank too much { _root.santasWasted(); } this.removeMovieClip(); } } //kill clip if drop too far if(this._y 550) { trace(mc dead) this.removeMovieClip(); } } drinkGenerator = function() { var myDepth = _root.drinkContainer.getNextHighestDepth(); var randSpd = getRandomNumber(12,6); var randX = getRandomNumber(660,105); var randomID = getRandomNumber(_root.gameItems.length-1,0) var randomItem = _root.gameItems[[randomID]][0]; _root.drinkContainer.createEmptyMovieClip(mc+myDepth,myDepth); _root.drinkContainer[mc+myDepth].attachMovie(randomItem,drink,1); _root.drinkContainer[mc+myDepth].drink._x = randX; _root.drinkContainer[mc+myDepth].drink.spd = randSpd; _root.drinkContainer[mc+myDepth].drink.potency = _root.gameItems[[randomID]][1]; _root.drinkContainer[mc+myDepth].drink.sfx = _root.gameItems[[randomID]][2]; _root.drinkContainer[mc+myDepth].drink.onEnterFrame = fallingDrink; } attrition = function() { if(_root.variableSpeed 1) { _root.variableSpeed -=.5 var perLoaded =
RE: [Flashcoders] Scaling text using ActionScript
The simplest solution I can think of is to put the textfield into a movieclip and then change the movieclip's _width property to math the width of the label. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Gaelic Sent: den 17 december 2005 06:10 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Scaling text using ActionScript Hi, I'm working on a Flash-based label ordering application which requires entering dynamic text, typically just one word, and displaying it scaled to fill the available space on the label. This require changing the aspect ratio of the text - expanding or compressing its width relative to its height. Of course it is easy to do within Flash - but I can't find any way to do it dynamically using ActionScript. Does anyone know if it can be done? Chris Gaelic Netlist [EMAIL PROTECTED] Ph: 09 577-2277 Mob: 021 221-2277 ___ 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] Scaling text using ActionScript
You probably don't use an embeded font then. I think that's the only way to be able to rescale dynamic textfields. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Gaelic Sent: den 17 december 2005 11:33 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Scaling text using ActionScript Thanks Johan, but that only works if I break the text into its outline geometry and then instance it as a movie clip. Text within a movie clip stays the same size when the mc is scaled. Chris Chris Gaelic Netlist [EMAIL PROTECTED] Ph: 09 577-2277 Mob: 021 221-2277 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Karlsson Sent: Saturday, 17 December 2005 11:07 p.m. To: Flashcoders mailing list Subject: RE: [Flashcoders] Scaling text using ActionScript The simplest solution I can think of is to put the textfield into a movieclip and then change the movieclip's _width property to math the width of the label. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Gaelic Sent: den 17 december 2005 06:10 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Scaling text using ActionScript Hi, I'm working on a Flash-based label ordering application which requires entering dynamic text, typically just one word, and displaying it scaled to fill the available space on the label. This require changing the aspect ratio of the text - expanding or compressing its width relative to its height. Of course it is easy to do within Flash - but I can't find any way to do it dynamically using ActionScript. Does anyone know if it can be done? Chris Gaelic Netlist [EMAIL PROTECTED] Ph: 09 577-2277 Mob: 021 221-2277 ___ 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 __ NOD32 1.1326 (20051216) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ 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