Re: [Flashcoders] Offline/Online Security in FP8
Mike, i have exactly same problem, and do not know solution :( On 11/9/05, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Without knowing the answer, have you tried System.security.allowDomain(http://localhost;); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike West Sent: Wednesday, 9 November 2005 8:45 AM To: Flashcoders mailing list Subject: [Flashcoders] Offline/Online Security in FP8 Hello Flash Gurus... We've run into what seems to be a pretty big issue with Flash Player 8. We have an application (swf) that is loaded from our website and plays flv files from the client's CDROM. This worked fine in version 7, but is broken in version 8 due to the new security model. Has anyone run into this and if so, have you found out how to modify the security settings so that a website hosted swf can read flv's from a clients CDROM or hard drive? Thanks for the help. -Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
i have try it with MovieClipLoader and i have received onLoadError message loadListener.onLoadError() == errorCode: IllegalRequest httpStatus: 0 in test.swf, which I'm trying load from local is System.security.allowDomain(*) or System.security.allowDomain(http://localhost;); nothing works :( ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] the incredible world of IE on the mac....
Hello, Anyone now of any good reason why a piece of flash player 7 content would show in every browser and platform tested but NOT on a mac in internet explorer? i think it might have something to do with DB calls or loadMovie. but i'm stumped. cheers, tom. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML and CData
Make sure you set the correct parameters for the XMLConnector in the properties panel. URL: path to xml file direction: receive (send and receive will NOT work) ignoreWhite: true Call the .trigger() method on the XMLConnector instance to load the xml. Other than the space bug it should work just fine. regards, Muzak - Original Message - From: Ron Wagner [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 7:10 AM Subject: Re: [Flashcoders] XML and CData I should add that with the space betwen the node and ![CDATA it works in the schema editor, but still does not work when viewing data. Used the same exact data to edit the schema as is being used when testing live. Going to try the method that Miles Thompson recommended in the morning. Ron ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] passing variables around problem
hi guys it's been a while since i last posted but i really hope you guys can help i'm using the flash 6 player and actionscript 1.0 i am trying to pass a value from a loadVars object to a variable elsewhere in the movie but it doesn't seem to want to go the whole menu is set up using an xml file which loads as expected the object is set up like this function loadMenu(XMLDoc) { var textFilesPath = ./updateable_files/; // -- sets a reference to the whole path to grab the text files for the load() method (at the bottom) XMLVars = new XML(); XMLVars.onLoad = function(success) { if (success) { for (i=0;ithis.firstChild.childNodes.length;i++) { var thisKind = this.firstChild.childNodes[i].attributes.kind; trace(thisKind); // -- sets up a reference to the menu item from the attribute of the xml node named 'kind') // -- trace returns correct name and is used elsewhere for loading images into another movie correctly using a loadMovie // -- function for setting common attributes on all menu items setMenuCommonAttributes = function() { // -- sets up object to pass to this menu item var tempObject = new Object(); tempObject.description_txt = some copy; tempObject._y = 13 * i; _root.menu.attachMovie(menuItem_clip, thisKind, i, tempObject); trace (typeof _root.menu[thisKind].description_txt); // -- trace returns string trace (_root.menu[thisKind].description_txt); // -- trace returns some copy }; var thisText = new LoadVars(); thisText.onLoad = function(success) { trace (thisText TXT fired); if (success) { var thisInstanceText = this.txt; trace (thisInstanceText); // -- trace returns copy as expected _root.menu[thisKind].description_txt = thisInstanceText; // -- this seems to be where things go wrong trace (typeof _root.menu[thisKind].description_txt); // -- returns undefined trace (_root.menu[thisKind].description_txt); // -- returns undefined } else { // -- error handler trace (text content failed); thisText.txt = error loading text file; } }; var textDoc = _root.menu[thisKind].description; thisText.load(textDoc); } else { _root.description.htmlText = bError loading content/b; } } XMLVars.load (textFilesPath+XMLDoc); } the problem areas have had the indentation taken out i really hope you guys can help - i can't imagine it's a scope problem because i'm using an absolute path to the variable i want to change (_root.menu[thisKind].description_txt which works at the setup stage but seems to be undefined when i try to pass something else to it) and it can't be a problem with the loadVars object because i've passed a copy of the variable to a local variable (thisInstanceText) first and that traces fine i know it's something stupid alz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] localWithNetwork?
hi, i want to run swf file in local machine which gives data from website. sandboxType is always localTrusted :( how can i do this? thx. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
i found topic on flashkit forum http://www.flashkit.com/board/showthread.php?t=653396 (nothings there, but maybe someone will post some solution) and I will write it on my blog http://blog.franto.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML and CData
The ignoreWhite is set to true. I have four other fields which are integers, all coming through fine so I know the XMLConnector is setup, being triggered, and otherwise working ok. If I remove the CDATA from the xml and send it through as text it comes through fine. The problem is I know my data will have some html mixed in so I really need the CDATA around it. Any other ideas are more than welcome. Thanks, Ron On Nov 9, 2005, at 6:10 AM, Muzak wrote: Make sure you set the correct parameters for the XMLConnector in the properties panel. URL: path to xml file direction: receive (send and receive will NOT work) ignoreWhite: true Call the .trigger() method on the XMLConnector instance to load the xml. Other than the space bug it should work just fine. regards, Muzak - Original Message - From: Ron Wagner [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 7:10 AM Subject: Re: [Flashcoders] XML and CData I should add that with the space betwen the node and ![CDATA it works in the schema editor, but still does not work when viewing data. Used the same exact data to edit the schema as is being used when testing live. Going to try the method that Miles Thompson recommended in the morning. Ron ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: 网易邮箱自动回复: Re: [Flashcoders] Offline/Online Security in FP8
uff, what's this? I cant read your font... is it chinese or japanese? On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 您发给我的信件已经收到。 网易163邮箱--专业电子邮局,2000M超大空间,支持超大附件,全国唯一24小时客户服务。 欢迎您来注册使用。网易126邮箱:http://www.126.com -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
i have the same problem. :( franto wrote: i found topic on flashkit forum http://www.flashkit.com/board/showthread.php?t=653396 (nothings there, but maybe someone will post some solution) and I will write it on my blog http://blog.franto.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: passing variables around problem
okay i know what the problem is but i don't know how to get around it the loadVars object's onLoad function is firing after the for loop finishes so it's grabbing the description_txt from the last xml item (which doesn't have any description_txt as it will behave slightly differently) so the description_txt gets wiped and it's type becomes undefined so i guess the question i have is how do i call the onLoad function during the loop rather than after it? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] OT?: Stage size
Is there a way to make the work area infinitely big? :P By work area i mean the gray area surrounding the active stage. As recent as yesterday i had a very (very) large movieclip on stage with its reg point top left (placing the reg point outside of the boundaries of the visible work area) and removed its contents to replace, but inadvertently exited the clip and had to go through the library to find it, fill it with a gigantic mass of some sort so i could see it on stage again so i could delete it. Is there a reason for this work area size limit? The coordinate system doesnt stop at its boundaries, so why? - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Centering Loaded jpgs
Thanks to all who helped with getting the loaded jpgs resized - indeed it was that they were not loaded when I tried to resize them... Now for another question - how can I get the image centered onto the mc it is loaded into - does this make sense - so if I have the mc x,y at 0,0 the top left of the image is at the top left of the mc - I would like the image centered onto the mc so that if it is too large then (I am masking it) an equal amount is left off of each edge... Hope this makes sense ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Loadmovie and sounds
Hello I am using LoadMovie to play multiple swfs within the loaded swf I am using the sound object as so var objSound = new Sound() objSound.attachSound(step1) objSound.start(0, 0) objSound.onSoundComplete = function(){ gotoAndPlay(step2) } stop(); Although I can not get the sound to play when loaded into the parent clip. What should I change in the loaded file to play the sound? David Brunswick Training Specialist II VeriSign E - [EMAIL PROTECTED] P - 912-527-4110 elearning.verisign.com Knowledge Speaks - Wisdom Listens - Jimi Hendrix ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XML and CData
Not the best workaround, but why not just use the parent node for yout HTML tags as your string? What is the issue with the child nodes being read as nodes? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wagner Sent: Wednesday, November 09, 2005 7:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML and CData The ignoreWhite is set to true. I have four other fields which are integers, all coming through fine so I know the XMLConnector is setup, being triggered, and otherwise working ok. If I remove the CDATA from the xml and send it through as text it comes through fine. The problem is I know my data will have some html mixed in so I really need the CDATA around it. Any other ideas are more than welcome. Thanks, Ron ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OT?: Stage size
In short, no. There is a defined limit to amount of room outside the Stage area in the IDE. This area has been enlarged for Flash 8 - I can't remember the pixel dimension details. The size limit is probably so that the IDE runs efficiently as possible. ed On 11/9/05, Andreas Rønning [EMAIL PROTECTED] wrote: Is there a way to make the work area infinitely big? :P By work area i mean the gray area surrounding the active stage. As recent as yesterday i had a very (very) large movieclip on stage with its reg point top left (placing the reg point outside of the boundaries of the visible work area) and removed its contents to replace, but inadvertently exited the clip and had to go through the library to find it, fill it with a gigantic mass of some sort so i could see it on stage again so i could delete it. Is there a reason for this work area size limit? The coordinate system doesnt stop at its boundaries, so why? - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
http://www.macromedia.com/devnet/flash/articles/migrating_fl8_08.html - Original Message - From: Bjorn Schultheiss [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 12:31 AM Subject: RE: [Flashcoders] Offline/Online Security in FP8 Without knowing the answer, have you tried System.security.allowDomain(http://localhost;); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike West Sent: Wednesday, 9 November 2005 8:45 AM To: Flashcoders mailing list Subject: [Flashcoders] Offline/Online Security in FP8 Hello Flash Gurus... We've run into what seems to be a pretty big issue with Flash Player 8. We have an application (swf) that is loaded from our website and plays flv files from the client's CDROM. This worked fine in version 7, but is broken in version 8 due to the new security model. Has anyone run into this and if so, have you found out how to modify the security settings so that a website hosted swf can read flv's from a clients CDROM or hard drive? Thanks for the help. -Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
More specifically, the local content updater here: http://www.macromedia.com/support/flashplayer/downloads.html - Original Message - From: JesterXL [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 9:14 AM Subject: Re: [Flashcoders] Offline/Online Security in FP8 http://www.macromedia.com/devnet/flash/articles/migrating_fl8_08.html - Original Message - From: Bjorn Schultheiss [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 12:31 AM Subject: RE: [Flashcoders] Offline/Online Security in FP8 Without knowing the answer, have you tried System.security.allowDomain(http://localhost;); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike West Sent: Wednesday, 9 November 2005 8:45 AM To: Flashcoders mailing list Subject: [Flashcoders] Offline/Online Security in FP8 Hello Flash Gurus... We've run into what seems to be a pretty big issue with Flash Player 8. We have an application (swf) that is loaded from our website and plays flv files from the client's CDROM. This worked fine in version 7, but is broken in version 8 due to the new security model. Has anyone run into this and if so, have you found out how to modify the security settings so that a website hosted swf can read flv's from a clients CDROM or hard drive? Thanks for the help. -Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV playing inside component
I've never had a problem with Filters and video panes. Can you pass a value to the NetStream.play method start argument? my_ns.play(__videoPath, 1); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML and CData
Hi Tim, I'm afraid I don't follow you here. Let me give an example and maybe you can elaborate a little. ?xml version=1.0 ? container item anInt1/anInt anotherInt2/anotherInt yetAnotherInt1/yetAnotherInt aStringyes, it works/aString aMessage ![CDATA[ This is a string that contains html a href=http:// www.apple.comApple/a. It doesn't work.br This string ends up being empty when displayed, even though other fields work fine. ]] /aMessage /item /container Thanks, Ron On Nov 9, 2005, at 8:46 AM, Tim Beynart wrote: Not the best workaround, but why not just use the parent node for yout HTML tags as your string? What is the issue with the child nodes being read as nodes? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wagner Sent: Wednesday, November 09, 2005 7:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML and CData The ignoreWhite is set to true. I have four other fields which are integers, all coming through fine so I know the XMLConnector is setup, being triggered, and otherwise working ok. If I remove the CDATA from the xml and send it through as text it comes through fine. The problem is I know my data will have some html mixed in so I really need the CDATA around it. Any other ideas are more than welcome. Thanks, Ron ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] removing a entry from an associative array?
The only solution I see is to create a new array by looping through the array like this: function removeAssociativeEntry (startArray, entryName) { newarray=[]; for (var i in StartArray) { if (entryNamei) { newarray [i]=startArray[i]; } } return (newarray); } This seems a bit silly, especially since I don't know how long these arrays are gonna be. Is thery any inbuilt function for getting the index of a associative entry? /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML and CData
That's exactly what needs to be done. Taking my previous xml example: ?xml version=1.0 ? content node label=node 1 ![CDATA[Node 1: Some cdata text.]] /node node label=node 2 ![CDATA[Node 2: Some cdata text.]] /node node label=node 3 ![CDATA[Node 3: Some cdata text.]] /node node label=node 4 ![CDATA[Node 4: Some cdata text.]] /node /content Which gives the following schema: - results : XML - content : Object - node : Array - [n] : String - @label : String You can then have the following bindings: You can bind the - node : Array to a dataProvider property of a List You can bind the - [n] : String to a text property of a TextArea If you then select the XMLConnector on stage, open the Bindings tab in the Component inspector. There should be 2 entries: results.content.node (bound to List) results.content.node[n] (bound to TextArea) When selecting the last one, at the bottom, there should be an entry saying: Index for 'node' with a fixed value of '0'. Select it and in the Bound Index dialog, unselect the Use constant value option. Then select the List in the Component Path window on the left. Select the 'selectedIndex' property as the Schema Location (right side window). Last thing to do is to have an initial binding take place when xml is loaded. For that to work, specify a default value for the selectedIndex of the List. Select the List on stage. Select the Schema tab in the Component Inspector Select the - selectedIndex : Number property At the bottom look for the default value entry. Fill in 0 as the value. If this still doesn't work, send me your xml file and let me know which bindings you'd like to have. kind regards, Muzak - Original Message - From: Tim Beynart [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 2:46 PM Subject: RE: [Flashcoders] XML and CData Not the best workaround, but why not just use the parent node for yout HTML tags as your string? What is the issue with the child nodes being read as nodes? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wagner Sent: Wednesday, November 09, 2005 7:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML and CData The ignoreWhite is set to true. I have four other fields which are integers, all coming through fine so I know the XMLConnector is setup, being triggered, and otherwise working ok. If I remove the CDATA from the xml and send it through as text it comes through fine. The problem is I know my data will have some html mixed in so I really need the CDATA around it. Any other ideas are more than welcome. Thanks, Ron ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS2 compiler error extravaganza
two classes. First lines of the problem class: import flash.geom.*; import as.maps.model.GroupReference; class as.maps.model.Topic{ ... } first lines of the GroupReference class import as.memomaps.model.Topic; class as.memomaps.model.GroupReference{ ... } Topic.as: Line 3: The name of this class, 'as.memomaps.model.Topic', conflicts with the name of another class that was loaded, 'as.memomaps.model.Topic'. class as.memomaps.model.Topic{ This makes sense. Topic imports groupreference which imports topic. Bad Andreas. So how to work around this? I make a completely empty class called DataSource, and have Topic extend that. Then in GroupReference, i import as.memomaps.model.DataSource instead, and have whatever variables were expecting a Topic datatype to expect a DataSource type. Whammy. no more errors. The thing is, it's hard to simplify the Topic class down further: it's got a very specialized purpose. So is my method acceptable? To me it just looks terribly dirty. Any suggestions as to how i can solve this kind of cross-import issue in a more elegant manner? - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TextArea BUG!! HELP
txtDescription.text = textHtml; should be txtDescription.htmlText = textHtml; - Andreas Bruno Mosconi wrote: I'm preceding a simple task here, insert HTML content in a TextArea component including a simple Button component and a MC. First, I've imported TextArea and Button comps to my library. Put TextArea at Stage and name it as txtDescription. Next step, write down some code: [CODE] txtDescription.html = true; var textHtml = ; textHtml += test line..BR/; textHtml += img src=\Button\ id=\button_mc\br/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\; txtDescription.text = textHtml; _lavel0.txtDescription.label.button_mc.label = Test; trace(_lavel0.txtDescription.label.button_mc.label); [/CODE] It was supposed to work fine, but a b very strange BUG /b came along... See odd result and source file here: a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf Meet the BUG! /a a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla Source Code Here /a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removing a entry from an associative array?
Thanks Muzak, I have never used the delete command! I always set references to null etc. /David - Original Message - From: Muzak [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 4:14 PM Subject: Re: [Flashcoders] removing a entry from an associative array? delete?? function removeAssociativeEntry (startArray, entryName) { delete startArray[entryName]; } regards, Muzak - Original Message - From: David Skoglund [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 3:50 PM Subject: [Flashcoders] removing a entry from an associative array? The only solution I see is to create a new array by looping through the array like this: function removeAssociativeEntry (startArray, entryName) { newarray=[]; for (var i in StartArray) { if (entryNamei) { newarray [i]=startArray[i]; } } return (newarray); } This seems a bit silly, especially since I don't know how long these arrays are gonna be. Is thery any inbuilt function for getting the index of a associative entry? /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
I find it very hard to get a straight answer from all of these articles. If you could, let me know if things work out; here, or as a follow up post on your blog. - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 10:30 AM Subject: Re: [Flashcoders] Offline/Online Security in FP8 I add test.swf file from local filesystem to setting managers (manually browse for file on my HD, and add it to settings manager, but it doesnt work :( But there is many articles, that this should be able to do it, so I'm hoping, that it is matter of time to do it... On 11/9/05, JesterXL [EMAIL PROTECTED] wrote: No, but the issue was widly reported during the beta since many people had SWF's accessing both local and net content; therefore this EXE was made to fix their SWF's so they could do it. - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 9:54 AM Subject: Re: [Flashcoders] Offline/Online Security in FP8 Jester, im trying read, but want to ask, did you manage such situation already? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea BUG!! HELP
Sadly TextArea Component does not have htmlText attribute, only text. If you try: txtDescription.htmlText = textHtml; TextArea will show blank. Thanks anyway, Bruno -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: quarta-feira, 9 de novembro de 2005 13:32 To: Flashcoders mailing list Subject: Re: [Flashcoders] TextArea BUG!! HELP txtDescription.text = textHtml; should be txtDescription.htmlText = textHtml; - Andreas Bruno Mosconi wrote: I'm preceding a simple task here, insert HTML content in a TextArea component including a simple Button component and a MC. First, I've imported TextArea and Button comps to my library. Put TextArea at Stage and name it as txtDescription. Next step, write down some code: [CODE] txtDescription.html = true; var textHtml = ; textHtml += test line..BR/; textHtml += img src=\Button\ id=\button_mc\br/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\; txtDescription.text = textHtml; _lavel0.txtDescription.label.button_mc.label = Test; trace(_lavel0.txtDescription.label.button_mc.label); [/CODE] It was supposed to work fine, but a b very strange BUG /b came along... See odd result and source file here: a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf Meet the BUG! /a a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla Source Code Here /a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removing a entry from an associative array?
Delete won't actually remove the element of the array. Itll just remove whatever was in it. So if your array was length 3 before, it'll still be length 3 after delete. function deleteThisFromArray(a:Array, o:Object):Boolean{ for(var i = a.length;i--;){ if(a[i]==o){ a.splice(i,1); return true; } } return false; } David Skoglund wrote: Thanks Muzak, I have never used the delete command! I always set references to null etc. /David - Original Message - From: Muzak [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 4:14 PM Subject: Re: [Flashcoders] removing a entry from an associative array? delete?? function removeAssociativeEntry (startArray, entryName) { delete startArray[entryName]; } regards, Muzak - Original Message - From: David Skoglund [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 3:50 PM Subject: [Flashcoders] removing a entry from an associative array? The only solution I see is to create a new array by looping through the array like this: function removeAssociativeEntry (startArray, entryName) { newarray=[]; for (var i in StartArray) { if (entryNamei) { newarray [i]=startArray[i]; } } return (newarray); } This seems a bit silly, especially since I don't know how long these arrays are gonna be. Is thery any inbuilt function for getting the index of a associative entry? /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
Sure Jester, on blog there are 13 comments already after few minutes, if I will find solution, I will write you here ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removing a entry from an associative array?
Associative Array, not array. Basically, he means Flash's Object. var o = {}; o.prop = val; - Original Message - From: Andreas Rønning [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 10:45 AM Subject: Re: [Flashcoders] removing a entry from an associative array? Delete won't actually remove the element of the array. Itll just remove whatever was in it. So if your array was length 3 before, it'll still be length 3 after delete. function deleteThisFromArray(a:Array, o:Object):Boolean{ for(var i = a.length;i--;){ if(a[i]==o){ a.splice(i,1); return true; } } return false; } David Skoglund wrote: Thanks Muzak, I have never used the delete command! I always set references to null etc. /David - Original Message - From: Muzak [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 4:14 PM Subject: Re: [Flashcoders] removing a entry from an associative array? delete?? function removeAssociativeEntry (startArray, entryName) { delete startArray[entryName]; } regards, Muzak - Original Message - From: David Skoglund [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 3:50 PM Subject: [Flashcoders] removing a entry from an associative array? The only solution I see is to create a new array by looping through the array like this: function removeAssociativeEntry (startArray, entryName) { newarray=[]; for (var i in StartArray) { if (entryNamei) { newarray [i]=startArray[i]; } } return (newarray); } This seems a bit silly, especially since I don't know how long these arrays are gonna be. Is thery any inbuilt function for getting the index of a associative entry? /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] flash player 8 video/audio synching issue?
Hello, I have a swf loading in and playing as video (not a flv, just a regular swf) that was published in flash 6 (thought it may have been published in flash 7, i have to check on that). we've recently upgraded to flash 8 at work and now when i look at the site, the video is slightly out of synch with its accompanying audio.. which is embedded in the swf file. it was a quicktime that was imported into a fla and then published as a swf. i haven't yet tried republishing the fla holding the video as a flash 8 swf, so that might just fix it, but has anyone else had this happen to them or have any advice? thanks! sarah ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
What browser and what Flash Player version? - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 11:10 AM Subject: Re: [Flashcoders] Offline/Online Security in FP8 i have created cfg file as it was written in http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1610.html but still doesnt work :( ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
I've tried firefox and IE (8.5 player) but my co-worker is testing on 8 player On 11/9/05, JesterXL [EMAIL PROTECTED] wrote: What browser and what Flash Player version? - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 11:10 AM Subject: Re: [Flashcoders] Offline/Online Security in FP8 i have created cfg file as it was written in http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1610.html but still doesnt work :( ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
This issue has come up numerous times for us too. A few of us have read the articles and they are very confusing. If I understand this concept I would write up a helpful chart or article but I still get errors. Even following the advice of using System.security.allowDomain(http://localhost;); does not work for us. Hoping this topic can be put to rest finally in this discussion. Once this is done let's put this article in the FlashCoders wiki. A chart like this: swf location| access to | usage local| remote | set config file on server like... xml allow domains=* /xml local ide| remote | (different rules) remote server | local | (different rules) Judah JesterXL wrote: What browser and what Flash Player version? - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 11:10 AM Subject: Re: [Flashcoders] Offline/Online Security in FP8 i have created cfg file as it was written in http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1610.html but still doesnt work :( ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Questions Using MVC Pattern with Flash
Ok, so I've read a lot about design patterns but have yet to really implement them. Reading = easy. Doing = hard. :0 My first question is, is it typical to create Composite MVC's (or nested MVC patterns?) throughout the application? To illustrate: Let's say an app has a pop-up window, which has a window box, a text area, and a button. Each of these implements the MVC pattern internally. The pop-up window itself implements MVC, and perhaps all three implement a composite interface. Would this architecture be typical and/or correct? The next question; if the above is correct then how do you connect them, especially in a Flash environment? Continuing the example, when the window-model is instantiated, it calls an attachmovie to WindowView, which is an MC in the library and has a corresponding WindowView class. So... ok now what? WindowModel instantiates new instances of Button and TextArea (calling their model-classes)? Is the Model the entry point for an MVC pattern? Then Button and TextArea take the WindowView inst as a param, and attach their views to it? This is where I really start to pull my hair out because there are so many options. I think the above would work, but I'm not really sure if that's using MVC correctly. Sorry for the super-long question, and thanks for your help!!! Best, Brent ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Questions Using MVC Pattern with Flash
You'll quickly get into framework-building, something that can delay your project. Why not use an existing open source framework like ARP? http://www.osflash.org/ARP I've gone the route of employing MVC in every aspect of my architectures, then I discovered the command pattern, which ARP uses. Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Questions Using MVC Pattern with Flash
On 11/9/05, Brent Gore [EMAIL PROTECTED] wrote: This is where I really start to pull my hair out because there are so many options. I think the above would work, but I'm not really sure if that's using MVC correctly. Hey man, that's what happens to everyone. Don't sweat it. Seriously, design patterns are sort of your road map. It's not important EXACTLY how you get there, and if it's easier for you to walk around something, then walk around something, don't force yourself to walk OVER something just because the map says that's the direction you need to go in. In other words, just start off doing what makes sense to YOU. What makes YOU comfortable. Trust me, you'll go back and revise your code a hundred times, maybe more, and the next project you work on will change because you'll take lessons from the previous one. The most important thing about design patterns and frameworks is just that you USE them. There is no real right way or wrong way. There are ALWAYS places that someone would step in and say, oh, I'd do it this way...not that way...and all you can do is just take it in, see if it's appropriate and applicable to your project or workflow and implement it or not. I guess what I'm trying to say is, just the fact that you're USING a design pattern or framework is a great start. You're already doing the most important thing right. The rest will just come to you... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Combobox within ScrollPane not working
I am really at a lose here. I have a SWF file which has multiple Combobox components in it. I load this SWF into a ScrollPane compoent of another SWF file. It displays everything fine. But the Combobox components are unable to be altered. When clicking the thumb area of the Combobox the Combobox gets focus (ass seen by the halo) but it does not display the multiple options. In addition, using the up and down keys does not scroll through the options. Rather, after a few clicks the Combobox becomes completely blank. Is this a known issue? Am I the only one with this problem? Am I not setting a proper parameter somewhere? Is there a work around? Thanks, Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Combobox within ScrollPane not working
I've seen this behavior before. Try putting a ComboBox component in the library of the loading SWF (the one with the scrollpane) and see if that fixes it. I am really at a lose here. I have a SWF file which has multiple Combobox components in it. I load this SWF into a ScrollPane compoent of another SWF file. It displays everything fine. But the Combobox components are unable to be altered. When clicking the thumb area of the Combobox the Combobox gets focus (ass seen by the halo) but it does not display the multiple options. In addition, using the up and down keys does not scroll through the options. Rather, after a few clicks the Combobox becomes completely blank. Is this a known issue? Am I the only one with this problem? Am I not setting a proper parameter somewhere? Is there a work around? Thanks, Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash remoting - when is the service call made?
We are using flash remoting and I am trying to figure out when the call is getting made. Is it at the time that I call the service method or after I create the Relay Responder object? Does the pending call object get and hold the data until a relay responder has been created or after it has been created? // call service var temp_pc:PendingCall = myService.readDirectory(dirPath); // create a responder. temp_pc.responder = new RelayResponder(this, gotMilk, gotFault); function gotMilk( re:mx.rpc.ResultEvent ):Void { // do stuff } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] passing a variable to a function
k - sorry for spamming this board all day but it's all been from the same problem i've boiled the whole thing down to this: how do i pass a variable to an onLoad() function? here is my script function loadDescriptions() { for (var i=0; i_root.menuItems_array.length;i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace (_root.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace (thisDoc: +thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } the trace in the the onLoad function returns undefined. Can anyone tell me how to get around this please? thanks alz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash remoting - when is the service call made?
It's when you call the service. However, since Flash is single-threaded, it won't get returned until after you've created your RelayResponder, which is a good thing. - Original Message - From: Judah Frangipane [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 12:13 PM Subject: [Flashcoders] Flash remoting - when is the service call made? We are using flash remoting and I am trying to figure out when the call is getting made. Is it at the time that I call the service method or after I create the Relay Responder object? Does the pending call object get and hold the data until a relay responder has been created or after it has been created? // call service var temp_pc:PendingCall = myService.readDirectory(dirPath); // create a responder. temp_pc.responder = new RelayResponder(this, gotMilk, gotFault); function gotMilk( re:mx.rpc.ResultEvent ):Void { // do stuff } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Combobox within ScrollPane not working
Winner! That did the trick. That never even crossed my mind. Thanks Steven! Charles P. On 11/9/05, Steven Sacks [EMAIL PROTECTED] wrote: I've seen this behavior before. Try putting a ComboBox component in the library of the loading SWF (the one with the scrollpane) and see if that fixes it. I am really at a lose here. I have a SWF file which has multiple Combobox components in it. I load this SWF into a ScrollPane compoent of another SWF file. It displays everything fine. But the Combobox components are unable to be altered. When clicking the thumb area of the Combobox the Combobox gets focus (ass seen by the halo) but it does not display the multiple options. In addition, using the up and down keys does not scroll through the options. Rather, after a few clicks the Combobox becomes completely blank. Is this a known issue? Am I the only one with this problem? Am I not setting a proper parameter somewhere? Is there a work around? Thanks, Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] passing a variable to a function
My guess here is that your reference to _root is 'lost' in terms of scope, as you're handling the onLoad event locally (on the stack) within the loadDescriptions() function. Might try this with your current approach: // namespace for this module if(_global.LoadNS == undefined) { _global.LoadNS = this; } function loadDescriptions() { for (var i = 0; i _root.menuItems_array.length; i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace(LoadNS.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace(thisDoc: + thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } Hope this helps... -- Dok Skyymap Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt bik-elliott (Receptacle) Sent: Wednesday, November 09, 2005 12:11 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] passing a variable to a function k - sorry for spamming this board all day but it's all been from the same problem i've boiled the whole thing down to this: how do i pass a variable to an onLoad() function? here is my script function loadDescriptions() { for (var i=0; i_root.menuItems_array.length;i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace (_root.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace (thisDoc: +thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } the trace in the the onLoad function returns undefined. Can anyone tell me how to get around this please? thanks alz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] File saved as 2004MX from 8 IDE causing 2004MX IDE crash
John Mark Hawley wrote: Any ideas here? Three FLAs saved as 2004 MX FLAs from the Flash 8 IDE have all of a sudden started crashing the 2004 MX IDE on export. Occasionally, the player itself is crashing when the resulting SWF is played in a browser afterwards. Things are haywire. Playing with the debugger, the crash always happens in a function that does very simple XML traversal, one cloneNode, and the deletes the XML traversed. The same FLA works fine in the Flash 8 IDE. The IDE crash error messages vary -- sometimes unlimited recursion is reported, then an authplay.dll crash closes the IDE...sometimes things just freeze up, then a crash message pops up -- but clicking 'Debug' or 'more info' just enhances the crash a bit and closes the IDE. Any clues here as to what's going on? We've has some of our team working in 8 for two weeks and others in 7, all working ont he same files, and only yesterday has this nightmare appeared. It wouldn't be so terrible if it didn't look like our SVN has somehow gone on the fritz... -Mark Hawley -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I've had a swf developed in MX 2004 keep crashing in a browser after I installed Flash 8. I continued to develop in MX 2004 and publish for player 7 but it kept crashing. As soon as I uninstalled Flash 8 and the Flash 8 plugin, MX 2004 began publishing stable swfs again. Sucks because I'm afraid to install Flash 8 until my project is over. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] swf to svg
Is there ActionScript 2.0 code out there to convert SVG to an object the DrawingAPI can understand? Cheers, Eric R. Shinn [EMAIL PROTECTED] On Nov 8, 2005, at 8:15 PM, rishi wrote: Hi Ricky Thanks for the reply but this link no longer works Regards Rishi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricky Bacon Sent: Tuesday, November 08, 2005 9:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] swf to svg rishi wrote: Can some one suggest a way to convert swf to svg. I have multiple paths in my swf for which I want an automated tool to provide me the svg. There is an online tool that does it: http://www.eprg.org/~sgp/swf2svg.html and tool in Japanese: http://www.game3rd.com/soft/action/ If you need to convert dynamically created images in a swf, you can feed data to a server and format it as an SVG. -Ricky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: passing variables around problem
Perhaps insert a callback from within the for loop and a pause until the other method finishes before continuing the mentioned for-loop. Cheers, Eric R. Shinn [EMAIL PROTECTED] On Nov 9, 2005, at 5:15 AM, allandt bik-elliott (Receptacle) wrote: okay i know what the problem is but i don't know how to get around it the loadVars object's onLoad function is firing after the for loop finishes so it's grabbing the description_txt from the last xml item (which doesn't have any description_txt as it will behave slightly differently) so the description_txt gets wiped and it's type becomes undefined so i guess the question i have is how do i call the onLoad function during the loop rather than after it? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] swf to svg
rishi wrote: Hi Ricky Thanks for the reply but this link no longer works Thinking about this a bit more (currently finishing up a project that generates jpegs and svgs from Flash), if the shapes are defined in the FLA, you can export the shapes as an AI or EPS. Then open them in Illustrator 10 or later and save as SVG. Illustrator now uses SVG as a native format. Maybe a larger context of the goal would help with a possible solution? -Ricky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS2 compiler error extravaganza
if you are editing AS files on a file server, this is more probably due to the Flash timestamp issue. You can only really fix this by copying class files to your local machine and working on them from there. - Nils. Andreas Rønning wrote: two classes. First lines of the problem class: import flash.geom.*; import as.maps.model.GroupReference; class as.maps.model.Topic{ ... } first lines of the GroupReference class import as.memomaps.model.Topic; class as.memomaps.model.GroupReference{ ... } Topic.as: Line 3: The name of this class, 'as.memomaps.model.Topic', conflicts with the name of another class that was loaded, 'as.memomaps.model.Topic'. class as.memomaps.model.Topic{ This makes sense. Topic imports groupreference which imports topic. Bad Andreas. So how to work around this? I make a completely empty class called DataSource, and have Topic extend that. Then in GroupReference, i import as.memomaps.model.DataSource instead, and have whatever variables were expecting a Topic datatype to expect a DataSource type. Whammy. no more errors. The thing is, it's hard to simplify the Topic class down further: it's got a very specialized purpose. So is my method acceptable? To me it just looks terribly dirty. Any suggestions as to how i can solve this kind of cross-import issue in a more elegant manner? - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders --  --- Nils Millahn Internet Solutions - Design and Development - Flash Specialist T: +44 (0) 7909 528 617 E: [EMAIL PROTECTED] W: www.hub124.co.uk === Notice of Confidentiality. This transmission is intended for the named recipient only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. It is the responsibility of the recipient to ensure that the forwarding, opening or use of the e-mail (and any attachment) will not adversely affect their system or data. Please carry out appropriate virus checks. === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Offline/Online Security in FP8
John Dowdell was asking exact question, what is problem here: http://www.franto.com/blog2/flash8-security-problems and i wrote question for him, so I hope he will answer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] swf to svg
The end goal would be to create a design for a user interface in Illustrator and then export as an SVG file. Then, rather than download a graphic library for the SWF, have it draw it dynamically by downloading only the SVG XML-Doctype ;) I've coded graphics instead of drawing them and I've noticed a 90% drop in file size. I want more of that. Best Regards, Eric R. Shinn [EMAIL PROTECTED]  On Nov 9, 2005, at 10:51 AM, Ricky Bacon wrote: rishi wrote: Hi Ricky Thanks for the reply but this link no longer works Thinking about this a bit more (currently finishing up a project that generates jpegs and svgs from Flash), if the shapes are defined in the FLA, you can export the shapes as an AI or EPS. Then open them in Illustrator 10 or later and save as SVG. Illustrator now uses SVG as a native format. Maybe a larger context of the goal would help with a possible solution? -Ricky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removing a entry from an associative array?
well - if it's an associative array, then the name of the element is its index, so that answers your second question. And if you set the element to undefined, you will get the same result as the loop you are doing... startArray[entryName] = undefined; (also, perhaps your code works but I'm not aware that is a valid operator in Flash - generally you'd use != instead) - Nils. David Skoglund wrote: The only solution I see is to create a new array by looping through the array like this: function removeAssociativeEntry (startArray, entryName) { newarray=[]; for (var i in StartArray) { if (entryNamei) { newarray [i]=startArray[i]; } } return (newarray); } This seems a bit silly, especially since I don't know how long these arrays are gonna be. Is thery any inbuilt function for getting the index of a associative entry? /David ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders --  --- Nils Millahn Internet Solutions - Design and Development - Flash Specialist T: +44 (0) 7909 528 617 E: [EMAIL PROTECTED] W: www.hub124.co.uk === Notice of Confidentiality. This transmission is intended for the named recipient only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. It is the responsibility of the recipient to ensure that the forwarding, opening or use of the e-mail (and any attachment) will not adversely affect their system or data. Please carry out appropriate virus checks. === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] File saved as 2004MX from 8 IDE causing Flash 7 IDE crash
Machines with just the F7 plugin (no IDE at all) had my swf crashing in their browser. When I compiled the swf for F7 using MX 2004 I had F8 installed also. I think MX 2004 must have used some shared F8 libraries or something during publishing. The swf ran without problems in the F8 plugin but in the F7 plugin it would crash every time. I uninstalled F8 on my machine, republish the swf in MX 2004 and the crash went away. Maybe one or more of your swfs are being created in MX 2004 on a machine that has the F8 plugin or IDE installed. I think this causes playback problems for swfs running in the F7 plugin. JOR John Mark Hawley wrote: I wish my problem was as simple to fix -- this is happening on machines that know nothing of Flash 8, and it has already tied up our team for a day trying to fix it to no avail. The problem keeps jumping around, and some of us think it might be a stack problem -- there are a lot of loops in asynchronous calls. I seem to be crashing out of a call to a SWF preloader that zips down an array of filenames and loads one at a time -- has the standalone/IDE player somehow changed the way SWFs load via movieCLipLoader in a way that makes it more touchy? This just fell on us out of the blue after weeks of runnin' fine. == James O'Reilly wrote: I've had a swf developed in MX 2004 keep crashing in a browser after I installed Flash 8. I continued to develop in MX 2004 and publish for player 7 but it kept crashing. As soon as I uninstalled Flash 8 and the Flash 8 plugin, MX 2004 began publishing stable swfs again. Sucks because I'm afraid to install Flash 8 until my project is over. --- John Mark Hawley wrote: Any ideas here? Three FLAs saved as 2004 MX FLAs from the Flash 8 IDE have all of a sudden started crashing the 2004 MX IDE on export. Occasionally, the player itself is crashing when the resulting SWF is played in a browser afterwards. Things are haywire. Playing with the debugger, the crash always happens in a function that does very simple XML traversal, one cloneNode, and the deletes the XML traversed. The same FLA works fine in the Flash 8 IDE. The IDE crash error messages vary -- sometimes unlimited recursion is reported, then an authplay.dll crash closes the IDE...sometimes things just freeze up, then a crash message pops up -- but clicking 'Debug' or 'more info' just enhances the crash a bit and closes the IDE. Any clues here as to what's going on? We've has some of our team working in 8 for two weeks and others in 7, all working ont he same files, and only yesterday has this nightmare appeared. It wouldn't be so terrible if it didn't look like our SVN has somehow gone on the fritz... -Mark Hawley -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Referer
nope - you'd have to pass it in from HTML via flashvars. - Nils. John N. Brahy wrote: I know I can get my current URL for the swf by this._url but is there a way to find the url of the page the swf was called from? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders --  --- Nils Millahn Internet Solutions - Design and Development - Flash Specialist T: +44 (0) 7909 528 617 E: [EMAIL PROTECTED] W: www.hub124.co.uk === Notice of Confidentiality. This transmission is intended for the named recipient only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. It is the responsibility of the recipient to ensure that the forwarding, opening or use of the e-mail (and any attachment) will not adversely affect their system or data. Please carry out appropriate virus checks. === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TextArea BUG!! HELP
Bruno Mosconi schrieb: Sadly TextArea Component does not have htmlText attribute, only text. If you try: txtDescription.htmlText = textHtml; TextArea will show blank. put the button inside another mc should give expected results. and btw: isn't there a bug with img/ at the very end of html inside textFields ?? micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] passing a variable to a function
That's what I was thinking too. This article may be helpful in this situation http://osflash.org/flashcoders/as2?s=delegate. Judah Glenn J. Miller wrote: My guess here is that your reference to _root is 'lost' in terms of scope, as you're handling the onLoad event locally (on the stack) within the loadDescriptions() function. Might try this with your current approach: // namespace for this module if(_global.LoadNS == undefined) { _global.LoadNS = this; } function loadDescriptions() { for (var i = 0; i _root.menuItems_array.length; i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace(LoadNS.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace(thisDoc: + thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } Hope this helps... -- Dok Skyymap Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt bik-elliott (Receptacle) Sent: Wednesday, November 09, 2005 12:11 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] passing a variable to a function k - sorry for spamming this board all day but it's all been from the same problem i've boiled the whole thing down to this: how do i pass a variable to an onLoad() function? here is my script function loadDescriptions() { for (var i=0; i_root.menuItems_array.length;i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace (_root.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace (thisDoc: +thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } the trace in the the onLoad function returns undefined. Can anyone tell me how to get around this please? thanks alz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Questions Using MVC Pattern with Flash
On 11/9/05, Johan Lopes [EMAIL PROTECTED] wrote: Hey man, that's what happens to everyone. Don't sweat it. Seriously, design patterns are sort of your road map. It's not important EXACTLY how you get there, and if it's easier for you to walk around something, then walk around something, don't force yourself to walk OVER something just because the map says that's the direction you need to go in. Jeff, this is really a great analogy and I agree to a certain extent but... In other words, just start off doing what makes sense to YOU. What makes YOU comfortable. I have to disagree here. This is only OK if you are 100% sure you're the only person who'll ever work on a project. I guess it's cool to mess around with MVC implementations on your personal projects as an exercise - to get a feel for it. I've been involved in various commercial projects lately where we've used various types of home-cooked MVC frameworks and experience tells me that if you want your project to be maintainable, stay away from the do-what-you-like type of MVC implementations. Well, to be fair, and I should've been a little clear. In my analogy that would've sort of been like telling him he could just make up his own map as he went along. I think following the standards and coding practices of a framework are the most important things about them. I agree 100% with what you typed. You'll get no argument from me...lol... I should've been a little clearer. Once you've got the map, walk and traverse at a pace and level that you're most comfortable with, I think. I know some people that are absolutely fanatical that EVERYTHING be MVC to the bone, and some people that realize that some web applications tend to be less complex than people make them, and probably don't need an extensive level of adherence to MVC principles. It always seems like it's the latter that are most laid back and most at ease with their programming, in my experience. I can, and I'm sure you can too, empathize with people who are a little nervous or skittish about how best to jump into something like a framework. It takes a certain level of self confidence to sort of step in and take on structured programming and not kill yourself worrying over whether or not you're executing EVERYTHING in a perfect MVC world. I think that's the stress on people who first pick up a framework. It's not really much more than a couple of kind words and a few, don't worry, we've all been there...jump ins can't fix...lol. I certainly don't recommend reinventing the wheel and trying to take on both adopting a framework AND inventing one at the same time. I think the best part of frameworks, and if I'm not mistaken, the purpose of them, is to promote code reuse, and I certainly wouldn't try to invent something that the kind folks who have worked on the MVC framework have worked tirelessly on. My two Scheckles. True, there's no right or wrong way when applying MVC. But I'll have to agree with Mike about using something like ARP or Cairngorm. Both of these are well-documented with full UML diagrams. This way, if you get stuck you have a community to go to for help. Sorry, I didn't mean to start an MVC war or anything like that - I'll leave that to the SmallTalk and Java gurus who have been at it since early nineties ;-) Just my 2 pence. Cheers, /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] CustomFormatter for Percentage and Dollar
I am about to start writing a customFormatter but I have to ask if this has been done a million times before. I have searched almighty google and this list and not have found an answer. I am wondering if CustomFormatter only works for data-binding and not actually for manual input. Assuming that this is a common task I have to ask if I am going about this the wrong way. Please let me know what steps I need to take to get the below result. I have two text formatters for the textinput class: The first is to handle percentages. people like to type in percentages a lot of ways. I want the result of this input field to give me a type number of 0.06 with the following inputs: 6% .06 6 People like to type monitory numbers a lot of different ways. I want the result of what they type to be a number with out all of the character formating. With the following inputs I would like the the result to be : 6,666 6,666.00 $6,666.00 $6,666 $ With both examples I would like to be able to set the number back to the text area and have the text area display it with the proper formating. Example: 0.06 would be displayed as 6% would be displayed as $6,666.00 Thanks; Wade Arnold www.T8DESIGN.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] swf to svg
Eric R. Shinn wrote: The end goal would be to create a design for a user interface in Illustrator and then export as an SVG file. Then, rather than download a graphic library for the SWF, have it draw it dynamically by downloading only the SVG XML-Doctype ;) I've coded graphics instead of drawing them and I've noticed a 90% drop in file size. I want more of that. SVG is a plain text format, so you wouldn't save much on file size for anything other than the most basic of shapes. Add to that the overhead of parsing the XML and then parsing/converting the string data into Flash Drawing API objects... Sound like it might be fun, but I'm not sure how practical. You may want to try to find if anyone has written an SVG viewer in Flash. That should have the code you are interested in. -Ricky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea BUG!! HELP
Ok, but how do I refer to button's instance to change dynamically its label? Btw, I've found a FIX at: http://flashant.org/index.php?m=200412#239 Looks like lots of people are addressing the same BUG unusual ways. But buttons LABEL stills blank!! Do you have any additional tip? Thanks, Bruno Mosconi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: quarta-feira, 9 de novembro de 2005 17:25 To: Flashcoders mailing list Subject: Re: [Flashcoders] TextArea BUG!! HELP Bruno Mosconi schrieb: Sadly TextArea Component does not have htmlText attribute, only text. If you try: txtDescription.htmlText = textHtml; TextArea will show blank. put the button inside another mc should give expected results. and btw: isn't there a bug with img/ at the very end of html inside textFields ?? micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] CustomFormatter for Percentage and Dollar
Of course phone numbers, email addresses, and other formatters would be appreciated! wade On Nov 9, 2005, at 1:33 PM, Wade Arnold wrote: I am about to start writing a customFormatter but I have to ask if this has been done a million times before. I have searched almighty google and this list and not have found an answer. I am wondering if CustomFormatter only works for data-binding and not actually for manual input. Assuming that this is a common task I have to ask if I am going about this the wrong way. Please let me know what steps I need to take to get the below result. I have two text formatters for the textinput class: The first is to handle percentages. people like to type in percentages a lot of ways. I want the result of this input field to give me a type number of 0.06 with the following inputs: 6% .06 6 People like to type monitory numbers a lot of different ways. I want the result of what they type to be a number with out all of the character formating. With the following inputs I would like the the result to be : 6,666 6,666.00 $6,666.00 $6,666 $ With both examples I would like to be able to set the number back to the text area and have the text area display it with the proper formating. Example: 0.06 would be displayed as 6% would be displayed as $6,666.00 Thanks; Wade Arnold www.T8DESIGN.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Questions Using MVC Pattern with Flash
I've tried building the view completely by the controller with AS createEmptyMovieClip and such but was wasting too much time not being able to see anything at design time. I've stayed away from that too. This approach is advantageous when you're working with designers who wants to have full access to your views during design time. I chose not to pass event objects but rather fire a generic onUpdate() event on each listener. Inside oController.onUpdate() I request the info I need from the composited oModel and pass that info along to the composited view_mc. This allowed me to have different views listening to the model and each requesting only the info they needed instead of getting all-or-nothing. When my model's data changed, it all changed but all of it's listening views didn't need all of the data. I like that idea too. It's close to Moock's MVC with Observer Pattern passing only the needed data is really cool. /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] passing a variable to a function
Yeah, that link actually lays out my own preferred method of executing this. The snippet I put into this thread was just a quick kludge to get that code up and working. Please don't anyone take it as the 'right' approach - my apologies if anyone was mislead... Peace... -- Dok Skyymap, Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Judah Frangipane Sent: Wednesday, November 09, 2005 2:33 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] passing a variable to a function That's what I was thinking too. This article may be helpful in this situation http://osflash.org/flashcoders/as2?s=delegate. Judah Glenn J. Miller wrote: My guess here is that your reference to _root is 'lost' in terms of scope, as you're handling the onLoad event locally (on the stack) within the loadDescriptions() function. Might try this with your current approach: // namespace for this module if(_global.LoadNS == undefined) { _global.LoadNS = this; } function loadDescriptions() { for (var i = 0; i _root.menuItems_array.length; i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace(LoadNS.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace(thisDoc: + thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } Hope this helps... -- Dok Skyymap Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt bik-elliott (Receptacle) Sent: Wednesday, November 09, 2005 12:11 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] passing a variable to a function k - sorry for spamming this board all day but it's all been from the same problem i've boiled the whole thing down to this: how do i pass a variable to an onLoad() function? here is my script function loadDescriptions() { for (var i=0; i_root.menuItems_array.length;i++) { var thisTextLoadVars = new LoadVars(); thisTextLoadVars.onLoad = function(success) { trace (_root.menuItems_array[i]); }; var thisDoc = _root.menuItems_array[i]; trace (thisDoc: +thisDoc); var textDoc = _root.menu[thisDoc].description; thisTextLoadVars.load(textDoc); } } the trace in the the onLoad function returns undefined. Can anyone tell me how to get around this please? thanks alz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TextArea BUG!! HELP
Bruno Mosconi schrieb: Ok, but how do I refer to button's instance to change dynamically its label? Btw, I've found a FIX at: http://flashant.org/index.php?m=200412#239 Looks like lots of people are addressing the same BUG unusual ways. this.createTextField(textField_txt, 10, 0, 0, 100, 200); textField_txt.wordWrap = true; textField_txt.html = true; textField_txt.htmlText = Here's an interesting animation: img src='animation' id='animation_mc'Here's an interesting animation: ; textField_txt.animation_mc.playing = true; textField_txt.animation_mc.onPress = function () { if (!this.playing) { this.play(); } else { this.stop(); } this.playing = !this.playing; } // animation_mc is the linkage id of an animated MC in your library. hth ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea BUG!! HELP = Can't Change Button's Label
The MC trick worked fine, but button's label can't be changed at all! Take a look at this test code: txtDescription.html = true; var textHtml = ; textHtml += test line..BR/; textHtml += img src=\bt\ id=\button_mc\/br/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\/; txtDescription.text = textHtml; txtDescription.doLater(this, setlabels); tbt.label = Test Button; //trace(tbt.label); function setlabels() { _level0.txtDescription.label.button_mc.but.label = Test Button; _level0.txtDescription.label.button_mc.but.invalidate(); trace(_level0.txtDescription.label.button_mc.but.label); _level0.txtDescription.invalidate(); } The STRAGE BUG here is that TRACE returns the new label value: Test Button, but in TextArea my button stills w/ its default value: Button! Take a look: http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: quarta-feira, 9 de novembro de 2005 17:25 To: Flashcoders mailing list Subject: Re: [Flashcoders] TextArea BUG!! HELP Bruno Mosconi schrieb: Sadly TextArea Component does not have htmlText attribute, only text. If you try: txtDescription.htmlText = textHtml; TextArea will show blank. put the button inside another mc should give expected results. and btw: isn't there a bug with img/ at the very end of html inside textFields ?? micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Expandable banners
I have to make expandable banners, What is the best practice for make good banners? some links may help :D __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TextArea BUG!! HELP
Bruno Mosconi schrieb: Micha, thanks for the help Your MC trick worked fine, but button's label can't be changed at all! Take a look at this test code: txtDescription.html = true; textHtml += test line..BR/; textHtml += img src=\button_mc\ id=\button\sfvdfbybfbfbbr/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\kjzhhgvhkgvjhjkhv; txtDescription.text = textHtml; this.onEnterFrame = function () { trace(txtDescription.label.button.butt.label = FOO); delete this.onEnterFrame } // this will do the trick micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea BUG!! HELP
YES!! You did IT! Why in hell we need this trick?? Invalidade(); function is supposed to redraw the component, isn't it? N1 got any idea?? Thanks Micha!! Again... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: quarta-feira, 9 de novembro de 2005 18:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] TextArea BUG!! HELP Bruno Mosconi schrieb: Micha, thanks for the help Your MC trick worked fine, but button's label can't be changed at all! Take a look at this test code: txtDescription.html = true; textHtml += test line..BR/; textHtml += img src=\button_mc\ id=\button\sfvdfbybfbfbbr/; textHtml += test line..BR/; textHtml += img src=\ball\ id=\ball_mc\kjzhhgvhkgvjhjkhv; txtDescription.text = textHtml; this.onEnterFrame = function () { trace(txtDescription.label.button.butt.label = FOO); delete this.onEnterFrame } // this will do the trick micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Questions Using MVC Pattern with Flash
I think I get the idea, relax about MVC... but not too much ;). Starting out with MVC is kind of like having ten different maps that all get to the same place by different paths. Because of my own specific application needs, certain implementations (or maps) will be much better than others and figuring out which one to use is mind-boggling. Even worse, doing it with Flash is like having an extra mountain range (or something) smack dab in the middle. Taking Mikes suggestion I'm looking into ARP more. It looks pretty good but its kind-of a learning curve. I think the framework will help filter out some of the options. Anywhoo, thanks for your guys' help! I'm sure I'll feel better about this whole thing once I start actually making some progress ;). Best, Brent Message: 21 Date: Wed, 9 Nov 2005 19:58:14 + From: Johan Lopes [EMAIL PROTECTED] Subject: Re: [Flashcoders] Questions Using MVC Pattern with Flash To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 I've tried building the view completely by the controller with AS createEmptyMovieClip and such but was wasting too much time not being able to see anything at design time. I've stayed away from that too. This approach is advantageous when you're working with designers who wants to have full access to your views during design time. I chose not to pass event objects but rather fire a generic onUpdate() event on each listener. Inside oController.onUpdate() I request the info I need from the composited oModel and pass that info along to the composited view_mc. This allowed me to have different views listening to the model and each requesting only the info they needed instead of getting all-or-nothing. When my model's data changed, it all changed but all of it's listening views didn't need all of the data. I like that idea too. It's close to Moock's MVC with Observer Pattern passing only the needed data is really cool. /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] can we cancel Up/Downloads of flash.net.FileReference.*
the subject says it all. i've looked in the man but didn't find anything ... micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Remoting with AMFPHP vs. ASP
Hi, The fun has just been taken out of my development process when after finishing RIA with AMFPHP the client top management have suddenly woken up and realized that they don't want to have the application with PHP but with ASP as the backend language. As sick as that makes me :( I have to now work with their dev team to port my code in PHP to ASP. I'm being given the whole lecture on their best practices. I don't know much about ASP and the client's dev team knows nothing about Flash Remoting so there's a communication gap which will soon arise if I don't prepare properly for this. So the questions: 1. I know that Remoting works with ASP .NET but what about just ASP? 2. Is there something cool like AMFPHP which works with ASP? 3. Where should I read up for more resources on this? ... and any other piece of advice some of you who've worked with ASP and Remoting might have. Regards, Navneet ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
Juan Anzaldo wrote: I have to make expandable banners, What is the best practice for make good banners? some links may help :D You need to find out who the publisher is going to be and what rich media types, tracking kits and sizes they support and work from there. Check out Atlas' site for some more insite on how at least one publisher handles it. You could also check out others like Double-click. (Gallery is IE Only for some reason) http://www.atlassolutions.com/enterprise/richmedia/gallery/ http://www.atlassolutions.com/enterprise/richmedia/equivalency/ http://www.atlassolutions.com/enterprise/richmedia/flashmtk/ JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
On 11/9/05, Mick Gow [EMAIL PROTECTED] wrote: ps. They're a pain in the ass :) If you mean animated banners, then yes, I agree. It's the flash banner creators that give flash a bad name. -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
Dave, it's naive comments like this that gives flash a bad name. WIthout wanting to start a flame war your comment demonstates a significant missunderstanding on the internet market place and how we've got to where we are today. Online advertising weather you like it or not has been a corner stone of making the internet a commercialy viable platform. Online media spend has risen year on year, where we are now in a position that approaching 5% ot total marketing spend is online. Compare this to five years ago when it was less than 0.5%. It offers significant benifits over traditional media (ATL and BTL) such as acurate measureability and behavioural modeling. A significant part of the flash userbase (designer/developers) make a living from creating these onlien media. The revenue that MM generate from sales of Flash to these people have helped to create the great product we have today. Now I suspect that you come from the RIA corner of the Flash userbase. Cant you see the beauty in the Flash platform is the flexabilty it offers. The same tool can be used to create complex applications as roll out games/websites/ advertising etc. It's strength lies from the fact the theplayer is so ubequtious. BAD flash advertising gives flash a bad name, but NO MORE SO than bad Flash applications and websites. The reality is if we all did as I supect you'd like and stop making flash ad's other technologies would appear in it's place. Advertsing is not going to go away. If it disapeared tomorrow, many of your favourites sites would have to close, and the Internet would be a very different place. ... then you'd come runing crying about the good'ld days. Sorry to jump down your throat on this but I get fed up of ignorant people, making comments like this. Take some time to look around and you'll see some pretty creative work out there. on 9/11/05 10:09 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: On 11/9/05, Mick Gow [EMAIL PROTECTED] wrote: ps. They're a pain in the ass :) If you mean animated banners, then yes, I agree. It's the flash banner creators that give flash a bad name. -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Remoting with AMFPHP vs. ASP
Navneet, There is to my knowledge NO current port of Remoting to traditional ASP, nor I supect will there ever be one. THere just wouldn't be the demmand. The MM implementation works perfectly, but is pricy. There are alternatives. http://www.themidnightcoders.com/ there is another which is currently in BETA (I have the link at the office so will send off list tomorrow) What is the scope to ramp up to .NET on this project ? If not the you might be able to go down the webservice root which would be a good compramise Pete on 9/11/05 9:29 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: Hi, The fun has just been taken out of my development process when after finishing RIA with AMFPHP the client top management have suddenly woken up and realized that they don't want to have the application with PHP but with ASP as the backend language. As sick as that makes me :( I have to now work with their dev team to port my code in PHP to ASP. I'm being given the whole lecture on their best practices. I don't know much about ASP and the client's dev team knows nothing about Flash Remoting so there's a communication gap which will soon arise if I don't prepare properly for this. So the questions: 1. I know that Remoting works with ASP .NET but what about just ASP? 2. Is there something cool like AMFPHP which works with ASP? 3. Where should I read up for more resources on this? ... and any other piece of advice some of you who've worked with ASP and Remoting might have. Regards, Navneet ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
Maybe you do responsible advertising, but the majority of your colleagues don't. Therefore, you are associated with those negative connotations whether you like it or not. If you don't like it, then stop doing that type work. Otherwise, deal with people like David and I calling you out for being in an annoying, bad for business, and unethical industry. - Original Message - From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 5:34 PM Subject: Re: [Flashcoders] Expandable banners Dave, it's naive comments like this that gives flash a bad name. WIthout wanting to start a flame war your comment demonstates a significant missunderstanding on the internet market place and how we've got to where we are today. Online advertising weather you like it or not has been a corner stone of making the internet a commercialy viable platform. Online media spend has risen year on year, where we are now in a position that approaching 5% ot total marketing spend is online. Compare this to five years ago when it was less than 0.5%. It offers significant benifits over traditional media (ATL and BTL) such as acurate measureability and behavioural modeling. A significant part of the flash userbase (designer/developers) make a living from creating these onlien media. The revenue that MM generate from sales of Flash to these people have helped to create the great product we have today. Now I suspect that you come from the RIA corner of the Flash userbase. Cant you see the beauty in the Flash platform is the flexabilty it offers. The same tool can be used to create complex applications as roll out games/websites/ advertising etc. It's strength lies from the fact the theplayer is so ubequtious. BAD flash advertising gives flash a bad name, but NO MORE SO than bad Flash applications and websites. The reality is if we all did as I supect you'd like and stop making flash ad's other technologies would appear in it's place. Advertsing is not going to go away. If it disapeared tomorrow, many of your favourites sites would have to close, and the Internet would be a very different place. ... then you'd come runing crying about the good'ld days. Sorry to jump down your throat on this but I get fed up of ignorant people, making comments like this. Take some time to look around and you'll see some pretty creative work out there. on 9/11/05 10:09 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: On 11/9/05, Mick Gow [EMAIL PROTECTED] wrote: ps. They're a pain in the ass :) If you mean animated banners, then yes, I agree. It's the flash banner creators that give flash a bad name. -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] DisplacementMapFilter and 2880 pixel limit
When reading the DisplacementMapFilter documentation I found this piece of information: A filter is not applied if the resulting image would exceed 2880 pixels in width or height. For example, if you zoom in on a large movie clip with a filter applied, the filter is turned off if the resulting image reaches the 2880-pixel limit. So, my question is: How can I dynamically know the width of the resulting image? Thanks, Claudia _ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
Exactly whos business is it bad for ? not mine - I do very well thankyou out of it. My clients - no - they get a measureable effective platform to promote their products. Their sales increase (we know this precisely - and from exactly what campaings and what demographic) The website owners - no - it's a key part of the revenue models. That leaves only you - the customer. So fine we'll all stop - and while were at it all ATL, BTL media will stop also. But when the quality of programming on TVnose dives, it costs you $60 to go to the movies, a daily news papaer is $10 a day, and finaly you have to pay $99 per month just to use your favour websites (that used to be free)dont come crying to me. on 9/11/05 10:55 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: Maybe you do responsible advertising, but the majority of your colleagues don't. Therefore, you are associated with those negative connotations whether you like it or not. If you don't like it, then stop doing that type work. Otherwise, deal with people like David and I calling you out for being in an annoying, bad for business, and unethical industry. - Original Message - From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 5:34 PM Subject: Re: [Flashcoders] Expandable banners Dave, it's naive comments like this that gives flash a bad name. WIthout wanting to start a flame war your comment demonstates a significant missunderstanding on the internet market place and how we've got to where we are today. Online advertising weather you like it or not has been a corner stone of making the internet a commercialy viable platform. Online media spend has risen year on year, where we are now in a position that approaching 5% ot total marketing spend is online. Compare this to five years ago when it was less than 0.5%. It offers significant benifits over traditional media (ATL and BTL) such as acurate measureability and behavioural modeling. A significant part of the flash userbase (designer/developers) make a living from creating these onlien media. The revenue that MM generate from sales of Flash to these people have helped to create the great product we have today. Now I suspect that you come from the RIA corner of the Flash userbase. Cant you see the beauty in the Flash platform is the flexabilty it offers. The same tool can be used to create complex applications as roll out games/websites/ advertising etc. It's strength lies from the fact the theplayer is so ubequtious. BAD flash advertising gives flash a bad name, but NO MORE SO than bad Flash applications and websites. The reality is if we all did as I supect you'd like and stop making flash ad's other technologies would appear in it's place. Advertsing is not going to go away. If it disapeared tomorrow, many of your favourites sites would have to close, and the Internet would be a very different place. ... then you'd come runing crying about the good'ld days. Sorry to jump down your throat on this but I get fed up of ignorant people, making comments like this. Take some time to look around and you'll see some pretty creative work out there. on 9/11/05 10:09 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: On 11/9/05, Mick Gow [EMAIL PROTECTED] wrote: ps. They're a pain in the ass :) If you mean animated banners, then yes, I agree. It's the flash banner creators that give flash a bad name. -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
You can throw all the theortical, non-corraborated numbers around you want, but you're still using Flash banners. Email spammers who defend themselves as targeted email marketers are still spammers. Your industry sucks. Deal with it. - Original Message - From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 6:11 PM Subject: Re: [Flashcoders] Expandable banners Exactly whos business is it bad for ? not mine - I do very well thankyou out of it. My clients - no - they get a measureable effective platform to promote their products. Their sales increase (we know this precisely - and from exactly what campaings and what demographic) The website owners - no - it's a key part of the revenue models. That leaves only you - the customer. So fine we'll all stop - and while were at it all ATL, BTL media will stop also. But when the quality of programming on TVnose dives, it costs you $60 to go to the movies, a daily news papaer is $10 a day, and finaly you have to pay $99 per month just to use your favour websites (that used to be free)dont come crying to me. on 9/11/05 10:55 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: Maybe you do responsible advertising, but the majority of your colleagues don't. Therefore, you are associated with those negative connotations whether you like it or not. If you don't like it, then stop doing that type work. Otherwise, deal with people like David and I calling you out for being in an annoying, bad for business, and unethical industry. - Original Message - From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 5:34 PM Subject: Re: [Flashcoders] Expandable banners Dave, it's naive comments like this that gives flash a bad name. WIthout wanting to start a flame war your comment demonstates a significant missunderstanding on the internet market place and how we've got to where we are today. Online advertising weather you like it or not has been a corner stone of making the internet a commercialy viable platform. Online media spend has risen year on year, where we are now in a position that approaching 5% ot total marketing spend is online. Compare this to five years ago when it was less than 0.5%. It offers significant benifits over traditional media (ATL and BTL) such as acurate measureability and behavioural modeling. A significant part of the flash userbase (designer/developers) make a living from creating these onlien media. The revenue that MM generate from sales of Flash to these people have helped to create the great product we have today. Now I suspect that you come from the RIA corner of the Flash userbase. Cant you see the beauty in the Flash platform is the flexabilty it offers. The same tool can be used to create complex applications as roll out games/websites/ advertising etc. It's strength lies from the fact the theplayer is so ubequtious. BAD flash advertising gives flash a bad name, but NO MORE SO than bad Flash applications and websites. The reality is if we all did as I supect you'd like and stop making flash ad's other technologies would appear in it's place. Advertsing is not going to go away. If it disapeared tomorrow, many of your favourites sites would have to close, and the Internet would be a very different place. ... then you'd come runing crying about the good'ld days. Sorry to jump down your throat on this but I get fed up of ignorant people, making comments like this. Take some time to look around and you'll see some pretty creative work out there. on 9/11/05 10:09 PM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: On 11/9/05, Mick Gow [EMAIL PROTECTED] wrote: ps. They're a pain in the ass :) If you mean animated banners, then yes, I agree. It's the flash banner creators that give flash a bad name. -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
argeted email marketers are still spammers. Your industry sucks. Deal with it. Oh the irony - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
But when the quality of programming on TVnose dives, You mean it gets worse than America's Next Top Model and The Biggest Loser? 8-O Right now I pay $12.99 a month for high quality programming without commercials, it's called HBO. it costs you $60 to go to the movies, At $9 a ticket we're not far from that now. a daily news papaer is $10 a day, Like I'd pay to read that crap... and finaly you have to pay $99 per month just to use your favour websites (that used to be free) The good ones don't need ads. If you content is worth consuming, people will pay to consume it. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] poor preformance of the flash data grid
Hi there, Whenever I try to format the text in a v2 datagrid component the performance of my flash application dramatically goes down. The flash application freezes for one to two seconds (depending On the processor speed) before the data grid is displayed. If I don't call the formatDataGrid method (see below) my applications runs smoothly. Any ideas? Cheers Robin // formatDataGrid private function formatDataGrid():Void { myGrid.rowHeight = 30; // first column var locationColum = myGrid.getColumnAt(0); locationColum.setStyle(fontWeight, bold); locationColum.setStyle(color, 0x00538D); locationColum.setStyle(fontSize, 15); locationColum.setStyle(fontStyle, italic); locationColum.width = 145; locationColum.embedFonts = true; locationColum.fontFamily =myFont // second column var datesColum= myGrid.getColumnAt(1); datesColum.setStyle(color, 0x00538D); datesColum.width = 260; datesColum.embedFonts = true; datesColum.fontFamily =myFont; // third column var registerColum = myGrid.getColumnAt(2); registerColum.setStyle(color, 0x00538D); registerColum.setStyle(fontStyle, italic); registerColum.setStyle(fontWeight, bold); registerColum.embedFonts = true; registerColum.fontFamily =myFont; } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
Jakob Nielsen said it best; Google's done well because they made ads that aren't annoying. Google ads can remain on a webpage and allow me to read without giving me a seizure, nor to do they appear over the top of my webpage that I'm reading with no discernable close button. Google has not become the billion dollar company they are because of ads; they became that because of good search capabilities, ads that are relevant not distracting, and allowing others to share in the revenue they generate. - Original Message - From: Daniel [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 6:41 PM Subject: Re: [Flashcoders] Expandable banners something to consider is that google works off adds. If it weren't for thier adds you would have to pay for it. Same with Yahoo. I could keep going but I won't. I agree with pete here. I don't like adds being everywhere, but I do see the purpose and so I accept it. Its easy enough to ignor. Sometimes you'll get lucky and find something interesting. But if you don't, just ignor it. Flash banners, java script banners, basic jpeg/gif banners really arn't that much different. The flash ones are just more fun to play with. ;) Personaly I'd hate it if they got rid of banner advertising. They would probably go back to pop ups everywhere wich is even more anoying. Oh, and some of us arn't rich and can't afford to pay for every site we go to. Daniel ryanm wrote: But when the quality of programming on TVnose dives, You mean it gets worse than America's Next Top Model and The Biggest Loser? 8-O Right now I pay $12.99 a month for high quality programming without commercials, it's called HBO. it costs you $60 to go to the movies, At $9 a ticket we're not far from that now. a daily news papaer is $10 a day, Like I'd pay to read that crap... and finaly you have to pay $99 per month just to use your favour websites (that used to be free) The good ones don't need ads. If you content is worth consuming, people will pay to consume it. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Remoting with AMFPHP vs. ASP
Binary is the operating word JOR. This makes remoting calls far smaller in byte size and the code extremely portable. Of course, since the filesize is smaller, there is a speed benefit as well. And the beauty of Remoting is that data exchange is done independent of the language, while it still remains native to the program. What that means is that if you pass an array from Flash to let's say PHP, PHP will recieve the array in its own native array format. And then if PHP returns an associative array for example, Flash will recieve it as a Flash Object! This saves you from having to deserialize or parse your xml object. Your code and life become easier :) Flash remoting works with an inbuilt Flash Player Object called NetConnection which allows you to exchange data with the server in a binary format called Action Message Format (AMF). The serialization in this format is done automatically via the NetConnection object. Your recieving application should know how to deserialize it. The deserialization should be abstracted in a generic way and that is what projects like AMFPHP or other Remoting solutions for .NET, Java or ColdFusion do. MM has made remoting into some complex mysterious thing by writing esoteric actionscript classes but at the core Remoting is just this: var nc:NetConnection = new NetConnection(); nc.connect(aRemotingGatewayUrl); nc.call(aRemoteServicePath, this); this.onResult = function():Void{ trace(arguments); } this.onError = function():Void{ trace(arguments); } This is not much different from the LoadVars or XML object where you have an onLoad method. Here you have a onResult method and an onError method which are called appropriately upon a server response. There are solutions to deserialize the AMF format in Java, .NET, ColdFusion(of course ;) as well as PHP. For PHP the project is called AMFPHP (amfphp.org). It is extremely easy and fast to use. Once you get a hang of it, you will never want exchange data any other way with your server :) XML exchange is basically still a text based stream and taxes your code and your player. Imagine a world where there is no need for parsing/deserializing data. Just exchange information with the server and display. That's remoting for you :) Good Luck Navneet - - Original Message - From: JOR [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, November 10, 2005 4:33 AM Subject: Re: [Flashcoders] Remoting with AMFPHP vs. ASP Can someone explain the difference or benefits between using Flash Remoting versus the XML object to retreive data? I haven't used Flash remoting yet mostly because of it's price tag. The XML object has been working just fine for me. I use an XML object to load in ASP pages that make SQL queries and return XML formatted strings. Is it that remoting is better or do each have there own place? JOR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Remoting with AMFPHP vs. ASP
Hi Navnett, You can't use flash remoting with standard ASP. However using remoting with .net is not such a painful experience after all. It's actually fun once you get the hang of it. I didn't have any idea of .net but it didn't take me long to build a working application. 2 tips that should make your live easier: - use c# as a programming language (it's similar to action script) - use .net Assemblies not ASP.NET pages (again - writing .net classes is quite similar to writing AS classes and you don't have to deal with .net stuff such as code behind the page) Robin -Original Message- From: Navneet Behal [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 November 2005 8:28 AM To: Flashcoders mailing list Subject: [Flashcoders] Remoting with AMFPHP vs. ASP Hi, The fun has just been taken out of my development process when after finishing RIA with AMFPHP the client top management have suddenly woken up and realized that they don't want to have the application with PHP but with ASP as the backend language. As sick as that makes me :( I have to now work with their dev team to port my code in PHP to ASP. I'm being given the whole lecture on their best practices. I don't know much about ASP and the client's dev team knows nothing about Flash Remoting so there's a communication gap which will soon arise if I don't prepare properly for this. So the questions: 1. I know that Remoting works with ASP .NET but what about just ASP? 2. Is there something cool like AMFPHP which works with ASP? 3. Where should I read up for more resources on this? ... and any other piece of advice some of you who've worked with ASP and Remoting might have. Regards, Navneet ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable banners
I don't need to accept them at all; it's called FlashBlock. - Original Message - From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 7:22 PM Subject: Re: [Flashcoders] Expandable banners I agree - but we dont live in a perfect world and not all websites can be google. And if they were it would be a pretty grey/vnial/boring world. I do understand you might feel that flash based ads are intrusive - but you need to accpet them as just an important part of the online landscape as google keywords. Wether you coose to belive me or not they do work. on 10/11/05 12:05 AM, Flashcoders mailing list flashcoders@chattyfig.figleaf.com wrote: Jakob Nielsen said it best; Google's done well because they made ads that aren't annoying. Google ads can remain on a webpage and allow me to read without giving me a seizure, nor to do they appear over the top of my webpage that I'm reading with no discernable close button. Google has not become the billion dollar company they are because of ads; they became that because of good search capabilities, ads that are relevant not distracting, and allowing others to share in the revenue they generate. - Original Message - From: Daniel [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 09, 2005 6:41 PM Subject: Re: [Flashcoders] Expandable banners something to consider is that google works off adds. If it weren't for thier adds you would have to pay for it. Same with Yahoo. I could keep going but I won't. I agree with pete here. I don't like adds being everywhere, but I do see the purpose and so I accept it. Its easy enough to ignor. Sometimes you'll get lucky and find something interesting. But if you don't, just ignor it. Flash banners, java script banners, basic jpeg/gif banners really arn't that much different. The flash ones are just more fun to play with. ;) Personaly I'd hate it if they got rid of banner advertising. They would probably go back to pop ups everywhere wich is even more anoying. Oh, and some of us arn't rich and can't afford to pay for every site we go to. Daniel ryanm wrote: But when the quality of programming on TVnose dives, You mean it gets worse than America's Next Top Model and The Biggest Loser? 8-O Right now I pay $12.99 a month for high quality programming without commercials, it's called HBO. it costs you $60 to go to the movies, At $9 a ticket we're not far from that now. a daily news papaer is $10 a day, Like I'd pay to read that crap... and finaly you have to pay $99 per month just to use your favour websites (that used to be free) The good ones don't need ads. If you content is worth consuming, people will pay to consume it. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Remoting with AMFPHP vs. ASP
[EMAIL PROTECTED] wrote: Main benifit is speed. When you pass data in XML to and from flash in the manner you are you effectivly passing a long string. The FLash player then has to parse that into an XML object. Now for smaller XML strings this is very quick, but lets say you have an XML object with several hundred - even thousands of nodes. Not only will this take a while to transfer, but Flash will also chug on parseing it. Thats where remoting comes in. Reoting allows ue to flash data in purse binary form, and as native Flash objects. So if you have a script on your server that extracts some records from SQL into XML, you can pass that XML to Flash as a native XML object - NOT a string. The result is when this is transfered to flash - the player has to do nothing. It's already a native flash XML object - theres no need to parse it. It's obviously not restricted to XML - you can pass recordsets, customer objects, any type of data you like, and flash will send and recieve actual objects not string representations of. In a large scale application with major traffic (think backsing apps) this not only offers an added level of security, but also will save serious $$$ on bandwidth costs. Pete That sounds sweet then. Thanks for the run-through. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Remoting with AMFPHP vs. ASP
Read the chapter about Flash Remoting And ASP.net in Flash remoting the definitive guide. Not sure if I would buy the book just for this chapter though. A .net assembly is basically a .net class (.Net class lbrary) which is compiled into a dll file. Once it's compiled you can access the public methods of the dll. Robin -Original Message- From: Navneet Behal [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 November 2005 11:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Remoting with AMFPHP vs. ASP Cheers Robin. Some helpful (and soothing) stuff here. Will keep these in mind. C Sharp shouldn't be too much of a problem for me to pick up. I've read some code written in C# and is quite easy to follow. I'll have to understand more about .net Assemblies as I've never done that before. Still waiting for more good stuff from the forum :) Regards, Navneet - Original Message - From: Robin Burrer [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Thursday, November 10, 2005 5:51 AM Subject: RE: [Flashcoders] Remoting with AMFPHP vs. ASP Hi Navnett, You can't use flash remoting with standard ASP. However using remoting with .net is not such a painful experience after all. It's actually fun once you get the hang of it. I didn't have any idea of .net but it didn't take me long to build a working application. 2 tips that should make your live easier: - use c# as a programming language (it's similar to action script) - use .net Assemblies not ASP.NET pages (again - writing .net classes is quite similar to writing AS classes and you don't have to deal with .net stuff such as code behind the page) Robin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Follow up on the POST issue
And it crosses over into the ad banner thread... The original issue was a banner that was failing to POST information on the ad network in IE/Win. It turns out that IE does not want to POST any information to a new window when the Flash piece is in an iframe (thanks David). GET works fine. The amount of information being transferred necessitates using POST so the solution we ended up going with was: - transfer the bulk of the information using an XMLSocket - return a unique id to the Flash client - use a LoadVars.send() GET with the unique id to pop up the new window and continue doing what we need to do I had tried doing some DOM stuff with creating a form in the iframe on the fly using the JavaScript pseudo-protocol and getURL. That worked with Mozilla, but IE didn't like that either. Hope this helps to prevent anyone from banging their heads against the wall in the future. -Ricky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders