Re: [Flashcoders] FocusManager
I finally figured it out! When you press on an element in a component you don't call setFocus, but pressFocus() instead! And don't forget the releaseFocus() as well. This sets a fake focus on component and a true focus on the element so that you're still able to interact with the element. Man that was a tough problem with almost no information about it anywhere. If anyone is looking for more info on the subject, see UIComponent's methods: . setFocus() . getFocus() . pressFocus() . releaseFocus() . onSetFocus(oldFocus) . onKillFocus(newFocus) 2007/8/22, Bart Wttewaall <[EMAIL PROTECTED]>: > Well, I'd be truly surprised if that would work, but I'l try tomorrow > when I'm at work again :) > Thanks for the tip. > > Bart > > 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > > Go ahead and try that and I bet it will work. > > > > Bart Wttewaall wrote: > > > Thanks for replying John, > > > > > > But no, I never use _root, nor _level. > > > I'm calling this from a clickHandler within my component's class. > > > Like this (pseudocode): > > > > > > class Joystick extends UIComponent { > > > > > > ... > > > > > > public function init() { > > > ... > > > tabEnabled = true; > > > tabChildren = false; > > > ... > > > } > > > > > > private function onRelease() { > > > getFocusManager().setFocus(this); > > > } > > > > > > } > > > > > > 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > > > > > >> Are you using calling this relative to _root or _level0? > > >> _root.focusManager.setFocus > > >> > > >> Bart Wttewaall wrote: > > >> > > >>> Hi list, > > >>> > > >>> I'm having trouble with the focusmanager. I created a Joystick > > >>> component that should be able to receive focus using the tab-key > > >>> (tabIndex) or by clicking it. > > >>> > > >>> Since it extends UIComponent, implementing the tabIndex version is > > >>> easy; at init, set tabEnabled to true and tabChildren to false. > > >>> > > >>> Now when the user clicks the component, it should also receive focus. > > >>> I've tried to call setFocus(this) or getFocusManager().setFocus(), but > > >>> the result is no focus, and worse, the joystick element with which you > > >>> control the component stops functioning as if the mouse is ignored. > > >>> > > >>> Does anyone have an example or a good source about the FocusManager? > > >>> Thanks in advance. > > >>> > > >>> Bart Wttewaall > > >>> ___ > > >>> Flashcoders@chattyfig.figleaf.com > > >>> To change your subscription options or search the archive: > > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > >>> > > >>> Brought to you by Fig Leaf Software > > >>> Premier Authorized Adobe Consulting and Training > > >>> http://www.figleaf.com > > >>> http://training.figleaf.com > > >>> > > >>> > > >>> > > >> ___ > > >> Flashcoders@chattyfig.figleaf.com > > >> To change your subscription options or search the archive: > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > >> > > >> Brought to you by Fig Leaf Software > > >> Premier Authorized Adobe Consulting and Training > > >> http://www.figleaf.com > > >> http://training.figleaf.com > > >> > > >> > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FocusManager
Well, I'd be truly surprised if that would work, but I'l try tomorrow when I'm at work again :) Thanks for the tip. Bart 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > Go ahead and try that and I bet it will work. > > Bart Wttewaall wrote: > > Thanks for replying John, > > > > But no, I never use _root, nor _level. > > I'm calling this from a clickHandler within my component's class. > > Like this (pseudocode): > > > > class Joystick extends UIComponent { > > > > ... > > > > public function init() { > > ... > > tabEnabled = true; > > tabChildren = false; > > ... > > } > > > > private function onRelease() { > > getFocusManager().setFocus(this); > > } > > > > } > > > > 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > > > >> Are you using calling this relative to _root or _level0? > >> _root.focusManager.setFocus > >> > >> Bart Wttewaall wrote: > >> > >>> Hi list, > >>> > >>> I'm having trouble with the focusmanager. I created a Joystick > >>> component that should be able to receive focus using the tab-key > >>> (tabIndex) or by clicking it. > >>> > >>> Since it extends UIComponent, implementing the tabIndex version is > >>> easy; at init, set tabEnabled to true and tabChildren to false. > >>> > >>> Now when the user clicks the component, it should also receive focus. > >>> I've tried to call setFocus(this) or getFocusManager().setFocus(), but > >>> the result is no focus, and worse, the joystick element with which you > >>> control the component stops functioning as if the mouse is ignored. > >>> > >>> Does anyone have an example or a good source about the FocusManager? > >>> Thanks in advance. > >>> > >>> Bart Wttewaall > >>> ___ > >>> Flashcoders@chattyfig.figleaf.com > >>> To change your subscription options or search the archive: > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >>> > >>> Brought to you by Fig Leaf Software > >>> Premier Authorized Adobe Consulting and Training > >>> http://www.figleaf.com > >>> http://training.figleaf.com > >>> > >>> > >>> > >> ___ > >> Flashcoders@chattyfig.figleaf.com > >> To change your subscription options or search the archive: > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > >> Brought to you by Fig Leaf Software > >> Premier Authorized Adobe Consulting and Training > >> http://www.figleaf.com > >> http://training.figleaf.com > >> > >> > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FocusManager
Thanks for replying John, But no, I never use _root, nor _level. I'm calling this from a clickHandler within my component's class. Like this (pseudocode): class Joystick extends UIComponent { ... public function init() { ... tabEnabled = true; tabChildren = false; ... } private function onRelease() { getFocusManager().setFocus(this); } } 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > Are you using calling this relative to _root or _level0? > _root.focusManager.setFocus > > Bart Wttewaall wrote: > > Hi list, > > > > I'm having trouble with the focusmanager. I created a Joystick > > component that should be able to receive focus using the tab-key > > (tabIndex) or by clicking it. > > > > Since it extends UIComponent, implementing the tabIndex version is > > easy; at init, set tabEnabled to true and tabChildren to false. > > > > Now when the user clicks the component, it should also receive focus. > > I've tried to call setFocus(this) or getFocusManager().setFocus(), but > > the result is no focus, and worse, the joystick element with which you > > control the component stops functioning as if the mouse is ignored. > > > > Does anyone have an example or a good source about the FocusManager? > > Thanks in advance. > > > > Bart Wttewaall > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FocusManager
Hi list, I'm having trouble with the focusmanager. I created a Joystick component that should be able to receive focus using the tab-key (tabIndex) or by clicking it. Since it extends UIComponent, implementing the tabIndex version is easy; at init, set tabEnabled to true and tabChildren to false. Now when the user clicks the component, it should also receive focus. I've tried to call setFocus(this) or getFocusManager().setFocus(), but the result is no focus, and worse, the joystick element with which you control the component stops functioning as if the mouse is ignored. Does anyone have an example or a good source about the FocusManager? Thanks in advance. Bart Wttewaall ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] which Symbol?
Hi Karim, When building components, the first three (static) variables usually define the symbolName, symbolOwner and className. If you add them to your own class, then you're done. Get the linkageID by calling Classname.symbolName; Of course you should use the same identifier that you set in your class. Bart 2006/12/4, karim beyrouti <[EMAIL PROTECTED]>: Hi All... I don't think this is possible, but just thought I'd ask if it's possible to get the linkageID of a symbol that a class is assigned to?.. Cheers - karim -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.15.2/559 - Release Date: 30/11/2006 05:07 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Weak bounce easing equation
You can control the quantity of the bounce to some extend by using the last two optional arguments in Elastic. I played with them for a bit, but couldn't tweak it to the point where it behaves as the animation you described. Hope it helps.. Godd luck! -- code -- import mx.transitions.Tween; import mx.transitions.easing.Elastic; var obj = mc; var time = 0; var prop = "_x"; var begin = obj[prop]; var end = begin + 400; var change = end-begin; var duration = 5; var fps = 31; var done = false; var a = change * 2; // looks like some sort of multiplier on the swing var p = (duration*fps) * 0.3; // magnetic force (lower = faster) onEnterFrame = function() { if (time < duration*fps) { obj[prop] = Elastic.easeOut(time++, begin, change, duration*fps, a, p); } else { time = 0; } } 2006/10/5, Mendelsohn, Michael <[EMAIL PROTECTED]>: You could probably tween something using the None easing method for a long distance, giving it linear movement, then when the tween is done, call onMotionFinished, and give it a new tween, but this time, over a short distance, and with bounces. I don't think you can control the amount of bounces. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] OS style command prompt
I've created a light version of DOS in flash a few months ago :P It works with a commandline pretty much as how you described your application. In my case the first word of the command typed in was a method, optional attributes were the arguments. It was first filtered, then sent to the class's __resolve method. There it called the function, if available, with the optional arguments. At the bottom of this page you can try it out: http://portfolio.mediamonkey.nl/Misc/Misc.html If you're interested I could send you some code. Greets, Bart 2006/8/22, Palmer, Jim <[EMAIL PROTECTED]>: I have yet to battle with manifesting something of the sort. I really like your idea of using a variable watch. I've had much better luck capturing keys on just pure movie clips. I think you have greater control over user input if you're using a MovieClip.onKeyDown instead of capturing input on a TextField.type='input'. You could have a root movieclip that contains the onkeydown event handler as well as a textfield.type='static' that you could render every new character. cut and paste might be an issue. holding the key down might be an issue (could resolve with chained setinterval()). I'm sure there are other caveats that might be encountered with trying to simulate a textfield.type='input' but I think it might be a viable option. -- Jim Palmer ! Mammoth Web Operations > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Dan > Efergan > Sent: Tuesday, August 22, 2006 10:19 AM > To: Flashcoders mailing list > Subject: [Flashcoders] OS style command prompt > > > The other post "Word Processor in Flash" reminded me of a problem I > had a while back which I'm sure someone on this list would have an > idea how to get round. > > I was trying to build a Flash application that behaved much like a > command line OS. So it consisted of an input text field, which > printed text and waited for commands to be written into it before > performing certain procedures. > > The crux of the problem involved catching input commands, such as > delete, enter etc, before they were applied to the Text field itself > so they could be interpreted and more importantly controlled. > > I tried running a watch on the textfield variable, which so nearly > let me do everything I wanted but wouldn't allow me to disallow the > functionality (delete would still delete even though you got > a chance > to view the changes before they were applied). > > Does anyone have examples of this kind of functionality already > built? I assume a constant updated variable of the content must be > created to allow switching back to previous states if the user does > something that's not allowed. A running example would be a > great help. > > Thanks, > > Dan Efergan > [EMAIL PROTECTED] > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: Flashcoders Digest, Vol 19, Issue 63
Wouter, wil je flashcoders uit je auto-respond lijst halen? 2000+ mensen zitten daar niet op te wachten ;) Groeten, Bart 2006/8/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Geachte heer/mevrouw, Ik ben t/m 25 augustus afwezig. Ik zal uw mail daarna zo snel mogelijk in behandeling nemen. Voor dringende zaken met betrekking tot WEBclusive kunt u ons kantoor bellen op het volgende nummer: 070-3699 817 Met vriendelijke groet, Wouter van Vliet WEBclusive ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Capped MovieClip._rotation, what can be done?
Just as I thought.. Whoever thought that up should have a good spanking! It might be sufficient for small movieclips, but it's quite noticable with large movieclips such as a page in my application that measures almost half of the Stage. Makes me wonder though; how about a line being drawn at such an angle? Will that line be capped as well? -probably not- I'm reluctant to change my application so that each page, shadow and mask will be drawn each frame instead of attaching once and rotate them each frame since this will be a enormous extra strain on the CPU. I'd like everyones creative input on this subject! Thanks, Bart Wttewaall 2006/8/21, Mike Cobb <[EMAIL PROTECTED]>: - As I understand it, flash is limited to rotating objects in steps of 0.1 degrees. Bart Wttewaall wrote: > Hi Flashcoders, > > I've been busy recreating the famous PageFlip application and I've > noticed something weird. It seems that movieclips have a limitation to > their rotation. When I turn over a page in the application, there are > visible errors in the shadows and masks that make this page up. They > flicker left and right when dragging the page, due to their capped > _rotation property. > > Wanna see for yourself? Paste this on your root, then create a rather > wide movieclip (name = mc) and set the fps to 99 for a visible > demonstration: > > var rot = 0; > onEnterFrame = function() { > rot += 0.01; > mc._rotation = rot; > } > > You'll notice that the movieclip won't rotate smoothly, but rather > tick like a clock, skipping angles. > > I've already accepted that there's nothing that can be done about > this, but just to be sure I'd like to ask if anyone has had trouble > with this in their application and what you did about it, either to > mask it up or actually solve this problem. > > With regards, > Bart Wttewaall > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor House, Belgrave Lane, Plymouth, PL4 7DA, UK. - I've got a new e-mail address: [EMAIL PROTECTED] Please update your address book. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Capped MovieClip._rotation, what can be done?
Hi Flashcoders, I've been busy recreating the famous PageFlip application and I've noticed something weird. It seems that movieclips have a limitation to their rotation. When I turn over a page in the application, there are visible errors in the shadows and masks that make this page up. They flicker left and right when dragging the page, due to their capped _rotation property. Wanna see for yourself? Paste this on your root, then create a rather wide movieclip (name = mc) and set the fps to 99 for a visible demonstration: var rot = 0; onEnterFrame = function() { rot += 0.01; mc._rotation = rot; } You'll notice that the movieclip won't rotate smoothly, but rather tick like a clock, skipping angles. I've already accepted that there's nothing that can be done about this, but just to be sure I'd like to ask if anyone has had trouble with this in their application and what you did about it, either to mask it up or actually solve this problem. With regards, Bart Wttewaall ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTML Parser with Flash
http://www.osflash.org/deng Here you go ;) 2006/7/19, Mike <[EMAIL PROTECTED]>: XHTML or HTML 4.0? If the former, you can just use the XML object. If the latter ... have fun -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sara Czyzewicz Sent: Wednesday, July 19, 2006 1:46 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] HTML Parser with Flash Fellow Flashcoders, I'm looking for a way of parsing through an HTML page using ActionScript. Would be greatly appreciated if someone could point me in some direction... thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Techniques to disable/enable "debug mode"
When using XRay for debugging, I usually make use of a debug-boolean, like so: var debug:Boolean = true; function something() { if (debug) _global.tt("Error"); } Sure, it costs an extra statement to be examined, even when debug is set to false, but the usability weighs higher then that little bit of extra performence. 2006/7/18, Marcelo de Moraes Serpa <[EMAIL PROTECTED]>: I´ve been having some weird problems with my website and among them were rendering problems, slowdown, data downloading stopping without any reason (you may have seen my previous posts about this one) and so on. I struggled to find out that all these were side-effects of the massive use of Luminic Box Logger. While this tool is extremelly useful, it can KILL your application if you forget all those calls through your code. What I did was to go through each file and comment out all the logger references and recompile the swfs that this time worked like a charm, much faster and without glitches and unknown "bugs". What techniques do you use to make your debugger life easier? Please share your thoughts! And remember to disable traces and othter loggers when deploying your app! Cheers, - Marcelo. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Saving a swf with all the assets
Nope. Just load all your assets in the library and rewrite your code so it doesn't load, but uses attachMovie to get to the assets. Good luck, Bart 2006/7/18, mahesh kokadwar <[EMAIL PROTECTED]>: Hi All, Is there a way by which I can save a swf file with all the assets loaded into it at runtime? I want a single swf to be saved with the assets embeded into it. (similer thing like Flashpaper) Can it be achieved using .net or any other tool? TIA Mahesh ___ Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] > I want new Flash 8!
Don't get me started on FlexBuilder... There is no auto-format and I've experienced some weird error-reporting on totally valid code. The trick seems to be to comment the problematic code, wait 10 minutes for the builder to pass through the code (saving doesn't work), then uncomment the code, and it works.. pshhh... Syntaxcollors get messed up too from time to time. 2006/7/16, Michael Bedar <[EMAIL PROTECTED]>: There are a few issues that are annoying.. although I am not sure if they are mac-only.. One that drives me crazy is that sometimes auto-format won't work on valid code.. I've run into this a lot when decaring vars of custom types that are in packages.. as said, the redraw in the script window can get funky too.. sometimes it gets into a state where the ends of words get chopped off. These annoyances are small however - at the end of that day I'd rather have FlexBuilder than have these issues resolved. Mike On Jul 16, 2006, at 5:08 PM, Aaron Buchanan wrote: > I have noticed quite a few issues with focus. When I jump to another > program, I can click something on the stage of my project and it > will update > the props panel and actions, and bring flash up, but the focus > stays on the > other app, so I cannot modify anything until I click the flash logo. > > Would also, really like to stop restarting flash after activating > fonts :) > > I'm on a quad g4, and a dual g4 runnin' 10.4.6 > > Best! > Aaron > > > On 7/16/06 1:58 PM, "Rich Rodecker" <[EMAIL PROTECTED]> wrote: > >> errr..i have a a working copy of flash 8 an all of my macs. i >> actually dont think even even heard about any buginess in the flash 8 >> ide on macsespecially not to the level of needing an 8.2 release. >> what kinds of issues are you having? >> >> >> >> On 7/16/06, Weyert de Boer <[EMAIL PROTECTED]> wrote: >>> Totally off topic, totally boring to read for you of course. But >>> I would >>> love to have a /working/ Flash 8 IDE on the MacOSX. It's acting >>> goofy on >>> my Mac. What about releasing Flash 8.2 in the lab? >>> ___ >>> Flashcoders@chattyfig.figleaf.com >>> To change your subscription options or search the archive: >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> Brought to you by Fig Leaf Software >>> Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com >>> http://training.figleaf.com >>> >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Repulsion effect
Take a look around at http://www.bit-101.com You'll find a lot of examples (with source) in the old lab. 2006/7/7, Martin Weiser <[EMAIL PROTECTED]>: Hello, once i found script with balls repulsed by mouse movement, when mouse was over them they made space around the cursor, and then retrieved back in kind of a elastic manner.. please help Martin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Panning and Sliding, using Tweens possible?
Here's an old testclass of mine. It uses those custom easing equations from mx.transitions.easing.*; import mx.transitions.easing.*; import mx.utils.Delegate; class TweenTest { public static var fps:Number = 31; private var intervalID:Number; private var time:Number; private var obj:Object; private var prop:String; private var func:Function; private var begin:Number; private var finish:Number; private var duration:Number; private var useSeconds:Boolean; public function TweenTest() { _root.play_btn.onRelease = Delegate.create(this, startTween); _root.pauze_btn.onRelease = Delegate.create(this, pauzeTween); _root.stop_btn.onRelease = Delegate.create(this, stopTween); time = 0; obj = _root.mc; prop = "_x"; func = Strong.easeOut; begin = obj[prop]; finish = begin + 200; duration = Math.floor(2000/fps); useSeconds = true; } public function startTween() { clearInterval(intervalID); intervalID = setInterval(this, "calc", Math.floor(1000/fps)); } public function stopTween() { clearInterval(intervalID); time = 0; obj[prop] = begin; } public function pauzeTween() { clearInterval(intervalID); // time is not reset } public function calc() { if (time < duration) { obj[prop] = func.apply(null, [time++, begin, (finish-begin), duration]); } else stopTween(); } } 2006/6/27, Weyert de Boer <[EMAIL PROTECTED]>: I will try it out :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Programmatically build a crossword puzzle board
Hi Charles, I don't know how others would take a swing at this, but this is what I would do: First, define your boundaries. You're making a crossword puzzle, so that would be a matrix with a specified width and height. Next up you'll want to add words. Grab your nearest dictionairy and pounce in those characters. It might be best to store those in a library-class of some sort. Or perhaps an external txt- or xml-file. Then comes the tricky part: write the algorithm. I guess the following steps should be implemented in the algorithm: 1. choose a word 2. set some variable to 'horizontal' or 'vertical', perhaps even 'diagonal' 3. try fit the characters in some empty place in the matrix. 4. if it fits (maybe overlapping an alrady placed word), hurray! - if not, continue until you've tried all spaces, then dump it and get another word. 5. goto 1 Now if you're not happy with the result, run the application a few hundred times. Either that or you might want to add a little more magic to the algorithm and shuffle/sort the words to spaces where the overlap other words the most. I hope this gives you some ideas. Good luck! Bart 2006/6/19, Charles Parcell <[EMAIL PROTECTED]>: Can anyone point me to any links or give me some pointers on building a programmatically built crossword puzzle board? I don't mean just building squares, but rather taking a word list and building intersecting words. I have already build a word search game which is similar but there are some additional rules which a cross word puzzle uses and is making it a much harder task than original thought. For instance words can only be placed in two directions rather than eight, In addition, words which are placed horizontally or vertically next to one another must also make words in the apposing direction. So, any help would be greatly appreciated! Charles P. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Unable to create button greater than stage size
I read somewhere that assets on the stage can't be larger then 2880 pixels in either direction. Maybe you should split up that button of yours. (I don't wanna know why you'd need such a big button) 2006/6/19, Dhiraj Girdhar <[EMAIL PROTECTED]>: Hi All, Please check following code... I am trying to make a button whose size is greater than stage size then in that case button is not created. Please help. Thanks in advance. Stage.scaleMode = "showAll"; _root.createEmptyMovieClip("rootButton", 100); var rootBtn = _root.rootButton; rootBtn.onPress = function() {trace("Mouse Pressed");}; with (rootBtn) { var topLeft = -5000; var bottomRight = 1; beginFill("#FF000", 100); moveTo(topLeft, topLeft); lineTo(topLeft, bottomRight); lineTo( bottomRight, bottomRight); lineTo(bottomRight, topLeft); lineTo(topLeft,topLeft); endFill(); } Regards: Gaurav ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] XML object error handling
check XML.status http://livedocs.macromedia.com/flash/8/main/2880.html 2006/6/13, Howard Nager <[EMAIL PROTECTED]>: Will the XML object's onLoad function recognize an http 500 error message? Is that the argument passed to the onLoad function? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How do real developers do key handling?
The open-source Vegas framework at osflash.org makes use of a hashmap. Since every Object extends of CoreObject, a hashcode is added to every object. A nice solution, I think. static private var _initHashCode:Boolean = HashCode.initialize(CoreObject.prototype) ; 2006/6/7, Kevin Aebig <[EMAIL PROTECTED]>: Well the code that your friend is suggesting is pretty straightforward and you could port it over to AS2 if you wanted. Instead of a hashMap, why not just use an associative array? I'm pretty sure that I've seen a hash class ripping around from either Brandan Hall or Samuel Wan based off of an associative array. All in all, the code could be ported over with minimal effort... but there would be some area's that you would need to be creative with. Cheers, Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of black59mga Sent: June 6, 2006 4:09 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] How do real developers do key handling? I have 10 apps that will controlled with a TV remote control (no mouse). There are only 12 keys on the remote, so the app that has focus will will have to do very different things with a given key press, depending on context. A java dev. friend suggested an approach using a hashMap, but we don't have hashMap in AS 2.0. And I'm a bit confused by his sample code: public class ChannelInputTest { public static void main(String argv[]) { // Create a new ChannelInput object and add a few keys to its map ChannelInput ci1 = new ChannelInput(); ci1.addKey("1", new SimpleKeyHandler()); ci1.addKey("2", new AnotherSimpleKeyHandler()); // Now handle some keys with this puppy ci1.processKey("1"); ci1.processKey("2"); // Create a SECOND ChannelInput object, and add some different keys/handlers ChannelInput ci2 = new ChannelInput(); ci2.addKey("3", new AnotherSimpleKeyHandler()); ci2.addKey("4", new SimpleKeyHandler()); ci2.processKey("3"); ci2.processKey("4"); // Finally - should get an error if a ChannelInput gets unmapped key ci2.processKey("1"); } } import java.util.HashMap; public class ChannelInput { private HashMap handlerMap = null; ChannelInput() { handlerMap = new HashMap(); } public void addKey(String key, KeyHandler handler) { handlerMap.put(key, handler); } public void processKey(String key) { KeyHandler handler = (KeyHandler) handlerMap.get(key); if (handler == null) { System.out.println("ERROR: null handler for key \"" + key + "\""); } else { handler.handleKey(key); } } public class SimpleKeyHandler implements KeyHandler { public void handleKey(String key) { System.out.println("SimpleKeyHandler Key " + key + " was pressed"); // Action for this key goes here } } interface KeyHandler { public void handleKey(String key); } <><><> Kevin Aebig <[EMAIL PROTECTED]> wrote: Perhaps if you told us what you're trying to accomplish, we could offer suggestions around it, but as far as catching specific keys, I'm pretty sure you're doing it the only way possible. !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of black59mga Sent: June 6, 2006 3:01 PM To: flash Coders Subject: [Flashcoders] How do real developers do key handling? How do real actionscript developers do key handling? If you have several (like 10) apps that are loaded into MCs in 'Main.swf'... What's a good way to code the key handling? Right now I'm drowning in multiple key.GetCode() switch statements that all live in my 'Main.as'. How do smart people do this?? Any suggestions, sample code, links to tutes etc., very greatly appreciated. -mga - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] unsubcribe, please
rtff (read the freakin' footer) ;-) 2006/6/4, kathrin hunger <[EMAIL PROTECTED]>: >too many email ta kat -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] setting the centerpoint of a movieclip?
I took a rotateZ method from Robert Penner's Vector3D class and added a pivotpoint to the formula. It works pretty well as a dynamic registrationpoint :) var mc:MovieClip; var position:Object = {x:mc._x, y:mc._y}; var pivot:Object = {x:position.x+mc._width/2, y:position.y+mc._height/2}; var angle:Number = 0; onEnterFrame = function():Void { angle += 5; rotate(angle); } function rotate(angle:Number):Void { var ca:Number = cosD(angle); var sa:Number = sinD(angle); var x = (position.x - pivot.x) * ca - (position.y - pivot.y) * sa; var y = (position.x - pivot.x) * sa + (position.y - pivot.y) * ca; mc._x = pivot.x + x; mc._y = pivot.y + y; mc._rotation = angle %= 360; } function sinD(angle:Number):Number { return Math.sin (angle * (Math.PI / 180)); } function cosD(angle:Number):Number { return Math.cos (angle * (Math.PI / 180)); } 2006/6/1, grimmwerks <[EMAIL PROTECTED]>: That'll do it! Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Getting the selection
It's because the button you click will have the focus. So you should return the focus on the textfield before you can get the Selection of the text. [as] underline_btn.addEventListener("click", mx.utils.Delegate.create(this, underline_check)); function underline_check(evt:Object):Void { Selection.setFocus(editdesc_txt); var startIndex:Number = Selection.getBeginIndex(); var endIndex:Number = Selection.getEndIndex(); var strToUnderline:String = editdesc_txt.text.substring(startIndex, endIndex); trace("String to Underline: "+strToUnderline+"|B:"+Selection.getBeginIndex()+" |E: "+Selection.getEndIndex()+" |C:"+Selection.getCaretIndex()); editdesc_txt.replaceText(startIndex, endIndex, ""+strToUnderline+""); } [/as] 2006/5/29, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Can anyone tell me why this outputs -1 for every value? Could it be because the textfield looses focus when I click on the button component? I am trying to get the first and last position of the selected text in a dynamic textfield. Any pointers would be awesome! Outputs: String to Underline: |B: -1 |E: -1 |C: -1 var underline_check:Object = new Object(); underline_check.click = function(eventObj:Object) { var startIndex:Number = Selection.getBeginIndex(); var endIndex:Number = Selection.getEndIndex(); var strToUnderline:String = editdesc_txt.text.substring(startIndex, endIndex); trace("String to Underline: "+strToUnderline + "|B: "+Selection.getBeginIndex()+ " |E: "+Selection.getEndIndex() + " |C: "+Selection.getCaretIndex()); editdesc_txt.replaceText(startIndex, endIndex, ""+strToUnderline+""); }; underline_btn.addEventListener("click", underline_check); Boots ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Optimization techniques
Hi, I've seen Aral Balkan present his product Ariaware Optimizer a year ago. It optimizes your RIA by removing compiled classes from multiple swf's and adding them to a dll-swf. You might want to check it out: http://ariaware.com/products/optimizer.php Bart Wttewaall 2006/5/18, Marcelo de Moraes Serpa <[EMAIL PROTECTED]>: Hey Ian! Even though I´ve had kind of a hard time changing the architecture yesterday, I managed to make (process) the images once and keep them on the disk and the performance increase is awesome! The only bad thing is that the execution time of the script is big as it has to process more than 100images, but I can live with that, my users can´t live with the 5+ seconds it took to load the pics ;) You idea is very interesting though, I will keep this email for future reference :) Thanks a lot! Marcelo. On 5/18/06, Ian Thomas <[EMAIL PROTECTED]> wrote: > > Hi Marcelo, > As you wish; however creating them programmatically as required and > then storing them on disk in a cache (as I suggested above) does mean > a minimum of work when you want to upload a new image; the first user > to look at your new image (who may well be you!) will have a slight > delay, but after that it'll be nice and fast. I'd have thought that > was less work - given your current architecture - than reprocessing a > bunch of images manually. > > Ian > > On 5/17/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > > Hi Ian! Thanks for the reply ;) > > > > IThat could solve the problem with my current architecture, but I guess > I > > will just store many different versions of the image **on the disk** > instead > > of using gd each time the users requests the image. > > > > See the topic at as.org: > > http://www.actionscript.org/forums/showthread.php3?t=106049 > > > > Thanks again! > > > > Marcelo. > > > > On 5/17/06, Ian Thomas <[EMAIL PROTECTED]> wrote: > > > > > > Hi Marcelo, > > > The obvious optimisation would be to cache the scaled images on the > > > server - save them under a name dependent on the dimensions of the > > > generated image. > > > E.g. > > > trees.jpg > > > becomes > > > cache/trees_400x300.jpg > > > > > > Then when you serve the image, just check to see if the file is in the > > > cache - if it is, serve that, if not then regenerate before serving > > > it. > > > > > > I've done that on image galleries a lot and it works fine. > > > > > > In terms of stopping the user redownloading the image - if the image > > > is served as a 'standard' static image, the client's local cache > > > should take care of it without you having to do any work. > > > > > > In short - all those optimisations should be possible serverside > > > without you having to do anything at all to your Flash code. > > > > > > HTH, > > > Ian > > > > > > On 5/17/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > > > > Hi! > > > > > > > > I´m doing a research on RIA´s optimization techniques and I plan to > > > > implement such in my app´s next version as its getting bigger and > bigger > > > so > > > > it became a necessity to optimize it. > > > > > > > > Currently, I´m using shared fonts, shared symbols and shared classes > > > (the so > > > > called "dll" swf) that are all loaded once in the application > lifetime, > > > > avoiding the download redundancy and optimizing the size of the > > > subsequent > > > > swfs. However, my application is still not fast as I would like it > to > > > be, > > > > the main reason is obvious, it uses too many classes (and v2 > framework > > > adds > > > > a great deal to the class inventory). The second reason is becouse > of > > > the > > > > nature of my app: Its an online picture album. The images are stored > in > > > 1MP > > > > at the server and each time the client requests the image, its > converted > > > > (scaled down) at runtime using GD. It´s very flexible as I can make > many > > > > different size images without worring about saving them, however, > and I > > > > would like the oppinion of more experienced web developers, I think > it > > > would > > > > bring me problems when my site gets a very high trafic AND it is > slower > > > than > > > > if I would just load the im
Re: [Flashcoders] obfuscation swf !
http://www.amayeta.com/software/swfencrypt/ This doesn't obfuscate, but really encrypt your swf's. I've tried every swf decoder I could find to check if it works, and it does. All you get is rubbish when decompiling. 2006/5/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Is there any good way or method for obfuscation a Flash file so that swf works fine after obfuscation and also prevent any one to understand the code easily . Few common softwares for obfuscation are just not that good as swf stops working after using them . Of if not obfuscation is there any other method to prevent swf to be decompiled to fla . help will be really appreciate . Thx Max mail2web - Check your email from the web at http://mail2web.com/ . ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] destructors...
When using classes that extend from MovieClip, you can use onUnload(). I use it primairaly for removing EventListeners so I won't get stuck with duplicate eventcalls. When you want to delete a class all you really have to do is remove all instances and references from that class. I don't think there's an automated process for that since these may be scattered around in other classes all over your application, but building a destroy method (onUnload) in your classes by default seems to be a good way.. 2006/5/3, Andreas Rønning <[EMAIL PROTECTED]>: Kind of besides the point really. The real point is, in my humble opinion, that it should be possible to do it without myClass.cleanup(); delete(myClass); It becomes double naughty if your class instance is in an array. It's just a question of keeping the amount of fluff down to a minimum. This is not a critical problem. I am merely asking for people's methodologies in self destroying classes. - A Ian Thomas wrote: > Hi Andreas, > To turn it on its head... > > What are you trying to achieve? In what circumstances do you need to > destroy a class? > > Ian > > On 5/3/06, Andreas Rønning <[EMAIL PROTECTED]> wrote: > >> has anyone got a good way for an as2 class to destroy itself? I know >> it's not "possible", but my heart tells me someone has devised some kind >> of good methodology. >> >> - A > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Date Object Problem
I'm not sure if it'll solve your problem, but you might want to check out Date.UTC var maryBirthday_date:Date = new Date(Date.UTC(1974, 7, 12)); trace(maryBirthday_date); I'm not sure what it does (something with universal time), since the documentation is quite cryptic, but perhaps it's related..? Good luck. 2006/5/2, Nick McNeill <[EMAIL PROTECTED]>: First off, long-time member of this list and have gained a wealth of knowledge from the wisdom here. Thank You All. I'm having a very confusing problem using the Date Object. I have a hotel reservation system built in flash, when an international reservation (outside of the US, mainly Europe ) comes through, the dates are off by 1 day. I cannot recreate the problem using any system setup in the US, only via a friend in London doing some testing for me. Problem: create new Date using May 20th 2006 var checkin = new Date(2006,5,20); is getting converted to May 19th if you are in Europe, fine in the US. In plain terms, someone is trying to book 5/20/06 thru 5/22/2006, but gets booked 5/19/06 thru 5/21/06 instead. This system has booked literally thousands of domestic US reservations and we've never seen this until we opened it up to international customers. Any insight to why this could be happening, or any known workarounds for a problem like this would be wonderful. I haven't tried using the timezone offset yet, any ideas if that might be a cure? Nick McNeill Intellistrand 843-839-1480 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] XPath Problem
That's because you're searching from the country-node, that's the structure you're searching in. Forget about all its parentnodes, we're talking about a new xml-document here. var countriesList:Array = XPath.selectNodes(xmlData, "/map/country"); for (var i=0; i: On Sun, Apr 30, 2006 at 10:39:23AM -0400, Howard Nager wrote: > Any chance you can show an example of what your xml file looks like? > I was goign to suggest that you try: > > countryName = XPath.selectNodes(country, "./name"); > or > countryName = XPath.selectNodes(country, "./country/name"); > > But I can't be sure without looking at the xml structure. Hey, Here's the XML: http://www.conquerclub.com/maps/Indochina.xml Your first solution works fine, though I admit I'm at a bit of a loss as to why. :) Thnaks! - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Trouble with dynamic binding dataset to datagrid & cellrenderer
Hello FlashCoders, I've been trying to add Philippe Nomail's (or better known as Philiflash) cart-example (http://philflash.inway.fr/cart/cart.html) to a project of mine. But unfortunately I can't make use of databinding within the IDE. For that I used Hank Williams' DataSet to DataGrid dynamic binding example. So I tried to create the bindings dynamically, but the amount cell (which uses a NumericStepper to increment the amount of products in the cart) doesn't work properly, not even with his updated Flash 8 example. It seems as if the dataProviders of the DataGrid and DataSet are in conflict. Philippe is out of office until the 17th, so I'm trying the list. Could you please help me out? I've uploaded the code in a zipfile to the following url: http://download.mediamonkey.nl/MyCart.zip Thanks a lot in advance, Bart Wttewaall. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] XPath hangs
I've tested it and it just works like a charm. No hangup or anything. I'm using Flash 8 & AS2 by the way and the latest release of xfactorstudio's XPath import DepthManagerTest; import nl.mediamonkey.xml.XMLLoader; import mx.utils.Delegate; import com.xfactorstudio.xml.xpath.XPath; var test = new DepthManagerTest(this); var loader = new XMLLoader("data.xml"); loader.addEventListener("load", Delegate.create(this, onComplete)); loader.startLoading(); function onComplete(evt:Object):Void { trace(XPath.selectNodes(evt.value, "//[EMAIL PROTECTED]'ThumbnailFilename']/value/")); // outputs the node trace(XPath.selectNodes(evt.value, "//[EMAIL PROTECTED]'ThumbnailFilename']/value/text()")); // outputs the string with some returns in front of it trace(XPath.selectNodesAsString(evt.value, "//[EMAIL PROTECTED]'ThumbnailFilename']/value/text()")); // outputs the string with some returns in front of it } 2006/4/3, Yotam Laufer <[EMAIL PROTECTED]>: > Hi Ron, > > I don't see how that should change anything, but in any case I don't > have the option to do so. Even if I omit the value and search only for > //[EMAIL PROTECTED]'ThumbnailFilename'] it will still hang. > > Thanks, Yotam. > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] testing
loud and clear 2006/3/31, Christian <[EMAIL PROTECTED]>: > testing... coming through? > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Good Math script for sheet movement when draged on table
What's your question? If you're looking for a way to script animation, use the Tween class. 2006/3/31, INK. <[EMAIL PROTECTED]>: > Hi, List? > Anyone seen subj? Something real-life and natural motion? > > Thanks. > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] File Exists - a better way?
Ah, you're right Ian. My post wasn't really a reply to your sollution, the topic "File Exists - a better way" just triggered a memory to the code I posted. I just wanted to contribute a bit to the original topic (it was a long, tiresome day). But perhaps it might be useful in some other way? For example if you'd like to preload/cache a few files when your application starts that can be used later on... Oh well, sorry for the noise. Bart 2006/3/18, Ian Thomas <[EMAIL PROTECTED]>: > Bart, > Firstly, I'm not sure why that's a reply to my posting - and > secondly, why would you want to do that..? > > The original poster asked if there was a way of checking whether a > file exists sooner than waiting for the whole file to load. Your > solution loads the whole file via LoadVars - which would take the same > amount of time as loading it normally. My solution is a quick call to > a webserver and a few bytes worth of response - much quicker than > (say) loading a 250Kb file... > > Ian > > On 3/18/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote: > > Ian: "There's no Flash native hack as far as I know." > > > > You can check (and cache while you're at it) any file by using LoadVars: > > > > var file:String = "anyFileType.exe"; > > > > var fileExists:LoadVars = new LoadVars(); > > fileExists.onLoad = mx.utils.Delegate.create(this, doCheck); > > fileExists.load(file); > > > > function doCheck(success:Boolean) { > > if (success) trace("File "+file+" exists."); > > else trace("File "+file+" does not exist."); > > } > > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] File Exists - a better way?
Ian: "There's no Flash native hack as far as I know." You can check (and cache while you're at it) any file by using LoadVars: var file:String = "anyFileType.exe"; var fileExists:LoadVars = new LoadVars(); fileExists.onLoad = mx.utils.Delegate.create(this, doCheck); fileExists.load(file); function doCheck(success:Boolean) { if (success) trace("File "+file+" exists."); else trace("File "+file+" does not exist."); } 2006/3/18, Isaac Rivera <[EMAIL PROTECTED]>: > I backtracked on this thread... > > I guess the questions are: > > 1) what are you trying to load? > > 2) what onLoad(success:Boolean) are you using? > > Are you using the XML or LoadVars? > > Assuming you are using the LoadVars, a more reasonable "timeout" > approach would be something like: > > // code -- > function fileExists() {} > function fileDoesNotExist() {} > > var timeout:Number = 1; // 10 seconds... > var app:MovieClip = this; > > var lv:LoadVars = new LoadVars(); > lv.onLoad = function(success:Boolean) { > clearInterval(app.interval); > if (!success) { > app.fileDoesNotExist(); > } else { > app.fileExists(); > } > }; > > var startTime:Number = getTimer() + timeout; > lv.load(url); > > var interval:Number = setInterval(function () { > var total:Number = app.lv.getBytesTotal(); > if (total > 4) { > clearInterval(app.interval); > app.fileExists(); > } else { > if (getTimer() >= app.startTime) { > clearInterval(app.interval); > app.fileDoesNotExist(); > } > } > }, 25); > > // code -- > > > On Mar 17, 2006, at 10:31 AM, Yotam Laufer wrote: > > > [Theres no "reasonable" amount of time on networked connections of > > unknown hardware specs...] > > > > And yet timeout times are set somehow... I think it's a subjective > > decision. > > I wouldn't do it like this, but if someone has to? > > > > Yotam. > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] way to get window.location from flash?
crap.. I meant: trace(_root._url) 2006/3/1, Bart Wttewaall <[EMAIL PROTECTED]>: > trace(_root.url) > > 2006/3/1, Alan Queen <[EMAIL PROTECTED]>: > > Is there a way get the window's location ( url ) from flash without embedded > > a javascript helper function on the page? > > > > -- > > - Alan Queen > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] way to get window.location from flash?
trace(_root.url) 2006/3/1, Alan Queen <[EMAIL PROTECTED]>: > Is there a way get the window's location ( url ) from flash without embedded > a javascript helper function on the page? > > -- > - Alan Queen > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash on PSP!
Oops! Sorry, I didn't test properly. I'll have to eat my own words: it really does work with AS2 on version 7. I've tested it a bit better now and found out there's no transparency with imported gif or png. That and it crashed my PSP on a 500KB swf file. Still a mighty fine achievement. I'm really looking forward to the next version. 2006/3/1, Cedric Muller <[EMAIL PROTECTED]>: > http://files.psphacks.net/details.php?file=93 > quote: > "the current version supports most action script through version 7 > and runs on 1.5 only" > > ?? > Cedric > > > > Don't bother, I've tested it and it's crap. > > It seems all this "flashplayer" does is convert the flashfile to some > > form of video (and taking its sweet time at that) and play it/crash on > > it. No actionscript interaction whatsoever. You're better off > > exporting your animation to avi and convert it to mp4 yourself. > > > > > > 2006/2/28, Weyert de Boer <[EMAIL PROTECTED]>: > >> Now I only need a PSP with fw1.5 :-) > >> ___ > >> Flashcoders@chattyfig.figleaf.com > >> To change your subscription options or search the archive: > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > >> Brought to you by Fig Leaf Software > >> Premier Authorized Adobe Consulting and Training > >> http://www.figleaf.com > >> http://training.figleaf.com > >> > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash on PSP!
Don't bother, I've tested it and it's crap. It seems all this "flashplayer" does is convert the flashfile to some form of video (and taking its sweet time at that) and play it/crash on it. No actionscript interaction whatsoever. You're better off exporting your animation to avi and convert it to mp4 yourself. 2006/2/28, Weyert de Boer <[EMAIL PROTECTED]>: > Now I only need a PSP with fw1.5 :-) > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: sorting a collection of points clockwise
Thanks Morten, that actually made it 23% faster :-) 2006/2/27, Morten Barklund TBWAPlay <[EMAIL PROTECTED]>: > Bart Wttewaall wrote: > > Thanks, > > > > I guess I needed a little nudge to actually get working on the method. > > If anyone sees a quicker method than the code below, then please say so. > > This would actually be one of the few places, where > Array.RETURNINDEXEDARRAY could be used - just create an array of the > angles (not objects with angle-attributes), sort using the > Array.RETURNINDEXEDARRAY-flag, and use this returned array as the array > for which to reorder the original array of points :) > > -- > Morten Barklund - Information Architect - TBWA\Play > Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark > Phone: +45 7027 2227 - Fax: +45 3369 1174 > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: sorting a collection of points clockwise
Thanks, I guess I needed a little nudge to actually get working on the method. If anyone sees a quicker method than the code below, then please say so. Thanks Ron, A.Cicak & others! function orderClockwise(coll:Array, center:Point):Array { if (!center) center = getCenterPoint(coll); var angleArray:Array = new Array(); var i:Number = coll.length; while (i--) { var point:Point = coll[i]; var dx:Number = point.x-center.x; var dy:Number = point.y-center.y; var angle:Number = Math.atan2(dy, dx); angleArray.push({index:i, angle:angle}); } angleArray.sortOn("angle", Array.NUMERIC); i = angleArray.length; var sortedArray:Array = new Array(); while (i--) sortedArray[i] = coll[angleArray[i].index]; return sortedArray; } 2006/2/27, A.Cicak <[EMAIL PROTECTED]>: > atan2 should do the trick > > "Bart Wttewaall" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi List, > > I'm looking for an algorithm that sorts a collection of points > counter-, or clockwise by (probably) means of comparing each point to > the center point of the collection. Calculating the centerpoint wasn't > too hard, but I'm stuck at the comparing part. It doesn't matter which > point the returning array begins with, but I'd like the method to be > as fast as possible since it will be called every frame. > > I'm not asking for a complete solution (although appreciated) but for > a few tips how to tackle this one. > > Thanks, > Bart Wttewaall > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] sorting a collection of points clockwise
Hi List, I'm looking for an algorithm that sorts a collection of points counter-, or clockwise by (probably) means of comparing each point to the center point of the collection. Calculating the centerpoint wasn't too hard, but I'm stuck at the comparing part. It doesn't matter which point the returning array begins with, but I'd like the method to be as fast as possible since it will be called every frame. I'm not asking for a complete solution (although appreciated) but for a few tips how to tackle this one. Thanks, Bart Wttewaall ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Rotating a mc around a custom pivotpoint
Darron Schall's class didn't work out for me since mixing prototypes gave me a lot of syntax errors. Here's the code I built from Robert Penner's Vector3D.rotateZ() method. I hope someone finds it usefull. var mc:MovieClip; // mc on stage var position:Object = {x:mc._x, y:mc._y}; var pivot:Object = {x:position.x+mc._width/2, y:position.y+mc._height/2}; var angle = 0; onEnterFrame = function() { rotate(angle += 5); } function rotate(angle) { var ca:Number = cosD(angle); var sa:Number = sinD(angle); var x = (position.x - pivot.x) * ca - (position.y - pivot.y) * sa; var y = (position.x - pivot.x) * sa + (position.y - pivot.y) * ca; mc._x = pivot.x + x; mc._y = pivot.y + y; mc._rotation = angle %= 360; } function sinD(angle) { return Math.sin (angle * (Math.PI / 180)); } function cosD(angle) { return Math.cos (angle * (Math.PI / 180)); } 2006/2/13, Bart Wttewaall <[EMAIL PROTECTED]>: > exactly! thanks a lot! > I mustn't have used the right keywords in my search ;) > > > 2006/2/13, Adrian Lynch <[EMAIL PROTECTED]>: > > It was on Flashcoders or Flashnewbie a few days ago. > > > > http://www.darronschall.com/weblog/archives/54.cfm > > > > Is that the link you were after? > > > > Adrian > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of Bart > > Wttewaall > > Sent: 13 February 2006 17:31 > > To: Flashcoders mailing list > > Subject: [Flashcoders] Rotating a mc around a custom pivotpoint > > > > > > Hi list, > > > > I'm looking for a piece of math to rotate a mc around a pivotpoint, > > other then its original. I've seen the math before in a demo, on some > > blog perhaps, but can't seem to find it again. I made some attempts to > > write it myself, but my math is as rusty as a german submarine. > > > > Much obliged, > > Bart > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Rotating a mc around a custom pivotpoint
exactly! thanks a lot! I mustn't have used the right keywords in my search ;) 2006/2/13, Adrian Lynch <[EMAIL PROTECTED]>: > It was on Flashcoders or Flashnewbie a few days ago. > > http://www.darronschall.com/weblog/archives/54.cfm > > Is that the link you were after? > > Adrian > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Bart > Wttewaall > Sent: 13 February 2006 17:31 > To: Flashcoders mailing list > Subject: [Flashcoders] Rotating a mc around a custom pivotpoint > > > Hi list, > > I'm looking for a piece of math to rotate a mc around a pivotpoint, > other then its original. I've seen the math before in a demo, on some > blog perhaps, but can't seem to find it again. I made some attempts to > write it myself, but my math is as rusty as a german submarine. > > Much obliged, > Bart > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Rotating a mc around a custom pivotpoint
Hi list, I'm looking for a piece of math to rotate a mc around a pivotpoint, other then its original. I've seen the math before in a demo, on some blog perhaps, but can't seem to find it again. I made some attempts to write it myself, but my math is as rusty as a german submarine. Much obliged, Bart ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How do you code your Flash applications?
And certainly not when you work within the _root. It will give depths at which you can't remove movieclips. 2006/2/3, Scott Hyndman <[EMAIL PROTECTED]>: > It's not when you don't want the movieclip to be on the highest depth. > > Scott > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Nathan Derksen > Sent: Fri 2/3/2006 11:07 AM > To: Flashcoders mailing list > Cc: > Subject:Re: [Flashcoders] How do you code your Flash applications? > > getNextHighestDepth() is your friend :-) > > Nathan > http://www.nathanderksen.com > > > On Feb 3, 2006, at 2:05 AM, ryanm wrote: > > > > > >Another little bit of advice you may find useful, don't put > > depths right next to each other, leave room between them. When > > developing a UI, I often put them 10 depths apart, as in navigation > > container at 10, content container at 20, footer container at 30, > > etc, instead of at 1, 2, and 3. That way, if I need to add a new > > section, or if I need to drop in additional elements like a > > scrollbar, etc, I have a depth available without having to go > > through the code and increment all the subsequent depths. Since > > there are 65k depths available and I rarely use more than a dozen > > on any given timeline, I figure spacing them out is safer than > > putting them right next to each other. > > > > ryanm > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash 8 CPU test script
Thanks people. I've tried a few heavy mathematics and although I'm not getting a lineair correlation between CPU power and time the method took, it gives me a good enough idea when a user's computer is powerful enough for the website I created. Thanks again! 2006/2/2, elibol <[EMAIL PROTECTED]>: > Alias, I think what he means is the player 8 optimization: > Reduced Memory Footprint > > Flash Player 8 implements more efficient memory management to improve > ActionScript and Player performance. > Faster ActionScript Performance > > ActionScript performance has been optimized in Flash Player 8. > Rendering Performance > > A number of other optimizations have been made to improve rendering > performance, particularly on the Mac platform. > Bitmap Caching > > Vector graphics can now be accelerated through bitmap caching. > > M. > > On 2/2/06, Alias <[EMAIL PROTECTED]> wrote: > > > > Flash 8 does not contain the new VM. Only flash 8.5 contains it, and > > if you are running flash 8.0 content, it will use the 8.0 VM. Carry on > > as you were, you should be fine. > > > > Alias > > > > On 2/2/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote: > > > Hi list, > > > > > > I'd like to be able to tell if the user's cpu is up for a heavy load > > > of animations, filters and flv's with alphachannel. I remember a post > > > about how the Flash 8 VM had been drastically rewritten so that > > > cpu-usage and garbage collection acted in a whole new manner. > > > > > > In Flash 7 I'd write a method that would do some heavy math and return > > > the time it took. However I'm not sure if the results in Flash 8 would > > > be reliable, with the new VM and all. > > > > > > Your thoughts please.. > > > Bart > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash 8 CPU test script
Hi list, I'd like to be able to tell if the user's cpu is up for a heavy load of animations, filters and flv's with alphachannel. I remember a post about how the Flash 8 VM had been drastically rewritten so that cpu-usage and garbage collection acted in a whole new manner. In Flash 7 I'd write a method that would do some heavy math and return the time it took. However I'm not sure if the results in Flash 8 would be reliable, with the new VM and all. Your thoughts please.. Bart ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash 8 ActionScript additions?
New in ActionScript 2.0 and Flash 8 http://livedocs.macromedia.com/flash/8/main/1132.html 2006/2/2, thotskee <[EMAIL PROTECTED]>: > Can anyone supply a list of additions made to ActionScript 2.0 for Flash 8 > (not AS3[?])? > > thanks for your time. > ___ > 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] Component instantiation- How does dragging affect the constructor
If you create your first Singleton-instance, and from that class you build up your application, the instance is not yet stored in the variable. Therefore when other elements call its getInstance(), the classvar hasn't been set yet. That's why your Singleton's constructor gets called twice. My solution was this: private static var $instance:ThisClass; public function getInstance():ThisClass { if (!$instance) $instance = new ThisClass(); return @instance; } private function ThisClass() { if (!$instance) $instance = this; init(); } It's sloppy, but it works ;-) Bart 2006/2/1, Manuel Saint-Victor <[EMAIL PROTECTED]>: > Would a component that subclasses movie clip call its constuctor when > dragged on stage despite the fact that the constructor is private. I'm > getting a strange error wherein a supposed singleton class is calling the > private constructor twice and therefore eliminating the references to it > that other components had. > I currently have the component subclassing the MoviClip class but am also > trying to make it a Singleton. Will this not work? > > Mani > ___ > 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] can I know if I class/package has been imported in a swf?
or how about: var exists:Boolean = classExists("your.class.path"); trace(exists); function classExists(path):Boolean { return (mx.utils.ClassFinder.findClass(path)); } 2006/2/1, Scott Hyndman <[EMAIL PROTECTED]>: > if (_global.path.to.class.Class != null > && typeof(_global.path.to.class.Class) == "function")) { > trace("CLASS EXISTS!"); > } > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Jason Rayles > Sent: Wed 2/1/2006 11:33 AM > To: flashcoders@chattyfig.figleaf.com > Cc: > Subject:RE: [Flashcoders] can I know if I class/package has been > imported ina swf? > > No. Is there a way for my code in my class to figure out if another > class that I am not writing but whose name I know is being used in a > swf. > > > > From: "Steven Sacks" <[EMAIL PROTECTED]> > > Subject: RE: [Flashcoders] can I know if I class/package has been > > imported in aswf? > > To: "'Flashcoders mailing list'" > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="us-ascii" > > > >> Is it possible to know if a class is being used in a flash movie? If > >> so, how? > > > > Put a trace statement in the constructor of the class: > > > > class foo { > > function foo() { > > trace("new foo"); > > } > > } > > > > ___ > 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] Right Mouse Click Event?
You can fake it though.. Here's a class I wrote a while ago. And here you find a demo: http://www.mediamonkey.nl/flashfiles/MouseDetection.html /** MouseDetection.as * @Author: Bart "Mediamonkey" Wttewaall * @Date: 31-10-2005 * @Description: * A class that tests throug an interval if the left, middle or right mousebutton is up or down. * It returns an event that can be listened to through the EventDispatcher. * * Usage: import MouseDetection; import mx.utils.Delegate; var MD = new MouseDetection(); MD.addEventListener(MouseDetection.LEFT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.LEFT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.DOUBLE, Delegate.create(this, doubleclick)); MD.addEventListener(MouseDetection.SCROLL, Delegate.create(this, scroll)); function write(evt:Object) { trace(evt.target+" = "+evt.isDown); } function doubleclick(evt:Object) { trace(evt.target+" doubleclick: "+evt.value+" ms"); } function scroll(evt:Object) { trace(evt.target+" = "+evt.value); } */ import mx.utils.Delegate; import mx.events.EventDispatcher; class MouseDetection { // static event variables. call these as listenernames. static public var LEFT_DOWN:Number = 1 << 0; static public var LEFT_UP:Number = 1 << 1; static public var RIGHT_DOWN:Number = 1 << 2; static public var RIGHT_UP:Number= 1 << 3; static public var MIDDLE_DOWN:Number = 1 << 4; static public var MIDDLE_UP:Number = 1 << 5; static public var DOUBLE:Number = 1 << 6; static public var SCROLL:Number = 1 << 7; private var intervalID:Number; private var mouseListener:Object; // Button states (true = down, false = up) private var LMB:Boolean; private var RMB:Boolean; private var MMB:Boolean; // stored time between two clicks private var LMBtime:Number; private var MMBtime:Number; private var RMBtime:Number; // after some tests, the fastests I could click was 30 ms public var time:Number = 30; // offset between two mouseclicks to count as a doubleclick public var doubletime:Number = 250; // mixin methods from the EventDispatcher public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; public var dispatchQueue:Function; function MouseDetection() { EventDispatcher.initialize(this); LMB = RMB = MMB = false; LMBtime = MMBtime = RMBtime = 0; mouseListener = new Object(); mouseListener.onMouseWheel = Delegate.create(this, mousewheel); Mouse.addListener(mouseListener); startTesting(); } public function startTesting() { intervalID = setInterval(this, "enterframe", time); } public function stopTesting() { clearInterval(intervalID); } // -- the rest are private methods, don't bother with them private function enterframe() { LMBsetter = Key.isDown(1); RMBsetter = Key.isDown(2); MMBsetter = Key.isDown(4); // this commented bit of code doesn't seem to work all the time, must be because of ALT // Keycodes: 18 = ALT, 37 = LEFT, 39 = RIGHT // backbutton = ALT+LEFT, forwardbutton = ALT+RIGHT //if (Key.isDown(18) && Key.isDown(37)) trace("backbutton"); //if (Key.isDown(18) && Key.isDown(39)) trace("forwardbutton"); } // -- LMB property setter, without getter (no need for it). // This catches the true/false value, checks for double entries (!!!) and dispatches the // correct event before assigning the value to the LMB boolean, thus saving a few lines. function set LMBsetter(b:Boolean) { if (b && !LMB) { dispatchEvent({type:LEFT_DOWN, target:"LMB", isDown:true}); } else if (!b && LMB) { dispatchEvent({type:LEFT_UP, target:"LMB", isDown:false}); // test doubleclick var diff = getTimer()-LMBtime; if (diff < doubletime) dispatchEvent({type:
Re: [Flashcoders] extending collectionimpl
I don't seem to have a problem with it. Succes, Bart // -- class Col extends mx.utils.CollectionImpl { function Col() { super(); _items = new Array(); } } // -- import Col; var col = new Col(); col.addItem("hello"); col.addItem("world"); var it = col.getIterator(); while (it.hasNext()) { var item = it.next(); trace(item); } 2006/1/31, j.c.wichman <[EMAIL PROTECTED]>: > Hi, > im trying to extend mx.utils.CollectionImpl but it doesn't seem to work. > Is there a restriction to intrinsic classes im not aware of? > > greetz > Hans > ___ > 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] Dynamic class creation
Or just use mx.utils.ClassFinder. var classname:String = "com.mosesSupposes.fuse.Fuse"; var FuseClass:Function = mx.utils.ClassFinder.findClass(classname); fuse = new FuseClass(); 2006/1/30, franto <[EMAIL PROTECTED]>: > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge <[EMAIL PROTECTED]> wrote: > > > > import pkg1.pkg2.pkg3.* > > or > > import pkg1.* > > > > >> new pkg1.pkg2.pkg3.className(), > > sorry, should be: > > new className() > > > > make sure pkg1 has classes you would like to be compiled in swf or use > > exclude xml file > > > > > > > > On 1/30/06, franto <[EMAIL PROTECTED]> wrote: > > >> Hi all, > > >> > > >> maybe it is easy, maybe not, but i cant figure it out now, and i need it > > >> :) > > >> > > >> when i got class e,gpkg1.pkg2.pkg3.className > > >> > > >> i can make new instance in this way > > >> new pkg1.pkg2.pkg3.className() > > >> > > >> but i want to make it from string > > >> > > >> this dont work of course > > >> _global['pkg1.pkg2.pkg3.className'](); > > >> > > >> but this work: > > >> _global['pkg1']['pkg2']['pkg3']['className'](); > > >> > > >> can this done automatcally? i want jsut read string from XML and > > >> create new class instance, > > >> but i cant do it now. > > >> Any help is appreciated :) > > >> > > >> - > > >> 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 > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: OT THANK YOU: Re: [Flashcoders] How to call functions in sequence
Fuse, the animation engine from mosessupposes.com has a build-in Sequence class. I't easy to add commands to this sequence like method calls. You might want to look into it. Bart 2006/1/30, Kevin Cannon <[EMAIL PROTECTED]>: > On Sun, Jan 29, 2006 at 10:04:22AM +0100, Sander wrote: > > If your functions are motion-based, have a look at "Fuse". It's a set > > of Tween classes that lets you execute a lot of tweens in sequence. 2 > > can fire off when 1 finished if you want. You can tween position, > > alpha, rotation and many more. > > You could also use setInterval to call the functions. > > Also, there's Sequence classses out there that are useful too: > http://proto.layer51.com/d.aspx?f=1417 > > - Kevin > ___ > 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] easy to implement a* flash classes?
http://www.flashfocus.nl/forum/showthread.php?t=1547 It's a dutch forum, but the code is quite readable. 2006/1/13, franto <[EMAIL PROTECTED]>: > http://www.franto.com/blog2/as3-pathfinder-in-big-mazes > > examples and sources for as2 and as3 :) > Enjoy > > > On 1/12/06, Jim Armstrong <[EMAIL PROTECTED]> wrote: > > At 12:07 PM 1/12/2006 -0500, you wrote: > > >can any one toss me links to the latest and greatest a* pathfinding > > >examples that > > >are easy to implement? Much appreciated. > > > > If memory serves, Jobe Makar has an implementation in his 'Flash MX Game > > Design Demystified' book. I think this question may have been asked a > > couple times before, so you might find some more information in the > > archives. > > > > Also, try the FlashGameCoders list. > > > > good luck! > > > > - jim > > > > > > > > 2112 FX :: Singularity [Business Intelligence][Custom Programming] > > Flash Math Blog :: www.2112fx.com/blog > > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] looking for combobox w/ autocomplete
I have exactly what you're looking for. I made some methods that responded to the change-event and such and created a "intellisense"-combobox. Mail me offlist if you're insterested in the code. 2006/1/6, Nick Appelmans <[EMAIL PROTECTED]>: > Can anyone point me in the direction of a combobox with autocomplete like > that offered as a Dreamweaver extension MX Widgets by interaktonline.com? > I'm not looking for the interface so much as an example of how to create a > combobox that would select a matching item from a list (based on the first > few letters) as you typed until you began to type a unique word at which > point you'd be entering a new item. > > Thanks for any help. > > > > Nick > > ___ > 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] reverse play FLV?
You can't play an flv backwards because of the way it is encoded. A video consists of sequencial compressed images. If you jump to a frame, the decoder has to collect an I-frame (a complete image) and walk through B-frames (partial images containing only changed eareas) to accumulate frames until it has reached your selected frame. Understandably, that requires some performance. If you'd like to play in reverse you'll have 2 options: create another flv from reverse footage and play that one instead, or create an image sequence of loose images and put them in a mc. Now you can build controls that play through the mc (or swf) in any direction or speed you wish. Bart 2005/12/21, Dechesne, Elvin <[EMAIL PROTECTED]>: > Hi there, > > I have an issue regarding playing FLV embedded on the timeline in reverse > order. Im using a simple script to check if the playhead has reached the end > of the video and then reverse plays it. However, this seems to choke the > player, my guess is the codec can't cope with this. Processor performance > leaps from 10% to a staggering 70-80%. Is there a workaround for this, or > should I simply abandon the idea to use this method? > > Many thanks for any advice, > > Elvin Dechesne > satama interactive > ___ > 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] text warp in flash
http://www.storyabout.net/typedrawing This is an application that uses bulging text in a static manner. It might give you an idea.. 2005/12/20, rishi <[EMAIL PROTECTED]>: > Hi > > > > I have been trying to achieve text warp , with all the technologies and > the skillset I possess, but to no success. I tried to achieve the same > using displacement filter but to no success. > > > > Problem definition: I want the user to add text on stage at runtime and > then select from certain built in effects, like bulge down, arc up, arc > down and bridge text. Therafter the same text effects should be > applicable to the textfield added at runtime added on Stage. > > > > I am unable to figure ou how to draw these bridge,bulge text effect in > flash for a multiline text field. > > > > Please help me out. > > > > Regards > > Rishi > > ___ > 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] Integrating Flex 2 swfs into custom built 8.5 sfws
I foresee a problem though.. Flash uses the first class(name) it encounters in multiple swf's. When loading an swf that uses newer classes then present in the first swf, the player will use the older ones. So when exporting a swf that makes use of Flex's classes, that may be upgraded versions of classes you use in your framework, you might be in for a surprise. Just a warning, perhaps you've already thought about that. Bart 2005/10/19, Peter Elst <[EMAIL PROTECTED]>: > Hi Tom, > > When you compile through Flex Builder 2 you just get regular SWF files so > you can definitely load those in and do whatever you want with them. I > believe Mike Chambers said Flash Player 8.5 will even allow you to load AVM- > content in the new virtual machine at runtime so shouldn't be a problem at > all. > > Cheers, > Peter > ___ > 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