Re: [Flashcoders] Extending the XML class
Hi, I ran into the exact same problem about a year ago... The XML class doesn't really make it easy to extend... The way I solved it is by overriding all necessary methods of the XML class with methods in my extended version, so EXML in your case. E.g. function someOverridenMethod():EXML { // do some other stuff return new EXML( this.cloneNode(true).toString() ); } That way all instances of XMLNode are converted to EXML before being returned. This could of course also be used for newly added methods in your extended class... Hope that helps. Jan On 1/4/06, Rifled Cloaca [EMAIL PROTECTED] wrote: Hi! I'm new to AS2, and I'm trying to convert some old AS1 code to AS2. This code uses XML.prototype to add functionality to the XML class (which is based on the XMLNode class, but you knew that already). I'm creating a new class like this: dynamic class core.EXML extends XML { } This new XML class has new properties in each of its nodes, so I add: dynamic class core.EXML extends XML { public var _MC:MovieClip; public var _parentMC:MovieClip; } But, unfortunately, since the EXML class inherits from the XML class, the nodes are of XMLNode class, not EXML class, so the nodes do not inherit the properties and methods I create in the new EXML class. So, my question is, how do I create a class that creates instances of itself, or say, an EXMLNode class that inherits from XMLNode? Any help is greatly appreciated. Thanks! -rc ___ 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] Pathfinding
http://www.franto.com/blog2/as3-pathfinder-in-big-mazes with as2 and as3 sources, in as3 it's 100 times faster :) On 12/22/05, Alan MacDougall [EMAIL PROTECTED] wrote: Toon Van de Putte wrote: Does anyone have a good implementation of a pathfinding algorithm, preferably for a typical side scrolling adventure game type interface? If you're talking about a top-view grid-based game, like Legend of Zelda or something, I have some code that's directly applicable. Mail me at signal at alanmacdougall dot com and I'll send it. If not, look up an algorithm named A* (pronounced A-star) and code your own implementation -- here are a few links: A discussion of how the algorithm works, and why it's better than others http://theory.stanford.edu/~amitp/GameProgramming/ A very basic explanation of the algorithm's actual workings http://www.policyalmanac.org/games/aStarTutorial.htm An algorithm to figure out the set of possible destinations for a unit http://www.gamedev.net/reference/articles/article724.asp (I have a working Actionscript implementation of this too, if you'd like.) Alan MacDougall ___ 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] TextFormat constructor
=== Quote from MM docs: Usage new TextFormat([font:String, [size:Number, [color:Number, [bold:Boolean, [italic:Boolean, [underline:Boolean, [url:String, [target:String, [align:String, [leftMargin:Number, [rightMargin:Number, [indent:Number, [leading:Number]) : TextFormat === You should either use parameters passed (in order exactly as above) to constructor: var tf:TextFormat = new TextFormat(Arial, 24); OR use no params with constructor and set properties later: var tf:TextFormat = new TextFormat(); tf.underline = true; tf.color = 0xFF; The 2nd way usually is better :-) -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. Mendelsohn, Michael wrote: Hi list... I thought you could instantiate a TextFormat object like this: var tf:TextFormat = new TextFormat(underline:true, color:0xFF); But that doesn't work as there's a compile error. Why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] link + php
I have index.swf with four buttons, each button load a movie ex : movie1.swf at _level1 movie2.swf at _level2 movie3.swf at _level3 movie4.swf at _level4 Index.swf is in a php page Question : Is it possible to load a specific movie by a php script with links ? Index.swf must be the same and take full page Thank you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] link + php
Use flashvars Actionscript to select the movie. If I understand what you want the buttons are on the webpage not in the flash movie. If this is so you will have to reload the page each time a button is pressed passing a new value to the movie through flashvars to select which movie to play. Hope this is what you meant. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of CARABUS+ Sent: 04 January 2006 12:06 To: Flashcoders mailing list Subject: [Flashcoders] link + php I have index.swf with four buttons, each button load a movie ex : movie1.swf at _level1 movie2.swf at _level2 movie3.swf at _level3 movie4.swf at _level4 Index.swf is in a php page Question : Is it possible to load a specific movie by a php script with links ? Index.swf must be the same and take full page Thank you ___ 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] Insert an attachment in a mail form and check if its possible to only accept .doc files?
Hi..i want to build in flash a form mail( like a recruitment form) that has the possibilitie to attach a file. I want to limit the type of document that the user will attach, like .doc Its possible to do that in flash? any ideias? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] sendAndLoad()ing Content-Encoding: gzip
Hello flashcoders, I'm new to Flash, but plan to develop an web-chat-alike Apache module which would communicate with a Flash client through sendAndLoad() (i.e. exchanging short messages in application/x-www-form-urlencoded format). From the docs/books I've understood that SSL communication is mastered by Flash transparently (i.e. just call https://... instead of http://... and the browser will handle it for you). Is it the same case for gzipped content (like coming from mod_gzip or if I gzip the messages myself in my Apache module)? Or would I have to use onData() or similar and uncompress gzipped content myself in the Flash application? Thank you Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] sendAndLoad()ing Content-Encoding: gzip
Hi Alexander, What I always understood about the working of the Flash player is that most requests (i..e not streams) get redirected to the browser to handle the downloading etc. I f this is correct you should be able to use messages compressed with gzip. Because this is supported by the browser. Yours, Weyert de Boer Hello flashcoders, I'm new to Flash, but plan to develop an web-chat-alike Apache module which would communicate with a Flash client through sendAndLoad() (i.e. exchanging short messages in application/x-www-form-urlencoded format). From the docs/books I've understood that SSL communication is mastered by Flash transparently (i.e. just call https://... instead of http://... and the browser will handle it for you). Is it the same case for gzipped content (like coming from mod_gzip or if I gzip the messages myself in my Apache module)? Or would I have to use onData() or similar and uncompress gzipped content myself in the Flash application? Thank you Alex ___ 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] Keypoints in a .mp3
Hi there. A sound Object in Actionscript has a .duration and a .position property. You can monitor the position and do stuff when the position has reached a certain number of seconds or a percentage of the total duration. var s:Sound = new Sound(sound_mc); s.attachSound(song); s.start(); _root.onEnterFrame = function() { // check s.position and act accordingly } Regards, Dimitrios Bendilas - Original Message - From: Marcelo Wolfgang [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 04, 2006 3:17 PM Subject: [Flashcoders] Keypoints in a .mp3 Hi list, Happy new year for all :) I'm little rusty in my coding, and I'm developing a site which it will have a 'mp3 player' - the user click on a button, it load the mp3 to the flash media player. But I need to have some key points, or a way to check how much time of the music has elapsed so that at certain points it will display different info on the screen. Like when the music reach 2 minutes it will show the song artist, when it reaches 4'38'' it will show another info Is it possible ? How should I do something like this ? TIA Grillo ___ 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] Error: plugin.SetWindow is not a function
I’m trying to do a simple fscommand on a mac and get the following javascript error in all mozilla browsers: Error: plugin.SetWindow is not a function Source File: javascript: function jsScriptObject(obj) { this.wrappedJSObject = obj; } jsScriptObject.prototype = { evaluate : function(expression) { return new jsScriptObject(eval(expression)); } }; var plugin = document.embeds['flashapp']; plugin.SetWindow(new jsScriptObject(window),102467287); Line: 1 I've got the swLiveConnect=true and name tags in the embed tag, but still can't get the error to go away. Has anyone seen this before? Does anyone know how to fix this? I've tried taking out the DTD and that doesn't seem to work either. caleb -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.12/220 - Release Date: 1/3/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Keypoints in a .mp3
If you want to know the length of the song (because duration only gives you how much has been downloaded), you can put it into the TLEN of the ID3 V2 tag. You can use onID3 of the sound object to find out when the ID3 tags have been downloaded. Please note that if you have ID3 V2 and ID3 V1, onID3 will be called twice. ID3 V2 is at the start of the song. So the first onID3 will be ID3 V2. ID3 V1 is at the end of the song. On 1/4/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hi there. A sound Object in Actionscript has a .duration and a .position property. You can monitor the position and do stuff when the position has reached a certain number of seconds or a percentage of the total duration. var s:Sound = new Sound(sound_mc); s.attachSound(song); s.start(); _root.onEnterFrame = function() { // check s.position and act accordingly } Regards, Dimitrios Bendilas - Original Message - From: Marcelo Wolfgang [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, January 04, 2006 3:17 PM Subject: [Flashcoders] Keypoints in a .mp3 Hi list, Happy new year for all :) I'm little rusty in my coding, and I'm developing a site which it will have a 'mp3 player' - the user click on a button, it load the mp3 to the flash media player. But I need to have some key points, or a way to check how much time of the music has elapsed so that at certain points it will display different info on the screen. Like when the music reach 2 minutes it will show the song artist, when it reaches 4'38'' it will show another info Is it possible ? How should I do something like this ? TIA Grillo ___ 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 -- Ramon Miguel M. Tayag ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Lite Updater for Mac?
Am I missing this somewhere? Please don't tell me that they are leaving Mac users out in the cold again... Michael ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Lite Updater for Mac?
It looks like there's a Mac version on the way, we'll just have to wait a little longer for it. http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm? catid=588threadid=1098868enterthread=y On Jan 4, 2006, at 9:06 AM, Michael Bedar wrote: Am I missing this somewhere? Please don't tell me that they are leaving Mac users out in the cold again... Michael ___ 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 does not run when wmode is transparent and div is hidden
I have come across some strange behaviour when setting wmode to transparent and setting the div visibility to hidden and/or setting the absolute position off of the visible area of the browser window. 1. If wmode is set to transparent and the flash movie is wrapped in a div with a visibility set to hidden, the flash movie will not run. This seems to be true on both IE FF (windows). 2. If wmode is set to transparent and the flash movie is wrapped in a div with a visibility set to visible, the flash movie will run on both browsers, EXCEPT that if the absolute position has been set off screen (negative) and NO portion of the flash movie shows, then FireFox does not run the movie but IE still does. To test, create the following swf and html files: 1. test.swf (set dimensions to 100x100) getURL(javascript:alert('this is a test');); stop(); 2. test.html html body div style=position:absolute; visibility:visible; width:100px; height:100px; left:-100px; top:-100px; object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0; width=100 height=100 id=test align=middle param name=allowScriptAccess value=sameDomain / param name=movie value=test.swf / param name=quality value=high / param name=wmode value=transparent / embed src=test.swf quality=high wmode=transparent bgcolor=#ff width=100 height=100 name=test align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer; / /object /div /body /html The above example should work in IE but fail in FF. If you change the absolute position to (left:-99px; top:-99px;) so that 1 pixel shows, then FF will work. From what I have gathered, it appears that the swf will not even load unless it is visible on the screen - of course IE and FF seem to interpret that visibility differently... I have a flash script that needs to pop out on demand using wmode=transparent. Currently my only work around is to show 1px x 1px for firefox but this seems annoying. I could also do an onload event which hides the div or moves the div as this would ensure that the swf has loaded first - but this is even more annoying. Any thoughts? Thanks, Jason __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] link + php
Jim Tann wrote: Use flashvars Actionscript to select the movie. If I understand what you want the buttons are on the webpage not in the flash movie. If this is so you will have to reload the page each time a button is pressed passing a new value to the movie through flashvars to select which movie to play. And if you want to avoid reloading use JavaScript instead. -- Michael Antares Klishin, Email: [EMAIL PROTECTED] Web: www.novemberain.com Non progredi est regredi ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Lite Updater for Mac?
Michael Bedar wrote: Am I missing this somewhere? Please don't tell me that they are leaving Mac users out in the cold again... Only for this Preview... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] standalone+amfphp doesn't work
Hi all, I have a standalone movie connecting to amfphp. It doesn't connect or have response from it, but it does if I open the swf with the browser... any idea? thanks a lot... Gab ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] XML 2 UI oncommand attribute
I'm XUL script in my command folder that works but the oncommand attribute does not work with functions I create myself in my JSFL file. It seems only functions that belong to the JSFL API work but not with user-created functions that are scoped within the JSFL file. button id=browserfolder_button label=Browse Folder oncommand=myFunction();/ How can I get oncommand to run my User-created functions? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] standalone+amfphp doesn't work
Gabriel wrote: Hi all, I have a standalone movie connecting to amfphp. It doesn't connect or have response from it, but it does if I open the swf with the browser... any idea? If my memory serves me right AMF protocol uses HHTP headers that are available only on browser. -- Michael Antares Klishin, Email: [EMAIL PROTECTED] Web: www.novemberain.com Non progredi est regredi ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] link + php
Are you talking about changing the flashVar value in the page? If so, does Flash pick up this change? I'd guess it doesn't and you'd need to reload the movie, I guess by re-wrtiing the HTML, object tag etc. Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Michael Klishin Sent: 04 January 2006 16:25 To: Flashcoders mailing list Subject: Re: [Flashcoders] link + php Jim Tann wrote: Use flashvars Actionscript to select the movie. If I understand what you want the buttons are on the webpage not in the flash movie. If this is so you will have to reload the page each time a button is pressed passing a new value to the movie through flashvars to select which movie to play. And if you want to avoid reloading use JavaScript instead. -- Michael Antares Klishin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] standalone+amfphp doesn't work
Do you have a full path to your gateway in the Service Browser? You should be able to view the working service directly in flash. On Wed, 04 Jan 2006 17:34:54 +0100 Gabriel [EMAIL PROTECTED] wrote: Hi all, I have a standalone movie connecting to amfphp. It doesn't connect or have response from it, but it does if I open the swf with the browser... any idea? thanks a lot... Gab ___ 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] duplicateMovieClip question
The snippet below takes one clip and duplicate it in rows and columns - simple stuff. _root.attachMovie(seat,seat_mc,_root.getNextHighestDepth(),{_x:-1000,_y:0}); function createSeats (xSpacing:Number,ySpacing:Number,rows:Number,cols:Number) { var xSpacing:Number = xSpacing; var ySpacing:Number = ySpacing; var xStart:Number = 10; var yStart:Number = 30; var v:Number = 0; var i:Number = -1; // specified by the user var rows:Number = rows; var cols:Number = cols; while (++i cols) { var j:Number = -1; while (++j rows) { ++v; var name:String = seat + v; _root[seats].duplicateMovieClip (name, v); _root[name]._x = xStart + i * xSpacing; _root[name]._y = yStart + j * ySpacing; } } } createSeats(10,10,7,20); Now rather than the final result being duplicated in rows and cols like a square or a box, I'd like to let the user decide the amount of angle to the left or right , so as to give it a perspective or skewed look - if that makes any sense. Please see the attached gifs for a better explanation. Any help appreciated. /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash does not run when wmode is transparent and div is hidden
I never use wmode transparent -- it's buggy and broken. Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Masking with BitmapData
As you might know I am working on a little difference keying thingy in Flash. This isn't working at all, but I know got all the right information to mask it i.e. strip away the background. I only the code I try doesn't work for me. I am using the following code: outputFrame.clear(); // reset outputFrame.draw( this.videoFrame, new Matrix(), null, normal, null, true ); // the normal (background) outputFrame.draw( this.maskedFrameBlurred, new Matrix(), null, alpha, null, true );// the mask (white/black) outputFrame.draw( outputFrame, new Matrix(), null, auto, null, true ); // auto-merging Only this code doesn't work for me, would anyone here happen to know what might be wrong? Yours, Weyert de Boer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] duplicateMovieClip question
Johan, The list does not accept attachments, so your gifs didn't come through. It isn't clear to me what kind of rotation you're looking for -- the same applied to every clip, or something else. Please post the gifs to a URL, or send a more thorough description of what you need to happen. - Marc At 09:13 AM 1/4/2006, you wrote: The snippet below takes one clip and duplicate it in rows and columns - simple stuff. _root.attachMovie(seat,seat_mc,_root.getNextHighestDepth(),{_x:-1000,_y:0}); function createSeats (xSpacing:Number,ySpacing:Number,rows:Number,cols:Number) { var xSpacing:Number = xSpacing; var ySpacing:Number = ySpacing; var xStart:Number = 10; var yStart:Number = 30; var v:Number = 0; var i:Number = -1; // specified by the user var rows:Number = rows; var cols:Number = cols; while (++i cols) { var j:Number = -1; while (++j rows) { ++v; var name:String = seat + v; _root[seats].duplicateMovieClip (name, v); _root[name]._x = xStart + i * xSpacing; _root[name]._y = yStart + j * ySpacing; } } } createSeats(10,10,7,20); Now rather than the final result being duplicated in rows and cols like a square or a box, I'd like to let the user decide the amount of angle to the left or right , so as to give it a perspective or skewed look - if that makes any sense. Please see the attached gifs for a better explanation. Any help appreciated. /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] tweening and loader...
Hi to you all, I've just received a FLA from our graphist and must return it to him for further visual modifications and here is my problem: There is (a minimum) 5 squares_mc inside a menu and on 10 frames of that menu there is a tweening of both coordinates and alpha values of all the squares_mc. The project specifies that there will be thumbnails inside those squares_mc...I'm using the loader component to do the trick inside of a square_c component (squares_mc are instances of square_c). My problem is that at the end of the tweening, the image loaded disapeares (another instance of the squares_mc because of the end of the tween...). I must not touch the timeline of the menu and the tweening of the squares_mc but how can I do the load image and conserve it? I've tried reloading the image put I have a 1 frame blank... not acceptable! Thanks for any suggestions... -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] standalone+amfphp doesn't work
Michael Klishin wrote: Gabriel wrote: Hi all, I have a standalone movie connecting to amfphp. It doesn't connect or have response from it, but it does if I open the swf with the browser... any idea? If my memory serves me right AMF protocol uses HHTP headers that are available only on browser. My amfphp app. works okay within Flash 8 IDE. -- Anggie Bratadinata Web|Graphic|Flash Jl. Raya Langsep 21 Malang - East Java I N D O N E S I A http://www.nextrand.co.id ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash equivalent of a Java class loader
Hello We're new to flash, migrating over from Director. We're trying to implement a Java style class loader in Flash, but we are having some difficulty doing this. This is what we are trying to do: 1. Create an XML document with elements specifying the name of the class, a movieclip instance and and some initialization parameters. for example: object class=com.blackhammer.test.TestClass name=testClassInstance1 clipName=myTestClip param name=param1 value=1 type=int/ /object 2. On startup, the Flash movie parses the XML file, instancing a class corresponding to the string name specifiied in the XML (associating it with the specified MovieClip), and populates the newly created object with the parameter values specified in the XML. When we attempt to do this using RegisterClass, however, it appears as though the class name cannot be passed in as a string. This works: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass); This doesn't: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass); Any clues? Perhaps there is a more elegant way of doing this anyway, since RegisterClass seems to associate all instances of myTestClip (the symbol) with the specified class. What we'd like to do is associate an instance of a class with an instance of a movieclip. Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash does not run when wmode is transparent and div is hidden
I'm using wmode = transparent so I can display tooltips out of Flash above Flash. Works fine for me. But I am not doing anything about visibility with Flash using wmode and a div. Just div above Flash. http://www.ericd.net/new_css/(the right side) edolecki On 1/4/06, Mike Britton [EMAIL PROTECTED] wrote: I never use wmode transparent -- it's buggy and broken. 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
Re: [Flashcoders] tweening and loader...
Strange... If I dont use my square_c component and use a simple square_mc... movieclip instead, it works! Why? Is there something I'm missing? A+ Éric Thibault wrote: Hi to you all, I've just received a FLA from our graphist and must return it to him for further visual modifications and here is my problem: There is (a minimum) 5 squares_mc inside a menu and on 10 frames of that menu there is a tweening of both coordinates and alpha values of all the squares_mc. The project specifies that there will be thumbnails inside those squares_mc...I'm using the loader component to do the trick inside of a square_c component (squares_mc are instances of square_c). My problem is that at the end of the tweening, the image loaded disapeares (another instance of the squares_mc because of the end of the tween...). I must not touch the timeline of the menu and the tweening of the squares_mc but how can I do the load image and conserve it? I've tried reloading the image put I have a 1 frame blank... not acceptable! Thanks for any suggestions... -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash equivalent of a Java class loader
no it needs to be a ref to the constructer function. this can be solved however with this: Object.RegisterClass(myClipSymbolName, _global[com][blackhammer][test][TestClass]); On 1/4/06, August Gresens [EMAIL PROTECTED] wrote: Hello We're new to flash, migrating over from Director. We're trying to implement a Java style class loader in Flash, but we are having some difficulty doing this. This is what we are trying to do: 1. Create an XML document with elements specifying the name of the class, a movieclip instance and and some initialization parameters. for example: object class=com.blackhammer.test.TestClass name=testClassInstance1 clipName=myTestClip param name=param1 value=1 type=int/ /object 2. On startup, the Flash movie parses the XML file, instancing a class corresponding to the string name specifiied in the XML (associating it with the specified MovieClip), and populates the newly created object with the parameter values specified in the XML. When we attempt to do this using RegisterClass, however, it appears as though the class name cannot be passed in as a string. This works: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass); This doesn't: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass ); Any clues? Perhaps there is a more elegant way of doing this anyway, since RegisterClass seems to associate all instances of myTestClip (the symbol) with the specified class. What we'd like to do is associate an instance of a class with an instance of a movieclip. Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- j:pn ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Lite Updater for Mac?
It's just really frustrating that MM seems to have adopted a new policy towards OSX. On Jan 4, 2006, at 11:24 AM, Josh Buhler wrote: It looks like there's a Mac version on the way, we'll just have to wait a little longer for it. http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm? catid=588threadid=1098868enterthread=y On Jan 4, 2006, at 9:06 AM, Michael Bedar wrote: Am I missing this somewhere? Please don't tell me that they are leaving Mac users out in the cold again... Michael ___ 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] Flash equivalent of a Java class loader
Or this: class ClassFactory { public static function getClass(name:String, args:Object):Object { return new Function(eval(name))(args ? args : []); } } /* USAGE * //can be any referenced class * var myClass = ClassFactory.getClass(org.flashcodersny.style.GradientFill, args); */ As long as the class you're trying to instantiate exists in the _global namespace, the above will work. To make sure it exists, just say its name: class DeclareClassNames { function DeclareClassNames() { org.myClass1; org.myClass2; //and so on... } } There have been a few threads on this subject recently... Jim Kremens On 1/4/06, Johannes Nel [EMAIL PROTECTED] wrote: no it needs to be a ref to the constructer function. this can be solved however with this: Object.RegisterClass(myClipSymbolName, _global[com][blackhammer][test][TestClass]); On 1/4/06, August Gresens [EMAIL PROTECTED] wrote: Hello We're new to flash, migrating over from Director. We're trying to implement a Java style class loader in Flash, but we are having some difficulty doing this. This is what we are trying to do: 1. Create an XML document with elements specifying the name of the class, a movieclip instance and and some initialization parameters. for example: object class=com.blackhammer.test.TestClass name=testClassInstance1 clipName=myTestClip param name=param1 value=1 type=int/ /object 2. On startup, the Flash movie parses the XML file, instancing a class corresponding to the string name specifiied in the XML (associating it with the specified MovieClip), and populates the newly created object with the parameter values specified in the XML. When we attempt to do this using RegisterClass, however, it appears as though the class name cannot be passed in as a string. This works: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass ); This doesn't: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass ); Any clues? Perhaps there is a more elegant way of doing this anyway, since RegisterClass seems to associate all instances of myTestClip (the symbol) with the specified class. What we'd like to do is associate an instance of a class with an instance of a movieclip. Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- j:pn ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Jim Kremens ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash equivalent of a Java class loader
ClassFactory - just what we were looking for. Thanks, August On 1/4/06, Jim Kremens [EMAIL PROTECTED] wrote: Or this: class ClassFactory { public static function getClass(name:String, args:Object):Object { return new Function(eval(name))(args ? args : []); } } /* USAGE * //can be any referenced class * var myClass = ClassFactory.getClass( org.flashcodersny.style.GradientFill, args); */ As long as the class you're trying to instantiate exists in the _global namespace, the above will work. To make sure it exists, just say its name: class DeclareClassNames { function DeclareClassNames() { org.myClass1; org.myClass2; //and so on... } } There have been a few threads on this subject recently... Jim Kremens On 1/4/06, Johannes Nel [EMAIL PROTECTED] wrote: no it needs to be a ref to the constructer function. this can be solved however with this: Object.RegisterClass(myClipSymbolName, _global[com][blackhammer][test][TestClass]); On 1/4/06, August Gresens [EMAIL PROTECTED] wrote: Hello We're new to flash, migrating over from Director. We're trying to implement a Java style class loader in Flash, but we are having some difficulty doing this. This is what we are trying to do: 1. Create an XML document with elements specifying the name of the class, a movieclip instance and and some initialization parameters. for example: object class=com.blackhammer.test.TestClass name=testClassInstance1 clipName=myTestClip param name=param1 value=1 type=int/ /object 2. On startup, the Flash movie parses the XML file, instancing a class corresponding to the string name specifiied in the XML (associating it with the specified MovieClip), and populates the newly created object with the parameter values specified in the XML. When we attempt to do this using RegisterClass, however, it appears as though the class name cannot be passed in as a string. This works: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass ); This doesn't: Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass ); Any clues? Perhaps there is a more elegant way of doing this anyway, since RegisterClass seems to associate all instances of myTestClip (the symbol) with the specified class. What we'd like to do is associate an instance of a class with an instance of a movieclip. Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- j:pn ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Jim Kremens ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Extending the XML class
Jan, Thanks, but I'm not having any luck. I'm trying to force my EXML class to create all of it's nodes of class EXMLNode instead of XMLNode. That way, my custom methods are accessible at any node in the tree. Unfortunately, it seems that all of the nodes of the tree are type XMLnode, not EXMLNode. What I can't figure out is what methods are used in the intrinsic XML class to create nodes in the first place, and how to rewire them to create nodes of class EXMLNode instead of XMLNode. Maybe I'm biting off more than I can chew for my first AS2 project... I don't know. Any ideas are much appreciated. Thanks! -rc On 1/4/06, Jan Schluenzen [EMAIL PROTECTED] wrote: Hi, I ran into the exact same problem about a year ago... The XML class doesn't really make it easy to extend... The way I solved it is by overriding all necessary methods of the XML class with methods in my extended version, so EXML in your case. E.g. function someOverridenMethod():EXML { // do some other stuff return new EXML( this.cloneNode(true).toString() ); } That way all instances of XMLNode are converted to EXML before being returned. This could of course also be used for newly added methods in your extended class... Hope that helps. Jan On 1/4/06, Rifled Cloaca [EMAIL PROTECTED] wrote: Hi! I'm new to AS2, and I'm trying to convert some old AS1 code to AS2. This code uses XML.prototype to add functionality to the XML class (which is based on the XMLNode class, but you knew that already). I'm creating a new class like this: dynamic class core.EXML extends XML { } This new XML class has new properties in each of its nodes, so I add: dynamic class core.EXML extends XML { public var _MC:MovieClip; public var _parentMC:MovieClip; } But, unfortunately, since the EXML class inherits from the XML class, the nodes are of XMLNode class, not EXML class, so the nodes do not inherit the properties and methods I create in the new EXML class. So, my question is, how do I create a class that creates instances of itself, or say, an EXMLNode class that inherits from XMLNode? Any help is greatly appreciated. Thanks! -rc ___ 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] Pathfinding
franto wrote: http://www.franto.com/blog2/as3-pathfinder-in-big-mazes with as2 and as3 sources, in as3 it's 100 times faster :) Yeah, I'm resigned to having to rework my entire application once ActionScript 3 hits the general-purpose Flash Player level. Unfortunately, you can never just wait for the next big thing, because if you do, there'll just be another big thing on the horizon. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Lite Updater for Mac?
Michael Bedar wrote: Am I missing this somewhere? Please don't tell me that they are leaving Mac users out in the cold again... I'm sorry that you searched fruitlessly -- like other folks here said, the Preview version was released on one platform, and the full release will be for both Mac and Win. We're trying to get this vital info better-exposed on the Labs pages, but I'm sorry you got stung in the meantime. :( jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Anyone have a current link to XMLSA for AS2?
I have been looking and can't find any current links. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Anyone have a current link to XMLSA for AS2?
http://www.ifdnrg.com/XMLSA.as On 1/4/06, Chris Whiteford [EMAIL PROTECTED] wrote: I have been looking and can't find any current links. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ 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] standalone+amfphp doesn't work
What do you mean by full path? I have http://...etc../gateway.php; and its working in the browser in the same computer Anthony Covert wrote: Do you have a full path to your gateway in the Service Browser? You should be able to view the working service directly in flash. On Wed, 04 Jan 2006 17:34:54 +0100 Gabriel [EMAIL PROTECTED] wrote: Hi all, I have a standalone movie connecting to amfphp. It doesn't connect or have response from it, but it does if I open the swf with the browser... any idea? thanks a lot... Gab ___ 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