Re: [Flashcoders] modify sample rate in MP3 header?
This is impossible. MP3 audio is grouped into frames. Each frame contains 23 mSec of audio data (and thus all MP3 files play at approximately 38 frames/ second). If the MP3 is encoded at a high bit rate, each frame is large. If it's encoded at a low bit rate, the frames are small. But they always contain 23 mSec of audio. Furthermore, the meaning of the data bytes in each frame depend on the values in the frame header. If you change the header, the MP3 decoder won't have a clue how to decode the data in the frame. It will fail miserably. You can change values in the header, but that will just cause the MP3 decoder to fail. It won't change the fact that each frame contains 23 mSec of audio. There are some techniques that will slow down audio to half or quarter speed, but you have to do them downstream of the MP3 decoder. You can clock the audio driver at half or quarter speed, or you can duplicate every sample of decoded audio by a factor of 2 or 4. But you can't do these things in Flash because you can't get your hands on the decoded audio stream or the audio driver configuration. -jeff stearns On Jul 20, 2006, at 1:05 PM, Marc Hoffman wrote: I've been using Flash to play back bird songs from amy website. By generating some MP3's at half or quarter speed (with commensurate drop in pitch) I can demonstrate some fascinating detail in bird songs that's otherwise missed by the human ear. Now if I could just modify the MP3 headers on-the-fly (with server side file manipulation), I could let Flash slow down any MP3's without having to generate and store separate versions of the sound file on the server. Anybody know of tools to modify MP3 header info on the fly? Sort of like creating thumbnails of images using PHP? Marc Hoffman ___ 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] Speed up Datagrids
One tip/trick I learnt from my current company. Make the DataGrid 4 pixels high, once the data has loaded resize the DG. ___ 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] Back from html to specific point in flash
Hi, I need to know if this is possible and if it is some guidelines on how to accomplish it. I have a flash application running in a full browser window. At a certain moment the user may click in some link to a html page. We were thinking in open it in a new window but there's the problem of the pop-up blocker if the link comes from flash (any work around that?) So our second option is open the link in the same window but giving the user the chance to hit the back button of the browser (once in the html) and go back to the specific situation where he was on the flash. Is this possible? Does my english make sense? 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] popoulating FLV files with metaData from encoder
resolved. Bad Delegate call to the property variable name..one of those days. On 7/20/06, Marc Hoffman [EMAIL PROTECTED] wrote: I've had no trouble retrieving metaData from flv's that were created using the encoder. What are you trying to do? - Marc At 09:46 AM 7/20/2006, you wrote: Hey, anyone knkow how to get the metaData into the flv through the encoder, seems to be blank ? ___ 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] Back from html to specific point in flash
yes, you can do it, with use of a variable; so, you need to send a variable output by Flash, any time a change occur in the movie, and to read the variable itself when the page si (re)loaded, so Flash can go where you need... You must use something like PHP, to achieve this... But, if Flash movie is running inside a fullbrowser window (I suppose you want say: fullscreen), where is the back button of the browser?... * Enrico Tomaselli * web designer [EMAIL PROTECTED] http://www.metatad.it * Skype: MetaArt RSS: http://www.metatad.it/mnfeeder.php ___ 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] Mobile and PDA Learning through WAP
Hi All, I am not too sure whether this is the right forum to ask about this. However, can any one let me know the samples or reference links where I can find the specific information on how deployment for M-Learning and PDA will be handled for the Flash course through WAP? Regards, Suhas Kotkar ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] flash color shift
A little more specifically, flash uses the sRGB color space. You can set that up under your PS color settings. - Andreas i_bang wrote: thanks a lot Adrian !!! good solution! it works!! Under View Proof Setup, choose 'Monitor RGB' - this will give you a better representation fo what the image will look like in browsers and Flash. Colour correct the image to look as you want then save out your jpg ready for import into Flash. Now, back to ActionScript... :) HTH Adrian On 7/20/06, i_bang [EMAIL PROTECTED] wrote: hi! anyone know how can i keep the quality of a image with a photoshop profile in flash? now when i import the jpg file into flash the color of the image changes a lot, it´s more lighter than the original, what can i do?? thanks a lot!! ___ 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] ActionScript Application Framework
Looking at the amount of reactions and my own personal questions, I think this is a very wanted subject by developers. The funny thing is, that I think there are already lots of different os frameworks which are useable in projects and a developers life easier. It seems they are just not well known enough or lack in documentation on how it can help people. I also think that there are lot's of projects that help in separate subjects. E.g. ARP/ASWING/ACTIONSTEP etc. It might help if people can see how these frameworks can work together. My 2 cents. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ujjwal Kabra Sent: donderdag 20 juli 2006 22:02 To: Flashcoders mailing list Subject: Re: [Flashcoders] ActionScript Application Framework After nearly two years of working in ActionScript, my company decided that Flash development was too painful and just not worth the effort. This happened just about the time that I was actually getting the hang of things. In any case, I was the last Flash(AS2) Developer left here... I'm in full support for building an app-development framework around Flash/AS2 and/or AS3, which would make life easier for AS2 devs like me, and make the decision to chose Flash as a development platform easier for a mid-sized team than it currently is. While I have little(none actually) idea about Ruby and Rails, I'll read up soon... I would love to get started before my Flash skills actually get rusted away. - Ujjwal PS: Is there a troll feature on mailing lists? On 7/21/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: James, Rails and Flex work very well together. Maybe you should consider following that career path - a Flex/Rails developer. Jesse Warden has gone that way and loves it. http://www.recentrambles.com/pragmatic/view/31 BLITZ | Steven Sacks - 310-551-0200 x209 ___ 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] Back from html to specific point in flash
yes, you can do it, with use of a variable; so, you need to send a variable output by Flash, any time a change occur in the movie, and to read the variable itself when the page si (re)loaded, so Flash can go where you need... You must use something like PHP, to achieve this... But, if Flash movie is running inside a fullbrowser window (I suppose you want say: fullscreen), where is the back button of the browser?... Can't be done by Flash automatically. Unsurprising, really: there are so many factors that go into describing a Flash movie's state at some particular moment, many of which may be a result of your own particular code. But in any particular case you could do it using a sharedObject to store your current state rather than PHP, though. I don't know if the movie gets an onUnload event when it's closed (probably not) so you'd have to store the data periodically. Danny ___ 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] Back from html to specific point in flash
Try the way http://incomplet.gskinner.com/ does it. They use js for it so people can send normal links to each other for a specific point in the site. The SharedObject way is possible, but I think it's better to find a solution where you can get more out of. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: vrijdag 21 juli 2006 9:56 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Back from html to specific point in flash Hi, I need to know if this is possible and if it is some guidelines on how to accomplish it. I have a flash application running in a full browser window. At a certain moment the user may click in some link to a html page. We were thinking in open it in a new window but there's the problem of the pop-up blocker if the link comes from flash (any work around that?) So our second option is open the link in the same window but giving the user the chance to hit the back button of the browser (once in the html) and go back to the specific situation where he was on the flash. Is this possible? Does my english make sense? 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] attachMovie with MovieClipLoader loaded symbols
Hello flashcoders, I load a childSwf into my mainSwf using a MovieClipLoader. -- THIS WORKS In my childSWF I do export for actionscript and export to first frame for a movieclipSymbol. After onLoadComplete, I can attach this movieclipSymbol of the childSwf to the loaded childSWF or a child of it. -- THIS WORKS But I can't attach this movieclipSymbol of the childSwf to some other container in my mainSwf, which is sad. -- THIS WORKS NOT This is not allowed by the flashPlayer - true or false? And if true, is there a workaround? thank you, Matthias ___ 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] slide a movieclip with photo(loaded by xml)
Im not there yet..but many thanks for your time and patience Adrian. On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote: I'm thinking more like this (using your most recent code as a starting point)... //create an instance of MovieClipLoader var myMCL = new MovieClipLoader(); // register this as a listener myMCL.addListener(this); // define function to handle onLoadInit event function onLoadInit( targetMC:MovieClip ):Void { subAppear(targetMC, (i+3), 95); } function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut._x = 33+(newBut._width+5)*i; newBut._y = 380; newBut.txt.text = [i+1]; newBut.link = mainMenus[i].firstChild.firstChild; subAppearX(imagemp_mc, (i+3), 344); newBut.onRelease = function() { // load the clip myMCL.loadClip( this.link, imagem_mc ); }; } } I haven't tested this code but it should get you close to what you're after. Note that you should use loadMovie OR MovieClipLoader - not both for the same task. A. On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Something like this? because it doesnt work...it remains the problem... //create an instance of MovieClipLoader var myMCL = new MovieClipLoader(); myMCL.onLoadInit = function (targetMC) { subAppear(targetMC, (i+3), 95); } function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut._x = 33+(newBut._width+5)*i; newBut._y = 380; newBut.txt.text = [i+1]; newBut.link = mainMenus[i].firstChild.firstChild; subAppearX(imagemp_mc, (i+3), 344); newBut.onRelease = function() { loadMovie(this.link, imagem_mc); myMCL.loadClip(imagem_mc); }; } } sorry for my dullness...maybe with a event listener?hummm On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote: When 'this.link' loads into imagem_mc, any existing properties and methods of imagem_mc are destroyed because 'this.link' replaces imagem_mc. Immediately after loading the MovieClip, you call subAppear which assigns the onEnterFrame handler. This handler is destroyed when the MovieClip loads so you don't see your animation working. Here are your options: 1) use MovieClipLoader and then use the onLoadInit event to evoke subAppear when the movie has completely loaded or 2) nest imagem_mc inside a wrapper MovieClip and assign the onEnterFrame handler to that wrapper. The first option is the better option as it's just neater and also because I think it's fair to assume you only want the animation to happen once the MovieCLip has loaded anyway. HTH Adrian On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Hello. Im doing a test loading from xml information to load into one movie clip one photo and having a number menu. When i press one of those numbers a function subAppear makes the movieclip slide from the top. Wht i dont understand is that he loads the photo, but the function doesnt work..i tried to test the function without loading the xml and the function works good..but when i load the xml..it doesnt..any help? Thanks in advance...and here is the code from the function and the function that creates the buttons Jose Maria function subAppear(mc:MovieClip, val:Number, target:Number):Void { mc.onEnterFrame = function() { if (target-this._y0.2 this._alpha99) { this._y = target; delete this.onEnterFrame; } if (this._alpha101) { this._alpha += val; } if (this._ytarget) { this._y -= (this._y-target)/4; } }; } function createPhotofolio():Void { for (i=0; iphotoMenu.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut._x = 33+(newBut._width+5)*i; newBut._y = 380; newBut.txt.text = [i+1]; newBut.link = photoMenu[i].firstChild.firstChild; newBut.onRelease = function() { loadMovie(this.link, imagem_mc); subAppear(imagem_mc, (i+3), 95); }; } } ___ 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
RE: [Flashcoders] Back from html to specific point in flash
Is this technique of any use (see the 'Javascript communicating with Flash' bit): http://www.moock.org/webdesign/flash/fscommand/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 21 July 2006 10:45 To: Flashcoders mailing list Subject: RE: [Flashcoders] Back from html to specific point in flash yes, you can do it, with use of a variable; so, you need to send a variable output by Flash, any time a change occur in the movie, and to read the variable itself when the page si (re)loaded, so Flash can go where you need... You must use something like PHP, to achieve this... But, if Flash movie is running inside a fullbrowser window (I suppose you want say: fullscreen), where is the back button of the browser?... Can't be done by Flash automatically. Unsurprising, really: there are so many factors that go into describing a Flash movie's state at some particular moment, many of which may be a result of your own particular code. But in any particular case you could do it using a sharedObject to store your current state rather than PHP, though. I don't know if the movie gets an onUnload event when it's closed (probably not) so you'd have to store the data periodically. Danny ___ 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] slide a movieclip with photo(loaded by xml)
Hi Jose, Feel free to e-mail me off-list if you need some more pointers. It might be useful if I can take a look at a sample .fla to get a better idea of what you're trying to do. A. On 7/21/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Im not there yet..but many thanks for your time and patience Adrian. On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote: I'm thinking more like this (using your most recent code as a starting point)... //create an instance of MovieClipLoader var myMCL = new MovieClipLoader(); // register this as a listener myMCL.addListener(this); // define function to handle onLoadInit event function onLoadInit( targetMC:MovieClip ):Void { subAppear(targetMC, (i+3), 95); } function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut._x = 33+(newBut._width+5)*i; newBut._y = 380; newBut.txt.text = [i+1]; newBut.link = mainMenus[i].firstChild.firstChild; subAppearX(imagemp_mc, (i+3), 344); newBut.onRelease = function() { // load the clip myMCL.loadClip( this.link, imagem_mc ); }; } } I haven't tested this code but it should get you close to what you're after. Note that you should use loadMovie OR MovieClipLoader - not both for the same task. A. On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Something like this? because it doesnt work...it remains the problem... //create an instance of MovieClipLoader var myMCL = new MovieClipLoader(); myMCL.onLoadInit = function (targetMC) { subAppear(targetMC, (i+3), 95); } function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut._x = 33+(newBut._width+5)*i; newBut._y = 380; newBut.txt.text = [i+1]; newBut.link = mainMenus[i].firstChild.firstChild; subAppearX(imagemp_mc, (i+3), 344); newBut.onRelease = function() { loadMovie(this.link, imagem_mc); myMCL.loadClip(imagem_mc); }; } } sorry for my dullness...maybe with a event listener?hummm On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote: When 'this.link' loads into imagem_mc, any existing properties and methods of imagem_mc are destroyed because 'this.link' replaces imagem_mc. Immediately after loading the MovieClip, you call subAppear which assigns the onEnterFrame handler. This handler is destroyed when the MovieClip loads so you don't see your animation working. Here are your options: 1) use MovieClipLoader and then use the onLoadInit event to evoke subAppear when the movie has completely loaded or 2) nest imagem_mc inside a wrapper MovieClip and assign the onEnterFrame handler to that wrapper. The first option is the better option as it's just neater and also because I think it's fair to assume you only want the animation to happen once the MovieCLip has loaded anyway. HTH Adrian On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Hello. Im doing a test loading from xml information to load into one movie clip one photo and having a number menu. When i press one of those numbers a function subAppear makes the movieclip slide from the top. Wht i dont understand is that he loads the photo, but the function doesnt work..i tried to test the function without loading the xml and the function works good..but when i load the xml..it doesnt..any help? Thanks in advance...and here is the code from the function and the function that creates the buttons Jose Maria function subAppear(mc:MovieClip, val:Number, target:Number):Void { mc.onEnterFrame = function() { if (target-this._y0.2 this._alpha99) { this._y = target; delete this.onEnterFrame; } if (this._alpha101) { this._alpha += val; } if (this._ytarget) { this._y -= (this._y-target)/4; } }; } function createPhotofolio():Void { for (i=0; iphotoMenu.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut._x = 33+(newBut._width+5)*i; newBut._y = 380; newBut.txt.text = [i+1]; newBut.link = photoMenu[i].firstChild.firstChild; newBut.onRelease = function() { loadMovie(this.link, imagem_mc); subAppear(imagem_mc, (i+3), 95); }; } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:
[Flashcoders] Re: Flashcoders Digest, Vol 18, Issue 56
Thank you for your email. I will be out of the office Friday, 7/21. If you need any assistance, please contact Paul Sternglass at [EMAIL PROTECTED] or 914-614-0046. ___ 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] AS3, BitmapData and domain security
Hi group, I've only just discovered that in Flash 8 you can't .draw() a loaded image into a BitmapData object if the image was loaded from another domain. I've search about and found you can .draw() a SWF which uses System.security.allowDomain but there's no way to .draw() an image JPG, GIF, PNG etc when loaded across domains. This is very annoying, but apparently ...this will be fixed in FP9; you will be able to use policy files to permit such things. said Deneb Meketa: http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Can someone explain how to use the policy file to permit .draw()ing cross-domain in AS3/FP9? Thanks buckets, Paul. ___ 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] Can I assign a Class to the main timeline?
Thanks you Patrick and Weyert! I tried Patrick's approach and it worked. I had never used this __proto__ thing before. Besides this, what do you use __proto__ or prototype for? I never use it. Maybe I'm missing something. thanks, JulianG Patrick Matte wrote: Nice trick. But this seems to work as well but simpler. class com.Application{ public function Application( target ) { target.__proto__ = __proto__; this = com.Application( target ); } } ___ 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] Can I assign a Class to the main timeline?
No clue, it just works ;-) ___ 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] Can I assign a Class to the main timeline?
On 7/21/06, JulianG [EMAIL PROTECTED] wrote: Thanks you Patrick and Weyert! I tried Patrick's approach and it worked. I had never used this __proto__ thing before. Besides this, what do you use __proto__ or prototype for? I never use it. Maybe I'm missing something. __proto__ is a property every object has (except Object.prototype, I guess), pointing ot its prototype. It's the way inheritance works in the Flash VM, the Prototype Chain. Say you have Foo extending Bar. Then any instance myFoo of Foo will have myFoo.__proto__ == Foo.prototype, and Foo.prototype.__proto__ will point to Bar.prototype. Since Bar only inherits from Object, Bar.prototype.__proto__ will point to Object.prototype. Now, when you try to access a property of myFoo, the VM will first check if your instance has it itself. If not, it will check its __proto__, than the __proto__ of the __proto__, and so on, until it eventually ends up at Object.prototype. If that doesn't have it, either, it will call myFoo.__resolve() and pass a string with the identifier of what had been tried to be accessed as an argument, and use what you return as its value. So, if you do...: var myFoo = new Foo(); myFoo.__proto__ = Foobar.prototype; then you modify the inheritance, your myFoo will have all the methods an instance of Foobar would have. Think of how it used to be done in AS1 (still works, BTW). You'd create a class by declaring a constructor function: function Foo () { this.text = hello world!; } to inherit from Bar, you'd create a new instance of Bar and assign it as Foo's prototype: Foo.prototype = new Bar(); Some didn't like to instantiate an instance of the parent class to inherit from, so they did this instead (causing lots of interesting discussions whether or not to stick with documented features, as __proto__ was undocumented back then): Foo.prototype.__proto__ = Bar.prototype; To add methods (or properties), you'd attach them to that prototype: Foo.prototype.sayHello = function () { trace( this.text ); }; So, instead of myFoo = new Foo(), you could also do: var myFoo = {}; myFoo.__proto__ = Foo.prototype; myFoo.__constructor__ = Foo; Foo.apply( MyFoo ); Which is precisely what you're doing right now, except for the last line which calls the constructor. HTH, Mark ___ 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] Can I assign a Class to the main timeline?
This is a very nice explenation, thanks! Janosch Mark Winterhalder schrieb: On 7/21/06, JulianG [EMAIL PROTECTED] wrote: Thanks you Patrick and Weyert! I tried Patrick's approach and it worked. I had never used this __proto__ thing before. Besides this, what do you use __proto__ or prototype for? I never use it. Maybe I'm missing something. __proto__ is a property every object has (except Object.prototype, I guess), pointing ot its prototype. It's the way inheritance works in the Flash VM, the Prototype Chain. Say you have Foo extending Bar. Then any instance myFoo of Foo will have myFoo.__proto__ == Foo.prototype, and Foo.prototype.__proto__ will point to Bar.prototype. Since Bar only inherits from Object, Bar.prototype.__proto__ will point to Object.prototype. Now, when you try to access a property of myFoo, the VM will first check if your instance has it itself. If not, it will check its __proto__, than the __proto__ of the __proto__, and so on, until it eventually ends up at Object.prototype. If that doesn't have it, either, it will call myFoo.__resolve() and pass a string with the identifier of what had been tried to be accessed as an argument, and use what you return as its value. So, if you do...: var myFoo = new Foo(); myFoo.__proto__ = Foobar.prototype; then you modify the inheritance, your myFoo will have all the methods an instance of Foobar would have. Think of how it used to be done in AS1 (still works, BTW). You'd create a class by declaring a constructor function: function Foo () { this.text = hello world!; } to inherit from Bar, you'd create a new instance of Bar and assign it as Foo's prototype: Foo.prototype = new Bar(); Some didn't like to instantiate an instance of the parent class to inherit from, so they did this instead (causing lots of interesting discussions whether or not to stick with documented features, as __proto__ was undocumented back then): Foo.prototype.__proto__ = Bar.prototype; To add methods (or properties), you'd attach them to that prototype: Foo.prototype.sayHello = function () { trace( this.text ); }; So, instead of myFoo = new Foo(), you could also do: var myFoo = {}; myFoo.__proto__ = Foo.prototype; myFoo.__constructor__ = Foo; Foo.apply( MyFoo ); Which is precisely what you're doing right now, except for the last line which calls the constructor. HTH, Mark ___ 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] Can I assign a Class to the main timeline?
Thanks! Good explanation :-) ___ 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] mx.transitions.Transition.IN ?
I was praticing with on flash 8 components reference manual example like mx.transitions.TransitionManager.start(myMovieClip_mc, {type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.Bounce.easeOut}); into de Flash IDE when I switched to MTASC I got an error type error mx.transitions.Transition have no static field IN and it is fact there is no static field IN defined in core/mx/transitions someone could point me what I doing wrong ? thanks joao carlos -- João Carlos ___ 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: Flashcoders Digest, Vol 18, Issue 57
Thank you for your email. I will be out of the office Friday, 7/21. If you need any assistance, please contact Paul Sternglass at [EMAIL PROTECTED] or 914-614-0046. ___ 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] Trying not to loadMovie multiple times
The docs say that I can't use duplicateMovieClip on a movieClip brought in with loadMovie or MovieClipLoader. Is there any other way to avoid running loadMovie multiple times? I know the file will have been cached, but I'm still seeing quite a long delay when loading in several copies (and this is running locally, so it's not a bandwidth issue in any case). Danny ___ 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] Can ComboBox open upwards?
Anyone know if there is any easy way to make a ComboBox drop upwards (other than modifying the ComboBox class itself)? Thanks, Bob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Trying not to loadMovie multiple times
If you are using loadMovie to load in static JPEGs or still images of some kind, you could initially load them into a hidden movieclip on stage... then when you're ready to duplicate them, you could use BitmapData.draw() to clone them into place. If you're loading in animated SWFs, then I think you may be out of luck. I'm not aware of a workaround for duplicating loaded movies... but I would also love to hear one! :) -Danro On Jul 21, 2006, at 9:01 AM, Danny Kodicek wrote: The docs say that I can't use duplicateMovieClip on a movieClip brought in with loadMovie or MovieClipLoader. Is there any other way to avoid running loadMovie multiple times? I know the file will have been cached, but I'm still seeing quite a long delay when loading in several copies (and this is running locally, so it's not a bandwidth issue in any case). Danny ___ 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] Can ComboBox open upwards?
I seem to remember being able to adjust the tween for the opening and also the direction somewhere - you might want to look in the class for the comboBox and take a look. Or check the archives here. I know that it WILL open upwards if there is not enough Stage area below the control. So it is indeed possible. - e.d. On 7/21/06, Robert Chyko [EMAIL PROTECTED] wrote: Anyone know if there is any easy way to make a ComboBox drop upwards (other than modifying the ComboBox class itself)? Thanks, Bob ___ 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] Trying not to loadMovie multiple times
If you are using loadMovie to load in static JPEGs or still images of some kind, you could initially load them into a hidden movieclip on stage... then when you're ready to duplicate them, you could use BitmapData.draw() to clone them into place. It's a good idea, but unfortunately I'm loading in text and the Flash movie needs to be scaleable so I don't want to lose the vector data. I think I may have found a workround which means I don't need to load in as many copies as I was doing, so hopefully I should be okay, but I'm still interested in hearing any alternative solutions. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Trying not to loadMovie multiple times
Have you considered loading the SWF as binary data through the Loader class? Supposedly, you can use Loader.loadBytes to load a SWF as a byteArray and then add it to the display list. If you keep a copy of the byteArray, you should theoretically be able to add it to the display list as many times as you like. (I've never done this, so I could be way wrong) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Friday, July 21, 2006 12:39 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Trying not to loadMovie multiple times If you are using loadMovie to load in static JPEGs or still images of some kind, you could initially load them into a hidden movieclip on stage... then when you're ready to duplicate them, you could use BitmapData.draw() to clone them into place. It's a good idea, but unfortunately I'm loading in text and the Flash movie needs to be scaleable so I don't want to lose the vector data. I think I may have found a workround which means I don't need to load in as many copies as I was doing, so hopefully I should be okay, but I'm still interested in hearing any alternative solutions. Danny ___ 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] AS3, BitmapData and domain security
Paul, I believe the policy file being referred to is the crossdomain.xml file. Here's a technote for you on the subject, in case you're not familiar: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213. After you get up to speed on cross-domain policy files, you'll want to check out http://livedocs.macromedia.com/labs/as3preview/langref/index.html?flash/syst em/LoaderContext.htmlflash/system/class-list.html I think the following excerpts pertains to your question: When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no need to specify a SecurityDomain or an application domain, because those concepts are meaningful only for SWF files. Instead, you have only one decision to make: do you need programmatic access to the pixels of the loaded image? If so, see the checkPolicyFile property. From the checkPolicyFile documentation: Set this flag to true when you are loading an image (JPEG, GIF, or PNG) from outside the calling SWF file's own domain, and you expect to need access to the content of that image from ActionScript. Examples of accessing image content include referencing the Loader.content property to obtain a Bitmap object, and calling the BitmapData.draw() method to obtain a copy of the loaded image's pixels Hope that helps! -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Neave Sent: Friday, July 21, 2006 9:06 AM To: Flashcoders Subject: [Flashcoders] AS3, BitmapData and domain security Hi group, I've only just discovered that in Flash 8 you can't .draw() a loaded image into a BitmapData object if the image was loaded from another domain. I've search about and found you can .draw() a SWF which uses System.security.allowDomain but there's no way to .draw() an image JPG, GIF, PNG etc when loaded across domains. This is very annoying, but apparently ...this will be fixed in FP9; you will be able to use policy files to permit such things. said Deneb Meketa: http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Can someone explain how to use the policy file to permit .draw()ing cross-domain in AS3/FP9? Thanks buckets, Paul. ___ 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] Online Live Support without FlashComm (or even withouth Flash at all)
Hi list, I am developing a site that will need an online live support. The site is full Flash and I would like the support to be in it too, but it´s not an obligation. What I know is that I can´t use FlashComm, since the server don´t support it and the client is not willing to pay. Is that a tutorial, a way, an example to make it? If not using Flash, can be PHP or ASP. Thanks! Helios Pregioni Bayma ___ 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] getting started with AS3
And yes I did search the archive =-). At any rate I was wondering if there is a way to get started with AS3 without having to delve into flex. Nothing against flex, but I just wanted to focus on the language, and not the tool (at this point). And well also since i am on a mac - there seems to be no flex (as of yet - unless that has changed in the last month). IS there a way to do so with flash, or would that only be possible if I was part of some sort of beta tester program for flash 9(which I am sure I do not qualify for)? I would just like to start getting my head around it. Thanks in advance! -- dnk ___ 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] Online Live Support without FlashComm (or even withouth Flash at all)
ck out flash chat http://tufat.com/s_flash_chat_chatroom.htm Richard On 7/21/06, Helios Pregioni Bayma [EMAIL PROTECTED] wrote: Hi list, I am developing a site that will need an online live support. The site is full Flash and I would like the support to be in it too, but it´s not an obligation. What I know is that I can´t use FlashComm, since the server don´t support it and the client is not willing to pay. Is that a tutorial, a way, an example to make it? If not using Flash, can be PHP or ASP. Thanks! Helios Pregioni Bayma ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Trying not to loadMovie multiple times
I may be asking a stupid question, but did you by chance duplicate it before it was finished loading? ___ 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] My Flash Editor UI is invisible/disapeared?
As of yesterday, I can only see Flash Editor in maximized mode. Trying to restore the window to it's normal size results in blank desktop, however, I can still access the menus using alt, as seen in this image: http://home.cogeco.ca/~gcarlyle24/flashgone.gif Only affects Flash Editor, though, quite possibly has nothing to do with Flash. Anyone seen this happen to them before? ___ 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] Speak into microphone Save as wav to sever, is it possible in Flash9 /AS3/Flex2 ??!
Hey to you all out there, the microphone object in flash player 6 is cool but do you know how to save the stuff you say into the microphone on to a server as a wav or MP3 file. OK! I want the user only to press a button in the flash movie to record what the user says in the microphone. And than press a stop butten to stop recording sound. Please help me, this project depends on it. Thanks - - - - - - - - - - - - - - Francisco Martin B. - Moovil Studios - http://www.moovil.com [EMAIL PROTECTED] / Tlf. 647.39.37.52 -Mobile Developments Apps -Mobile Games -Mobile Interactive Intelligent Assistants - - - - - - - - - - - - - Aviso Legal La informacion transmitida va dirigida unicamente a la persona o entidad que se muestra como destinatario y son datos confidenciales o privilegiados. Toda revision, retransmision, diseminacion u otro uso o accion al respecto por parte de personas o entidades distintas al destinatario esta prohibida. Si recibe esto por error, por favor contacte con la persona que figura como remitente y elimine la informacion de cualquier ordenador. The information transmitted is intended only for the person or entity to which it is addressed and contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entibies other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the information from any computer. ___ 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] getting started with AS3
If you are a licensed user of Flash 8, you can download the Flash 9 AS3 Preview at http://labs.adobe.com/technologies/flash9as3preview/. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bbt Lists Sent: Friday, July 21, 2006 1:35 PM To: Flash Lists Subject: [Flashcoders] getting started with AS3 And yes I did search the archive =-). At any rate I was wondering if there is a way to get started with AS3 without having to delve into flex. Nothing against flex, but I just wanted to focus on the language, and not the tool (at this point). And well also since i am on a mac - there seems to be no flex (as of yet - unless that has changed in the last month). IS there a way to do so with flash, or would that only be possible if I was part of some sort of beta tester program for flash 9(which I am sure I do not qualify for)? I would just like to start getting my head around it. Thanks in advance! -- dnk ___ 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] Back from html to specific point in flash
Ricardo Sánchez wrote: So our second option is open the link in the same window but giving the user the chance to hit the back button of the browser (once in the html) and go back to the specific situation where he was on the flash. Is this possible? It could be, but a lot depends on the presentation, and how you determine where here is. For a slideshow you can just do local Shared Object Storage of the last slide viewed, and jump to the last viewpoint whenever starting, for instance. For an application you may need to represent a stack of prior user actions. Kevin Lynch had an example awhile ago which also deals with state-representation in SWF... he put the state into the URL itself, as query terms, but the same issue of How do you know where 'here' is? remains. (Most window-blocking extensions for browsers permit new windows in response to user clicks in the HTML part, but many have blocked all window requests from plugins, because of abuses from spammers. I don't know of a current listing of which window-blockers, and their audience sizes, will block a getURL with _blank from SWF.) 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] HTML Parser with Flash
http://www.osflash.org/deng Here you go ;) 2006/7/19, Mike [EMAIL PROTECTED]: XHTML or HTML 4.0? If the former, you can just use the XML object. If the latter ... have fun -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sara Czyzewicz Sent: Wednesday, July 19, 2006 1:46 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] HTML Parser with Flash Fellow Flashcoders, I'm looking for a way of parsing through an HTML page using ActionScript. Would be greatly appreciated if someone could point me in some direction... 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] ActionScript Application Framework
Another issue with developing a Rails or Cake type of framework for Flash is the rate at which Flash changes undermines the effort. PHP, Java, Ruby - these languages get upgrades, improvements and bug fixes over the years, but for the most part, don't change that much, and get a lot of additional functionality from new libraries. Actionscript, on the other hand, has significant changes much more rapidly. Flash 7 brought about a whole new syntax (AS2), and Flash 9 is doing it again (AS3). In addition, Flash is a visual tool and the code is inherently tied to the visual library. Those other languages reside almost entirely in the non-visual realm, and use a different technology, HTML, to display their content to users (Java applications aside - we're talking about web delivery here). ___ 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] getting started with AS3
Tom Lee wrote: If you are a licensed user of Flash 8, you can download the Flash 9 AS3 Preview at http://labs.adobe.com/technologies/flash9as3preview/. Thanks MUCH! -- dnk ___ 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] AS3, BitmapData and domain security
Thanks a lot Tom, that was just what I was looking for. It looks like in Flash Player 9, if you want to load *and* manipulate an image (or even a sound) from another domain you have to be able to have access to that domain and be able to put a crossdomain policy file on that server. The weird thing is that you can load an image from any server without the need for a crossdomain policy file, but you can't use BitmapData.draw() unless you have a policy file. Also, you can load an mp3 from any other server but you can't access the mp3's id3 information without a policy file on the other server. What madness is this!? What's the reasoning behind this? Surely it can't be to do with potential 'hackers' because to get around the problem you only have to create a proxy script: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=50c96388 which any potential hacker would be able to knock up in no time. But for developers, having to create a proxy script means the data has to be redirected via your server and you have to pay for the bandwidth that uses up. I really don't understand why Flash 8 and 9 have this security feature as I don't see what extra security it provides apart from annoying developers. Paul. On 21/07/06, Tom Lee [EMAIL PROTECTED] wrote: Paul, I believe the policy file being referred to is the crossdomain.xml file. Here's a technote for you on the subject, in case you're not familiar: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213. After you get up to speed on cross-domain policy files, you'll want to check out http://livedocs.macromedia.com/labs/as3preview/langref/index.html?flash/syst em/LoaderContext.htmlflash/system/class-list.html I think the following excerpts pertains to your question: When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no need to specify a SecurityDomain or an application domain, because those concepts are meaningful only for SWF files. Instead, you have only one decision to make: do you need programmatic access to the pixels of the loaded image? If so, see the checkPolicyFile property. From the checkPolicyFile documentation: Set this flag to true when you are loading an image (JPEG, GIF, or PNG) from outside the calling SWF file's own domain, and you expect to need access to the content of that image from ActionScript. Examples of accessing image content include referencing the Loader.content property to obtain a Bitmap object, and calling the BitmapData.draw() method to obtain a copy of the loaded image's pixels Hope that helps! -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Neave Sent: Friday, July 21, 2006 9:06 AM To: Flashcoders Subject: [Flashcoders] AS3, BitmapData and domain security Hi group, I've only just discovered that in Flash 8 you can't .draw() a loaded image into a BitmapData object if the image was loaded from another domain. I've search about and found you can .draw() a SWF which uses System.security.allowDomain but there's no way to .draw() an image JPG, GIF, PNG etc when loaded across domains. This is very annoying, but apparently ...this will be fixed in FP9; you will be able to use policy files to permit such things. said Deneb Meketa: http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Can someone explain how to use the policy file to permit .draw()ing cross-domain in AS3/FP9? Thanks buckets, Paul. ___ 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] Can ComboBox open upwards?
Hi, one dirty hack I know of it to: - extend the combobox class - override the displalyDropdown with an altered copy, in which //if (point.y+ dd.height Stage.height) is replaced with if(true) - reassign a new instance of the class to a combobox instance at runtime Very evil things might happen:). Well anywayz, it works great, but not when you export it in Flash8. Exporting it in flash mx 2004 does. It was a quick hack once, and it has never been updated yet... but someday well greetz Hans On 7/21/06, eric dolecki [EMAIL PROTECTED] wrote: I seem to remember being able to adjust the tween for the opening and also the direction somewhere - you might want to look in the class for the comboBox and take a look. Or check the archives here. I know that it WILL open upwards if there is not enough Stage area below the control. So it is indeed possible. - e.d. On 7/21/06, Robert Chyko [EMAIL PROTECTED] wrote: Anyone know if there is any easy way to make a ComboBox drop upwards (other than modifying the ComboBox class itself)? Thanks, Bob ___ 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] external component assets
I have a couple components that have background images and other visual assets that are not always used. I have created inspectable properties that allow the user to turn off the images if they do not want them. However the file size of the component is still the same. My assumption is that the background images are still downloaded. My question is it possible to have a component when dragged onto the stage drop movie clips into the library. This would allow the user to edit those movie clips or delete them if they do not want them. My hope is to keep the file size of components down and make it as easy as possible for people to customize the components when they want to without doubling the size of the component. Thanks; Wade Arnold ___ 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] ActionScript Application Framework
I use ActionStep with ARP regularly. They're complimentary. In fact, I have the ARP commands set up so they can be marked as being undoable, syncing right in with ActionStep's undomanager and menuing system. Scott On 21/07/06, Ben Smeets [EMAIL PROTECTED] wrote: Looking at the amount of reactions and my own personal questions, I think this is a very wanted subject by developers. The funny thing is, that I think there are already lots of different os frameworks which are useable in projects and a developers life easier. It seems they are just not well known enough or lack in documentation on how it can help people. I also think that there are lot's of projects that help in separate subjects. E.g. ARP/ASWING/ACTIONSTEP etc. It might help if people can see how these frameworks can work together. My 2 cents. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ujjwal Kabra Sent: donderdag 20 juli 2006 22:02 To: Flashcoders mailing list Subject: Re: [Flashcoders] ActionScript Application Framework After nearly two years of working in ActionScript, my company decided that Flash development was too painful and just not worth the effort. This happened just about the time that I was actually getting the hang of things. In any case, I was the last Flash(AS2) Developer left here... I'm in full support for building an app-development framework around Flash/AS2 and/or AS3, which would make life easier for AS2 devs like me, and make the decision to chose Flash as a development platform easier for a mid-sized team than it currently is. While I have little(none actually) idea about Ruby and Rails, I'll read up soon... I would love to get started before my Flash skills actually get rusted away. - Ujjwal PS: Is there a troll feature on mailing lists? On 7/21/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: James, Rails and Flex work very well together. Maybe you should consider following that career path - a Flex/Rails developer. Jesse Warden has gone that way and loves it. http://www.recentrambles.com/pragmatic/view/31 BLITZ | Steven Sacks - 310-551-0200 x209 ___ 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] AS3, BitmapData and domain security
I'll admit it's counter-intuitive to me too... Flash Player's approach to security always has been peculiar from my point of view. I would welcome more transparency on the reasoning behind the security decisions being made. It would make it a lot easier for me to sell Flash Platform solutions if I had a ready answer to questions like what's up with crossdomain.xml?. Every non-Flash developer I've worked with has been baffled by it. That said, the Player team is trying to satisfy a wide variety of concerns which I would never think of. Generally speaking, I think that cross-domain policy files are meant to restrict the Flash Player's capabilities, and nothing more. Flash Player can't be responsible for all tiers of network security, only itself. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Neave Sent: Friday, July 21, 2006 2:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3, BitmapData and domain security Thanks a lot Tom, that was just what I was looking for. It looks like in Flash Player 9, if you want to load *and* manipulate an image (or even a sound) from another domain you have to be able to have access to that domain and be able to put a crossdomain policy file on that server. The weird thing is that you can load an image from any server without the need for a crossdomain policy file, but you can't use BitmapData.draw() unless you have a policy file. Also, you can load an mp3 from any other server but you can't access the mp3's id3 information without a policy file on the other server. What madness is this!? What's the reasoning behind this? Surely it can't be to do with potential 'hackers' because to get around the problem you only have to create a proxy script: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=50c96388 which any potential hacker would be able to knock up in no time. But for developers, having to create a proxy script means the data has to be redirected via your server and you have to pay for the bandwidth that uses up. I really don't understand why Flash 8 and 9 have this security feature as I don't see what extra security it provides apart from annoying developers. Paul. On 21/07/06, Tom Lee [EMAIL PROTECTED] wrote: Paul, I believe the policy file being referred to is the crossdomain.xml file. Here's a technote for you on the subject, in case you're not familiar: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213. After you get up to speed on cross-domain policy files, you'll want to check out http://livedocs.macromedia.com/labs/as3preview/langref/index.html?flash/syst em/LoaderContext.htmlflash/system/class-list.html I think the following excerpts pertains to your question: When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no need to specify a SecurityDomain or an application domain, because those concepts are meaningful only for SWF files. Instead, you have only one decision to make: do you need programmatic access to the pixels of the loaded image? If so, see the checkPolicyFile property. From the checkPolicyFile documentation: Set this flag to true when you are loading an image (JPEG, GIF, or PNG) from outside the calling SWF file's own domain, and you expect to need access to the content of that image from ActionScript. Examples of accessing image content include referencing the Loader.content property to obtain a Bitmap object, and calling the BitmapData.draw() method to obtain a copy of the loaded image's pixels Hope that helps! -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Neave Sent: Friday, July 21, 2006 9:06 AM To: Flashcoders Subject: [Flashcoders] AS3, BitmapData and domain security Hi group, I've only just discovered that in Flash 8 you can't .draw() a loaded image into a BitmapData object if the image was loaded from another domain. I've search about and found you can .draw() a SWF which uses System.security.allowDomain but there's no way to .draw() an image JPG, GIF, PNG etc when loaded across domains. This is very annoying, but apparently ...this will be fixed in FP9; you will be able to use policy files to permit such things. said Deneb Meketa: http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Can someone explain how to use the policy file to permit .draw()ing cross-domain in AS3/FP9? Thanks buckets, Paul. ___ 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:
[Flashcoders] Re: Flashcoders Digest, Vol 18, Issue 58
Thank you for your email. I will be out of the office Friday, 7/21. If you need any assistance, please contact Paul Sternglass at [EMAIL PROTECTED] or 914-614-0046. ___ 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] butterfly animation
does anybody here have a link for a good actionscript butterfly animation? Doug Tangren [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] removing background from list component
The drawRowFill function doesn't have a _alpha parameter. I hope this will solve your problem, if haven't figured it out yet. -Andy var alpha = 0; var color = 0xff; // _global.styles.ScrollSelectList.backgroundColor = null; mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function(mc:MovieClip, newClr:Number):Void { newClr = color; mc.clear(); mc.beginFill(newClr, alpha); mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Rodecker Sent: Wednesday, July 19, 2006 3:51 PM To: Flashcoders mailing list Subject: [Flashcoders] removing background from list component ok, ive searched everywhere for this, and can't find a solution that works. I jsut want to hide the background of a list component. making it semi-transparent would be even better, but at this point take whatever. i've tried: _global.styles.ScrollSelectList.backgroundColor = undefined; _global.styles.ScrollSelectList.setStyle(backgroundColor, transparent); these remove the background, but also disable interactivity. playlist_lb.border_mc.visible = false; i read that this should work, but dont get any results. ___ 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] AS3, BitmapData and domain security
What is you put the loaded image into an empty MC and then captured the BitmapData of the MC you created? Does the security traverse the MC tree checking for foreign domains? Charles P. On 7/21/06, Paul Neave [EMAIL PROTECTED] wrote: Thanks a lot Tom, that was just what I was looking for. It looks like in Flash Player 9, if you want to load *and* manipulate an image (or even a sound) from another domain you have to be able to have access to that domain and be able to put a crossdomain policy file on that server. The weird thing is that you can load an image from any server without the need for a crossdomain policy file, but you can't use BitmapData.draw() unless you have a policy file. Also, you can load an mp3 from any other server but you can't access the mp3's id3 information without a policy file on the other server. What madness is this!? What's the reasoning behind this? Surely it can't be to do with potential 'hackers' because to get around the problem you only have to create a proxy script: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=50c96388 which any potential hacker would be able to knock up in no time. But for developers, having to create a proxy script means the data has to be redirected via your server and you have to pay for the bandwidth that uses up. I really don't understand why Flash 8 and 9 have this security feature as I don't see what extra security it provides apart from annoying developers. Paul. On 21/07/06, Tom Lee [EMAIL PROTECTED] wrote: Paul, I believe the policy file being referred to is the crossdomain.xml file. Here's a technote for you on the subject, in case you're not familiar: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213. After you get up to speed on cross-domain policy files, you'll want to check out http://livedocs.macromedia.com/labs/as3preview/langref/index.html?flash/syst em/LoaderContext.htmlflash/system/class-list.html I think the following excerpts pertains to your question: When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no need to specify a SecurityDomain or an application domain, because those concepts are meaningful only for SWF files. Instead, you have only one decision to make: do you need programmatic access to the pixels of the loaded image? If so, see the checkPolicyFile property. From the checkPolicyFile documentation: Set this flag to true when you are loading an image (JPEG, GIF, or PNG) from outside the calling SWF file's own domain, and you expect to need access to the content of that image from ActionScript. Examples of accessing image content include referencing the Loader.content property to obtain a Bitmap object, and calling the BitmapData.draw() method to obtain a copy of the loaded image's pixels Hope that helps! -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Neave Sent: Friday, July 21, 2006 9:06 AM To: Flashcoders Subject: [Flashcoders] AS3, BitmapData and domain security Hi group, I've only just discovered that in Flash 8 you can't .draw() a loaded image into a BitmapData object if the image was loaded from another domain. I've search about and found you can .draw() a SWF which uses System.security.allowDomain but there's no way to .draw() an image JPG, GIF, PNG etc when loaded across domains. This is very annoying, but apparently ...this will be fixed in FP9; you will be able to use policy files to permit such things. said Deneb Meketa: http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Can someone explain how to use the policy file to permit .draw()ing cross-domain in AS3/FP9? Thanks buckets, Paul. ___ 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
Re: [Flashcoders] AS3, BitmapData and domain security
I've just tried loading the image into a nested clip but it's still doesn't work. It doesn't work in AS3 either. According to the AS3 livedocs: BitmapData.draw() Security note: The source object and (in the case of a Sprite or MovieClip object) all of its child objects must come from the same domain as the caller, or must be in a SWF file that is accessible to the caller by having called the Security.allowDomain() method. If these conditions are not met, the draw() method does not draw anything. http://livedocs.macromedia.com/flex/2/langref/flash/display/BitmapData.html#draw() Personally I think this security restriction is utterly stupid. Why on earth would you need to restrict access to an image that is *already* loaded into Flash? The biggest problem is that in AS3, once an image has been loaded it cannot have its pixels 'smoothed', so when it is scaled the pixels go jagged and aliased. There was a workaround in FP8/AS2 where you copied the image into a BitmapData object and applied the 'smooth' property, but it's now obvious you can't do this if the image is coming from a domain that you don't have access to. This impacts on pretty much every dynamic application I work on that uses images from servers such as Flickr, Google Images, map images servers etc. that you don't have server-side access to. The restriction also applies to dynamically loaded sound files. Can someone please explain the logic and benefit behind this security decision as it really is baffling me! Thanks loads, Paul. On 21/07/06, Charles Parcell [EMAIL PROTECTED] wrote: What is you put the loaded image into an empty MC and then captured the BitmapData of the MC you created? Does the security traverse the MC tree checking for foreign domains? Charles P. On 7/21/06, Paul Neave [EMAIL PROTECTED] wrote: Thanks a lot Tom, that was just what I was looking for. It looks like in Flash Player 9, if you want to load *and* manipulate an image (or even a sound) from another domain you have to be able to have access to that domain and be able to put a crossdomain policy file on that server. The weird thing is that you can load an image from any server without the need for a crossdomain policy file, but you can't use BitmapData.draw() unless you have a policy file. Also, you can load an mp3 from any other server but you can't access the mp3's id3 information without a policy file on the other server. What madness is this!? What's the reasoning behind this? Surely it can't be to do with potential 'hackers' because to get around the problem you only have to create a proxy script: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=50c96388 which any potential hacker would be able to knock up in no time. But for developers, having to create a proxy script means the data has to be redirected via your server and you have to pay for the bandwidth that uses up. I really don't understand why Flash 8 and 9 have this security feature as I don't see what extra security it provides apart from annoying developers. Paul. On 21/07/06, Tom Lee [EMAIL PROTECTED] wrote: Paul, I believe the policy file being referred to is the crossdomain.xml file. Here's a technote for you on the subject, in case you're not familiar: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213. After you get up to speed on cross-domain policy files, you'll want to check out http://livedocs.macromedia.com/labs/as3preview/langref/index.html?flash/syst em/LoaderContext.htmlflash/system/class-list.html I think the following excerpts pertains to your question: When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no need to specify a SecurityDomain or an application domain, because those concepts are meaningful only for SWF files. Instead, you have only one decision to make: do you need programmatic access to the pixels of the loaded image? If so, see the checkPolicyFile property. From the checkPolicyFile documentation: Set this flag to true when you are loading an image (JPEG, GIF, or PNG) from outside the calling SWF file's own domain, and you expect to need access to the content of that image from ActionScript. Examples of accessing image content include referencing the Loader.content property to obtain a Bitmap object, and calling the BitmapData.draw() method to obtain a copy of the loaded image's pixels Hope that helps! -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Neave Sent: Friday, July 21, 2006 9:06 AM To: Flashcoders Subject: [Flashcoders] AS3, BitmapData and domain security Hi group, I've only just discovered that in Flash 8 you can't .draw() a loaded image into a BitmapData object if the image was loaded from another domain. I've search about and found you can .draw() a SWF which uses System.security.allowDomain but there's no way to .draw() an
[Flashcoders] Flash Remoting Updater
At the start of this week we purchased Flash Remoting for integration with a client's .NET application. When I went to download the updater from the Adobe site I found a 404 error (what's up with the whole site anyway, seems totally unresponsive and often hangs my browser?!). Five days later despite contacting customer support by phone and email we still cannot get Adobe to provide access to the updater, or even acknowledge that the updater page is down. For $1,000.00 you would expect a timely response. Should have gone with weborb. So is there anyone out there who happens to have the updater for the .NET install of Flash Remoting and is willing to share it? Clark www.bayinteractive.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] attachMovieClip.
Dear Dave Yang, Since I'm used to mcExtends for movieclip instance on stage is associated to class, and it can pass parameters to constructor as well. Since Object.registerClass doesn't seem to let you passing any parameters to constructor. Is it possible to let mcExtends to work in AS 2.0 ? Regards, Wah Jong ___ 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] external component assets
Hello Wade, All component's assets will be downloaded in any case, especially is you use compiled clips. But there's one little thing: in published movie, the libraries of component and host movie are joined. So, if your component uses Symbol_1 from it's own library, but host movie has it's own version of Symbol_1, component will use the latter. This allows us to skin components :-). For you task, I can suggest that you provide a list of assets (open FLA or just list of names - your choice) you'd like users to edit. Then, in published movie, user's version of asset(s) will be used. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. Wade Arnold wrote: I have a couple components that have background images and other visual assets that are not always used. I have created inspectable properties that allow the user to turn off the images if they do not want them. However the file size of the component is still the same. My assumption is that the background images are still downloaded. My question is it possible to have a component when dragged onto the stage drop movie clips into the library. This would allow the user to edit those movie clips or delete them if they do not want them. My hope is to keep the file size of components down and make it as easy as possible for people to customize the components when they want to without doubling the size of the component. ___ 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