RE:[Flashcoders] Q:Animating a gradient
Maybe describe the effect a bit? http://motiondraw.com/md/as_samples/t/gradientEye/ Probably not what you want, it's not even Flash 8... HTH -- Andreas Weber motiondraw.com Hi Has anyone seen examples of animating a gradient in flash8? Recall seeing something as part of the original maelstrom demo, but having some difficulty reproducing the effect. Thanks in advance Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] detecting when mouse goes outside of the flash
Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Calc max radius of a circle
The difficult part of the question is that the circle is really a 3D object ie it can be rotate about the x or y axis. Do you mean rotate into the z axis? X and Y are still just 2-D spaces. 'rotating around the x-axis' is a perfectly reasonable statement for a 3D object: rotate something in the x-y plane by 90 degrees about the x-axis and it will end up in the x-z plane. Rotating around the z-axis would keep it in the same plane. You can't rotate a 2-d object about an axis at all, only a point. Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] detecting when mouse goes outside of the flash
P.S. to make it more reliable (but I realise you not happy with using browser code...would be to surrond the flash movie with a div and have a javascript listen for a on mouseover and call an fscommand or externalinterface call (depending on the version of flash). c. Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ 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] setVariable through javaScript and cross domain block
Hi I am using javaScript and setVariable to try and communicate between a html page with javascript on one domain (actually running a SCORM based LMS) and the Flash swfs and content on another. The Flash swfs load fine, they can call javascript functions, but the setVariable simply does not work to send data back. The whole system works if I am within one domain. But surely the html and javascript is actually running in my browser, so shouldn't the original domain that the html comes from be irrelevant? In detail: I am running http://www.host-for-noodles.com/moodle - which ends up loading an html page that loads a Flash object at http://www.clarityenglish.com. The Flash swf loads up and loads a variety of other swfs and xmls from this same domain. All this is good. The Flash swf then does a getURL to run a javascript from the original html page. This works OK. But when the javascript comes to run movie.setVariable simply nothing comes back to Flash. In Firefox I see a javascript NPObject error - in IE, simply nothing happens. (I googled for the Firefox error and see some evidence that this is a Firefox bug - so left if alone to see how IE did). I know that I ought to rewrite using at least the Flash/Javascript Integration kit, or better with ExternalInterface - but until that happens, does anyone have a definitive answer that what I am trying to do can't work - or clues as to how it should work? Many thanks Adrian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flashcoders Digest, Vol 10, Issue 84
correct Mani. At 2GoTo.com, we use an empty movie clip for the main infinitely large plane, then load movies onto it using x/y coordinates to position them - we have even been able to load x/y points in the 500,000 pixel range with no objections/problems from the players. Dave_Matthews -- Message: 10 Date: Mon, 21 Nov 2005 20:11:46 -0500 From: Manuel Saint-Victor [EMAIL PROTECTED] Subject: Re: [Flashnewbie] RE: Big wide flash surface -how big can my be? Thanks, That's exactly what I was wondering about. Mine won't be more than like 5 windows. So I'm guessing by you calling them internal windows that they are nested within one main movie clip that plays the role of the main navigator of sorts. That's the way I'm trying to do it right now. Thanks again, Mani On 11/18/05, dave matthews [EMAIL PROTECTED] wrote: hi Manuel, Flash can handle an infinitely large plane... :) The problem gets to be how does one navigate the thing. There is a working example of a Flash interface at our test bed: http://www.2GoTo.com This is just a test site, so you'll have to poke around the internal windows to find the duplicate window feature - it'll carry hundreds of internal windows, if you've got the ram. later, Dave_Matthews -- original message -- Message: 2 Date: Thu, 17 Nov 2005 17:31:54 -0500 From: Manuel Saint-Victor [EMAIL PROTECTED] Subject: Re: [Flashnewbie] Big wide flash surface -how big can my Flash file I was wondering as far as say a background rectangle that is predominately offstage - sorry I didn't think of that phrasing when I asked. I'm thinking like you would have in a racing game with a lot of the track not visible or a huge chalkboard that eases relative to mouse position M On 11/17/05, Merrill, Jason [EMAIL PROTECTED] wrote: As far as how big your Flash file can be, if you look in the HTML source of the site you posted, they just publish width=100% height=100%... Jason Merrill | E-Learning Solutions | icfconsulting.com http://icfconsulting.comhttp://icfconsulting.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] detecting when mouse goes outside of the flash
Yep was wondering if you had tried.sorry its the only answer I know of. c. Thanks Campbell. That code is though what I try to avoid, since it isn't 100% accurate. A quick move with the mouse and the code won't really detect that the cursor has left the flash area. The javascript-suggestion is nice of course, I have thought about that, but since it is a CMS and so on, it might not be an easy way to deal with that kind of implementation. Thanks anyway. To bad that their isn't a Stage.isMouseOver/out property. I thought macromedia would have made a solution to this somehow, since this has been a 'problem' since flash5. / martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Campbell Anderson Sent: den 23 november 2005 11:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] detecting when mouse goes outside of the flash P.S. to make it more reliable (but I realise you not happy with using browser code...would be to surrond the flash movie with a div and have a javascript listen for a on mouseover and call an fscommand or externalinterface call (depending on the version of flash). c. Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TLS negotiation with AS 3.0, is it possible?
Check with some of the guys making Jabber clientsas I think thats how Jabber authen. dont see why it wouldnt.just watch how your writing the stream from memory there are two asci write methods and one appends the stream length as the first two bytes. Cam. Hi, i'm working on a project that has a socket connections.. but i can't make a TLS negotiation with the server.. anyone has an idea about that? o.e.y. ___ 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] Calc max radius of a circle
The difficult part of the question is that the circle is really a 3D object ie it can be rotate about the x or y axis. Do you mean rotate into the z axis? X and Y are still just 2-D spaces. 'rotating around the x-axis' is a perfectly reasonable statement for a 3D object: rotate something in the x-y plane by 90 degrees about the x-axis and it will end up in the x-z plane. Rotating around the z-axis would keep it in the same plane. You can't rotate a 2-d object about an axis at all, only a point. Well, then, if you rotate a circle around the global x or y axis by 90 degrees (picture a coin standing on edge), the radius of the largest circle that would fit in a rectangular bounding box would be 1/2 the diagonal of that rectangle, or ((x^2 + y^2)^0.5)/2. ...because you can then rotate the circle around the global z axis until its local x-y plane is parallel to the diagonal of the rectangle. OP, is that what you were looking for? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] device fonts change renderin behaviour
when using device fonts f.ex. _sans i can see the alpha areas of png files. the funny thing is that the alpha areas are allready cut out because we have to develop for a 16bit color screen. Now with embeded fonts the alpha areas aren't as visible as when using device fonts. Does anyone know about this problem? or even better has a solution? problem is that we have to use device fonts due to performance reasons. Thanx for any help ;-) TLP ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Calc max radius of a circle
'rotating around the x-axis' is a perfectly reasonable statement for a 3D object: rotate something in the x-y plane by 90 degrees about the x-axis and it will end up in the x-z plane. Rotating around the z-axis would keep it in the same plane. You can't rotate a 2-d object about an axis at all, only a point. Well, I guess we're just arguing semantics then. You're still taking about moving part of the object out of x-y space and into the z space, or as you put it in your words, the x-z plane. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Wednesday, November 23, 2005 4:33 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Calc max radius of a circle The difficult part of the question is that the circle is really a 3D object ie it can be rotate about the x or y axis. Do you mean rotate into the z axis? X and Y are still just 2-D spaces. 'rotating around the x-axis' is a perfectly reasonable statement for a 3D object: rotate something in the x-y plane by 90 degrees about the x-axis and it will end up in the x-z plane. Rotating around the z-axis would keep it in the same plane. You can't rotate a 2-d object about an axis at all, only a point. Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Way to get URL of host page?
The end computer? The client computer of the person with the browser? Try looking up server variables. (here is a list of most of them: http://www.lib.washington.edu/asp/browser/servar.asp) (REMOTE_ADDR and REMOTE_HOST) I don't think there is any way of retrieving them unless you use a flashVars variable and some inline scripting.. [ASP] PARAM NAME=FlashVars VALUE=REMOTE_HOST=%=Request.ServerVariables(REMOTE_ADDR)% [ASP.NET - c#] PARAM NAME=FlashVars VALUE=REMOTE_HOST=%=Request.ServerVariables[ALL_HTTP]% [PHP] PARAM NAME=FlashVars VALUE=REMOTE_HOST=? echo $_ENV['REMOTE_HOST']; ? On 11/22/05, Rajat Paharia [EMAIL PROTECTED] wrote: As far as I can tell, mochibot will tell you the URL of the host of your Flash movie, but not where it's being viewed. And unfortunately javascript isn't an option. It needs to be completely Flash. Sounds like I'm out of luck... - rajat On 11/21/05, Robert Chyko [EMAIL PROTECTED] wrote: Haven't actually used this.. But it seemed pretty cool when I initially checked it out www.mochibot.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karthik Sent: Saturday, November 19, 2005 4:16 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Way to get URL of host page? I see. In that case, you should be able to get this done with a JS call that returns location.href etc. etc. hth -K On 19/11/05, Rajat Paharia [EMAIL PROTECTED] wrote: Thanks Karthik - I'm not trying to prevent it, I just want to log it for analysis purposes later. best, - rajat ___ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- www.neilhighley.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: detecting when mouse goes outside of the flash
hi Martin, If the panorama tool is a 'drag to pan' system and you need to detect the mouse release outside of the Flash area, try this: Place an invisible button over the entire dragged button, which might be the whole stage. Set this invisible button to goto a blank frame and stop on rollover, leaving the original panorama drag button to pick up it's rollover or onDown(and drag) signal from the cursor. For some reason this allows Flash to detect when the mouse is released outside of the player (out in the html page) and triggering the on release function of the dragged button - sending the dragged button back to it's starting (stopped) position, where it should also have a command to make sure the panning is halted. Have no idea why it works, but figured it out when trying to stop scrolling when cursor is released outside the player at: http://www.2GoTo.com... works great. If you can't get this to work, i can build an exact working example for you. Dave_Matthews --original messages-- Message: 12 Date: Wed, 23 Nov 2005 10:10:32 +0100 From: Martin Klasson [EMAIL PROTECTED] Subject: [Flashcoders] detecting when mouse goes outside of the flash Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin --- Message: 15 Date: Wed, 23 Nov 2005 23:02:20 +1300 From: Campbell Anderson [EMAIL PROTECTED] Subject: Re: [Flashcoders] detecting when mouse goes outside of the flash If you ever do a cursor replace in a flash movie you will see that when the cursor leaves the stage the cursor you create stays at the edge.. so Im pretty sure that you if you listen to the mouse position and it goest to within on pixel from the stage width its a safe bet it has gone out. a mouse listener: var xpos:Number; var ypos:Number; // Create a mouse listener object var mouseListener:Object = new Object(); // Every time the mouse cursor moves within the SWF file mouseListener.onMouseMove = function() { xpos = _xmouse; ypos = _ymouse; CheckPosition(xpos, ypos); }; function CheckPosition(_xpos:Number, _ypos:Number){ var _StageWidth:Number = Stage.width; var _StageHeight:Number = Stage.height; //have a buffer zone around the edge to give time to catch event var Buffer:Number = 10; //10 pixels if(xpos=(_StageWidth-Buffer) || ypos=(_StageHeight-Buffer) || xpos=Buffer || ypos=Buffer){ result_txt.text = out; } else{ result_txt.text = in; } } Mouse.addListener(mouseListener); stop(); you could use an on enterframe and a decent frame rate and it may get a better acuracy. The biggest problem is this isnt 100% but at least it gives you a starting point. -- Message: 14 Date: Wed, 23 Nov 2005 10:43:19 +0100 From: Hans Wichman [EMAIL PROTECTED] Subject: Re: [Flashcoders] detecting when mouse goes outside of the flash Hi, i had the same problem and approached it a little differently, which might be or not be of use to you. I simply check whether the mouse has moved or not. Your situation might be very different, but in mine I had to update the rotation in a panorama based on the mouse position within that panorama. If you'd mouse the out real quick, the panorama went spinning ;) and never stopped. So now return an dx/dy based on mouse position and altered by the amount of time the mouse hasnt moved. In effect if you move your mouse to the left in the panorama for example it will move quickly at first and slowly grind to a halt. Same thing happens when you move the mouse outside. Other that than no clue... greetz Hans -- Message: 16 Date: Wed, 23 Nov 2005 23:14:04 +1300 From: Campbell Anderson [EMAIL PROTECTED] Subject: Re: [Flashcoders] detecting when mouse goes outside of the flash P.S. to make it more reliable (but I realise you not happy with using browser code...would be to surrond
[Flashcoders] Porting SHA-1 implementation from Java to AS3
Hi list, Im porting a SHA-1 implementation from java to AS3 and theres a strange behaviour that I cant deal with, I really dont know if this is a Java or a Flash question, but here it goes. JAVA tracing int + blk + + + 0x5A827999 + + + ro + + + prev+ = + data[z] output int -67371266 + 1518500249 + 585074272 + 271733878 = -1987030163 FLEX tracing int + blk + + + 0x5A827999 + + + ro + + + prev+ = + data[z] output int -67371266 + 1518500249 + 585074272 + 271733878 = 2307937133 I know some arithematics enough to know that a first glance Flex is dealing right, but since this implementation works with Java I reall whant to know whats wrongh here. this is happening in the R0 function. Thankz in advance Heres the Java source http://www.icksys.com/rqb/fdbc/SHA1.java Heres the AS3 source http://www.icksys.com/rqb/fdbc/SHA1.as -- Cheers Tiago Janz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Distort bitmap in flash 8?
Quick question about Flash 8 (I'm still using Flash 7 and my trial has expired for 8)... Is it possible to actually distort a bitmap image now in the same way that you can distort a shape (modify - transform - distort)? I want to create a perspective look as though you are looking at a photograph that was placed on a table, with your eyes just above the edge of the table. Cheers. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Distort bitmap in flash 8?
The answer is still no... Frustrating eh? But this guy has some tricks up his sleeve... http://lab.andre-michelle.com/f7:%203d/3dimage.swf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Burvill Sent: Wednesday, November 23, 2005 11:10 AM To: 'Flashcoders mailing list' Subject: [Flashcoders] Distort bitmap in flash 8? Quick question about Flash 8 (I'm still using Flash 7 and my trial has expired for 8)... Is it possible to actually distort a bitmap image now in the same way that you can distort a shape (modify - transform - distort)? I want to create a perspective look as though you are looking at a photograph that was placed on a table, with your eyes just above the edge of the table. Cheers. ___ 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] AS3 - parse file
http://blog.andre-michelle.com/2005/as3-perspective-texturemapping/ - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 23, 2005 9:58 AM Subject: [Flashcoders] AS3 - parse file Hi, i'm trying new AS3 features, and want to try parse file... e.g 3ds (3dmax) file but have no clue, how to do it im try URLLoader, URLStream, but do not know, what on which event I should listen. Can someone help me? 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] Distort bitmap in flash 8?
I know I've just been looking at that, but still don't really have any idea how to go about it. :o( I haven't really looked much into the Flash 8 bitmap manipulation yet, and I can't quite work out how complicated it would be to do what need. I don't need to do any animation, just have a simple static view of an image. I'm guessing I need to use DisplacementMapFilter... Shaw, Matt wrote: The answer is still no... Frustrating eh? But this guy has some tricks up his sleeve... http://lab.andre-michelle.com/f7:%203d/3dimage.swf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Burvill Sent: Wednesday, November 23, 2005 11:10 AM To: 'Flashcoders mailing list' Subject: [Flashcoders] Distort bitmap in flash 8? Quick question about Flash 8 (I'm still using Flash 7 and my trial has expired for 8)... Is it possible to actually distort a bitmap image now in the same way that you can distort a shape (modify - transform - distort)? I want to create a perspective look as though you are looking at a photograph that was placed on a table, with your eyes just above the edge of the table. Cheers. ___ 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 -- *Mark Burvill* Interactive designer www.eyegas.com http://www.eyegas.com *Work:* 0117 953 0100 *Mobile*: 07780 608498 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] need 3D concept beginner guide
You might also find my book, Mathematics and Physics for Programmers, helpful if you're short on the maths side. It includes a good few chapters on 3d. http://www.amazon.com/gp/product/1584503300/104-6635299-8705521 Best Danny - Original Message - From: Johan Lopes [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 23, 2005 4:55 PM Subject: Re: [Flashcoders] need 3D concept beginner guide http://www.bit-101.com/tutorials/ http://www.bit-101.com/tutorials/3D-rotation.html or better yet buy Keith Peter's latest book here: http://www.amazon.co.uk/exec/obidos/ASIN/1590595181/qid=1132764539/sr=1-7/ref=sr_1_11_7/203-7263632-3094341 Also, check out http://www.actionscript.org for some great 3D tuts. I'm sure there's some more great 3d tutorials out there - just google it. HTH, /Johan On 11/23/05, Pandian [EMAIL PROTECTED] wrote: hi i want to create basic 3D objects ... Pls give some article upon it -Thanx Pandian ___ 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] need 3D concept beginner guide
have a look here too : http://www.kirupa.com/developer/actionscript/3dindex.htm On 11/23/05, Danny Kodicek [EMAIL PROTECTED] wrote: You might also find my book, Mathematics and Physics for Programmers, helpful if you're short on the maths side. It includes a good few chapters on 3d. http://www.amazon.com/gp/product/1584503300/104-6635299-8705521 Best Danny - Original Message - From: Johan Lopes [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 23, 2005 4:55 PM Subject: Re: [Flashcoders] need 3D concept beginner guide http://www.bit-101.com/tutorials/ http://www.bit-101.com/tutorials/3D-rotation.html or better yet buy Keith Peter's latest book here: http://www.amazon.co.uk/exec/obidos/ASIN/1590595181/qid=1132764539/sr=1-7/ref=sr_1_11_7/203-7263632-3094341 Also, check out http://www.actionscript.org for some great 3D tuts. I'm sure there's some more great 3d tutorials out there - just google it. HTH, /Johan On 11/23/05, Pandian [EMAIL PROTECTED] wrote: hi i want to create basic 3D objects ... Pls give some article upon it -Thanx Pandian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] detecting when mouse goes outside of the flash
I never found a good solution, either, without using code in the HTML page. I even tried setting a clip to look for the mouse and execute a function if the mouse wasn't found, but that failed (for reasons you explain). If you can keep your buttons away from the edges of the movie, you can use an underlying button or an onMouseMove action to detect when the mouse is in that marginal area. You need a fast enough frame rate so the mouse position is captured during the time it passes over the marginal area. Someone with very fast mouse movement will probably be able to defeat this. Marc At 01:10 AM 11/23/2005, you wrote: Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating a button class entirely in 2.0 with no symbol association, possible?
I'm doing this all the time I've made tonns of different inputs fro diferent projects and finally I am planing to code some fullscale AS2 only UI collection. Thats done like this: class myButton { private var mc:MovieClip; function myButton(host:MovieClip, level:Number){ mc= host.createEmptyMovieClip(myButton+level, level); } } In this case all drawing is done by variable mc. 2005/11/23, Ian Thomas [EMAIL PROTECTED]: Oops, last line should be: var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName, somRandomButton, myTimeline.getNextHighestDepth())); Assuming myTimeline is whatever you're trying to attach the button to... Ian On 11/23/05, Ian Thomas [EMAIL PROTECTED] wrote: Hi Boon, Can't remember where I got this solution - definitely not mine - but here's how to create a MovieClip-derived class that doesn't need an associated library symbol: -- class net.something.MyButton extends MovieClip { static var symbolName:String = __Packages.net.something.MyButton ; static var symbolOwner:Function = MyButton; public function MyButton() { } static var symbolLinked=Object.registerClass(symbolName, symbolOwner); } -- To create it, use attachMovie: import net.something.MyButton; var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName, somRandomButton,getNextHighestDepth())); HTH, Ian ___ 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] Way to get URL of host page?
I needed to find this info as well and tried this.url but that only returns the location of the swf not the html page the swf is in. I made a sample to mess around with this issue... I had to use javascript to get the href and pass it to Flash. I do this onLoad but incase the user has popups blocked there is an html link on the page to send the var to flash. http://www.thespikeranch.com/test/about.html Gerry On Nov 23, 2005, at 12:54 PM, Keith DiMatteo wrote: this.url The end computer? The client computer of the person with the browser? Try looking up server variables. (here is a list of most of them: http://www.lib.washington.edu/asp/browser/servar.asp) (REMOTE_ADDR and REMOTE_HOST) I don't think there is any way of retrieving them unless you use a flashVars variable and some inline scripting.. On 11/22/05, Rajat Paharia [EMAIL PROTECTED] wrote: As far as I can tell, mochibot will tell you the URL of the host of your Flash movie, but not where it's being viewed. And unfortunately javascript isn't an option. It needs to be completely Flash. Sounds like I'm out of luck... - rajat On 11/21/05, Robert Chyko [EMAIL PROTECTED] wrote: Haven't actually used this.. But it seemed pretty cool when I initially checked it out www.mochibot.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karthik Sent: Saturday, November 19, 2005 4:16 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Way to get URL of host page? I see. In that case, you should be able to get this done with a JS call that returns location.href etc. etc. hth -K On 19/11/05, Rajat Paharia [EMAIL PROTECTED] wrote: Thanks Karthik - I'm not trying to prevent it, I just want to log it for analysis purposes later. best, - rajat ___ ___ 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] Way to get URL of host page?
That's utterly useless in attempts to foil an swf that is used by way of someone else's html on another server... it is good information but can't be used the way that it would be most desirable. Flash needs to have this ability natively through the ocx.. without the dependence of html javascript, and until this is put in by MM, will continue to be a problem for all of us. -Jayson -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Gerry Creighton Sent: Wednesday, November 23, 2005 1:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Way to get URL of host page? I needed to find this info as well and tried this.url but that only returns the location of the swf not the html page the swf is in. I made a sample to mess around with this issue... I had to use javascript to get the href and pass it to Flash. I do this onLoad but incase the user has popups blocked there is an html link on the page to send the var to flash. http://www.thespikeranch.com/test/about.html Gerry On Nov 23, 2005, at 12:54 PM, Keith DiMatteo wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Way to get URL of host page?
I agree... I wanted a way to display certain content in Flash dependent on what html page was delivered to the viewer without adding FlashVars code to the html page. So what use is this.url if it only shows me the path to the swf? None really. I could be wrong though...in which case I would like to be enlightened. Gerry ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer ... On Nov 23, 2005, at 1:23 PM, Jayson K Hanes wrote: That's utterly useless in attempts to foil an swf that is used by way of someone else's html on another server... it is good information but can't be used the way that it would be most desirable. Flash needs to have this ability natively through the ocx.. without the dependence of html javascript, and until this is put in by MM, will continue to be a problem for all of us. -Jayson -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Gerry Creighton Sent: Wednesday, November 23, 2005 1:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Way to get URL of host page? I needed to find this info as well and tried this.url but that only returns the location of the swf not the html page the swf is in. I made a sample to mess around with this issue... I had to use javascript to get the href and pass it to Flash. I do this onLoad but incase the user has popups blocked there is an html link on the page to send the var to flash. http://www.thespikeranch.com/test/about.html Gerry On Nov 23, 2005, at 12:54 PM, Keith DiMatteo wrote: ___ 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] detecting when mouse goes outside of the flash
I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even better - 2 such frames,- say, 1 and 2 px from the edge of the stage. Then it can work as follows: 1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if it'll cross other right after this. Then: 2) If inner-then-outer = likely it goes outside; if outer-then-inner = likely it came back. 3) You can use vars (boolean) like hasCrossedInner etc. Hope this can help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. At 10:10 AM 11/23/2005, Martin Klasson wrote: Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] detecting when mouse goes outside of the flash
The problem with all these look for mouse within 1 to 2 pixels of the border solutions, is that moving the mouse, even at a moderate speed, makes it move by 10 or more pixels at a time. -David R On 11/23/05, Gregory_GOusable [EMAIL PROTECTED] wrote: I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even better - 2 such frames,- say, 1 and 2 px from the edge of the stage. Then it can work as follows: 1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if it'll cross other right after this. Then: 2) If inner-then-outer = likely it goes outside; if outer-then-inner = likely it came back. 3) You can use vars (boolean) like hasCrossedInner etc. Hope this can help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. At 10:10 AM 11/23/2005, Martin Klasson wrote: Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ 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] Blitting, Double-Buffering, and Other Bitmap Methodologies
There's a good series of articles on gamedev.net :) http://www.gamedev.net/reference/list.asp?categoryid=45#200 The Game Programming Genesis series. In a lot of cases the 'magical render' is performed by a render manager, the entities themselves dont do rendering, they are maintained in a list (perhaps in a World class) and the render manager just redraws whatever is on the list. Or you could set it up so the renderer orchestrates the rendering of the entities, i.e. it scans the active display list and calls draw() on an entity that survives the clipping tests. martin JesterXL wrote: ...here's where things break down for me. I'm not used to coding like this, so don't really know the best pratice ways to go about it. For example: - how do I handle depth? last draw wins, so do I manage depth myself? - how do I handle move, and x and y change operations? They don't affect the bitmap the sprite is blitting to, but they do affect the one they are on... events the parent listens to maybe? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Blitting, Double-Buffering, and Other Bitmap Methodologies
I wish someone on the forum had said read this article on this very site when I posted there, hahah! Thanks a bunch for the link! - Original Message - From: Martin Wood [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 23, 2005 2:35 PM Subject: Re: [Flashcoders] Blitting, Double-Buffering,and Other Bitmap Methodologies There's a good series of articles on gamedev.net :) http://www.gamedev.net/reference/list.asp?categoryid=45#200 The Game Programming Genesis series. In a lot of cases the 'magical render' is performed by a render manager, the entities themselves dont do rendering, they are maintained in a list (perhaps in a World class) and the render manager just redraws whatever is on the list. Or you could set it up so the renderer orchestrates the rendering of the entities, i.e. it scans the active display list and calls draw() on an entity that survives the clipping tests. martin JesterXL wrote: ...here's where things break down for me. I'm not used to coding like this, so don't really know the best pratice ways to go about it. For example: - how do I handle depth? last draw wins, so do I manage depth myself? - how do I handle move, and x and y change operations? They don't affect the bitmap the sprite is blitting to, but they do affect the one they are on... events the parent listens to maybe? ___ 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] Blitting, Double-Buffering, and Other Bitmap Methodologies
Hi Jesse, I've seen some pretty good samples in André Michelle's blog (http://blog.andre-michelle.com/), and I even think some of his bitmap rendering source can be found here: http://session.andre-michelle.com/fl8.session.2005.zip I know I'm not really answering your question, but it might be good for some inspiration. Note: I think the samples are done for FP8. Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] detecting when mouse goes outside of the flash
A 1-pixel wide area is not likely to capture a rollOver. Here's a .swf to test how wide a button needs to be to capture a rollOver: http://www.dartfrogmedia.com/buttonTest - Marc At 10:42 AM 11/23/2005, you wrote: I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even better - 2 such frames,- say, 1 and 2 px from the edge of the stage. Then it can work as follows: 1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if it'll cross other right after this. Then: 2) If inner-then-outer = likely it goes outside; if outer-then-inner = likely it came back. 3) You can use vars (boolean) like hasCrossedInner etc. Hope this can help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. At 10:10 AM 11/23/2005, Martin Klasson wrote: Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ 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] AFLAX...
Hi, I'm new to this mailing list, so first, hello. Second, I wanted to tell you about my open source project, AFLAX. Simply put, AFLAX is a JavaScript library that lets you fully utilize Flash. That is, you write EVERYTHING in JavaScript, both Flash and non-Flash code, which makes it super-easy to interoperate with the HTML page, other JavaScript functions, etc. I've put a bunch of demos online, including sockets, video, audio, drawing, and other goodies. Check it out at http://www.aflax.org http://www.aflax.org/ Thanks, Paul Colton ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Detecting when a swf loses focus
Basically, the event is onBlur Yes, if you've followed the discussion you'd know that onBlur is has been the attempted solution. It just doesn't work when Flash has focus ... the browser seems to miss the onblur if you click on Flash (giving it focus) and then click outside the window (when the onblur should trigger) has no one had experience overcoming this? Tyler On 11/11/05, Steven Sacks [EMAIL PROTECTED] wrote: There is code out there used to fake modal dialogs in a browser that checks if a browser window loses focus and forces the window to take focus again. Really, a google search will help you on your way. Writing JS isn't too difficult if you know AS1. http://www.eggheadcafe.com/articles/javascript_modal_dialog.asp Basically, the event is onBlur. body onBlur=myLoseFocusFunction(); function myLoadFocusFunction() { -- tell flash something if you want -- or handle it directly in the browser -- like alert(You have attempted # times to exit the test); -- and on the threshold, you can load another page that doesn't have -- the flash anymore } I'm sure there's an easy solution to what you're trying to do. -Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tyler Wright Sent: Friday, November 11, 2005 2:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Detecting when a swf loses focus We are looking for a solution to this issue as well. It would be a great help in DRM (Digital Rights Management) to keep not just test takers honest. Anyone yet have a strong enough knowledge of the browser and JavaScript to crack this one? Tyler On 11/8/05, Muzak [EMAIL PROTECTED] wrote: Mmmm, mind explaining the buggy, unstable and CPU hogging? If you have any problems with screenweaver you can always join the mailing list or visit the forum: http://osflash.org/mailman/listinfo/screenweaver_osflash.org http://www.screenweaver.org/forums/index.php regards, Muzak - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Tuesday, November 08, 2005 11:00 PM Subject: RE: [Flashcoders] Detecting when a swf loses focus Use a 3rd party wrapper like mProjector. http://www.binarynoise.com/ Way better than the buggy, unstable and CPU hogging Screenweaver. -Steven ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Attaching combobox inside of class
I get a combobox that looks like a blank textfield using function below: private function buildCombo() { //create page combobox used to toggle between pages var pageToggler_cb = target.createClassObject(mx.controls.ComboBox, pageSelector, target.getNextHighestDepth()); pageToggler_cb.dataProvider = [hello, there, sailor]; } } It seems like the component is currupted but if I do a simple test in another .fla: var combo_cb = this.createClassObject(mx.controls.ComboBox, combo, 1); combo_cb.dataProvider = [hello, there]; It works? Any ideas? Tia -dan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Component order: Adding event handlers ?
Where is the proper place in a component to add event handlers? class constructor init createChildren draw onLoad ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Component order: Adding event handlers ?
By multiple I mean duplicated. The list is speedy today! Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Hyndman Sent: Wed 11/23/2005 6:47 PM To: Flashcoders mailing list Cc: Subject:RE: [Flashcoders] Component order: Adding event handlers ? You're adding event handlers on child components? If so, it would make sense to do it in createChildren. None of the other choices are appropriate, since init, the constructor and onLoad are called before createChildren, and draw is called more than once (you don't want multiple event handlers). Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Wade Arnold Sent: Wed 11/23/2005 5:52 PM To: Flashcoders mailing list Cc: Subject:[Flashcoders] Component order: Adding event handlers ? Where is the proper place in a component to add event handlers? class constructor init createChildren draw onLoad ___ 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] detecting when mouse goes outside of the flash
i did something in javascript that sent the data into flash onMouseMove, which worked very well. especially if the flash movie is on a fixed position. i can't seem to find the code now though. kalle On 11/23/05, Marc Hoffman [EMAIL PROTECTED] wrote: A 1-pixel wide area is not likely to capture a rollOver. Here's a .swf to test how wide a button needs to be to capture a rollOver: http://www.dartfrogmedia.com/buttonTest - Marc At 10:42 AM 11/23/2005, you wrote: I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even better - 2 such frames,- say, 1 and 2 px from the edge of the stage. Then it can work as follows: 1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if it'll cross other right after this. Then: 2) If inner-then-outer = likely it goes outside; if outer-then-inner = likely it came back. 3) You can use vars (boolean) like hasCrossedInner etc. Hope this can help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. At 10:10 AM 11/23/2005, Martin Klasson wrote: Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ 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 -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Spinning wheel
Check out Flade: http://www.cove.org/flade/default.aspx HTH Alias On 11/23/05, Eric E. Dolecki [EMAIL PROTECTED] wrote: before i code one up myself - does anyone have the basic math for a wheel of fortune type of spinning wheel? if it had a flapper that would be a bonus. otherwise i can just randomize the total time of spin, and let er rip, slowing the rotation down over time. random number of possible hits on the wheel. edolecki ___ 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] Post awaiting for approval[OT]
when you right-clickzoom in and then (once you a find a place where a Flash right-click menu will pop up, which is hard) right-clickshow all, it doesn't show the entire view. On 11/22/05, David Peek [EMAIL PROTECTED] wrote: http://david.peek.ws/spark/ just need an opinion. No. HTH, Alias On 11/22/05, Tiago Vale [EMAIL PROTECTED] wrote: Hi list, I've sent a post to osflash and flashcoders(hope its not spamming) list but it seems its too big, can I send the example sources as attachement? -- Cheers Tiago Janz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating a button class entirely in 2.0 with no symbol association, possible?
Thanks Janis. The problem with doing it below is that you cannot change _x, _y directly on the mc like you can with a regular movieclip. var b = new myButton(); b._x = 200; -- won't work Janis Radins [EMAIL PROTECTED] wrote: I'm doing this all the time I've made tonns of different inputs fro diferent projects and finally I am planing to code some fullscale AS2 only UI collection. Thats done like this: class myButton { private var mc:MovieClip; function myButton(host:MovieClip, level:Number){ mc= host.createEmptyMovieClip(myButton+level, level); } } In this case all drawing is done by variable mc. 2005/11/23, Ian Thomas : Oops, last line should be: var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName, somRandomButton, myTimeline.getNextHighestDepth())); Assuming myTimeline is whatever you're trying to attach the button to... Ian On 11/23/05, Ian Thomas wrote: Hi Boon, Can't remember where I got this solution - definitely not mine - but here's how to create a MovieClip-derived class that doesn't need an associated library symbol: -- class net.something.MyButton extends MovieClip { static var symbolName:String = __Packages.net.something.MyButton ; static var symbolOwner:Function = MyButton; public function MyButton() { } static var symbolLinked=Object.registerClass(symbolName, symbolOwner); } -- To create it, use attachMovie: import net.something.MyButton; var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName, somRandomButton,getNextHighestDepth())); HTH, Ian ___ 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 - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML tag r not working
I guess that an HTML enabled text field means that there would probably be multi-fonts used. so flash doesn't know which font to embed. can anyone make a solution? 2005/11/24, Pandian [EMAIL PROTECTED]: HTML tags are not supported when the font of Text field is embedded. Wat may be the prob.. -Pandian ___ 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] FlashCommand fails to fail
I'm using Mike Chambers FlashCommand to compile multiple files in one go with ant from within Eclipse. However, if one of my .fla files generates an error, compiling continues on to the next file. I'm using the failonerror attribute in the execute tag exec executable=${flash.command} failonerror=true, but the FlashCommand fails to fail. Also, the error output is not appearing in the console view. Does any one have any ideas? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders