RE: Re: [Flashcoders] Good External Actionscript Editor for Mac?
Nice, I just got textmate and really appreciate these answers because I was about to ask the same question! Regards, Peter Witham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Rodecker Sent: Sunday, December 17, 2006 12:51 PM To: Flashcoders mailing list Subject: Re: Re: [Flashcoders] Good External Actionscript Editor for Mac? there are a few ways to do it. you won't get the 'intellisense' autocompletion like how it is in the flash IDE (with the dropdown that pops up), but you can: 1. Hit the escape key when you are typing. This automcpletes the word based on mathes it finds in the document, based on distance from the cursor: http://macromates.com/textmate/manual/working_with_text#completion 2. use tab triggers to insert snippets into your code. a snippet is a bit of text you want to insert into the document. a tab trigger just means that that you can assign a keystroke plus hit the tab key and the snippet will be inserted. For instance, I have it set up so i type 'getset'-tab, and a private var with it's getter/setter methods will appear. The coolest hing about snippets is that you can tab through them after the appear, so you can jump right to the spot where you want to type just by hitting tab again, and use mirroring if you need to type the same thing more than once in a snippet. http://macromates.com/textmate/manual/snippets#snippets On 12/17/06, Josh Santangelo [EMAIL PROTECTED] wrote: How do you make TextMate do autocompletion? I use it as well, but haven't had it do anything special with AS other than syntax coloring. -josh Steven Sacks | BLITZ wrote: TextMate is the best script editor for the Mac, period, hands down. Integrates with MTASC, auto-completion, macros, actions, command line access, etc. etc. If you take the time to learn all the cool stuff it will become an invaluable tool for you. http://www.macromates.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] Seek MVC Menu
On 12/17/06, Stephen Hueners [EMAIL PROTECTED] wrote: Seems like the MVC pattern would be a natural fit for a menuing system that has to keep track of things like logged user various button states and actions. I'm looking for a sample of AS2 code being used to build a menuing system. Kind of depends on what your states and actions are. Here's a good basis: /** * Model class that stores data for one menu item. f * * pOptionally has child items./p */ class menu.MenuItem { /** * Label for this item. */ public function get label():String; /** * Number if child items (nonnegative integer). */ public function get childCount():Number; /** * Retrieves a child item. * * @param index Index of child item, nonnegative integer less than [EMAIL PROTECTED] #childCount}. */ public function getChild(index:Number):MenuItem; /** * Reads data from an XML node. * * @param node XML node with menu item data. * @throws Error If [EMAIL PROTECTED] node} is not properly formatted. */ public function readXMLNode(node:XMLNode):Void; } import menu.MenuItem; import mx.events.EventDispatcher; [Event(currentChange)] /** * Controller class that keeps track of the currently-selected item. */ class MenuController extends EventDispatcher { /** * Currently-selected menu item. */ [Bindable(event=currentChange)] public function get currentItem():MenuItem; public function set currentItem(item:MenuItem):Void; } import menu.MenuController; import menu.MenuItem; /** * Menu item component. */ class menu.MenuItemView extends MovieClip { /** * Creates a new instance referring to a specific item. * * @param parent Parent movie clip. * @param controller Object that controls the menu. * @param item Menu item model object. * @return New instance of this class. */ public static function create(parent:MovieClip, controller:MenuController, item:MenuItem):MenuItemView; /** * The item that this component refers to. */ public function get item():MenuItem; } MenuView components could then listen to MenuController.instance for currentChange events and update whether or not they are enabled or disabled. Further attributes could be added to MenuItem (id, type, selectable, whatever). MenuController could also be used to keep track of other things. It might also be a good idea to create a Menu class for containing top-level MenuItem objects, with a corresponding MenuView class for containing top-level MenuItemView object. There are a lot of different things you could do with this basic MVC setup, depending on what you need. -- T. Michael Keesey The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ 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] FLVPlayback question...
Hi, 1. Switch between indexes if you have alot of sequential movies to play 2. use doLater if you're building on top of mx.core.uicomponent or a setInterval() with 100 milliseconds and a clear Interval to kill it again 3. Make sure you get the latest FLVPlayback component update 4. I am streaming through FMS and I get the same problem, make sure the flvs are not corrupted ..etc 5. check the following example, and make sure after you create allow a frame to pass so that the draw methods of the flvplayback component are done drawing. 6. MAKE sure you're not assigning an undefined value or a bad link, it breaks up the thing !! you'll have to use a catch/try if you're not sure or if statement before you assign. function createFLVPlayback() { this.my_FLVPlybk = FLVPlayback (this.attachMovie (FLVPlayback, my_FLVPlybk, 500)); this.my_FLVPlybk.autoPlay=true; this.play_btn._visible= !this.my_FLVPlybk.playing this.pause_btn._visible=this.my_FLVPlybk.playing this.my_FLVPlybk.activeVideoPlayerIndex = 1 this.my_FLVPlybk.visibleVideoPlayerIndex = 1 this.my_FLVPlybk.progressInterval = 001; voloff_btn._visible = false; play_btn._visible = false; } function switchToAnotherPlayer() { i=i==1? 2 : 1; k=i==1? 2 : 1; my_FLVPlybk.closeVideoPlayer(i); my_FLVPlybk.ncMgr.close(); my_FLVPlybk.getVideoPlayer(my_FLVPlybk.visibleVideoPlayerIndex).ncMgr.close(); my_FLVPlybk.activeVideoPlayerIndex = k; my_FLVPlybk.visibleVideoPlayerIndex = k; } On 12/16/06, Alon Zouaretz [EMAIL PROTECTED] wrote: hey, I had the same problem and manage to get around it with adding a 0.1sdelay to the function that load the video, so its not being called once the component [or the movieclip that holds it] is attached but once its already on the stage. hth a On 12/15/06, Josh Santangelo [EMAIL PROTECTED] wrote: I've had similar problems and struggled for weeks to solve them. I found that in general, FLVPlayback is much more reliable with RTMP streams than HTTP. Another thing to mess with is the visiblePlayerIndex and activePlayerIndex properties. Instead of playing one file right after the other in the same player, switch between a couple of player indexes. I think this approach works a bit better. -josh On Dec 13, 2006, at 10:36a, grimmwerks wrote: I've got an instance of the FLVPlayback in an app that is getting sent a path; it's contentPath was just being resent the new path. It's not working 100%, as every so often it decides it doesn't want to load that requested video. What's a better way of using one FLVPlayback object that reloads video requested? Birthing a new instance each and every time? ___ 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] BitmapData.draw() crossdomain in as3 Solve ???
i want to know the Problem Whether solve ___ 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] Password Protected Webservice call
I'm trying to call a webservice that requires a usename and password. But whenever i call it i get an error message for it locally or it pops a dialog when in a webpage. Is there anyway around this? Lori- ___ 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] Actionscript 3 Books
Millie Niss wrote: I was just looking at Joey Lott's Advanced Actionscript 3 With Design Patterns book in the store, and it looked pretty good, but it had knowledge of Actionscript 3 as a pre-requisite. I am not aware of any (print) books introducing Actionscript 3... Are there any? I'd like to start learning it (I saw that regular expressions are supported and that alone would be nice...) but I don't like the idea of learning a programming language from beta versions of Adobe's Help... Millie ___ 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 Hey Millie I used the Actionscript 3 cookbook to get startet :-) Morten Reinholdt http://www.flashorbit.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] Using transform with a clip loaded during runtime..
Hey folks, I haven't been a member of this list long, but love the opportunity to learn from you folks. Please go easy on me as I'm not much of a Flash expert here and this is my first post on the list. I have been searching for this problem I'm having and hopefully someone has some insight. Please take a gawk? I have a main app (AS2, Flash 8) that loads up an external SWF at runtime. The root app has a panel of buttons that each have color transforms applied to their background colors (each is an instance of a library clip with a background color clip set to transform). Basically, the intent is to be able to change their colors at runtime, so I did my first foray into Transforms with this project. So... I also want to take the color used for the buttons and apply them to clips that are inside an external SWF that is loaded during runtime. Thus, _root.button1 has a color transform set at initialization to an RGB value. What I want to do is apply the same color transform to _root.loadedMovie.someMovieClip . I had all the transforms working great inside the _root app, but once I tried transforming stuff inside the loaded movie clip, I am having no luck. I think it's mainly (only??) a scope issue, since I've done a trace(this); from inside the external SWF and when the root app runs, I see _level0.container.instance2 (container is where the SWF is loaded, of course). So, I'm having trouble understanding where instance2 gets decided, and how to control that so I can get to clips inside there... ie: _level0.container.instance2.myMiscMC ??? Every time I re-load the SWF (by clicking a load movie type button from _root), the instance gets updated... so it could be instance12 after a while, for instance. (Gah! pun NOT intended) Well.. I'm having trouble asking this question, since I'm not sure what to ask. Please let me know if anyone has some idea of what is going on here. I'll expand on the issue as I get some direction about what other info you need. I've tried placing some of the transform initialization code inside the external SWF itself... I'm not getting my head wrapped around why I would do that, though. It seems like the root app should create/control the transforms. Bah. Well, I'll see if anyone bites. Thanks HUGE for any help!! Best Regards, Paul Hoza ___ 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