Re: [Flashcoders] Transitions on dynamically loaded swf slow down if you resize that loaded swf file and then play the transition.
Hi Vivek I didnt understand much about your problem from the explanations. But as for my understanding these might be the issues.. I guess the transitions clip might be heavy . so only when resizing it doesnt play at normal speed what u expected. I guess you can try out some way of transitions using the tween class. It might improve the performance. If the transitions is not using tween motion..Could you send me the code for better understanding. So it might be helpful to predict the problem. In the second case i guess there might be some issues with the toggling variable or other. If you send me the code for this too it could be resolved cheers Durairaj On 5/21/07, Vivek Lakhanpal [EMAIL PROTECTED] wrote: Hi Everyone, I have a very unique problem. If i play transitions on dynamically loaded swf files in my container swf file. They all play nicely until i resize them. When i resize the dynamically loaded swf files as per the size of the container file the transition slow down to almost 0speed midway for few millisecond and then play. 2nd problem is that the container file i am referring here is a player which plays a slide show in it. For a better client experience i am loading all swf files into dynamically created child container clips, after loading each swf file i stop it and set their visibility to 0. Now the problem is that When i play the slide on it's turn and make it visible almost none of the transition plays. I have to make it play the other way. I play the slide when it's turn comes, set it's visibility to 1 and then set an interval of almost 500ms after which i play a transition on that slide/clip and it player nicely. I am not sure why is that. Any suggestion or help in this regard will be highly appreciated. -- Thanks Regards, Vivek Lakhanpal. Phone: +91-987-608-2125 (India) Skype ID: lakhanpalv Website: http://viveklakhanpal.spaces.live.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 -- Durairaj www.expertbuddy.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Transitions on dynamically loaded swf slow down if you resize that loaded swf file and then play the transition.
Hi Durairaj, Thanks for looking into the problem. Let me try to rephrase it once again. I have a flash player in which user can play slideshow (e.g. http://www.authorstream.com) now in this player as you can see the dimension of the player is around 400x300 approx. But the slides being loaded are 720x540 for some unavoidable reason. Few days back a requirement came that we have to put up transitions in this player as you see in the PowerPoint show. So i have imported transition classes in the player and tried to implement the transitions into the loaded clip (slides converted to swf from ppt). Now as you can see the player is of shorter dimensions then that of slides being provided to the player. So i have to resize the slide after loading them into a clip. Here starts the problem. On a button click (next of play button or at end of slide) I load next slide into the player. I have a function which load slide into the player. This function first show the dynamically loaded clip into player on top of already loaded clip and then hide the previous clip by setting it's visibility to 0. Here i was implementing the Transition on the clip by picking up the dynamic parameters being provided to me by the xml. So while playing the transition it will play at certain speed till it reaches a half way mark and then stops for a fraction of second and then again start till finish. If i implement the same code in a player of normal size i.e. where i don't have to resize the loaded swf file it plays smoothly. BTW i have to remove the transition from the current player on the website as it wasn't playing properly. Let me know if you understood the problem. I will try to send you the code next time -- Thanks Regards, Vivek Lakhanpal. Phone: +91-987-608-2125 (India) Skype ID: lakhanpalv Website: http://viveklakhanpal.spaces.live.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] Coordinates and Stage align in Flexible UIs
Hi there, Is there a good explanation about how co-ordinates work with Stage Align? I'm building a Flexible UI and all works fine is I use Stage.align to the top left, and set teh scalemode to noscale, but if I want to align it to the center things start going a little hay-wire. I'm trying to leave as much of the design on the timeline as possible, and will be loading in SWF dynamically, so I'm aiming to have the main content centered, and have the UI change around that, rather than positioning it with code, but I've not managed to do that yet. Anyone know of any resources that might help me? - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Coordinates and Stage align in Flexible UIs
Maybe this will help: http://muzakdeezign.com/flashcoders/stage_align.html regards, Muzak - Original Message - From: Kevin Cannon [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 22, 2007 12:43 PM Subject: [Flashcoders] Coordinates and Stage align in Flexible UIs Hi there, Is there a good explanation about how co-ordinates work with Stage Align? I'm building a Flexible UI and all works fine is I use Stage.align to the top left, and set teh scalemode to noscale, but if I want to align it to the center things start going a little hay-wire. I'm trying to leave as much of the design on the timeline as possible, and will be loading in SWF dynamically, so I'm aiming to have the main content centered, and have the UI change around that, rather than positioning it with code, but I've not managed to do that yet. Anyone know of any resources that might help me? - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Problem: FileReference onComplete event handler fires too soon - not properly waiting for HTTP status code 200
Dear all, We are trying to use Flash 8's FileReference API to upload the big media files in our web app. In our application we upload big media file first to some transient server and then immediately in the same uploading process we start moving this file to Amazon S3 file storage server. The whole uploading process for big media file can be accomplished within 100 seconds, 200 seconds or even 10 000 seconds on slow connections. Important note: Only after the WHOLE upload process finishes, HTTP status code 200 is sent from the server to the Flash player. Unfortunately, for some reason, FileReference 'onComplete' event handler ALWAYS fires after aprox.10-15 sec of time, regardless the fact that HTTP status code 200 is sent from the server after 100 seconds, 200 seconds and even 10 000 seconds. Why is that? Accordingly to Flash 8 livedocs, FileReference onComplete event handler fires ONLY when Flash Player has received an HTTP status code of 200 from the server . http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2215.html -- With flex regards, Andriy Panas ___ 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] Coordinates and Stage align in Flexible UIs
Hi, That looks very useful. I've one question though. How is the 'border to stage position' information worked out? Is the some kind of absolute top/left co-ordinates you can find? - Kevin On 22/05/07, Muzak [EMAIL PROTECTED] wrote: Maybe this will help: http://muzakdeezign.com/flashcoders/stage_align.html regards, Muzak - Original Message - From: Kevin Cannon [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 22, 2007 12:43 PM Subject: [Flashcoders] Coordinates and Stage align in Flexible UIs Hi there, Is there a good explanation about how co-ordinates work with Stage Align? I'm building a Flexible UI and all works fine is I use Stage.align to the top left, and set teh scalemode to noscale, but if I want to align it to the center things start going a little hay-wire. I'm trying to leave as much of the design on the timeline as possible, and will be loading in SWF dynamically, so I'm aiming to have the main content centered, and have the UI change around that, rather than positioning it with code, but I've not managed to do that yet. Anyone know of any resources that might help me? - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Extract and use numbers from string
Thanks Hans That really helped me :) Best wishes Johnny ___ 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] Have a problem with my flash site, in 1 or 2 people computer
Hi, I have a weird problem with a site (http://www.2pestudio.com/). The client said that one person tried to see it, but loaded only a green i (on top-right) and the address (just beside the i) and the loader keeps on screen, forever. Weird cause the site has a preloader and only shows those if the xml has loaded, and it has a structure that would really avoid those type of problems. The site is exported to Flash 8 player, and this person that had this problem, said that he loads hundreds of sites, with no problem. Well, I´ll let you know the fla structure down here so you can see that I am talking about: . frame1: Stage.scaleMode = noScale; . frame2: preloader (own swf, css, xml, bg image - the client wanted only one preloader) xml loads with loading only appearing (carregando instead of loading) when it finishes, preloader start loading xml content, bg image, text, etc. when it finishes, after being sure that css is loaded, it goes to frame 4. . frame3: exported library itens . frame4: preloader goes away with transition, when transitionIsComplete, goes to frame5 . frame5. here is where the site is mounted, I use transitions to keep things organized. any part of the i (on top-right) code, is here, nothing before. Anyone have a clue about that? ___ 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] Have a problem with my flash site, in 1 or 2 people computer
Hi, I went to your site and it loaded fine. I didn't have any problems with it. My guess is either: a) your swf is Flash 9 and the client does not have the Flash 9 player b) your client does not have a current version of the Flash player loaded. I have had clients in the past tell me they cannot see a site I have built - but can see others. Everytime, directing them to Adobe's site to install the most recent Flash player has resolved the problem. Good luck! elaine elaine montoya adobe community expert - nm adobe user group coordinator http://www.nmaug.com On May 22, 2007, at 8:37 AM, Helios Pregioni Bayma wrote: Hi, I have a weird problem with a site (http://www.2pestudio.com/). The client said that one person tried to see it, but loaded only a green i (on top-right) and the address (just beside the i) and the loader keeps on screen, forever. Weird cause the site has a preloader and only shows those if the xml has loaded, and it has a structure that would really avoid those type of problems. The site is exported to Flash 8 player, and this person that had this problem, said that he loads hundreds of sites, with no problem. Well, I´ll let you know the fla structure down here so you can see that I am talking about: . frame1: Stage.scaleMode = noScale; . frame2: preloader (own swf, css, xml, bg image - the client wanted only one preloader) xml loads with loading only appearing (carregando instead of loading) when it finishes, preloader start loading xml content, bg image, text, etc. when it finishes, after being sure that css is loaded, it goes to frame 4. . frame3: exported library itens . frame4: preloader goes away with transition, when transitionIsComplete, goes to frame5 . frame5. here is where the site is mounted, I use transitions to keep things organized. any part of the i (on top-right) code, is here, nothing before. Anyone have a clue about that? ___ 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 + Bitmap
Curious issue that I ran into. I have this small flash app meant to run locally. It basically shows the current webcame stream and when a user hits a button, it takes a snapshot (copy over the video to bitmap object) and then later the user can print it. Works fine. Except when I change the security setting to not be Deny. Everytime you get to the camera part, the security dialog comes up, you hit allow and everything works fine. I want to hide that dialog, so I go to settings and hit allow and check remember this. The camera works fine and no security prompt comes up, BUT, for some reason, if I do this the bitmap object won't make a copy of the video. Is there some additional security that I'm missing there? This is... odd behaviour. -mike ___ 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] Have a problem with my flash site, in 1 or 2 people computer
Hi Elaine, The swf is version 8, and the client has player 9 installed. And it loads the swf, reaches the last frame, but failes to show background and menu itens. But loads xml, css, and everything. I don´t have any idea of what can be happening. Thanks for the tips! Any other idea, let me know! Thanks! Helios ___ 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] Have a problem with my flash site, in 1 or 2 people computer
you should think about those of us with widescreen monitors at high resolution. i can see where the right edge of your background images end. - eric On 5/22/07, Helios Pregioni Bayma [EMAIL PROTECTED] wrote: Hi Elaine, The swf is version 8, and the client has player 9 installed. And it loads the swf, reaches the last frame, but failes to show background and menu itens. But loads xml, css, and everything. I don´t have any idea of what can be happening. Thanks for the tips! Any other idea, let me know! Thanks! Helios ___ 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 -- eric e. dolecki senior interactive engineer http://www.ericd.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash + ASP / LoadVariables
I hope you guys could help me on this one. Flash 8, AS2, ASP3. I have a simple flash form, content form textboxes should be loaded in an asp file. The ASP part is working fine. But flash don't. I have this action in the submit form: on (release) { loadVariables(Load.asp, 0, POST); } But it doesn't work. It seems that values aren't passed to ASP. Any help/idea? What is the right way to achieve this task in AS3? TIA Claudio M. E. Bastos Iorio http://www.blumer.com.ar ___ 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] remove duplicate items in array
hi guys i'm looking for a way of removing duplicate items in an array i've done this so far //sort array so all items of the same content are grouped together myArray.sort(); //loop through items, removing any sitting next to a duplicate for (var i:Number = 0; i myArray.length; i++) { if (myArray[i] == myArray[i+1]) { myArray.splice (i, 1); } } however, i always seems to end up with the first 2 items in the array being the same (although it works well after that) i can't figure out why - hope you can help obie ___ 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] remove duplicate items in array
Don't you think that you should take into consideration that the length of the array can change during the loop? Attila ABER //loop through items, removing any sitting next to a duplicate ABER for (var i:Number = 0; i myArray.length; i++) { ABER if (myArray[i] == myArray[i+1]) { ABER myArray.splice (i, 1); ABER } ABER } ___ 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] remove duplicate items in array
You could prevent duplicates from being placed into the array in the first place. Or http://proto.layer51.com/d.aspx?f=1196 You could rewrite a prototype as a regular function that takes the array as an argument. - eric On 5/22/07, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hi guys i'm looking for a way of removing duplicate items in an array i've done this so far //sort array so all items of the same content are grouped together myArray.sort(); //loop through items, removing any sitting next to a duplicate for (var i:Number = 0; i myArray.length; i++) { if (myArray[i] == myArray[i+1]) { myArray.splice (i, 1); } } however, i always seems to end up with the first 2 items in the array being the same (although it works well after that) i can't figure out why - hope you can help obie ___ 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] Coordinates and Stage align in Flexible UIs
- Original Message - From: Kevin Cannon [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 22, 2007 3:11 PM Subject: Re: [Flashcoders] Coordinates and Stage align in Flexible UIs Hi, That looks very useful. I've one question though. How is the 'border to stage position' information worked out? Is the some kind of absolute top/left co-ordinates you can find? - Kevin No, you calculate those using the original document width and height and the Stage.width and Stage.height. So you'll have to store the original width and height in variables. var origWidth:Number = 760; var origHeight:Number = 450; var offsetX:Number = (Stage.width - origWidth)/2; var offsetY:Number = (Stage.height - origHeight)/2; regards, Muzak ___ 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] remove duplicate items in array
Your function is fine if you want to only remove the 1st occurance of a repeat. However, 3 in a row will be only reduced to 2. I'm guessing that's what's happening to you. In other words, [1,1,2,3,3,4] will properly reduce to [1,2,3,4] with your function. However, [1,1,1,2,3,3,4] will only reduce to [1,1,2,3,4]. Trace through your function using the above examples step by step and you should see where your error is. Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Tuesday, May 22, 2007 1:05 PM To: flashcoders Subject: [Flashcoders] remove duplicate items in array hi guys i'm looking for a way of removing duplicate items in an array i've done this so far //sort array so all items of the same content are grouped together myArray.sort(); //loop through items, removing any sitting next to a duplicate for (var i:Number = 0; i myArray.length; i++) { if (myArray[i] == myArray[i+1]) { myArray.splice (i, 1); } } however, i always seems to end up with the first 2 items in the array being the same (although it works well after that) i can't figure out why - hope you can help obie ___ 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 email has been scanned by MessageLabs Email Security System for spam, virus, and inappropriate content. __ ___ 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] remove duplicate items in array
From my XArray mixin class (all 3 are needed). /** * Returns a new array by removing duplicate values in Array. */ Array.prototype.uniq = function() { var r = []; var l = this.length; for (var a = 0; a l; a++) { if (!r.has(this[a])) r.push(this[a]); } return r; }; /** * An array is equal to another array if the lengths are equal and each * corresponding element is equal */ Array.prototype.eql = function(arr) { if (arr.length != this.length || !(arr instanceof Array)) { return false; } else { var a = this.length; while (--a -(-1)) { if (this[a] instanceof Array) { if (!this[a].eql(arr[a])) return false; } else if (this[a] != arr[a]) { return false; } } } return true; }; /** * Returns true if the given obj is present in Array * (if any element == obj) */ Array.prototype.has = function(obj) { var a = this.length; if (!(obj instanceof Array)) { while (--a -(-1)) { if (this[a] == obj) return true; } } else { while (--a -(-1)) { if (this[a].eql(obj)) return true; } } return false; }; http://ubergeek.tv/XArray/XArray.as ___ 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] remove duplicate items in array
yeh - i started trying to do that but just got myself into a moody bluddle - i'll prolly go back and try to rewrite it a bit cleaner when i'm happy i'll hit deadline here's what i ended up with - var myTempArray:Array = []; designerArray.sort(); for (var i:Number = 0; i designerArray.length; i++) { if (designerArray[i] != designerArray[i-1]) { myTempArray.push(designerArray.slice(i,i+1)); } } designerArray = myTempArray; thanks for the tips guys On 22 May 2007, at 18:13, Rákos Attila wrote: Don't you think that you should take into consideration that the length of the array can change during the loop? Attila ABER //loop through items, removing any sitting next to a duplicate ABER for (var i:Number = 0; i myArray.length; i++) { ABER if (myArray[i] == myArray[i+1]) { ABER myArray.splice (i, 1); ABER } ABER } ___ 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] remove duplicate items in array
8o thankyou On 22 May 2007, at 18:56, Steven Sacks wrote: From my XArray mixin class (all 3 are needed). /** * Returns a new array by removing duplicate values in Array. */ Array.prototype.uniq = function() { var r = []; var l = this.length; for (var a = 0; a l; a++) { if (!r.has(this[a])) r.push(this[a]); } return r; }; /** * An array is equal to another array if the lengths are equal and each * corresponding element is equal */ Array.prototype.eql = function(arr) { if (arr.length != this.length || !(arr instanceof Array)) { return false; } else { var a = this.length; while (--a -(-1)) { if (this[a] instanceof Array) { if (!this[a].eql(arr[a])) return false; } else if (this[a] != arr[a]) { return false; } } } return true; }; /** * Returns true if the given obj is present in Array * (if any element == obj) */ Array.prototype.has = function(obj) { var a = this.length; if (!(obj instanceof Array)) { while (--a -(-1)) { if (this[a] == obj) return true; } } else { while (--a -(-1)) { if (this[a].eql(obj)) return true; } } return false; }; http://ubergeek.tv/XArray/XArray.as ___ 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] remove duplicate items in array
i could barely read that - it looks ammmaaazing :D thanks eric - when's the next super samurai book coming out? :) On 22 May 2007, at 18:18, eric e. dolecki wrote: You could prevent duplicates from being placed into the array in the first place. Or http://proto.layer51.com/d.aspx?f=1196 You could rewrite a prototype as a regular function that takes the array as an argument. - eric On 5/22/07, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hi guys i'm looking for a way of removing duplicate items in an array i've done this so far //sort array so all items of the same content are grouped together myArray.sort(); //loop through items, removing any sitting next to a duplicate for (var i:Number = 0; i myArray.length; i++) { if (myArray[i] == myArray[i+1]) { myArray.splice (i, 1); } } however, i always seems to end up with the first 2 items in the array being the same (although it works well after that) i can't figure out why - hope you can help obie ___ 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] Q:Create and animate diagonal slices from Bitmap
I'm trying to create and animate diagonal slices from a bitmap object. The easiest way to create slices from Bitmaps is via the Rectangle class, but I need diagonal slices. Can this be done via a matrix transform of my bitmap BEFORE I create my slices, or si there an easier way that involves skewing the slices I create using the Rectangle class? Any suggestions welcome! [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders]
Hello.. The present Email is for asking help about a source code I have downloaded from http://www.adobe.com/devnet/flash/articles/video_player.html I have been trying to add some .flv I converted from some of my movies, and I cant find the way in the very all chances I tried, that the code makes automatically the thumb. I have tried with different movie formats (.mov, .avi, .wmp, .mpeg, etc converted by Riva encoder) and some works successfully. but others not. I have anyone used this source code and guide me with good practices in how could I import flv movies and asure that thumb is gonna be created? Thanks in advance Daniel C. _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline___ 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] help about buttons from xml file.
Hi, I'm creating buttons dinamycally using a xml file, this is my code: stop(); menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { //portfolioTag = this.firstChild; titleMenus = this.firstChild.childNodes.length; menuContent = this.firstChild; for (var i = 0; i 4; i++){ // either menu or item menuContent.childNodes[i].nodeName; // name of the item menuTitle= menuContent.childNodes[i].attributes.title; var buttonsMenu= _root.menu.attachMovie(buttons, menuTitle, this.getNextHighestDepth()); this.buttonsMenu._x=0; this.buttonsMenu._y=-10*i; var newText = buttonsMenu.poa.text=menuTitle; // action of the item textMenu= menuContent.childNodes[i].attributes.text; trace(buttonsMenu); // variables for that action } } menus.load(txt/poa.xml); the problem here is that it shows only one button, what about the rest of them, the output window shows all, but in the swf only appear one. I don't know what is going on...I need Help. When I trace the different variables, everything seems ok. this is the xml code: ?xml version=1.0 encoding=ISO-8859-1? POA article title= What is POA text =The market has been evolving in the past few years, therefore the communication tools cannot be the same. Along with the market, the consumer has also changed. Thanks to our innovated communication method called POA (perception Oriented Advertising) we can reach your potential customers in a clear, direct and different way. This communication method is based on an important research conducted in the United States where it was concluded that customers don't buy products or services; they buy perceptions. For example, women don't buy make-up, they buy beauty. Men don't buy gym services, they buy a perfect body. Executives don't buy luxury vehicles, they buy status. Observe the difference between what I buy- and -how I feel when I buy it-. This is what our effective communication tool is all about: reality vs. perception. The way in which you communicate your products or services is the perception your potential customers will have of you. So please be particularly careful with the way you advertise your products or services. / article title= Previous Steps to POA text=Accept the fact that you're not a graphic designer, programmer or have a marketing major Acknowledge the reality that advertising, design and marketing are not an option but a need for the expansion of your company Recognize that the money you will pay to help your brand grow is an investment and not an expense Again, bear in mind that the money you will pay to help your brand grow is an investment and not an expense Believe in an experienced professional staff to handle your brand. Your business is what's at stake Consider that there are not small businesses; even a 'home office' may be seen as a great corporation. Perceptions! Keep in mind that -my customers don't buy my brand but what they perceive of it-. If you're willing to follow the seven previous steps, you're ready to make POA a real part of your brand / article title= How do we apply POA text= Complete knowledge of your brand Full analysis Identify the brand's strengths and weaknesses Value Added Recognition Competition follow up (what are they advertising, communication strategy analysis) Brand character definition Acknowledgement and study of target groups to be reached Clear and effective communication and marketing strategy definition Development of different steps to follow based on the market and target market to be captured Communications concept definition Final marketing campaign idea / article title = Results of POA text=The proper application of POA (Perception Oriented Advertising) produces a change in the entire perception, a strengthening of the capacity to remember a given brand and a clear and firm repositioning. The result: A visible growth of your products and/or services within the market/ /POA Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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] remove duplicate items in array
holy wow - super samurai ;) I didn't know many even saw that one... On 5/22/07, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: i could barely read that - it looks ammmaaazing :D thanks eric - when's the next super samurai book coming out? :) On 22 May 2007, at 18:18, eric e. dolecki wrote: You could prevent duplicates from being placed into the array in the first place. Or http://proto.layer51.com/d.aspx?f=1196 You could rewrite a prototype as a regular function that takes the array as an argument. - eric On 5/22/07, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hi guys i'm looking for a way of removing duplicate items in an array i've done this so far //sort array so all items of the same content are grouped together myArray.sort(); //loop through items, removing any sitting next to a duplicate for (var i:Number = 0; i myArray.length; i++) { if (myArray[i] == myArray[i+1]) { myArray.splice (i, 1); } } however, i always seems to end up with the first 2 items in the array being the same (although it works well after that) i can't figure out why - hope you can help obie ___ 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] remove duplicate items in array
i had to order it from the states - it was great On 22 May 2007, at 19:58, eric e. dolecki wrote: holy wow - super samurai ;) I didn't know many even saw that one... On 5/22/07, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: i could barely read that - it looks ammmaaazing :D thanks eric - when's the next super samurai book coming out? :) On 22 May 2007, at 18:18, eric e. dolecki wrote: You could prevent duplicates from being placed into the array in the first place. Or http://proto.layer51.com/d.aspx?f=1196 You could rewrite a prototype as a regular function that takes the array as an argument. - eric On 5/22/07, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hi guys i'm looking for a way of removing duplicate items in an array i've done this so far //sort array so all items of the same content are grouped together myArray.sort(); //loop through items, removing any sitting next to a duplicate for (var i:Number = 0; i myArray.length; i++) { if (myArray[i] == myArray[i+1]) { myArray.splice (i, 1); } } however, i always seems to end up with the first 2 items in the array being the same (although it works well after that) i can't figure out why - hope you can help obie ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] help about buttons from xml file.
are the rest of them dissappearing off the top of the movie (this.buttonsMenu._y=-10*i;)? try using a positive number just to see if they appear On 22 May 2007, at 19:41, Gustavo Duenas wrote: Hi, I'm creating buttons dinamycally using a xml file, this is my code: stop(); menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { //portfolioTag = this.firstChild; titleMenus = this.firstChild.childNodes.length; menuContent = this.firstChild; for (var i = 0; i 4; i++){ // either menu or item menuContent.childNodes[i].nodeName; // name of the item menuTitle= menuContent.childNodes[i].attributes.title; var buttonsMenu= _root.menu.attachMovie(buttons, menuTitle, this.getNextHighestDepth()); this.buttonsMenu._x=0; this.buttonsMenu._y=-10*i; var newText = buttonsMenu.poa.text=menuTitle; // action of the item textMenu= menuContent.childNodes[i].attributes.text; trace(buttonsMenu); // variables for that action } } menus.load(txt/poa.xml); the problem here is that it shows only one button, what about the rest of them, the output window shows all, but in the swf only appear one. I don't know what is going on...I need Help. When I trace the different variables, everything seems ok. this is the xml code: ?xml version=1.0 encoding=ISO-8859-1? POA article title= What is POA text =The market has been evolving in the past few years, therefore the communication tools cannot be the same. Along with the market, the consumer has also changed. Thanks to our innovated communication method called POA (perception Oriented Advertising) we can reach your potential customers in a clear, direct and different way. This communication method is based on an important research conducted in the United States where it was concluded that customers don't buy products or services; they buy perceptions. For example, women don't buy make-up, they buy beauty. Men don't buy gym services, they buy a perfect body. Executives don't buy luxury vehicles, they buy status. Observe the difference between what I buy- and -how I feel when I buy it-. This is what our effective communication tool is all about: reality vs. perception. The way in which you communicate your products or services is the perception your potential customers will have of you. So please be particularly careful with the way you advertise your products or services. / article title= Previous Steps to POA text=Accept the fact that you're not a graphic designer, programmer or have a marketing major Acknowledge the reality that advertising, design and marketing are not an option but a need for the expansion of your company Recognize that the money you will pay to help your brand grow is an investment and not an expense Again, bear in mind that the money you will pay to help your brand grow is an investment and not an expense Believe in an experienced professional staff to handle your brand. Your business is what's at stake Consider that there are not small businesses; even a 'home office' may be seen as a great corporation. Perceptions! Keep in mind that -my customers don't buy my brand but what they perceive of it-. If you're willing to follow the seven previous steps, you're ready to make POA a real part of your brand / article title= How do we apply POA text= Complete knowledge of your brand Full analysis Identify the brand's strengths and weaknesses Value Added Recognition Competition follow up (what are they advertising, communication strategy analysis) Brand character definition Acknowledgement and study of target groups to be reached Clear and effective communication and marketing strategy definition Development of different steps to follow based on the market and target market to be captured Communications concept definition Final marketing campaign idea / article title = Results of POA text=The proper application of POA (Perception Oriented Advertising) produces a change in the entire perception, a strengthening of the capacity to remember a given brand and a clear and firm repositioning. The result: A visible growth of your products and/or services within the market/ /POA Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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
Re: [Flashcoders] help about buttons from xml file: solved
I've just resolved this, It was in the this.getNextHighestDepth(); . I use the , 10+1 instead of, and voila!!! it works On May 22, 2007, at 2:41 PM, Gustavo Duenas wrote: Hi, I'm creating buttons dinamycally using a xml file, this is my code: stop(); menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { //portfolioTag = this.firstChild; titleMenus = this.firstChild.childNodes.length; menuContent = this.firstChild; for (var i = 0; i 4; i++){ // either menu or item menuContent.childNodes[i].nodeName; // name of the item menuTitle= menuContent.childNodes[i].attributes.title; var buttonsMenu= _root.menu.attachMovie(buttons, menuTitle, this.getNextHighestDepth()); this.buttonsMenu._x=0; this.buttonsMenu._y=-10*i; var newText = buttonsMenu.poa.text=menuTitle; // action of the item textMenu= menuContent.childNodes[i].attributes.text; trace(buttonsMenu); // variables for that action } } menus.load(txt/poa.xml); the problem here is that it shows only one button, what about the rest of them, the output window shows all, but in the swf only appear one. I don't know what is going on...I need Help. When I trace the different variables, everything seems ok. this is the xml code: ?xml version=1.0 encoding=ISO-8859-1? POA article title= What is POA text =The market has been evolving in the past few years, therefore the communication tools cannot be the same. Along with the market, the consumer has also changed. Thanks to our innovated communication method called POA (perception Oriented Advertising) we can reach your potential customers in a clear, direct and different way. This communication method is based on an important research conducted in the United States where it was concluded that customers don't buy products or services; they buy perceptions. For example, women don't buy make-up, they buy beauty. Men don't buy gym services, they buy a perfect body. Executives don't buy luxury vehicles, they buy status. Observe the difference between what I buy- and -how I feel when I buy it-. This is what our effective communication tool is all about: reality vs. perception. The way in which you communicate your products or services is the perception your potential customers will have of you. So please be particularly careful with the way you advertise your products or services. / article title= Previous Steps to POA text=Accept the fact that you're not a graphic designer, programmer or have a marketing major Acknowledge the reality that advertising, design and marketing are not an option but a need for the expansion of your company Recognize that the money you will pay to help your brand grow is an investment and not an expense Again, bear in mind that the money you will pay to help your brand grow is an investment and not an expense Believe in an experienced professional staff to handle your brand. Your business is what's at stake Consider that there are not small businesses; even a 'home office' may be seen as a great corporation. Perceptions! Keep in mind that -my customers don't buy my brand but what they perceive of it-. If you're willing to follow the seven previous steps, you're ready to make POA a real part of your brand / article title= How do we apply POA text= Complete knowledge of your brand Full analysis Identify the brand's strengths and weaknesses Value Added Recognition Competition follow up (what are they advertising, communication strategy analysis) Brand character definition Acknowledgement and study of target groups to be reached Clear and effective communication and marketing strategy definition Development of different steps to follow based on the market and target market to be captured Communications concept definition Final marketing campaign idea / article title = Results of POA text=The proper application of POA (Perception Oriented Advertising) produces a change in the entire perception, a strengthening of the capacity to remember a given brand and a clear and firm repositioning. The result: A visible growth of your products and/or services within the market/ /POA Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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 Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.com ___ Flashcoders@chattyfig.figleaf.com To change your
[Flashcoders] Conenction Sensing multiple button AS change
I have a flash projector i use to download files, with help i figured out how to get the system too see if it was online and then download the appropraite file, the actionscript is var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success:Boolean) { if (success) { trace(we got connection); getURL(http://www.domain.com/pdf.pdf;); } else { trace(no connection); getURL(downloads/pdf.pdf); } }; var send_lv:LoadVars = new LoadVars(); my_btn.onRelease = function(){ send_lv.sendAndLoad(http://www.google.com;, result_lv, POST); } I am now trying to figure out how to make this script happen when the movie loads (it is inside another movie) and to work on MANY links, I want to just sent the download URL with this sript and then pull it with each button? I can't make it work right, any ideas? 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] help with a menu in xml
Hi coders, this is thread is the second part of the other. well I have the buttons created and I have this onRelease behavior attached to a every single button, but when I tried to read into a text field part of the xml(text) this one only reads one, not the others and when I traced them , they are there(in the output window) but not into the field as they are supposed to. This is my code in as2 again: stop(); menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { //portfolioTag = this.firstChild; titleMenus = this.firstChild.childNodes.length; menuContent = this.firstChild; for (var i = 0; i 4; i++){ // either menu or item menuContent.childNodes[i].nodeName; // name of the item menuTitle= menuContent.childNodes[i].attributes.title; var buttonsMenu= _root.menu.attachMovie(buttons, menuTitle, 10+i); buttonsMenu._x=0; buttonsMenu._y=-10*i*4; var newText = buttonsMenu.poa.text=menuTitle; // action of the item textMenu= menuContent.childNodes[i].attributes.text; trace(textMenu); buttonsMenu.onRelease = function(){ _root.screenTxt.myText_txt1.text=menuTitle+:+textMenu; // loads good but only one, the rest appears not to be there:( }; } } menus.load(txt/poa.xml); and this is xml ?xml version=1.0 encoding=ISO-8859-1? POA article title = Results of POA text=The proper application of POA (Perception Oriented Advertising) produces a change in the entire perception, a strengthening of the capacity to remember a given brand and a clear and firm repositioning. The result: A visible growth of your products and/or services within the market/ article title= How do we apply POA text= Complete knowledge of your brand Full analysis Identify the brand's strengths and weaknesses Value Added Recognition Competition follow up (what are they advertising, communication strategy analysis) Brand character definition Acknowledgement and study of target groups to be reached Clear and effective communication and marketing strategy definition Development of different steps to follow based on the market and target market to be captured Communications concept definition Final marketing campaign idea / article title= Previous Steps to POA text=Accept the fact that you're not a graphic designer, programmer or have a marketing major Acknowledge the reality that advertising, design and marketing are not an option but a need for the expansion of your company Recognize that the money you will pay to help your brand grow is an investment and not an expense Again, bear in mind that the money you will pay to help your brand grow is an investment and not an expense Believe in an experienced professional staff to handle your brand. Your business is what's at stake Consider that there are not small businesses; even a 'home office' may be seen as a great corporation. Perceptions! Keep in mind that -my customers don't buy my brand but what they perceive of it-. If you're willing to follow the seven previous steps, you're ready to make POA a real part of your brand / article title= What is POA text =The market has been evolving in the past few years, therefore the communication tools cannot be the same. Along with the market, the consumer has also changed. Thanks to our innovated communication method called POA (perception Oriented Advertising) we can reach your potential customers in a clear, direct and different way. This communication method is based on an important research conducted in the United States where it was concluded that customers don't buy products or services; they buy perceptions. For example, women don't buy make-up, they buy beauty. Men don't buy gym services, they buy a perfect body. Executives don't buy luxury vehicles, they buy status. Observe the difference between what I buy- and -how I feel when I buy it-. This is what our effective communication tool is all about: reality vs. perception. The way in which you communicate your products or services is the perception your potential customers will have of you. So please be particularly careful with the way you advertise your products or services. / /POA Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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] help with a menu in xml
Your problem might be that your buttons are sharing the same scope when attempting to access individual variables. When you do something like: _root.screenTxt.myText_txt1.text=menuTitle+:+textMenu; each button points to the last variable you created in the loop. By attaching the data to the button, you can access individual information using 'this' inside the function. I haven't tested this, but it looks better to me... menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { var target = _root.screenTxt.myText_txt1; var holder = _root.menu; var titleMenus = this.firstChild.childNodes.length; var menuContent = this.firstChild; for (var i = 0; i titleMenus; ++i ) { var depth = holder.getNextHighestDepth(); var btn = holder.attachMovie( buttons, 'btn_' + i , depth ); btn._x = 0; btn._y = -10 * i * 4; btn.data = { text: menuContent.childNodes[i].attributes.text, title: menuContent.childNodes[i].attributes.title }; btn.poa.text = btn.data.text; btn.onRelease = function(){ target.text = this.data.title + : + this.data.text; } } } menus.load(txt/poa.xml); _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Tuesday, May 22, 2007 1:20 PM To: Flashcoders mailing list Subject: [Flashcoders] help with a menu in xml Hi coders, this is thread is the second part of the other. well I have the buttons created and I have this onRelease behavior attached to a every single button, but when I tried to read into a text field part of the xml(text) this one only reads one, not the others and when I traced them , they are there(in the output window) but not into the field as they are supposed to. This is my code in as2 again: stop(); menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { //portfolioTag = this.firstChild; titleMenus = this.firstChild.childNodes.length; menuContent = this.firstChild; for (var i = 0; i 4; i++){ // either menu or item menuContent.childNodes[i].nodeName; // name of the item menuTitle= menuContent.childNodes[i].attributes.title; var buttonsMenu= _root.menu.attachMovie(buttons, menuTitle, 10+i); buttonsMenu._x=0; buttonsMenu._y=-10*i*4; var newText = buttonsMenu.poa.text=menuTitle; // action of the item textMenu= menuContent.childNodes[i].attributes.text; trace(textMenu); buttonsMenu.onRelease = function(){ _root.screenTxt.myText_txt1.text=menuTitle+:+textMenu; // loads good but only one, the rest appears not to be there:( }; } } menus.load(txt/poa.xml); and this is xml ?xml version=1.0 encoding=ISO-8859-1? POA article title = Results of POA text=The proper application of POA (Perception Oriented Advertising) produces a change in the entire perception, a strengthening of the capacity to remember a given brand and a clear and firm repositioning. The result: A visible growth of your products and/or services within the market/ article title= How do we apply POA text= Complete knowledge of your brand Full analysis Identify the brand's strengths and weaknesses Value Added Recognition Competition follow up (what are they advertising, communication strategy analysis) Brand character definition Acknowledgement and study of target groups to be reached Clear and effective communication and marketing strategy definition Development of different steps to follow based on the market and target market to be captured Communications concept definition Final marketing campaign idea / article title= Previous Steps to POA text=Accept the fact that you're not a graphic designer, programmer or have a marketing major Acknowledge the reality that advertising, design and marketing are not an option but a need for the expansion of your company Recognize that the money you will pay to help your brand grow is an investment and not an expense Again, bear in mind that the money you will pay to help your brand grow is an investment and not an expense Believe in an experienced professional staff to handle your brand. Your business is what's at stake Consider that there are not small businesses; even a 'home office' may be seen as a great corporation. Perceptions! Keep in mind that -my customers don't buy my brand but what they perceive of it-. If you're willing to follow the seven previous steps, you're ready to make POA a real part of your brand / article title= What is POA text =The market has been evolving in the past few
[Flashcoders] Fwd: Timeline label question
Hi, I saw something in Colin Moock's book Essential ActionScript 2.0 and I was wondering if someone could explain it. In Chapter 11, he outlines an OOP application framework. In the part where he sets up the timeline in the .fla file, he attaches actions on frames 1, 5 and 15 (these frames are also keyframes). However, the loading label starts on frame 4 so it actually overlaps the actions associated with frame 1. My questions: 1. Why doesn't he start the loading label on frame 5 to correspond to the actions that start on that frame? 2. What is the effect of starting the label on frame 4 instead of frame 5? Jeff Chadwell -- When everyone is against you, it means that you are absolutely wrong-- or absolutely right. -- Albert Guinon ___ 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] Extends Array ???
Has anyone been able to get the indexer working by extending Array class? Like Myclass extends Array { ... Constructor and Other needed elements } !!! Usage I am looking for: Myclass[index] One of the properties of the prototype is length. It actually gets set on Myclass during extension of Array but I haven't figure out how to set the index to respond with at least internal value. Ultimately I would like to use this in static mode as an actual type. So this would be in some way custom prebuilt array. Any other alternatives are appreciated, 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] FLVPlayback Component on Limelight
Hey Everyone, I've been trying to use the FLVPlayback component and our video server provider is Limelight. Has anyone else had issues? Can you point me in the right direction for fix this? THANKS! Lori- ___ 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] FLVPlayback Component on Limelight
Lori, I don't use Limelight and I'm not sure what issues you're having, but if they're running FCS, then these notes that I got from Muzak back when I was trying to get the flvplayback component working with FCS might be helpful: Another important thing to get the FLVPlayback component to work is to put a copy of main.asc in the app folder you're trying to connect to. You can find the main.asc file here (default Flash 8 install): C:\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\Components\FLVPlayback One last important thing is to set isLive to false on the FLVPlayback instance (it is by default). This one really threw me off, but thinking about it now it makes sense, as isLive probable means live streaming from a webcam rather than using streaming server such as FCS. This isn't clear in the docs though, at least it wasn't to me. Helen http://flash-creations.com http://i-technica.com Lori Hutchek wrote: Hey Everyone, I've been trying to use the FLVPlayback component and our video server provider is Limelight. Has anyone else had issues? Can you point me in the right direction for fix this? THANKS! Lori- ___ 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] Extends Array ???
- In your bit of code: Myclass extends Array { ... Constructor and Other needed elements } Myclass[index] I don't think you could ever do that with an array without actually making a new Array (); so to be able to access the array elements that way, try using: var myArray = new Myclass (); myArray [ index ]; ...same as var array = new Array (); array [ index ]; - Not sure if this helps or complicates things - but here are a few approaches of instances working with static methods/properties of the extended Array class. // // EXAMPLE 1 // In this example, the preset array values are set through the constructor, and you can change that at anytime. Each new instance has internal properties as well and a few different ways in which to talk with the Static class. / in EXAMPLE_1.fla // import import ArrayExt; // set future array defaults ArrayExt.setDefaults ( [ 'a', 'b', 'c' ] ); // create var array1 = new ArrayExt ( ); // set new defaults ArrayExt.setDefaults ( [ '1', '2' ] ); // create var array2 = new ArrayExt ( ); var array3 = new ArrayExt ( 'blah', 'blah', 'blah' ); // output trace( '\nArrayExt.defaultArray: ' + ArrayExt.defaultArray ) // 1,2 trace( '\narray1: ' + array1 ); // a,b,c trace( 'array2: ' + array2 ); // 1,2 trace( 'array3: ' + array3 ); // 1,2 trace( '\narray1.length: ' + array1.length );// 3 trace( 'array2.length: ' + array2.length );// 2 trace( '\narray1[0]: ' + array1[0] );// a trace( 'array2[0]: ' + array2[0] );// 1 trace( '\narray1.internalVal_0: ' + array1.internalVal_0 );//333 trace( 'array2.internalVal_0: ' + array2.internalVal_0 );//333 trace( 'array3.internalVal_0: ' + array3.internalVal_0 );//333 trace( '\narray1.fullArray: ' + array1.fullArray );// X,X,X,a,b,c trace( 'array2.fullArray: ' + array2.fullArray );// X,X,X,1,2 trace( '\narray1.fullLength: ' + array1.fullLength );// 6 trace( 'array2.fullLength: ' + array2.fullLength );// 5 / in ArrayExt.as class ArrayExt extends Array { public static var defaultArray:Array; public static var intervalArray:Array = [ 'X', 'X', 'X' ]; public var internalVal_0:Number = ; public var internalVal_1:Number = ; public function ArrayExt () { trace( ArrayExt () - arguments : ' + arguments ); INIT (); } // PUBLIC // getters and setters public function get fullArray ():Array { return ArrayExt.intervalArray.concat ( this ); } public function get fullLength ():Array { return ArrayExt.intervalArray.length + this.length; } // PUBLIC STATIC public static function setDefaults ( array:Array ):Void { defaultArray = ( array == undefined ) ? [] : [].concat ( array ); } // PRIVATE private function INIT () { // default for ( var i in ArrayExt.defaultArray ) { this [ i ] = ArrayExt.defaultArray [ i ]; } } } - // // EXAMPLE 2 // What it comes down to is how exactly you want to use this. If you just want a class that allows you to have some extra control over the array you can always make a simple array class with access to a Array utility class. / in EXAMPLE_2.fla var array = new ArraySimple ( 'a', 'c', 'b', 1, 7, 3 ); trace( 'array.sorted: ' + array.sorted ); trace( 'array: ' + array ); trace( 'array[0]: ' + array[0] ); / in ArraySimple.as import ArrayUtils; class ArraySimple extends Array { public function ArraySimple () { for ( var i in arguments ) { this [ i ] = arguments [ i ]; } } public function get sorted ():Array { return ArrayUtils.sortArray ( this ); } } / in ArrayUtils.as class ArrayUtils { public function ArrayUtils () { } public static function sortArray (array:Array ) { var a = [].concat ( array ); a.sort(); return a;
Re: [Flashcoders] FLVPlayback Component on Limelight
Thanks Helen, but i have all that stuff setup correctly. At least i think so... I have an app folder named test and my videos are in test/streams/_definst_ As well as the main.asc file sitting in the test folder. I've been able to use the Flash Component with FMS before with this setup so not sure whats up. I think its something either with there servers or maybe there is some custom configuration i have to do with NCManager?? Thanks, Lori- Helen Triolo wrote: Lori, I don't use Limelight and I'm not sure what issues you're having, but if they're running FCS, then these notes that I got from Muzak back when I was trying to get the flvplayback component working with FCS might be helpful: Another important thing to get the FLVPlayback component to work is to put a copy of main.asc in the app folder you're trying to connect to. You can find the main.asc file here (default Flash 8 install): C:\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\Components\FLVPlayback One last important thing is to set isLive to false on the FLVPlayback instance (it is by default). This one really threw me off, but thinking about it now it makes sense, as isLive probable means live streaming from a webcam rather than using streaming server such as FCS. This isn't clear in the docs though, at least it wasn't to me. Helen http://flash-creations.com http://i-technica.com Lori Hutchek wrote: Hey Everyone, I've been trying to use the FLVPlayback component and our video server provider is Limelight. Has anyone else had issues? Can you point me in the right direction for fix this? THANKS! Lori- ___ 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] problem creating multiple instances
Hello, I'm having a problem with one of my class files. I've created a class to control the animation of a 3D plane, but I am unable to use multiple instances at the same time. I'm not sure what it is that is conflicting. Any ideas would be appreciated. I've attached the class file. If the other class files are needed, please let me know. I also have a test FLA that I have been using to test my progress on this problem. Cheers, - Bill ___ 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] problem creating multiple instances
Hello, Looks like the attachment did not go out. I've pasted the Actionscript into this e-mail. Cheers, - Bill /* Simple 3D Plane - v1.0 Created : January 24, 2007 Last Updated : May 18, 2007 Copyright © 2007 Pixlart. All rights reserved. http://www.pixlart.net info [at] pixlart [dot] net */ /// \\ \ /* DESCRIPTION Allows you to animate MovieClips and Bitmaps on a 3D plane with full control and easing. AUTHOR(s) Bill Mackin - http://www.billmackin.com Combination of scripts and development of 3D animation API. • Marquee Flipper - Which provided a good starting point and combination of World3d and DistortImage. Felix Turner - http://www.airtightinteractive.com • Simple 3d Engine World3d - A very basic light 3D engine. André Michelle - http://www.andre-michelle.com • DistortImage - A class to distort an image (including persective distortions) by slicing the image into smaller pieces (generally triangles). Thomas Pfeiffer kiroukou - http://www.thomas- pfeiffer.info Richard Lester RichL Didier Brun foxy - http://www.foxaweb.com • Easing Equations - Popular equations used by many to provide easing effects in scripted animations. Robert Penner - http://www.robertpenner.com USAGE var myCreationSettings:Object = { myName:3DCircleOnCavill, libraryLink:CircleOnCavill, scope:this, xAxisStart:0, yAxisStart:0, mouseReactive:false, vQuality:3, hQuality:3 } var my3Dplane:Simple3DPlane = new Simple3DPlane(myCreationSettings); var myAnimationSettings:Object = { xAxisTo:0, yAxisTo:180, animationDuration:1, easingMath:Expo, easingType:easeOut, delay:1, callBack:doSomething, callBackScope:this, callBackArgs:[true, both, 1] } my3Dplane.animate3DPlane(myAnimationSettings); my3Dplane.getTarget(); // returns an instance of the newly created MovieClip containing the 3D plane. my3Dplane.mouseReactive(true, 30, 20, true); @param1 = turns 3D movement based on mouse position on/off @param2 = the limit for the 3D movement on the x axis, (in degrees). @param3 = the limit for the 3D movement on the y axis, (in degrees). @param4 = determines whether the 3D plane rotates towards the mouse or away, (only used when limiting angles). NOTES BILL MACKIN • When using a MovieClip for your content, be sure to position the top left of your content at 0,0. TO DO 1. Update so you can create several 3D plane instances and control each of them separately. */ /// \\ \ /// // INCLUDE / IMPORT --- // import flash.display.BitmapData; import flash.geom.Matrix; import mx.utils.Delegate; import ActionScript.simple3D.DistortImage import ActionScript.simple3D.World3d import ActionScript.Tools.PennerEasing // class ActionScript.simple3D.Simple3DPlane { // PROPERTIES // var myName:String;
RE: [Flashcoders] problem creating multiple instances
Looks like you're attaching your plane to the same MovieClip instance, thus destroying any/all objects that was previously on that MovieClip instance. Depends on how you're instantiating your creationObject. BTW, just a comment on your implementation: I would use a custom class to set properties for creation and animation rather than a generic object. This way, you can avoid having to iterate through the object and then you can just composition your custom class/object. In Java, this would be equivalent to a Value Object or a Data Transfer Object. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mackin Sent: Wednesday, May 23, 2007 12:51 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem creating multiple instances Hello, Looks like the attachment did not go out. I've pasted the Actionscript into this e-mail. Cheers, - Bill /* Simple 3D Plane - v1.0 Created : January 24, 2007 Last Updated : May 18, 2007 Copyright © 2007 Pixlart. All rights reserved. http://www.pixlart.net info [at] pixlart [dot] net */ /// \\ \ /* DESCRIPTION Allows you to animate MovieClips and Bitmaps on a 3D plane with full control and easing. AUTHOR(s) Bill Mackin - http://www.billmackin.com Combination of scripts and development of 3D animation API. Marquee Flipper - Which provided a good starting point and combination of World3d and DistortImage. Felix Turner - http://www.airtightinteractive.com Simple 3d Engine World3d - A very basic light 3D engine. André Michelle - http://www.andre-michelle.com DistortImage - A class to distort an image (including persective distortions) by slicing the image into smaller pieces (generally triangles). Thomas Pfeiffer kiroukou - http://www.thomas- pfeiffer.info Richard Lester RichL Didier Brun foxy - http://www.foxaweb.com Easing Equations - Popular equations used by many to provide easing effects in scripted animations. Robert Penner - http://www.robertpenner.com USAGE var myCreationSettings:Object = { myName:3DCircleOnCavill, libraryLink:CircleOnCavill, scope:this, xAxisStart:0, yAxisStart:0, mouseReactive:false, vQuality:3, hQuality:3 } var my3Dplane:Simple3DPlane = new Simple3DPlane(myCreationSettings); var myAnimationSettings:Object = { xAxisTo:0, yAxisTo:180, animationDuration:1, easingMath:Expo, easingType:easeOut, delay:1, callBack:doSomething, callBackScope:this, callBackArgs:[true, both, 1] } my3Dplane.animate3DPlane(myAnimationSettings); my3Dplane.getTarget(); // returns an instance of the newly created MovieClip containing the 3D plane. my3Dplane.mouseReactive(true, 30, 20, true);@param1 = turns 3D movement based on mouse position on/off @param2 = the limit for the 3D movement on the x axis, (in degrees). @param3 = the limit for the 3D movement on the y axis, (in degrees). @param4 = determines whether the 3D plane rotates towards the mouse or away, (only used when limiting angles). NOTES BILL MACKIN
Re: [Flashcoders] problem creating multiple instances
This is how I am instantiating the creationObject (below). I believe that if I am passing a different name to the myName property it should create more than one MovieClip instance. I'd love to hear more about your suggestion to use a custom class to set properties instead of a generic object, or maybe point me in the direction of good tutorial or example. Unfortunately I am a self taught coder and am not always familiar with some of the best practices. var myCreationSettings:Object = { myName:3DCircleOnCavill, libraryLink:CircleOnCavill, scope:this, xAxisStart:-20, yAxisStart:20, vQuality:3, hQuality:3 } var my3Dplane:Simple3DPlane = new Simple3DPlane(myCreationSettings); my3Dplane.mouseReactive(true, 30, 20, true); var myCreationSettings2:Object = { myName:3DCircleOnCavill2, libraryLink:tom, scope:this, xAxisStart:-20, yAxisStart:20, vQuality:3, hQuality:3 } var my3Dplane2:Simple3DPlane = new Simple3DPlane(myCreationSettings2); my3Dplane2.mouseReactive(true, 30, 20, true); On May 23, 2007, at 3:20 PM, David Ngo wrote: Looks like you're attaching your plane to the same MovieClip instance, thus destroying any/all objects that was previously on that MovieClip instance. Depends on how you're instantiating your creationObject. BTW, just a comment on your implementation: I would use a custom class to set properties for creation and animation rather than a generic object. This way, you can avoid having to iterate through the object and then you can just composition your custom class/object. In Java, this would be equivalent to a Value Object or a Data Transfer Object. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mackin Sent: Wednesday, May 23, 2007 12:51 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem creating multiple instances Hello, Looks like the attachment did not go out. I've pasted the Actionscript into this e-mail. Cheers, - Bill /* Simple 3D Plane - v1.0 Created : January 24, 2007 Last Updated : May 18, 2007 Copyright © 2007 Pixlart. All rights reserved. http://www.pixlart.net info [at] pixlart [dot] net */ /// \\ \ /* DESCRIPTION Allows you to animate MovieClips and Bitmaps on a 3D plane with full control and easing. AUTHOR(s) Bill Mackin - http://www.billmackin.com Combination of scripts and development of 3D animation API. • Marquee Flipper - Which provided a good starting point and combination of World3d and DistortImage. Felix Turner - http://www.airtightinteractive.com • Simple 3d Engine World3d - A very basic light 3D engine. André Michelle - http://www.andre-michelle.com • DistortImage - A class to distort an image (including persective distortions) by slicing the image into smaller pieces (generally triangles). Thomas Pfeiffer kiroukou - http://www.thomas- pfeiffer.info Richard Lester RichL Didier Brun foxy - http://www.foxaweb.com • Easing Equations - Popular equations used by many to provide easing effects in scripted animations. Robert Penner - http://www.robertpenner.com USAGE var myCreationSettings:Object = { myName:3DCircleOnCavill, libraryLink:CircleOnCavill, scope:this, xAxisStart:0, yAxisStart:0, mouseReactive:false, vQuality:3, hQuality:3 } var my3Dplane:Simple3DPlane = new Simple3DPlane(myCreationSettings); var myAnimationSettings:Object = { xAxisTo:0,