Re: [Flashcoders] Problem with .as files
Yes, I've run into this before, and its very annoying. Is there any workaround that you found? I. Franklin wrote: Thank you very much for all your responses. I tried clearing the ASO files, but even then the problem persisted. The problem actually was this : http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid= 288threadid=1061076highlight_key=ykeyword1=class Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: Tuesday, October 25, 2005 4:04 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Problem with .as files This can also be an issue with working on a network drive. You should make sure all your .as files are local. Or make sure that your local clock is a minute or two behind the network machine's clock. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- _ __ __ | | \/ ___\ Chris Hill | | / /_/ [EMAIL PROTECTED] |/\___ / http://ubergeek.tv /_/ The Smell of Geek! - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FileReference class [Get path of a selected file]
The file browser window? On OSX i get a normal mac FB - resize and all... On Oct 25, 2005, at 1:52 AM, Michael Stuhr wrote: Muzak schrieb: Which makes it completly useless running from the local file system :/ (which was probably their intention) But why on earth does this have to be a non resizable Window ? do you have any reasons for that ? pretty annoying! 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] illegal URL-character?
Hi people. This might now be really flash-related, but it is though a part of the process and problems that can occur. I got files named like config{ip-to-local}.swf my concern is if the {}-characters in filenames on different servers does work? I have tested it on a w2k and a w2003 server with IIS. But I don't know if these filenames are limited somehow in any other environments. Do you know? Is there a list with what is legal and illegal characters and so on? / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FileReference class [Get path of a selected file]
Can you elaborate on that: normal mac FB - resize and all (???) When using the following: import flash.net.FileReference; var listener:Object = new Object(); function onSelect (file:FileReference):Void { trace(file.name); }; var fileRef:FileReference = new FileReference(); fileRef.addListener(this); fileRef.browse(); in the event object (file) all you get is the file name, which isn't of any use if you selected a file outside the directory of which the swf is run. regards, Muzak - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 25, 2005 9:36 AM Subject: Re: [Flashcoders] FileReference class [Get path of a selected file] The file browser window? On OSX i get a normal mac FB - resize and all... On Oct 25, 2005, at 1:52 AM, Michael Stuhr wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] javascript function SetVariable doesn't work withFlash Player 8
Stan Vassilev wrote: If you run this offline, make sure this file you test is in the trusted list. You gotta go to the advanced flash panel hosted on macromedia.com to do this. but surely therein lies a paradox. if i want to run it offline, you must first go online? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OT: Flash player keeps 'downgrading' itself
More info: http://blog.fuelindustries.com/archives/000108.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: 25 October 2005 09:46 To: Flashcoders mailing list Subject: RE: [Flashcoders] OT: Flash player keeps 'downgrading' itself It's ie 6.0.2800 It happens with the full 8 player and the 8.5 alpha. I don't know which site is doing it (because it happens invisibly) It happens a lot (at least twice a month) Its been happening since the beta 8 player came out (I didn't have flashpaper then) It's most annoying. M ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] More than 1 font in textfield
Hi Franto, Yes this is possible. You create a (few) textfield(s) that embeds alle needed fonts and bold/italic etc. Then you assign a stylesheet to the field you want to use with multiple fonts or just use: font face=font1Font1 test/fontfont face=font2bFont2 bold test/b/font Greetz, Bernard -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens franto Verzonden: dinsdag 25 oktober 2005 10:41 Aan: Flashcoders mailing list Onderwerp: [Flashcoders] More than 1 font in textfield Hi all, i've guestion: is it possible to have more than 1 font in 1 HTML textfield? e.g Arial, Tahoma... and 2nd: is it possible to have bold and normal font in one HTML textfield with embeded fonts? I really cant this figure it out, and i need this... deadline :) Thanks - 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] Problem with .as files
maybe namespaces would help?! class com.domain.className {} Am 25.10.2005 um 09:00 schrieb I. Franklin: What I do is, while compiling the swfs, I make sure that I have the latest .as files(all other developers' .as files also who collborate on the same project) in my system. Other developers make sure that have each other's latest .as files in their system before compiling. This is time consuming and prone to error. But do we have any other go? Is Macromedia listening??? regards Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hill Sent: Tuesday, October 25, 2005 12:15 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Problem with .as files Yes, I've run into this before, and its very annoying. Is there any workaround that you found? I. Franklin wrote: Thank you very much for all your responses. I tried clearing the ASO files, but even then the problem persisted. The problem actually was this : http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm? catid = 288threadid=1061076highlight_key=ykeyword1=class Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: Tuesday, October 25, 2005 4:04 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Problem with .as files This can also be an issue with working on a network drive. You should make sure all your .as files are local. Or make sure that your local clock is a minute or two behind the network machine's clock. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ __ _ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti- virus service working around the clock, around the globe, visit: http://www.star.net.uk _ __ _ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- _ __ __ | | \/ ___\ Chris Hill | | / /_/ [EMAIL PROTECTED] |/\___ / http://ubergeek.tv /_/ The Smell of Geek! - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ __ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders plugisto ... eugen pflüger alexanderstr. 109 70180 stuttgart fon +49.711.6739797 mobil +49.177.6428272 e-mail [EMAIL PROTECTED] ... http://www.plugisto.net http://www.lifeperformance.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Measuring the height of a dynamically created text field.
Thanks guys. If only I had known about the getTextExtent() method before! Back to school for me! Thanks again, Dave On 10/24/05, Michael Klishin [EMAIL PROTECTED] wrote: David Lochhead wrote: This outputs 16 for the height and 300 for the width. The actual height of the textfield, via the debugger, is 160. And what does object returned by getTextExtent() method say if you use wrap margin parameter? For me this way always works fine. But if you use HTML-rendering text fields... -- Michael Klishin, [EMAIL PROTECTED] Non progredi est regredi ___ 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: AW: [Flashcoders] AS3.0 only projects + flex framework
Hi Spike, Specifically, you need to launch the file by clicking on the debug button in Eclipse rather than just browsing to the file. Yes, after following the tutorial for AS only project, I have set a breakpoint on a trace() and then hit the debug button. Nothing really happens neither can I find a trace into/step over feature. If so, how did you install the plugin? As mentioned in the readme file via Find and Install update and a Archived site etc. Yours, Weyert de Boer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: AW: [Flashcoders] AS3.0 only projects + flex framework
When you say Nothing really happens, what exactly does happen? Does the browser open the file? Do you get an error? Spike On 10/25/05, Weyert de Boer [EMAIL PROTECTED] wrote: Hi Spike, Specifically, you need to launch the file by clicking on the debug button in Eclipse rather than just browsing to the file. Yes, after following the tutorial for AS only project, I have set a breakpoint on a trace() and then hit the debug button. Nothing really happens neither can I find a trace into/step over feature. If so, how did you install the plugin? As mentioned in the readme file via Find and Install update and a Archived site etc. Yours, Weyert de Boer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: AW: [Flashcoders] AS3.0 only projects + flex framework
Spike wrote: When you say Nothing really happens, what exactly does happen? Does the browser open the file? Yes, the browser opens. After that it keeps trying to accesss www.macromedia.com in the browser (Firefox) in the status bar. Earlier I got a window asking where the debugger is. Not anymore. I really would like to have debugger support, that way I can keep a track of my trace message etc. Do you get an error? Nope. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] full browser flash + vertical html scrollbar
Why not use separate swf's and html pages, one for the scaled stuff (set publish settings at 100% html size for height and width), and then another with publish settings of Match Movie for the scrollable text (using the scrollbar component)? Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 25 October 2005 11:32 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] full browser flash + vertical html scrollbar hello, i'm developing a site entirely in flash (7) where some pages should scale to fill the browser while some longer text pages will require the user to scroll down vertically. basically i want a vertical scrollbar that works like a standard html-scrollbar for full broser flash. as far as i can think now there seems to be two ways: 1. make a flash scrollbar - i remember seeing a html-like flash scrollbar somewhere. i think it used frames in some way. sounds a bit messy. 2. use the existing html scrollbar - perhaps by setting the height of the swf to the height of the longest page and changing the overflow-y CSS through javascript to scroll for the long pages and hidden for the pages that should just fill the screen - is it possible to change the height of the swf dynamically? has anyone dealt with these issues and found good solutions? thanks! erik www.unsworn.org ___ 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: AW: [Flashcoders] AS3.0 only projects + flex framework
Can you post the code for the file you are trying to debug? It sounds like the debugger is probably running, but the line where you have set the breakpoint isn't being executed. Spike On 10/25/05, Weyert de Boer [EMAIL PROTECTED] wrote: Spike wrote: When you say Nothing really happens, what exactly does happen? Does the browser open the file? Yes, the browser opens. After that it keeps trying to accesss www.macromedia.com http://www.macromedia.com in the browser (Firefox) in the status bar. Earlier I got a window asking where the debugger is. Not anymore. I really would like to have debugger support, that way I can keep a track of my trace message etc. Do you get an error? Nope. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Modifying Tree components highlight
Claudia, I think you can get there by doing something like the following. The tricky part is figuring out the relationship of the other node to highlight to the node you are presently selecting. Here I just highlighted two nodes down the tree. Note that the tree only considers open nodes in its displayIndex count. What happens if you first open a branch in between the two nodes I haven't checked. And it highlights two nodes down even if you immediately thereafter close that branch - so order is important. I.e., what is displayed at the time changes the index of all nodes. myTreeListener.change = function(evtObj) { var tree = evtObj.target; var node = tree.selectedItem; tree.setPropertiesAt(tree.getDisplayIndex(node)+2, {backgroundColor:0xff}); // var openNode = tree.getIsOpen(node); // var isBranch = tree.getIsBranch(node); // possible logic ala : if (tree.attributes.label == nodeLabel3) { then highlight tree.attributes.nodeToHighlight; } // xml : node label=nodeLabel3 nodeToHighlight=allBlahNodes/ // node label=nodelabel8 nodeToHighlight=allDarnNodes/ // node label=nodeLabelX linkedNode=allBlahNodes/ // node label=nodeLabelX linkedNode=allDarnNodes/ // I suppose you could loop through DISPLAYED nodes looking for any attribute you want and changing that node //of course you could always loop through your all or some part of your tree nodes //You will have to modify to skip current selected node // for (i=0; itree.rowCount;i++) { //var checkNode = tree.getNodeDisplayedAt(i); // if (checkNode.attributes.linkedNode == node.attributes.nodeToHighlight) { // tree.setPropertiesAt(tree.getDisplayIndex(checkNode), {backgroundColor:0xff}); // break; // } // } completely untested!!! } Nodes will remain highlighted until you change their color again, so you may need to keep track of the last highlighted node to reset it back to default. Mark Mulhollam Minneapolis, Minnesota -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Claudia Barnal Sent: Monday, October 24, 2005 7:01 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Modifying Tree components highlight Hi, Ive been given the task to change the highlight programmatically of the different nodes in a tree component. The functionality would be something like this: The user selects a node (highlighting it), then based on some event, another node in the tree is highlighted with a DIFFERENT color, leaving both nodes highlighted with their respective default and special colors. Thats the basic functionality Im looking after. I digged through the source and found that the highlight can be found like this. for(var i:Number = 0; i treeInstance.rows.length; i++) { trace(treeInstance.rows[i].highlight) } I tried changing the color of the treeInstance.rows[x].highlight MovieClip, but found that it is only possible if it is the selected node in the tree component, even though the for loop indicates that the MC exists. I also had a look at using treeInstance.cellRenderer = blah; But I couldnt find any help on that either. I would really appreciate if you guys could help me find a solution to this problem (at this stage Im not fussy about OOP or clean code). TIA Caludia ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] full browser flash + vertical html scrollbar
Another solution would be a three-pronged approach: have a fullscreen swf that loads in another swf containing a ScrollPane component at 0,0. Pass Stage.width and Stage.height to the swf containing the ScrollPane (to resize it), and load in the content (your site). This would give you all the features of ScrollPane (hScroll, vScroll, etc). Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Shortcut keys in debug mode (Flash IDE)
Hi all, Are there any keyboard shortcuts for the debug options (Step Over/Step Into etc) for the Flash 8 IDE? Cheers, Nick ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tween not working in AS
Don't know if it matters, but I always assign the Tweens to a var name. That way, you can refer to them later, with onMotionFinished, etc. - MM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bedar Sent: Tuesday, October 25, 2005 3:35 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Tween not working in AS Is l2Company_mc inside of 1_mc.company_btn? Otherwise we have a problem... On Oct 25, 2005, at 2:55 AM, lists wrote: Hi there I have the following code on my main timeline. I also have a few MovieClips of which I need ot animate onPress: import mx.transitions.Tween; import mx.transitions.easing.*; //l1 new Tween(this.l1_mc, _alpha, Strong.easeOut, 0, 100, 3, true); new Tween(this.l1_mc, _y, Strong.easeOut, 106, 6, 1, true); //l2 this.l1_mc.company_btn.onPress = function() { new Tween(this.l2Company_mc, _alpha, Strong.easeOut, 0, 100, 3, true); new Tween(this.l2Company_mc, _y, Strong.easeOut, 106, 6, 1, true); } Now for some reason the onPress is not working. I put a trace in there and i do get feed back from that, however the MovieClip will not animate. is ther ean error in my code? Thanks! :: Dustin :: ___ 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] More then once
I haven't had that problem -Original Message- From: John Giotta [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 13:50 To: Flashcoders mailing list Subject: [Flashcoders] More then once Is it just me or anyone else receiving multiple instances of the same emails? For example, I've received Eric Dolecki's External Interface Unicode more then once. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Dyson -- the cleaner that doesn't lose suction. http://www.dyson.com *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] More then once
I haven't had that problem -Original Message- From: John Giotta [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 13:50 To: Flashcoders mailing list Subject: [Flashcoders] More then once Is it just me or anyone else receiving multiple instances of the same emails? For example, I've received Eric Dolecki's External Interface Unicode more then once. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Dyson -- the cleaner that doesn't lose suction. http://www.dyson.com *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Can't Install Debug Flash Player
Not sure in what order this happened, but I cannot install the Flash Player 8 debug player, and the Flash Player 7 Debug player for IE (ActiveX) is not allowing FlexBuilder 1.5 to debug. I re-installed the FlexBuilder2 alpha today and that's when my troubles started. I installed Flash Player 8.5 for IE, and nothing for Firefox. After uninstalling the product, and running Flash Player 8 and Flash Player 7 uninstallers multiple times, as well as uninstalling Macromedia Central, and removing any Flash Player I found in Add/Remove Programs, I'm still at a loss. I started getting the Contribute install error too that one gets from a Flash Player 8 beta install, so uninstalled Contribute 3 as well as any FlashPaper I found. I even deleted my mms.cfg file that Macromedia Flash Player puts in your system32. At times, I found when trying to install in IE from the web, the player would install, but no SWF's would load. You could right click on it in the browser, and it'd say Flash 8, but no SWF would be loaded in it. I managed to fix this by uninstalling 8 and 7, and re-installing 7, and then 8 atop of that. ...but, still can't install the Flash Player 8 debug player. I keep getting this error when running the Install Flash Player 8 ActiveX.msi: Error 1904.Module C:\WINDOWS\system32\Macromed\Flash\Flash8.ocx failed to register. HRESULT -2147220473. Contact your support personnel. Help before I re-core this bitch! --JesterXL ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] What's This Mean?
I have just separated out my as code into different pages. The init.as page is now showing this error where before it worked fine. Any help greatly appreciated... **Error** C:\Documents and Settings\PC2005\My Documents\flash player\init.as: Line 5: ActionScript 2.0 class scripts may only define class or interface constructs. var cvtvSourceVideo:String = streams/Demo384K_Stream.flv; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Can't Install Debug Flash Player
I'm using Kewbee's plugin switcher to solve this. It works like a charm. Install the Flex Builder 2 ide. Open up kewbee, and the player will be copied to the kewbee folder automatically. Ralph. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: dinsdag 25 oktober 2005 15:04 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Can't Install Debug Flash Player Not sure in what order this happened, but I cannot install the Flash Player 8 debug player, and the Flash Player 7 Debug player for IE (ActiveX) is not allowing FlexBuilder 1.5 to debug. I re-installed the FlexBuilder2 alpha today and that's when my troubles started. I installed Flash Player 8.5 for IE, and nothing for Firefox. After uninstalling the product, and running Flash Player 8 and Flash Player 7 uninstallers multiple times, as well as uninstalling Macromedia Central, and removing any Flash Player I found in Add/Remove Programs, I'm still at a loss. I started getting the Contribute install error too that one gets from a Flash Player 8 beta install, so uninstalled Contribute 3 as well as any FlashPaper I found. I even deleted my mms.cfg file that Macromedia Flash Player puts in your system32. At times, I found when trying to install in IE from the web, the player would install, but no SWF's would load. You could right click on it in the browser, and it'd say Flash 8, but no SWF would be loaded in it. I managed to fix this by uninstalling 8 and 7, and re-installing 7, and then 8 atop of that. ...but, still can't install the Flash Player 8 debug player. I keep getting this error when running the Install Flash Player 8 ActiveX.msi: Error 1904.Module C:\WINDOWS\system32\Macromed\Flash\Flash8.ocx failed to register. HRESULT -2147220473. Contact your support personnel. Help before I re-core this bitch! --JesterXL ___ 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] Multilanguage sites
I've been approached to put together a site which will ultimately have 10 language variations (some of which dont use the latin alphabet). Were thinking XML driven content for a start, but what are the major pitfals to look out for when putting a multilanguage site togehter. I've done some top level research and figure theres goingto be issues with character sets etc. Does anyone have any links to good resources or advice to give ? Thanks in advance Daniel ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] serialize object
i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? if not, i'll write one... does anybody else need stuff like that ? flow motion ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Email on behalf of
In my inbox (outlook) I see all of our names displayed. I know how to do that (my name [EMAIL PROTECTED]). But I'm trying to duplicate what is displayed in the From field when you open the email ([EMAIL PROTECTED] on behalf of My Name [EMAIL PROTECTED]). I'm sending variables from flash to a coldfusion page using a cfmail tag. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What's This Mean?
It all depends on how you use the .as files. You can either INCLUDE them or IMPORT them. You import classes and include external code. The error you're getting like is a result of importing your script instead of including it. Try using include: #include yourscript.as Notice no semicolon at the end of the line. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net Kent Humphrey wrote: Strangely enough, I've been getting the same errors (I'm new to this external .as thing), but when publishing from PrimalScript, everything works fine... On 25 Oct 2005, at 14:21, Hans Wichman wrote: Hi, an as file may only define a class as in: class MyClass { } or an interface as in: interface MyInterface { } Just copying your timeline code into separate files and having a file with for example: var myVar:String = ffsdfsfs; is not gonna work. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Can't Install Debug Flash Player
Sorry, that wasn't a very complete post; here's the link : http://www.kewbee.de/FlashPluginSwitcher/ It will take you some time to download all old players and set it up, but when you get it running, it's really a charm to work and test with. Ralph. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer Sent: dinsdag 25 oktober 2005 15:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] Can't Install Debug Flash Player Hauwert, Ralph wrote: I'm using Kewbee's plugin switcher to solve this. It works like a charm. Install the Flex Builder 2 ide. Open up kewbee, and the player will be copied to the kewbee folder automatically. Hmm, which Kewbee's plugin? Do you have any links? ___ 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] What's This Mean?
Yes, working with your AS in an external editor is much better than having it haphazardly placed in a bunch of different clips. But if you just want to place your internal code into an external file there are a couple things to know: If you just want to include your code into flash, you use the #include directive like so: #include mycode.as BUT this won't necessarily work because AS2.0 code is put into containers called 'classes'. Flash will look in the .fla's folder for any class files, and make sure the syntax is correct. An unfortunate side effect of this is that if you migrate all your internal code into an external file _in the same folder_ flash will automatically assume you are creating an AS2.0 class. In reality you're just using normal AS externally. This is why you're getting the erroneous error ActionScript 2.0 class scripts may only define class or interface constructs. Flash thinks you're making a class but you're not, because the working folder is part of AS2's 'classpath'. So you can either place your code somewhere else like so: #include ../src/mycode.as or go into Edit-Preferences-ActionScript-Actionscript2.0 Settings and remove the entry in the list for the '.' C jleonard wrote: Appreciate the heads up. So I thought that placing as code externally was the more correct way to do it. Is this not true? Or is there another way it's done? On Tue, 25 Oct 2005 09:21:46 -0400, Hans Wichman [EMAIL PROTECTED] wrote: Hi, an as file may only define a class as in: class MyClass { } or an interface as in: interface MyInterface { } Just copying your timeline code into separate files and having a file with for example: var myVar:String = ffsdfsfs; is not gonna work. greetz Hans At 03:09 PM 10/25/2005, jleonard wrote: I have just separated out my as code into different pages. The init.as page is now showing this error where before it worked fine. Any help greatly appreciated... **Error** C:\Documents and Settings\PC2005\My Documents\flash player\init.as: Line 5: ActionScript 2.0 class scripts may only define class or interface constructs. var cvtvSourceVideo:String = streams/Demo384K_Stream.flv; ___ 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 -- _ __ __ | | \/ ___\ Chris Hill | | / /_/ [EMAIL PROTECTED] |/\___ / http://ubergeek.tv /_/ The Smell of Geek! - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 and Flex if you are in NYC
If you are in New York city, don't miss tonight's FlashCodersNY.org meeting. This will be the first in a series of sessions that cover AS3 and Flex. To learn more about our study group goto: http://flashcodersny.org/? page_id=13 PLEASE reply with any questions off list. Best, Jean-Charles ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't Install Debug Flash Player
My problem arises when I uinstall Flex Builder 2. IE has Flash Player 8, but can't install the debug player. I've tried the solutions from the following threads, all to no avail: http://www.northcode.com/forums/showthread.php?threadid=6024 http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=194threadid=1059499CFID=8062659CFTOKEN=5d595ee5dbe8acc4-63D0797E-CDFF-E3C1-BFF5B19612C34994jsessionid=4830c8017c25e7c361f6#3825385 http://forum.java.sun.com/thread.jspa?threadID=542920messageID=2665780 - Original Message - From: Hauwert, Ralph [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 25, 2005 9:26 AM Subject: RE: [Flashcoders] Can't Install Debug Flash Player I'm using Kewbee's plugin switcher to solve this. It works like a charm. Install the Flex Builder 2 ide. Open up kewbee, and the player will be copied to the kewbee folder automatically. Ralph. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: dinsdag 25 oktober 2005 15:04 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Can't Install Debug Flash Player Not sure in what order this happened, but I cannot install the Flash Player 8 debug player, and the Flash Player 7 Debug player for IE (ActiveX) is not allowing FlexBuilder 1.5 to debug. I re-installed the FlexBuilder2 alpha today and that's when my troubles started. I installed Flash Player 8.5 for IE, and nothing for Firefox. After uninstalling the product, and running Flash Player 8 and Flash Player 7 uninstallers multiple times, as well as uninstalling Macromedia Central, and removing any Flash Player I found in Add/Remove Programs, I'm still at a loss. I started getting the Contribute install error too that one gets from a Flash Player 8 beta install, so uninstalled Contribute 3 as well as any FlashPaper I found. I even deleted my mms.cfg file that Macromedia Flash Player puts in your system32. At times, I found when trying to install in IE from the web, the player would install, but no SWF's would load. You could right click on it in the browser, and it'd say Flash 8, but no SWF would be loaded in it. I managed to fix this by uninstalling 8 and 7, and re-installing 7, and then 8 atop of that. ...but, still can't install the Flash Player 8 debug player. I keep getting this error when running the Install Flash Player 8 ActiveX.msi: Error 1904.Module C:\WINDOWS\system32\Macromed\Flash\Flash8.ocx failed to register. HRESULT -2147220473. Contact your support personnel. Help before I re-core this bitch! --JesterXL ___ 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] LocalConnection in Flex 2
I heard it isn't implemented yet. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What's This Mean?
are you using #include or import to pull in your external .AS file? if you JUST have code in your .AS file, you need to use #include: #include init.as if you have full class code, then you use import: import init; // which resides in init.as sounds like you're using import when you should be using #include :-) hth g. On 10/25/05, jleonard [EMAIL PROTECTED] wrote: I have just separated out my as code into different pages. The init.as page is now showing this error where before it worked fine. Any help greatly appreciated... **Error** C:\Documents and Settings\PC2005\My Documents\flash player\init.as: Line 5: ActionScript 2.0 class scripts may only define class or interface constructs. var cvtvSourceVideo:String = streams/Demo384K_Stream.flv; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] OK to ask about X Factor Studio here?
Is it OK to ask an XPath / X Factor Studio question here? Miles Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] remove an attached movie?
Hi there - I have some code in which I attach a movie from my library. this.attachMovie(level1Mc, l1_mc, 10); Now depending on button presses, there are other movies attached and replacing previous ones... so what I am wondering, is there a way to clear a level? So for example when i click a button, it clears any attached movies in level 10, etc? Thanks! :: Dustin :: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] serialize object
Take a look at the XML-RPC standard. It could give you some ideas for serializing object hierarchies into text. It only supports common data types since it supposed to transcend languages, but you could build in some smarter class instantiation. http://xmlrpc.com http://sf.net/projects/xmlrpcflash Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Florian Metzger - Neodelight Sent: Tuesday, October 25, 2005 11:50 AM To: flashcoders Subject: [Flashcoders] serialize object i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? if not, i'll write one... does anybody else need stuff like that ? flow motion ___ 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] More then once
I got two copies of alistair's email as well. I'm just assuming it's an incorrectly configured or dumb email client. -David R On 10/25/05, Cedric Muller [EMAIL PROTECTED] wrote: but I received this message twice!! Cedric I haven't had that problem -Original Message- From: John Giotta [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 13:50 To: Flashcoders mailing list Subject: [Flashcoders] More then once Is it just me or anyone else receiving multiple instances of the same emails? For example, I've received Eric Dolecki's External Interface Unicode more then once. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Dyson -- the cleaner that doesn't lose suction. http://www.dyson.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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What's This Mean?
James O'Reilly wrote: It all depends on how you use the .as files. You can either INCLUDE them or IMPORT them. You import classes and include external code. The error you're getting like is a result of importing your script instead of including it. Try using include: #include yourscript.as Notice no semicolon at the end of the line. JOR These scripts are already included like that : I'm not too worried, because like I said, it's working for me when I compile with PrimalScript. Maybe in my next project I'll figure it out properly. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't Install Debug Flash Player
Already did that. Additionally, Flash Plugin Switcher does not come with the Flash 8 debug, just the regular player. - Original Message - From: John Giotta [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 25, 2005 11:17 AM Subject: Re: [Flashcoders] Can't Install Debug Flash Player Hey Jesse, I had the same problem. I did exactly what Ralph did, except I first uninstalled the plugins from my Add and Remove Programs console in Windows. ___ 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] LocalConnection in Flex 2
LOL, I didn't do a thing.. just copy/paste from the docs ;-) Well, I did test it though.. Muzak - Original Message - From: Spike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 26, 2005 12:08 AM Subject: Re: [Flashcoders] LocalConnection in Flex 2 Yep, That works here. You've done a few things differently to what I had. That's why I originally thought it was AS 2. I'll poke around and see if I can isolate what was causing it to fail. Spike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] LocalConnection in Flex 2
That's kinda funny, I copied mine directly from the docs for the LocalConnection class. The only bits I changed were to display a text field rather than using trace to output info. Where in the docs did you find the example you posted? Spike On 10/25/05, Muzak [EMAIL PROTECTED] wrote: LOL, I didn't do a thing.. just copy/paste from the docs ;-) Well, I did test it though.. Muzak - Original Message - From: Spike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 26, 2005 12:08 AM Subject: Re: [Flashcoders] LocalConnection in Flex 2 Yep, That works here. You've done a few things differently to what I had. That's why I originally thought it was AS 2. I'll poke around and see if I can isolate what was causing it to fail. Spike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] LocalConnection in Flex 2
Never mind, Found the code for your example under Communicating with the Browser in the Developing Flex Apps part of the docs. Spike On 10/25/05, Spike [EMAIL PROTECTED] wrote: That's kinda funny, I copied mine directly from the docs for the LocalConnection class. The only bits I changed were to display a text field rather than using trace to output info. Where in the docs did you find the example you posted? Spike On 10/25/05, Muzak [EMAIL PROTECTED] wrote: LOL, I didn't do a thing.. just copy/paste from the docs ;-) Well, I did test it though.. Muzak - Original Message - From: Spike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 26, 2005 12:08 AM Subject: Re: [Flashcoders] LocalConnection in Flex 2 Yep, That works here. You've done a few things differently to what I had. That's why I originally thought it was AS 2. I'll poke around and see if I can isolate what was causing it to fail. Spike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org -- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Multilanguage sites
Make sure you encode your XML as UTF-8, if possible, write a good schema for your data format (this is not easy) and if file size is a serious consideration(which it always is), Keep in mind that you can use compression on your XML, pretty much all browsers support it. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] imports available to entire flash file
Is there a way to import certain classes for use throughout the entire flash file? Or do I need to import for each timeline? :: Dustin :: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targets driving me insane
Just go through your code again and identified the problem. You should get undefined in the 2nd lot of traces. Because your l2Product_mc is created ONLY when l1_mc.product_btn is pressed. However, this.l2Product_mc.mens_btn.onPress = function():Void established before l2Product_mc is created. l2Product_mc will never be registered to that onPress event. You should establish the event right after attaching it. [...] Sam Liu Flash Developer - Languages Online Office of Learning and Teaching Department of Education and Training T: (03) 9637 2102F: (03) 9637 2060 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of lists Sent: Wednesday, 26 October 2005 9:10 AM To: Flashcoders mailing list Subject: [Flashcoders] targets driving me insane Hi there - I am about to go crazy here I am trying to target a button in a dynamic MC (attached from the Library). Each movie clip in the library already has the required buttons with an instance name. I have a MC on my main timeline called menu_mc. Now in the timeline of menu_mc I have the following code: //l2 this.l1_mc.product_btn.onPress = function():Void { _parent.menu_mc.attachMovie(level2McProduct, l2Product_mc, 12); _parent.menu_mc.l2Product_mc._x = 73.7; new Tween(_parent.menu_mc.l2Product_mc, _alpha, Strong.easeOut, 0, 100, 3, true); new Tween(_parent.menu_mc.l2Product_mc, _y, Strong.easeOut, 106, 0, 1, true); }; //l3 this.l2Product_mc.mens_btn.onPress = function():Void { trace(_parent); _parent.menu_mc.attachMovie(level3McMens, l3Mens_mc, 13); _parent.menu_mc.l3Mens_mc._x = 189.5; new Tween(_parent.menu_mc.l3Mens_mc, _alpha, Strong.easeOut, 0, 100, 3, true); new Tween(_parent.menu_mc.l3Mens_mc, _y, Strong.easeOut, 106, 0, 1, true); }; the l1_mc was created with attachMovie earlier in the code, but is trimmed from here to save room (it functions as it should). The following: this.l1_mc.product_btn.onPress = function():Void also works as it should. Now the results of that are another MC attached to the timeline of the menu_mc instance. This all works, and my tweens, etc all work as expected. Now for some reason when I drill down one level deeper: this.l2Product_mc.mens_btn.onPress = function():Void the code stops working. I stuck a trace in there to see if the button event was even responding. Which it is not! I double, triple checked the button instance name and the so on... but it just never works. As you can see I had modified my path to use the previously attached MC. I even tried putting in the moviclip by hand and browsed to find the path (to make sure I had no mistakes)- and it appears I do not. I am at wits end here and going insane. Does anyone have any suggestions? Am I missing something? Is there a limitation in flash that I do not know about? :: Dustin :: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education Training. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] ActionScript and sockets
Hello! I have been playing with the new Socket class for binary sockets. The current code ain't talking to binary yet. It's just doing a simple HTTP Request which /seems/ work. Please don't look at the code or implementation that's really smelly. Anyone already able to use buttons or textareas in a AS3 only project? Yours, Weyert de Boer package { // oh oh, its good to have a sockets demo in the Delphi 2005 demos directory! import flash.display.MovieClip; import flash.util.trace; import flash.net.*; import flash.geom.*; import flash.net.URLRequest; import flash.events.*; import flash.util.ByteArray; import flash.util.SetIntervalTimer; import flash.display.Sprite; import mx.controls.Button; import mx.utils.Delegate; /** * Derives of the Socket class * * @see flash.net */ public class SimpleSocket extends Socket { } public class BinarySocketsView { private var btnGo: Button; public function BinarySocketsView( target:MovieClip ) { btnGo = new Button(); btnGo.label = GO!; target.addChild( btnGo ); } public function updateMemoField( text: String ) { trace( TEXT: \n\r + text ); } } /** * BinarySocket example * The first socket example will try to access a HTTP server * use the Socket-class. I am hoping such requests aren't getting * redirect to something magic functions. Oh well, we will see. * * NOTE: Don't forget to alter the two constants ! */ public class BinarySocketExample extends MovieClip { private var socket:SimpleSocket; private var connected:Boolean; private var view: BinarySocketsView; /** * Constants */ private const serverName: String = www.google.nl; private const serverPort: Number = 80; private var request: String = ; /** * */ public function BinarySocketExample() { this.connected = false; // // GUI STUFF this.view = new BinarySocketsView( this ); this.view.updateMemoField( ); // // socket = new SimpleSocket(); socket.connect( this.serverName, this.serverPort ); socket.addEventListener( EventType.CONNECT, connectListener ); //socket.addEventListener( ErrorEvent.IO_ERROR, securityErrorListener ); socket.addEventListener( EventType.CLOSE, stuff ); socket.addEventListener( ProgressEventType.PROGRESS, progressListener ); socket.addEventListener( EventType.COMPLETE, completeListener ); socket.addEventListener( ProgressEventType.SOCKET_DATA, socketDataListener); } public function stuff( event:Event) { trace( REQUEST RESULT:\r\n\r\n ); trace( this.request ); } public function completeListener( event:Event ) { trace( COMPLETE: + event.toString() ); } public function socketDataListener( event:ProgressEvent ) { var incomingData: String; if ( event.bytesLoaded = 0 ) { //trace( SOCKET DATA: + event.toString() ); incomingData = this.socket.readUTFBytes( event.bytesLoaded ); this.request += incomingData; } } public function securityErrorListener( event:IOErrorEvent ) { trace( ERROR: + event.type ); } public function progressListener( event:ProgressEvent ) { trace( PROGRESS + event.toString() ); } /** * Stuff */ public function connectListener( event:Event ) { var httpRequest:String; trace( Attempting to connect to ' + this.serverName + ' on port ' + this.serverPort.toString() + '... ); httpRequest = GET / HTTP/1.0\r\n; httpRequest += User-Agent: Mozilla 4.0 (X; I; Linux-2.0.35i586)\r\n; httpRequest += Host: + this.serverName + \r\n; httpRequest += Accept: */*\r\n; httpRequest += \r\n\r\n; //trace( httpRequest ); //trace( ); // if ( socket.connected ) { trace( SOCKET CONNECTED. ); socket.writeUTFBytes( httpRequest ); // TODO wdb Check why writeUTF is not working, probably some good reason for which missing at 5 o'clock in the mornig. trace( OK? ); } } } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Multilanguage sites
My advice: DO NOT use different character sets. Stick with Unicode (UTF-8). My games in Flash are in French, English and Chinese. Flash handles Unicode natively so I have the different translations in one single file (they are small games so it doesn't take much space). Our database handles Unicode so it communicates with Flash seamlessly. I also tested with Japanese and Arab. It seems ok although my knowledge in these 2 languages doesn't allow me to check thoroughly. Benjamin. Date: Tue, 25 Oct 2005 15:03:22 +0100 From: daniel clarke [EMAIL PROTECTED] Subject: [Flashcoders] Multilanguage sites To: flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 I've been approached to put together a site which will ultimately have 10 language variations (some of which dont use the latin alphabet). Were thinking XML driven content for a start, but what are the major pitfals to look out for when putting a multilanguage site togehter. I've done some top level research and figure theres goingto be issues with character sets etc. Does anyone have any links to good resources or advice to give ? Thanks in advance Daniel ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] serialize object
Depends if your using as3it has it built in :o) Cam On 10/25/05, Florian Metzger - Neodelight [EMAIL PROTECTED] wrote: i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? Here's two different ones: http://www.designvox.com/%7Eborys/JSON/JSON.as from http://www.crockford.com/JSON/index.html And then this one, which is compatible with php's serialize() : http://sourceforge.net/projects/serializerclass/ -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