[Flashcoders] [slightly OT] Somebody could confirm this please?
http://www.appleinsider.com/articles/07/07/05/mossberg_apple_working_on_adobe_flash_support_for_iphone.html It would be a very nice thing... but if the iPhone could support the NetStream and NetConnection classes natively, thus permitting us to download / upload a live video stream, it would definitely be a *wonderful* thing! ___ 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] [slightly OT] Somebody could confirm this please?
Response from Matt Chotin, Flex product manager on similar question asked on FlexCoders http://tech.groups.yahoo.com/group/flexcoders/message/80101 regards, Muzak - Original Message - From: Leonardo Scattola - New Vision srl [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 06, 2007 9:34 AM Subject: [Flashcoders] [slightly OT] Somebody could confirm this please? http://www.appleinsider.com/articles/07/07/05/mossberg_apple_working_on_adobe_flash_support_for_iphone.html It would be a very nice thing... but if the iPhone could support the NetStream and NetConnection classes natively, thus permitting us to download / upload a live video stream, it would definitely be a *wonderful* thing! ___ 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] breaking up long actions
Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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] least to greatest
Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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] breaking up long actions
Do you really need to have all the objects running in memory at runtime? If it's really really big, you might want to offload those objects to the backend and modify your current solution into one that paginates only what is needed. Are we talking like 10,000+ objects? Hans Wichman wrote: Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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] least to greatest
I am not sure if there is a sort method for arrays such as Array.Sort(direction) if such a function does not exists then you can always write a quick bubble sort function. function bubblesort(ArrayName){ changesmade = true; for(y = 0; y ArrayName.Length; y++{ if(changesmade){ changesmade = false; for(x = 0; x ArrayName.Length-1; x++){ if(ArrayName[x] ArrayName[x+1]){ temp = ArrayName[x]; ArrayName[x] = ArrayName[x+1]; ArrayName[x+1] = temp; Changesmade = true; } } } } Return ArrayName; } If you want to sort in accending order or descending order as well the if statement just needs to have the less than sign changed to a greater than sign. There are ways of speeding this function up you can put in a variable that checks to see if you made any changes to the array with each pass If no changes were made then array is sorted. But I might not bother with this step for only 10 variables. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Friday, July 06, 2007 8:50 AM To: Flashcoders mailing list Subject: [Flashcoders] least to greatest Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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] Flash CS3 - Strange Error: 5005: Unknown error optimizing byte code
Hello flashcoders, I am facing strange problem since long time. This error code even doesn't exist in the list of error codes. This is the exact error I am getting while I compile the FLA from flash CS3. Location : , Line 1 Description : 5005: Unknown error optimizing byte code. Source : I don't know exact reason about its generation, But here are the some possible reasons / hints: Case 1) Overloading: 1.1) Size of .fla is 10.5 MB and its document class contains more than 60 classes to import and has more than 100 variables. 1.2) Even if I put In document class - only variable initialization and class importing are there. Nothing in its constructor + no other functions are defined. Still error is there. 1.3) If we import all classes and has all variables then it gives this compile error. But if we remove some particular numbers of variable, it's start working. In this we can remove any type of variables. 1.4) After reducing variables, application starts working till that it won't. Case 2) 2.1) Size of .fla is 1.75 MB and its document class is same as above one. 2.2) All assumptions are same as above. 2.3) Now this class contains all functions and have initialization of all variables + classes. 2.4) In this If we remove 3-5 variables, it will start functioning else it won't. Its a huge application so I am even confused that what is the cause of error and this error stopped our working for a week now. Bit more information about the project that may help the team to identify the reason. 1. Project development started with flash public alpha 3. When we started using Flash CS3, we had some design problem if we do open the FLA in CS3, so we completely redesigned the Movieclips etc., in Flash CS3 IDE. 2. Project contains approx 250 classes. 3. In main application, it imports 67 classes. (it works if I keep 63 classes in document class). 4. In the case 3 above, if that works with 63 classes and If I do add 3 frames in existing movieclip, it stops working. 5. In the case 3 above, if that works with 63 classes and If I do add / declare few more variables, it stops working. It would be humble appreciation if someone can come up with some light in the dark tunnel. Best Regards, Ashvin Savani - arckid Founder CTO - Avinashi.com Adobe Community Expert We Never Give Up! ___ 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] breaking up long actions
Hi Ben, tnx for the example, too bad setInterval in itself does not make content run in the background or my life would be a lot easier:). The problem is in the breaking up, but I think I got it figured now. thanks again JC On 7/6/07, Smeets, Ben [EMAIL PROTECTED] wrote: Hi Hans, The way I used to fix it, was indeed by using some sort of interval solution. Only to break up the loop in more parts so the animations won't get bothered with it. I have an example online at http://www.bensmeets.com/2007/04/09/using-threads-inside-flash/ (download the zip, it contains an animated example and source also). HTH, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: vrijdag 6 juli 2007 14:10 To: Flashcoders mailing list Subject: [Flashcoders] breaking up long actions Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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] Fullscreen problem
Hi everyone! I have created a website with fullscreen option, using the follow code: Stage.displayState = fullScreen (To enable fullscreen version) Stage.displayState = normal (to back normal view) But I have a big problem: My website have a form with some editable fields, and if I click in fullscreen button, the fields stop edit. I can only put text in the fields in normal view. Does anyone have a solution? Thank you so much. Izaias Cavalcanti Grafikonstruct/Brazil http://www.grafikonstruct.com.br ___ 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] least to greatest
The array class in Flash has a sort numeric (least to greatest) feature: var myArray:Array = new Array(); myArray.push(5); myArray.push(1); myArray.push(65); myArray.push(3); myArray.push(56); myArray.push(9); myArray.push(-2); myArray.push(44); myArray.push(7); myArray.push(8); myArray.push(10); trace(myArray: + myArray); // myArray: 5,1,65,3,56,9,-2,44,7,8,10 myArray.sort(Array.NUMERIC ); trace(myArray: + myArray); // myArray: -2,1,3,5,7,8,9,10,44,56,65 Would this work, or do you need to have the numbers pushed onto the array in a specific order to begin with? Daniel Holth I.S. Programmer x5217 || J401 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Friday, July 06, 2007 8:50 AM To: Flashcoders mailing list Subject: [Flashcoders] least to greatest Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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 This e-mail and its attachments are intended only for the use of the addressee(s) and may contain privileged, confidential or proprietary information. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, displaying, copying, or use of this information is strictly prohibited. If you have received this communication in error, please inform the sender immediately and delete and destroy any record of this message. Thank you. ___ 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] least to greatest
thanks for all the help guys. I am going to play with sort and see if I can't get this to work. On 7/6/07, Steve Abaffy [EMAIL PROTECTED] wrote: I am not sure if there is a sort method for arrays such as Array.Sort(direction) if such a function does not exists then you can always write a quick bubble sort function. function bubblesort(ArrayName){ changesmade = true; for(y = 0; y ArrayName.Length; y++{ if(changesmade){ changesmade = false; for(x = 0; x ArrayName.Length-1; x++){ if(ArrayName[x] ArrayName[x+1]){ temp = ArrayName[x]; ArrayName[x] = ArrayName[x+1]; ArrayName[x+1] = temp; Changesmade = true; } } } } Return ArrayName; } If you want to sort in accending order or descending order as well the if statement just needs to have the less than sign changed to a greater than sign. There are ways of speeding this function up you can put in a variable that checks to see if you made any changes to the array with each pass If no changes were made then array is sorted. But I might not bother with this step for only 10 variables. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Friday, July 06, 2007 8:50 AM To: Flashcoders mailing list Subject: [Flashcoders] least to greatest Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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 -- Corban Baxter http://www.projectx4.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] breaking up long actions
Hi, well it might be somewhere around that yes, and Im afraid I need them in memory at runtime:) greetz JC On 7/6/07, Mark Lapasa [EMAIL PROTECTED] wrote: Do you really need to have all the objects running in memory at runtime? If it's really really big, you might want to offload those objects to the backend and modify your current solution into one that paginates only what is needed. Are we talking like 10,000+ objects? Hans Wichman wrote: Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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] least to greatest
Hey You can push the numbers by using Array.push(The number). After that if you need to arrange that elements in a array you need to sort that array using array. sort(2) where 2 is the options number for sorting which represents descending Durai www.expertbuddy.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Friday, July 06, 2007 7:20 PM To: Flashcoders mailing list Subject: [Flashcoders] least to greatest Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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 DISCLAIMER: This communication may be confidential and privileged and the views expressed herein may be personal and are not necessarily the views of ReDIM. It is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that any distribution, copying or use of this communication or the information in it is strictly prohibited.If you have received this communication in error, please notify us by email ([EMAIL PROTECTED]) and then delete the email and any copies of it. ___ 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] test email please ignore.
Best Regards, Ashvin Savani - arckid Founder CTO - Avinashi.com Adobe Community Expert We Never Give Up! ___ 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] clearing position and duration of a sound object
Hi, Is it possible to reset or clear the duration and position of a sound object once it has completed playback. When I am loading a new sound that is longer than the previous one, the position continous from the end point of the previous sound and then is simply not updated further when it reaches the end point of the new sound. If I load a sound that is short er than the preceding sound, the position issimply set to the end point of the new sound, and remains there to the end of the new sound. is this a bug, or a feature, and how do I get around ti without creating anew sound object or initialising the existing one (with e.g. mySound = new Sound(); Thanks. Nik ___ 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] breaking up long actions
It doesn't break things in pieces for you but (I might get the problem the wrong way ;) ) that's the easy part isn't it? The interval does let you create/parse/edit large datasets without distorting the flow of the swf (the animation isn't distorted). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: vrijdag 6 juli 2007 16:21 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] breaking up long actions Hi Ben, tnx for the example, too bad setInterval in itself does not make content run in the background or my life would be a lot easier:). The problem is in the breaking up, but I think I got it figured now. thanks again JC On 7/6/07, Smeets, Ben [EMAIL PROTECTED] wrote: Hi Hans, The way I used to fix it, was indeed by using some sort of interval solution. Only to break up the loop in more parts so the animations won't get bothered with it. I have an example online at http://www.bensmeets.com/2007/04/09/using-threads-inside-flash/ (download the zip, it contains an animated example and source also). HTH, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: vrijdag 6 juli 2007 14:10 To: Flashcoders mailing list Subject: [Flashcoders] breaking up long actions Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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] Keeping XML Objects
I started to come to the same conclusion while writing the previous post -- why use XML if you don't have to. It would probably be better just to create a serialized object directly from the database and deserialize that in Flash. XML's always been the standard, and frankly when starting an app my mind goes there first. thanks for the advice. On 7/5/07, Ron Wheeler [EMAIL PROTECTED] wrote: For performance, if you have to parse it once you might as well convert it to objects . I do not always follow this advice and for the most part, on a reasonably modern PC it really does not matter. You do not have to use XPath. We just parse it in ActionScript in each getter as we need the info and once you have the pattern figured out, it is pretty easy. Just make sure that you have good set of Objects even if the only property is an XML structure. You can always change the methods later if you decide to parse the XML once. If you ever want/need to change a value at runtime, you will be much happier with objects. Ron ___ 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] breaking up long actions
I'm not sure you can interrupt the loop without modifying your code a little bit... I'm also not sure what the most suitable solution would be given your code structure, but I would say the cleanest way to do this is to break the loop out into a function that takes a parameter for the amount of iterations it should process for each interval. I like onEnterFrame as flash executes code in frames, so with that in mind, you can set the function to return the result of the test for the loop to indicate whether it has finished, and by such, end or resume the onEnterFrame. If you are using actionscript 2, you can also set properties on the function. You can then track the iterator index using a function property. function onEnterFrame() { var resume:Boolean = operateLoop(3); if(!resume) onEnterFrame = null; } function operateLoop(iterations:Number){ var iterationsI:Number = operateLoop.i+iterations; if(iterationsIoperateLoop.max) iterationsI = operateLoop.max; for(;operateLoop.iiterationsI;operateLoop.i++){ trace(operateLoop.i); } return operateLoop.ioperateLoop.max; }; operateLoop.max = 12; operateLoop.i = 0; On 7/6/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, well it might be somewhere around that yes, and Im afraid I need them in memory at runtime:) greetz JC On 7/6/07, Mark Lapasa [EMAIL PROTECTED] wrote: Do you really need to have all the objects running in memory at runtime? If it's really really big, you might want to offload those objects to the backend and modify your current solution into one that paginates only what is needed. Are we talking like 10,000+ objects? Hans Wichman wrote: Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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] least to greatest
Assuming you have something like this: var list:String = 7,60,5,9,11,13,1; var listArr:Array = list.split(,); listArr.sort(); That should do it. On 7/6/07, Corban Baxter [EMAIL PROTECTED] wrote: Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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] breaking up long actions
Hi Hans, The way I used to fix it, was indeed by using some sort of interval solution. Only to break up the loop in more parts so the animations won't get bothered with it. I have an example online at http://www.bensmeets.com/2007/04/09/using-threads-inside-flash/ (download the zip, it contains an animated example and source also). HTH, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: vrijdag 6 juli 2007 14:10 To: Flashcoders mailing list Subject: [Flashcoders] breaking up long actions Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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] swap depths with mask
Call something like this after you do the swap: targetMC.setMask(maskMC); This will reset the mask. Masking is tricky business. You cannot mask more than one thing. I mention this in case you are using swapDepths to try and cover more movieclips with your mask - it will not work... I don't think the depth of the mask has any impact on how it works. You might want to consider operating the masking mechanism programmatically to begin with. My summer is alright, thank you. Hope this helps. H On 7/5/07, Paul V. [EMAIL PROTECTED] wrote: Hey guys, how is the summer treating you guys? Quick question, I am running swapDepths() on a movClip and it's Mask layer. The mask doesn't work after the swap and it is going to one level above the movClip. So if anyone can direct me to how to fix this problem specifically that would be great !! Thanks, Vdst. ___ 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] Fullscreen problem
Hello :) no solution for the moment for your problem :) The fullscreen mod disabled the input fields.. Adobe implement this restriction but i don't know why ? EKA+ :) 2007/7/6, Izaias / Grafikonstruct [EMAIL PROTECTED]: Hi everyone! I have created a website with fullscreen option, using the follow code: Stage.displayState = fullScreen (To enable fullscreen version) Stage.displayState = normal (to back normal view) But I have a big problem: My website have a form with some editable fields, and if I click in fullscreen button, the fields stop edit. I can only put text in the fields in normal view. Does anyone have a solution? Thank you so much. Izaias Cavalcanti Grafikonstruct/Brazil http://www.grafikonstruct.com.br ___ 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] least to greatest
Put them in the array as is and then use Array.Sort()? Dave From: Corban Baxter [EMAIL PROTECTED] Reply-To: flashcoders@chattyfig.figleaf.com To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] least to greatest Date: Fri, 6 Jul 2007 08:50:20 -0500 Hey all I have a list of 10 numbers that I need to push into and array from least to greatest fairly often. What would be the fastest way to get this accomplished? Or maybe just anyway to get this done would be a great help thanks. -- Corban Baxter http://www.projectx4.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 _ http://newlivehotmail.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] Fullscreen problem
Tried the docs? http://livedocs.adobe.com/flash/9.0/main/2149.html quote While Flash Player is in full-screen mode, all keyboard input is disabled (except keyboard shortcuts that take the user out of full-screen mode). /quote regards, Muzak - Original Message - From: Izaias / Grafikonstruct [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 06, 2007 5:00 PM Subject: [Flashcoders] Fullscreen problem Hi everyone! I have created a website with fullscreen option, using the follow code: Stage.displayState = fullScreen (To enable fullscreen version) Stage.displayState = normal (to back normal view) But I have a big problem: My website have a form with some editable fields, and if I click in fullscreen button, the fields stop edit. I can only put text in the fields in normal view. Does anyone have a solution? Thank you so much. Izaias Cavalcanti Grafikonstruct/Brazil ___ 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] Fullscreen problem
I'm pretty sure that was a limitation of Full Screen in the docs. I haven't tried it yet, but if you're desperate to keep the full screen, you might see if you can use a Key listener to capture keyboard input and set the text of the text field. If the form's very complex, you may have to internally keep track of what text box has focus. Like I said though, haven't tried it yet so it's pure speculation (we decided to dump Full Screen -- it just wasn't worth the effort). If this post is too vague, I can try to whip up some code for an example. On 7/6/07, Izaias / Grafikonstruct [EMAIL PROTECTED] wrote: Hi everyone! I have created a website with fullscreen option, using the follow code: Stage.displayState = fullScreen (To enable fullscreen version) Stage.displayState = normal (to back normal view) But I have a big problem: My website have a form with some editable fields, and if I click in fullscreen button, the fields stop edit. I can only put text in the fields in normal view. Does anyone have a solution? Thank you so much. Izaias Cavalcanti Grafikonstruct/Brazil http://www.grafikonstruct.com.br ___ 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] Controllingt he volume of multiple sound objects at the same time
Sound objects associated with the same movie clip share their properties (volume, etc.), so if you change the volume through one of them, the change will be reflected by others, too. That is because in fact sound properties belong to movie clips and not the Sound objects, and Sound objects only reflect the sound settings of the associated movie clip. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:[EMAIL PROTECTED] [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Friday, July 6, 2007, 4:44:25 PM Subject: [Flashcoders] Controllingt he volume of multiple sound objects at the same time --===-- Hey there. I am trying to control the volume of a number of sound objects that have their own individual volume levels. I want to be able to mute them or allow them to play at the volume that has been set for them. I was thinking that I could do this by storing the values in arrays and then looping through these each time the sound is muted/unmuted but I am sure there must be an easier way. Any suggestsions v gratefully received :) Here is what I have so far: var sound1:Sound = new Sound(this); sound1.setVolume(60); var sound2:Sound = new Sound(this); sound2.setVolume(20); sound1.loadSound('an.mp3', false); sound2.loadSound('another.mp3', false); ___ 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] Fullscreen problem
And confirmed you can't get around it with a onKeyDown listener. Everything but Esc appears to be locked out. ___ 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] Controllingt he volume of multiple sound objects at the same time
That is just what i am lookig for eka thanks so much :) Enjoy yr weekend! Danny Hello :) in my opensource framework (VEGAS) i use a SoundLibrary class to manage my sounds... http://svn.riaforge.org/vegas/AS2/trunk/src/andromeda/media/SoundLibrary.as Exemple : {{{ import andromeda.media.SoundLibrary ; var lib:SoundLibrary = new SoundLibrary() ; lib.addSound( sound_1 ) ; // sound in the library with the link sound_1 lib.addSound( sound_2 ) ; // sound in the library with the link sound_2 lib.addSounds( [sound_3, sound_4] ) ; // add an Array of sounds in the library lib.loadSound( my_sound.mp3, sound5 ) ; lib.loadSound( sound6.mp3 ) ; // add the external sound and auto create the 'sound6' id of the sound in the library lib.setVolume( 50 ) ; // all sounds in the library changes the volume. lib.getSound(sound2).setVolume( 40 ) ; // change the volume of the 'sound2' Sound reference in the library. }}} This class inherit the SoundModel class : http://svn.riaforge.org/vegas/AS2/trunk/src/andromeda/media/SoundModel.as You can use an MVC pattern with this library with a global event flow etc.. This class is really easy to use :) Use the addSound or the addSounds ou the loadSound methods to register your local or external sounds.. You can find the VEGAS project page in Google Code : http://code.google.com/p/vegas/ You can find the tutorial to install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN You can find the documentation of my framework : http://vegas.ekameleon.net/docs You can find the SoundLibrary reference : http://vegas.ekameleon.net/docs/andromeda/media/SoundLibrary.html You can find the SoundModel reference : http://vegas.ekameleon.net/docs/andromeda/media/SoundModel.html You can see my AS2 opensource template AST'r .. in the sources of the project you can see my personal usage of my Framework.. in this context i use an external file of config to defines all sounds and i load an external sound to shared the sounds of the the application http://code.google.com/p/astr/ EKA+ :) 2007/7/6, Rákos Attila [EMAIL PROTECTED]: Sound objects associated with the same movie clip share their properties (volume, etc.), so if you change the volume through one of them, the change will be reflected by others, too. That is because in fact sound properties belong to movie clips and not the Sound objects, and Sound objects only reflect the sound settings of the associated movie clip. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:[EMAIL PROTECTED] [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Friday, July 6, 2007, 4:44:25 PM Subject: [Flashcoders] Controllingt he volume of multiple sound objects at the same time --===-- Hey there. I am trying to control the volume of a number of sound objects that have their own individual volume levels. I want to be able to mute them or allow them to play at the volume that has been set for them. I was thinking that I could do this by storing the values in arrays and then looping through these each time the sound is muted/unmuted but I am sure there must be an easier way. Any suggestsions v gratefully received :) Here is what I have so far: var sound1:Sound = new Sound(this); sound1.setVolume(60); var sound2:Sound = new Sound(this); sound2.setVolume(20); sound1.loadSound('an.mp3', false); sound2.loadSound('another.mp3', false); ___ 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 ___ 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
RES: [Flashcoders] Fullscreen problem
Yes Muzak, I did see it now. Thank you so much! Izaias -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Muzak Enviada em: sexta-feira, 6 de julho de 2007 12:40 Para: flashcoders@chattyfig.figleaf.com Assunto: Re: [Flashcoders] Fullscreen problem Tried the docs? http://livedocs.adobe.com/flash/9.0/main/2149.html quote While Flash Player is in full-screen mode, all keyboard input is disabled (except keyboard shortcuts that take the user out of full-screen mode). /quote regards, Muzak - Original Message - From: Izaias / Grafikonstruct [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 06, 2007 5:00 PM Subject: [Flashcoders] Fullscreen problem Hi everyone! I have created a website with fullscreen option, using the follow code: Stage.displayState = fullScreen (To enable fullscreen version) Stage.displayState = normal (to back normal view) But I have a big problem: My website have a form with some editable fields, and if I click in fullscreen button, the fields stop edit. I can only put text in the fields in normal view. Does anyone have a solution? Thank you so much. Izaias Cavalcanti Grafikonstruct/Brazil ___ 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] Controllingt he volume of multiple sound objects at the same time
Hello :) in my opensource framework (VEGAS) i use a SoundLibrary class to manage my sounds... http://svn.riaforge.org/vegas/AS2/trunk/src/andromeda/media/SoundLibrary.as Exemple : {{{ import andromeda.media.SoundLibrary ; var lib:SoundLibrary = new SoundLibrary() ; lib.addSound( sound_1 ) ; // sound in the library with the link sound_1 lib.addSound( sound_2 ) ; // sound in the library with the link sound_2 lib.addSounds( [sound_3, sound_4] ) ; // add an Array of sounds in the library lib.loadSound( my_sound.mp3, sound5 ) ; lib.loadSound( sound6.mp3 ) ; // add the external sound and auto create the 'sound6' id of the sound in the library lib.setVolume( 50 ) ; // all sounds in the library changes the volume. lib.getSound(sound2).setVolume( 40 ) ; // change the volume of the 'sound2' Sound reference in the library. }}} This class inherit the SoundModel class : http://svn.riaforge.org/vegas/AS2/trunk/src/andromeda/media/SoundModel.as You can use an MVC pattern with this library with a global event flow etc.. This class is really easy to use :) Use the addSound or the addSounds ou the loadSound methods to register your local or external sounds.. You can find the VEGAS project page in Google Code : http://code.google.com/p/vegas/ You can find the tutorial to install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN You can find the documentation of my framework : http://vegas.ekameleon.net/docs You can find the SoundLibrary reference : http://vegas.ekameleon.net/docs/andromeda/media/SoundLibrary.html You can find the SoundModel reference : http://vegas.ekameleon.net/docs/andromeda/media/SoundModel.html You can see my AS2 opensource template AST'r .. in the sources of the project you can see my personal usage of my Framework.. in this context i use an external file of config to defines all sounds and i load an external sound to shared the sounds of the the application http://code.google.com/p/astr/ EKA+ :) 2007/7/6, Rákos Attila [EMAIL PROTECTED]: Sound objects associated with the same movie clip share their properties (volume, etc.), so if you change the volume through one of them, the change will be reflected by others, too. That is because in fact sound properties belong to movie clips and not the Sound objects, and Sound objects only reflect the sound settings of the associated movie clip. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:[EMAIL PROTECTED] [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Friday, July 6, 2007, 4:44:25 PM Subject: [Flashcoders] Controllingt he volume of multiple sound objects at the same time --===-- Hey there. I am trying to control the volume of a number of sound objects that have their own individual volume levels. I want to be able to mute them or allow them to play at the volume that has been set for them. I was thinking that I could do this by storing the values in arrays and then looping through these each time the sound is muted/unmuted but I am sure there must be an easier way. Any suggestsions v gratefully received :) Here is what I have so far: var sound1:Sound = new Sound(this); sound1.setVolume(60); var sound2:Sound = new Sound(this); sound2.setVolume(20); sound1.loadSound('an.mp3', false); sound2.loadSound('another.mp3', false); ___ 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] breaking up long actions
Hi, well it's easy if you have a single for loop:), I had a deeply nested tree, but I'm flattening it out now using a stack of nodes to process. So the interval itself doesnt really allow you to edit large datasets, it allows you to edit lots of little ones:). tnx again JC On 7/6/07, Smeets, Ben [EMAIL PROTECTED] wrote: It doesn't break things in pieces for you but (I might get the problem the wrong way ;) ) that's the easy part isn't it? The interval does let you create/parse/edit large datasets without distorting the flow of the swf (the animation isn't distorted). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: vrijdag 6 juli 2007 16:21 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] breaking up long actions Hi Ben, tnx for the example, too bad setInterval in itself does not make content run in the background or my life would be a lot easier:). The problem is in the breaking up, but I think I got it figured now. thanks again JC On 7/6/07, Smeets, Ben [EMAIL PROTECTED] wrote: Hi Hans, The way I used to fix it, was indeed by using some sort of interval solution. Only to break up the loop in more parts so the animations won't get bothered with it. I have an example online at http://www.bensmeets.com/2007/04/09/using-threads-inside-flash/ (download the zip, it contains an animated example and source also). HTH, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: vrijdag 6 juli 2007 14:10 To: Flashcoders mailing list Subject: [Flashcoders] breaking up long actions Hi list, I'm running a process on a tree of objects that require lots of objects to be created. This takes somewhere around 300ms on my pc, and will usually be run as the swf starts or as all classes have been loaded. 300ms is enough for a stutter let alone when its run on slower pc's so I want to break down the task in subtasks to have it more processor friendly. I know this has been discussed a few times but cant seem to find any resources on it. At the moment I'm thinking of using a stack of nodes to process, and using the stack and an alloted time, to complete the whole process, eg in pseudo: onInterval() { if (process.isDone()) { clearInterval and send done event } else { process.continue(); } } The problem is old but I was wondering if anyone has come up with good solution to this. Usually by the time we find out a process is slow, the way we built it doesnt really allow us to break it up in chunks easily, especially with recursive structures etc. regards, JC ___ 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 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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] Controllingt he volume of multiple sound objects at the same time
Yes, but he has created a separate Sound object for each sound (sound1 and sound2), so he's fine in that respect. What would make this simpler, however, is to write a function that creates the sound objects based on the array, while also storing the initial volume for each sound. Here's an UNTESTED example: // build the array based on linked sounds in the library (catMeow etc.): var theSounds: Array = [catMeow , dogBark , alienScream , doorCreak] // create a parallel array of sound levels for each sound: var theVolumes: Array = [50,65,90,5]; // create a sound object for each array element: for (i=0; itheSounds.length; i++){ // create the sound object and attach the sound: this [theSounds[i] + SoundObject'] = new Sound(); this [theSounds[i] + SoundObject'].attachSound (this [theSounds[i]); // create a variable to store the initial volume for each sound: this [theSounds[i] + SoundObject'].initVolume = theVolumes[i]; // set the volume for this sound: this [theSounds[i] + SoundObject'].setVolume(this [theSounds[i] + SoundObject'].initVolume); } Where sound name is the name of the sound object: To play a sound, just use (sound name).start. To mute it, use (sound name).setVolume(0); To restore the volume, use (sound name.setVolume(sound name.initVolume). You could construct a function for this where the only arg would be the sound name. HTH Marc Hoffman At 08:33 AM 7/6/2007, you wrote: Sound objects associated with the same movie clip share their properties (volume, etc.), so if you change the volume through one of them, the change will be reflected by others, too. That is because in fact sound properties belong to movie clips and not the Sound objects, and Sound objects only reflect the sound settings of the associated movie clip. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:[EMAIL PROTECTED] [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Friday, July 6, 2007, 4:44:25 PM Subject: [Flashcoders] Controllingt he volume of multiple sound objects at the same time --===-- Hey there. I am trying to control the volume of a number of sound objects that have their own individual volume levels. I want to be able to mute them or allow them to play at the volume that has been set for them. I was thinking that I could do this by storing the values in arrays and then looping through these each time the sound is muted/unmuted but I am sure there must be an easier way. Any suggestsions v gratefully received :) Here is what I have so far: var sound1:Sound = new Sound(this); sound1.setVolume(60); var sound2:Sound = new Sound(this); sound2.setVolume(20); sound1.loadSound('an.mp3', false); sound2.loadSound('another.mp3', false); ___ 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] Bitmap.draw versus MovieClipLoader
I have a few copies of a downloaded image in memory to support various drag functions and would like to save some bandwidth. Obviously duplicateMovieClip won't work because it doesn't work on dynamically created clips that use LoadMovie. So I was thinking that I could use the new MovieClipLoader class and it would use the browsers cache or I could use the bitmap.draw function to create a bitmap and then attach that. Both of which I thought would work in the similar way. It seems that calling bitmap.draw on a movieclip that has a downloaded image forces another download - I haven't veified this via netmon (yet) - but notice that a sandbox security violation occurs when call that function. To me that doesn't make sense, If I already gave it permission to use that image from that domain, why would some other component using that same instance need to have the same permission (security line entries in the class file)? Am I better off using the MovieClipLoader class instead? - Will the MCL also try to download the image again and also need the sandbox settings? - or will it try to download it and load it from cache? Any insight would be helpful. 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
[Flashcoders] Cache issues on CS3
Hi :) don't know if it has been discussed earlier, couldn'T make any search. Anyway i've just installed CS3 on Vista and flashdevelop (FD3 beta2) , and i've got cache issues that i never got with flash 8. I'm working locally and even the ASO clear cache command doesn't work. When i do changes on my code, i have to quit Flash and then reopen it in order to make the changes working. is there a way to avoid this ? thanks, N. -- Nicolas TASKY conseil, analyse et développement multimédia ntasky.com - T.(514) 251-6267 C.(514) 839-6426 ___ 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] Multiline Issue
Anyone ever have an issue using multiline textbox where the second line of copy was just writing on top of the first line? Just like the leading was set to zero. Going crazy with this. Thanks! Jeff. ___ 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] Multiline Issue
can we see code? -- eric e. dolecki senior interactive engineer http://www.ericd.net On 7/6/07, Jeff Kemp [EMAIL PROTECTED] wrote: Anyone ever have an issue using multiline textbox where the second line of copy was just writing on top of the first line? Just like the leading was set to zero. Going crazy with this. Thanks! Jeff. ___ 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] Multiline Issue
Have you tried setting wordWrap/autoSize to true? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Kemp Sent: Friday, July 06, 2007 1:29 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Multiline Issue Anyone ever have an issue using multiline textbox where the second line of copy was just writing on top of the first line? Just like the leading was set to zero. Going crazy with this. Thanks! Jeff. ___ 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] Sandbox Security Violation - using Bitmap.draw
I'm having some real problems here and can't figure out the solution, maybe there's been so many solutions that google can't seem to locate the proper one. If anyone can help, please let me know. I dynamically load images into movieclips (these images are all over the web). I use System.security.allowDomain(*); System.security.allowInsecureDomain(*); When I load them, I get no errors etc, (using a MovieClipLoader) - then in the onLoadInit function of the MCL - I create another empty movieclip and use bitmap.draw to copy the image. Apparently the bitmap.draw is causing a Sandbox error - why? If the first instance is loading the image fine, why would it have a problem the second time? Thanks - Fruber. ___ 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] Bitmap.draw versus MovieClipLoader
It seems that calling bitmap.draw on a movieclip that has a downloaded image forces another download - I haven't veified this via netmon (yet) - but notice that a sandbox security violation occurs when call that function. To me that doesn't make sense, If I already gave it permission to use that image from that domain, why would some other component using that same instance need to have the same permission (security line entries in the class file)? Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/LoaderContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] Bitmap.draw versus MovieClipLoader
Perfect it told me exactly what I needed, but I'm not sure I understand why Macromedia (not adobe in this case) went in that direction - are they trying to protect pixel access for third party images? So I can load any image I want from anywhere, but the second I need to access the pixels (e.g. bitmap.draw) - I need to have that server (the source server for that image) allow me permission??!! But if I use anything earlier than 7 - It's ok?!! I guess I could proxy it like I do XML - but I'm not sure of the CreateObject type that I'd need to create in order to fill the Response. Any ideas on that? thanks for the help... Fruber _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 11:18 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Cc: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader It seems that calling bitmap.draw on a movieclip that has a downloaded image forces another download - I haven't veified this via netmon (yet) - but notice that a sandbox security violation occurs when call that function. To me that doesn't make sense, If I already gave it permission to use that image from that domain, why would some other component using that same instance need to have the same permission (security line entries in the class file)? Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Partsfile=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Loade rContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] Fullscreen problem
but why? ___ 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] assetpropflags
Hi folks, I wrote some info on ASSetPropFlags a while back and a wrapper class allowing you to forget all about it. Its based on the osflash info, info on the net and various tests. Code is mtasc strict compatible. I couldn't find any information that was *completely* correct and understandable, so for those of you like me, it might be of use. If not, sorry for the spam and plz ignore:) Here is the post: http://objectpainters.com/blog/?p=33 enjoy JC ___ 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] Bitmap.draw versus MovieClipLoader
Is there a way to proxy image data? I know for XML, it's a simple matter of createing a Microsoft.XMLHTTP object (in ASP/VBScript) and redirecting the information into the response object. Anyone know the object for an image and/or other HTML page? (e.g. Microsoft.HTML?? ) thanks - Fruber _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 11:18 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Cc: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader It seems that calling bitmap.draw on a movieclip that has a downloaded image forces another download - I haven't veified this via netmon (yet) - but notice that a sandbox security violation occurs when call that function. To me that doesn't make sense, If I already gave it permission to use that image from that domain, why would some other component using that same instance need to have the same permission (security line entries in the class file)? Haven't looked into it too deeply but look into http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Partsfile=0355.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Loade rContext.html#checkPolicyFile Might just be as simple as setting checkPolicyFile to true. Disclaimer The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ 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] WebServices support in AS3/FLCS3
John, Thanks for the update. This is a very important issue to resolve. Tree component would be nice to see as well Best, Austin John Dowdell wrote: Enrique Chávez wrote: What happened with the webservices classes in AS3/Flash CS3? i can't believe they are gone. I asked Product Manager Richard Galvan about this earlier this week, and I'll ping him today face-to-face to confirm. Here's where I'd expect info to appear first, if it isn't already among the technotes somewhere: http://blogs.adobe.com/rgalvan/ I suspect that it's something like not all AS2 routines yet adapted for the tighter ECMAScript in AS3, but even if so this info should still already be available in a FAQ or other searchable resource. I'm sorry for the hassle in the meantime, but I've got an action item to pursue this and get it publicly resolved. (I'll be on vacation next week; if it's not addressed by then please feel free to title a thread JD Flakes Out! on Flashcoders the week of the 16th to nudge my memory, thanks ;-) jd ___ 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] WebServices support in AS3/FLCS3
Thanks for looking into this John and passing along the info. I haven't used the WebServices classes myself for quite a while, but, obviously, there has been quite an outpouring of comments regarding their non-appearance in Flash CS3 (AS3). It's good to hear about any developments on this matter. Derek Vadneau - Original Message - From: John Dowdell To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 06, 2007 3:05 PM Subject: SPAM-LOW: Re: [Flashcoders] WebServices support in AS3/FLCS3 Enrique Chávez wrote: What happened with the webservices classes in AS3/Flash CS3? i can't believe they are gone. I asked Product Manager Richard Galvan about this earlier this week, and I'll ping him today face-to-face to confirm. Here's where I'd expect info to appear first, if it isn't already among the technotes somewhere: http://blogs.adobe.com/rgalvan/ I suspect that it's something like not all AS2 routines yet adapted for the tighter ECMAScript in AS3, but even if so this info should still already be available in a FAQ or other searchable resource. I'm sorry for the hassle in the meantime, but I've got an action item to pursue this and get it publicly resolved. (I'll be on vacation next week; if it's not addressed by then please feel free to title a thread JD Flakes Out! on Flashcoders the week of the 16th to nudge my memory, thanks ;-) jd ___ 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] Bitmap.draw versus MovieClipLoader
Is there a way to proxy image data? I know for XML, it's a simple matter of createing a Microsoft.XMLHTTP object (in ASP/VBScript) and redirecting the information into the response object. Anyone know the object for an image and/or other HTML page? (e.g. Microsoft.HTML?? ) You can 'proxy' any kind of http file. It's a simple script on PHP, ASP, etc. For example, for a script that even forwards POST data, http://xmlrpcflash.mattism.com/proxy_info.php For images (or other type of data) you'd just need to change the content-type. 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] Error Question AS3
Flash CS3 Pro Win XP Example from http://www.adobe.com/designcenter/video_workshop/ When trying to use the copy/paste animation from testBox to testCircle using Edit/Timeline/Copy Motion As ActionScript 3 I'm getting these errors when testing: 1046: Type was not found or was not a compile-time constant: testCircle. 1046: Type was not found or was not a compile-time constant: testCircle. Has anyone tried using this? Does anyone on this list know what this means and what to do about it or somewhere to find out? tia Hermit ___ 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] SWF Working differently from SWF Player versus IE.
It sounds like you are encountering a security sandbox issue. Do all the files exist on the same server and same domain? I believe that unless explicitly granted permission, swfs/bitmaps from different domains (subdomains) are blocked from reading each other's pixel data. Sincerely Mark R. Jonkman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fruber Malcome Sent: Friday, July 06, 2007 1:06 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] SWF Working differently from SWF Player versus IE. I have an interesting scenario that I wonder if anyone else has seen and found a workaround.. Scenario: I have a movieclip that has a background attached at depth 0. The user then can place external images onto this MovieClip at increasing depths. Each of these are created using createEmptyMC - then the image is loaded within that empty movieclip. The user can then save this new image, which behind the scenes it creates an array of pixel values from the parent MovieClip of all the clips - then a web service creates an image and then flash does a getURL for the returned image path. Test: When the user runs the swf directly from a local machine - everything works fine. When the user runs the swf from a web page (which means now it's on the server) - this is what happens: 1. If no images have been placed on the parent movieclip - the background image is saved and it viewed by the user. 2. If any images have been placed on the parent movieclip - then all the pixels are FF (this is the color that was used asa fill for the bitmapdata class). I have verified that getPixel32 on the MC is returning FF for each pixel - only in scenario #2. In either case, Printing the MC using the PrintJob class on the same MC - everything works fine. NOTES: Is it safe to assume that since running it from the SWF works, that this has nothing to-do with the parent movieclip and how getPixel32 get's it's information? But somehow IE/IIS is causing me some problems with how getPixel32 works on a MovieClip? Also - in ALL scenarios - both configurations are using the same server to process the image and return the valid path. Any help would be greatly appreciated. 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 ___ 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] SWF Working differently from SWF Player versus IE.
Yep, that was the issue, I'm trying to figure out how to proxy it now, Zeh was able to provide me a link to a PHP script that I may be able to modify to VBScript to proxy image data. I already have an XML proxy that serves the same purpose, but it seems like a nearly impossible task for image data (in VBScript) - so I'm testing the PHP solution now. Has anyone already done an Image Proxy in VBScript (or anything other than PHP)? Thanks - Fruber -Original Message- From: Mark R. Jonkman [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 1:17 PM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] SWF Working differently from SWF Player versus IE. It sounds like you are encountering a security sandbox issue. Do all the files exist on the same server and same domain? I believe that unless explicitly granted permission, swfs/bitmaps from different domains (subdomains) are blocked from reading each other's pixel data. Sincerely Mark R. Jonkman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fruber Malcome Sent: Friday, July 06, 2007 1:06 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] SWF Working differently from SWF Player versus IE. I have an interesting scenario that I wonder if anyone else has seen and found a workaround.. Scenario: I have a movieclip that has a background attached at depth 0. The user then can place external images onto this MovieClip at increasing depths. Each of these are created using createEmptyMC - then the image is loaded within that empty movieclip. The user can then save this new image, which behind the scenes it creates an array of pixel values from the parent MovieClip of all the clips - then a web service creates an image and then flash does a getURL for the returned image path. Test: When the user runs the swf directly from a local machine - everything works fine. When the user runs the swf from a web page (which means now it's on the server) - this is what happens: 1. If no images have been placed on the parent movieclip - the background image is saved and it viewed by the user. 2. If any images have been placed on the parent movieclip - then all the pixels are FF (this is the color that was used asa fill for the bitmapdata class). I have verified that getPixel32 on the MC is returning FF for each pixel - only in scenario #2. In either case, Printing the MC using the PrintJob class on the same MC - everything works fine. NOTES: Is it safe to assume that since running it from the SWF works, that this has nothing to-do with the parent movieclip and how getPixel32 get's it's information? But somehow IE/IIS is causing me some problems with how getPixel32 works on a MovieClip? Also - in ALL scenarios - both configurations are using the same server to process the image and return the valid path. Any help would be greatly appreciated. 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 ___ 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] Seeking Experienced Developer for Connecting Flash to Databases with Java
Hello, I'm working on a really sweet project and need some help from a fellow freelaner. If you are knowledgable in connecting Flash to databases (esp. Oracle) with Java, please contact me. Perhaps you can give me some pointers and or work with me as a consultant. Thanks for your help. Kind regards, Phil ___ 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] WebServices support in AS3/FLCS3
AFAIK, there are no technotes on this issue (and related issues like Flash Remoting) or they're well hidden somewhere ;-) The issue has come up here before.. And here's are some (unanswered) topics on the Adobe Flash Forums about webservices and remoting http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15catid=250threadid=1264156 http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15catid=288threadid=1263696 http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15catid=194threadid=1272741 http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15catid=194threadid=1261146 http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15catid=194threadid=1266127 The only Adobe response I could find is from Bentley Wolfe, posted on 04/19/2007 where he says: quoteWe're working on a TechNote covering this, expected next week./quote I don't know how long a week is at Adobe, but over here it's 7 days ;-) Bentley also points to this example as a solution/replacement for AS3 Flash Remoting http://www.oscartrelles.com/archives/as3_flash_remoting_example There's already a few open source implemetations available on osflash.org Super Simple Remoting: http://osflash.org/projects/ssr AS3 Lightweight Remoting Framework: http://osflash.org/as3lrf With all that said, I think that having an official remoting implementation, like there was for previous Flash versions, would be desired. On top of that, there's no AS2 Remoting Component package for Flash CS3. http://www.adobe.com/products/flashremoting/downloads/components/ So in order to use AS2 Remoting in Flash CS3, one has to go and look for all the required classes/debugger/docs in the Flash 8 config and copy them over manually (or keep Flash 8 around for AS2 projects). Once again I think a few - important - things have been overlooked with this new Flash release. no Webservices no Remoting (part from using NetConnection) no Data components (WebServiceConnector, XMLConnector, RemotingConnector, DataHolder, DataSet..) no Tree component no Accordion component no Alert component no Window component no DateChooser component no DateField component no Menu component no Menubar component Guess it's time to dump Flash.. long live Flex ;-) regards, Muzak - Original Message - From: John Dowdell [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 06, 2007 9:05 PM Subject: Re: [Flashcoders] WebServices support in AS3/FLCS3 Enrique Chvez wrote: What happened with the webservices classes in AS3/Flash CS3? i can't believe they are gone. I asked Product Manager Richard Galvan about this earlier this week, and I'll ping him today face-to-face to confirm. Here's where I'd expect info to appear first, if it isn't already among the technotes somewhere: http://blogs.adobe.com/rgalvan/ I suspect that it's something like not all AS2 routines yet adapted for the tighter ECMAScript in AS3, but even if so this info should still already be available in a FAQ or other searchable resource. I'm sorry for the hassle in the meantime, but I've got an action item to pursue this and get it publicly resolved. (I'll be on vacation next week; if it's not addressed by then please feel free to title a thread JD Flakes Out! on Flashcoders the week of the 16th to nudge my memory, thanks ;-) jd ___ 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] WebServices support in AS3/FLCS3
Update: Getting info from Flash Authoring was difficult because much of the team was travelling to Tokyo for customer visits. I'll expand the request list tonight. The forums links and technote statements were useful, thanks. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, 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] Bitmap.draw versus MovieClipLoader
I was using something like this for XML, but this gave me a really nice idea. I did find that Adobe had a much simpler version of the php file (two lines of code), that performed the same task. I decided to write an aspx page to perform the same task and to handle any type of page information. (A VERY slimmed down version of a reverse proxy server). So if anyone is looking for a similar solution, The link provided by Zeh is fine, also here are some others. A reverse proxy server in C# - perfect code to use as a blueprint or as-is. http://www.codeproject.com/cs/internet/reverseproxy.asp Adobe's scripts: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16520sliceId=2 If anyone else out there still has problems, I'll try to answer any questions. Thanks for the help all.. Frbuer. -Original Message- From: Zeh Fernando [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 12:47 PM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Bitmap.draw versus MovieClipLoader Is there a way to proxy image data? I know for XML, it's a simple matter of createing a Microsoft.XMLHTTP object (in ASP/VBScript) and redirecting the information into the response object. Anyone know the object for an image and/or other HTML page? (e.g. Microsoft.HTML?? ) You can 'proxy' any kind of http file. It's a simple script on PHP, ASP, etc. For example, for a script that even forwards POST data, http://xmlrpcflash.mattism.com/proxy_info.php For images (or other type of data) you'd just need to change the content-type. 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
Re: [Flashcoders] Error Question AS3
I have no answer for you. But I can say that I too am getting those errors, but in a completely different application. I have written a class and am trying to instantiate it from my Main document class. The code seems to be correct, yet I am getting this error. I will keep watching this thread in hopes to see something I might have over looked. Charles P. On 7/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Flash CS3 Pro Win XP Example from http://www.adobe.com/designcenter/video_workshop/ When trying to use the copy/paste animation from testBox to testCircle using Edit/Timeline/Copy Motion As ActionScript 3 I'm getting these errors when testing: 1046: Type was not found or was not a compile-time constant: testCircle. 1046: Type was not found or was not a compile-time constant: testCircle. Has anyone tried using this? Does anyone on this list know what this means and what to do about it or somewhere to find out? tia Hermit ___ 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] Error Question AS3
http://www.google.com/search?hl=enq=1046%3A+Type+was+not+found+or+was+not+a+compile-time+constant On 7/6/07, Charles Parcell [EMAIL PROTECTED] wrote: I have no answer for you. But I can say that I too am getting those errors, but in a completely different application. I have written a class and am trying to instantiate it from my Main document class. The code seems to be correct, yet I am getting this error. I will keep watching this thread in hopes to see something I might have over looked. Charles P. On 7/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Flash CS3 Pro Win XP Example from http://www.adobe.com/designcenter/video_workshop/ When trying to use the copy/paste animation from testBox to testCircle using Edit/Timeline/Copy Motion As ActionScript 3 I'm getting these errors when testing: 1046: Type was not found or was not a compile-time constant: testCircle. 1046: Type was not found or was not a compile-time constant: testCircle. Has anyone tried using this? Does anyone on this list know what this means and what to do about it or somewhere to find out? tia Hermit ___ 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] Re: Seeking Experienced Developer for Connecting Flash to Databases with Java
Phil Dupré wrote: Hello, I'm working on a really sweet project and need some help from a fellow freelaner. If you are knowledgable in connecting Flash to databases (esp. Oracle) with Java, please contact me. Perhaps you can give me some pointers and or work with me as a consultant. Thanks for your help. I have used AS3's Socket class to connect Flash to a server (written in C++), which perform operations on MySQL. I think you could connect Flash to Oracle in this way. Like this: Flash(AS3) (socket)-- Java -- Oracle ___ 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] Re: Seeking Experienced Developer for Connecting Flash to Databases with Java
Hi. Thanks for the advice. Would this socekt work for Java? My client doesn't use MySQL. They reccommend Java and XML. Thanks. ~Phil On 7/6/07, gchen [EMAIL PROTECTED] wrote: Phil Dupré wrote: Hello, I'm working on a really sweet project and need some help from a fellow freelaner. If you are knowledgable in connecting Flash to databases (esp. Oracle) with Java, please contact me. Perhaps you can give me some pointers and or work with me as a consultant. Thanks for your help. I have used AS3's Socket class to connect Flash to a server (written in C++), which perform operations on MySQL. I think you could connect Flash to Oracle in this way. Like this: Flash(AS3) (socket)-- Java -- Oracle ___ 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