[Flashcoders] flex/flash integration kit
This was just mentioned on the osflash mailing list: http://www.onflex.org/ted/2007/04/fitc-keynote-flexflash-integration-kit.php Maybe this will be the way to transform FCS3 exported timeline animations to Flex, which was discussed here recently. 1. Create Flex Components using Flash CS3. 2. Create custom controls and containers. (Yes containers!) 3. Leverage timeline animation for State transitions. 4. Integration with Flex component sizing and layout. 5. Seamless Event integration using MXML. 6. All features are 100% MXML compatible methods, properties, events, and bindings. 7. Seamless workflow for component creation from Flash CS3. Something to look forward to (will be on labs.adobe.com soon). regards, Muzak ___ 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] Web Services / Services in flash 9 cs3
Flash Remoting has always been a separate install (and we had to wait quite some time for the first AS2 version). Now it seems that the Data Components have been removed for AS3. They're still there if you create an AS2 document. I assume you have a pre-release version of FCS3, so maybe this will change in the final release. Would be a shame if we were forced to use Flex for data integration. regards, Muzak - Original Message - From: "Austin Kottke" <[EMAIL PROTECTED]> To: Sent: Thursday, April 19, 2007 8:49 AM Subject: [Flashcoders] Web Services / Services in flash 9 cs3 > Are we missing something? I can't find any support for web services, soap > calls, or > service objects in flash 9 cs3. How about flash remoting? How do we do this > now? > > Anyone have any ideas? This is a bit of a shock. > ___ 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] Scrollbar in IE / Resize outside player
Hi List, I'm quite new to flash and have run into 2 problems with a project I'm working on. I've got a ScrollPane of which I set the contentPath to display a document(another swf) inside it. This works during testing and in firefox, whenever I try in IE6 and IE7 the document only displays after I click on the next or previous button which is supposed to change frames of the document (which it does fine). The scrollbar does not appear either until some resize code is run (also only happens in IE6 and IE7). My second problem is that for some obscure (to me) reason I cannot duplicate my resizing code, it runs but whenever I try to set the size of a movie clip inside a window component it does not work outside of testing. Anyone have any ideas? Thanks Petrus ___ 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] Adobe Media Player vs. the competition..??
On Apr 18, 2007, at 10:49 PM, ben gomez farrell wrote: I'd say it stands a decent chance of supporting a bunch of formats eventually. Remember this thing is built on Apollo, and you can build your Apollo app with HTML. Maybe Apollo won't support HTML pages with plugins (except for Flash) at launch, but it would be in their best interest to render webpages as they appear in your browser, which means bringing in Quicktime support and others. Just speculation though! Initially there is not going to be any support for any motion video format other than FLV. In the 1.0 release, Adobe 'might' include the ability to run external applications to handle a file of a certain type, but it definitely won't be integrated into the application any time soon. Although WebKit includes support for plugin libraries, Adobe might be getting itself into a legal quagmire if it tried to 'pipe' the video data through any other player plugin (WMP, Quicktime, Real) into it's own interface. That remains to be seen though. All they'd really need to do to kill other media players would be to add support for the libavec libraries (FFMpeg and MPlayer) and they'd be able to playback a few hundred different formats. Definitely going to be interesting though ... - jon ___ 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] Compiler chokes when using a class method as event handler
Hello, I'm trying to create a v2 component representing a deck of playing cards and I have a problem, which I believe is very common, but I can't find a solution on the net yet. My code is simple and is listed completely at the bottom. And the problem is, that when I assign an event handler to each (child) card MC in my cards_array this way (is it called "closure"?) in the Deck.createChildren(), then it works ok: card.onPress = function() { this.setDepthTo(DepthManager.kTop); this.filters = _parent.shadow_array; } But when I try to move the code above into a separate method of the parent Deck class like this: card.onPress = raiseCard; or even: card.onPress = Delegate.create(card, raiseCard); Then the compiler will complain - even though I believe the scope (the card) is correct - and the Deck.as won't compile: **Error** Deck.as: There is no method with the name 'setDepthTo'. this.setDepthTo(DepthManager.kTop); What is the workaround here? Thank you Regards Alex class Deck extends UIComponent { static var symbolName:String = 'Deck'; static var symbolOwner:Object = Deck; var className:String = 'Deck'; private var bb_mc:MovieClip; private var cards_array:Array; var shadow_array:Array; function Deck() { } private function init():Void { super.init(); bb_mc.unloadMovie(); shadow_array = [ new DropShadowFilter(0, 90, 0x00, 0.30, 10, 10, 1, 1, false, false, false) ]; cards_array = []; } private function createChildren():Void { for (var i:Number = 0; i <= 32; i++) { var card_name:String = 'card_' + (i + 1) + '_mc'; var card:MovieClip = cards_array[i] = this.createChildAtDepth(i, DepthManager.kTop); // card.onPress = raiseCard; // card.onPress = Delegate.create(card, raiseCard); card.onPress = function() { trace('CLICKED CARD: ' + _width + ' x ' + _height + ' @ ' + _x + ', ' + _y + ' ' + _rotation); this.setDepthTo(DepthManager.kTop); this.filters = _parent.shadow_array; } } size(); } function raiseCard():Void { trace('CLICKED CARD: ' + _width + ' x ' + _height + ' @ ' + _x + ', ' + _y + ' ' + _rotation); this.setDepthTo(DepthManager.kTop); // XXX PROBLEM this.filters = _parent.shadow_array; } private function size():Void { super.size(); //if (! (this.__width > 0 && this.__height > 0) //return; for (var i:Number = 0; i <= 32; i++) { var card:MovieClip = cards_array[i]; card._x = Math.floor(Math.random() * (this.__width - card._width)); card._y = Math.floor(Math.random() * (this.__height - card._height)); card._rotation = Math.floor(Math.random() * 10 - 5); } invalidate(); } private function draw():Void { super.draw(); } } ___ 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] problems loading text
Hi, I have this buttons dynamically generated, this is the ccode: stop(); var menus = new Array (); menus = ["Results of using POA","Previous steps to POA", "How do we apply POA", "What is POA"]; trace(menus.length); for (i=0; i var buttons = this.attachMovie("buttoms",newButtons, this.getNextHighestDepth()); trace(buttons); buttons._x=0; buttons._y=-10*i*4; var newText = buttons.poa.text=menus[i]; buttons.onRelease = function(){ tellTarget(_root.screenTxt){ gotoAndPlay("menus[i]"); } } } the problem is once It starts to use the goto and play to other movie clip which has flags in some frames where it starts loading a .text into a text field using loadVars, well then the odd thing happens, the first time I clicked, it shows the text, but then when I click the buttons randomly, the text loads without any order, I mean it loads the text from one to the other...do you know why? And by the way if a text field is inside a movie clip the scrollBar component appears not to load properly...is not even working...why? Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 w. Beaver St. suite 119 Jacksonville, FL 32204 904 . 2650330 www.leftandrightsolutions.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] Finding the height and width of the VISIBLE area of a masked SWF
With your second explanation, the problem you are having is clearer. About a year ago, I developed an application where I had a container that loaded SWFs from other developers. I contacted all the developers with the dimensions and the FPS the SWF container is being built on and sent them an API to communicate with the container. It made my life a little easier. The problem was that some developers didn't conform to the API or read the docs, which led to last minute phone conferences to explain how to use the API, but that is besides the point. Because you have no control of those properties, I believe there isn't a viable fix other than getting the loaded SWF dimensions from the movieclip reference. From what I remember; if the SWF you are loading is built at a faster FPS than your container they will run slower and the loaded SWF may not account for that. Example; your container is 12 FPS and the loaded SWF is 24 FPS, the loaded SWF will run at 12 FPS. They might not be checking the current FPS and adjust their parameters for time based movement. The only other thing I can think of, but I haven't dealt with was changing the scale mode of the stage to "showAll" or "exactFit". I am not sure this will help though and this will affect the container SWF as well. Let me know if you do figure this out another way, I would be interesting to know. Cheers, Rob. matt stuehler wrote: Claus, That's a great suggestion - the best answers are often the overlooked, obvious ones. But I don't think so - in the original SWFs, the masks aren't movieclips - they're just fills. So, I don't know how you'd check their width or height. The key thing about the application is that I won't know anything about the SWFs that are being loaded. My app should simply load a swf into a container movieclip, then attempt to scale it to fit the stage, and center it. Ordinarily, I can just check the container._width and container._height to accomplish this. But I've tested a few SWFs that weren't working properly, and that's when I discovered that they were using masks, which throws off the _width and _height. I can't assume that the SWFs will use a movieclip as a mask. Thanks again for your advice. Cheers, Matt On 4/18/07, Claus Wahlers <[EMAIL PROTECTED]> wrote: > I'd like to be able to find the VISIBLE height and width of those > SWFs; however _width and _height return the size of ALL the masked > content. Can't you just check the width/height of the mask? Cheers, Claus. -- claus wahlers cĂ´deazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ ___ 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] Fixed: need to send on(rollOut) to button component
I was having trouble with some buttons that I was un-enabling as soon as onRelease was called. The trouble was that when the buttons where later re-enabled, they were displaying their "Over" skin. I have fixed this by calling onRollOut() immediately after re-enabling: button.enabled = 1; button.onRollOut(); Andrew Sinning wrote: I have configured a group of button components so that only one can be selected at a time and so that each button becomes not enabled after it is selected. The problem is that since the button.enabled = false happens before the on(rollOut) event, later on when it is re-enabled it displays its overSkin state. If I could send it an on(rollOut) event then I think this problem would be resolved, but I don't know the correct syntax. 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] Compiler chokes when using a class method as event handler
The compiler says: "**Error** Deck.as: There is no method with the name 'setDepthTo'. this.setDepthTo(DepthManager.kTop);" And from your code I don't see it either: this.setDepthTo or this.filters. When you say "it works" do you mean it compiles ok or that onPress the card acts the way it should visually? Took a quick look at UIComponent and didn't see them there either.. I wouldn't be surprised if you traced those two calls and they would be undefined. Hope this helps, Rob. Alexander Farber wrote: Hello, I'm trying to create a v2 component representing a deck of playing cards and I have a problem, which I believe is very common, but I can't find a solution on the net yet. My code is simple and is listed completely at the bottom. And the problem is, that when I assign an event handler to each (child) card MC in my cards_array this way (is it called "closure"?) in the Deck.createChildren(), then it works ok: card.onPress = function() { this.setDepthTo(DepthManager.kTop); this.filters = _parent.shadow_array; } But when I try to move the code above into a separate method of the parent Deck class like this: card.onPress = raiseCard; or even: card.onPress = Delegate.create(card, raiseCard); Then the compiler will complain - even though I believe the scope (the card) is correct - and the Deck.as won't compile: **Error** Deck.as: There is no method with the name 'setDepthTo'. this.setDepthTo(DepthManager.kTop); What is the workaround here? Thank you Regards Alex class Deck extends UIComponent { static var symbolName:String = 'Deck'; static var symbolOwner:Object = Deck; var className:String = 'Deck'; private var bb_mc:MovieClip; private var cards_array:Array; var shadow_array:Array; function Deck() { } private function init():Void { super.init(); bb_mc.unloadMovie(); shadow_array = [ new DropShadowFilter(0, 90, 0x00, 0.30, 10, 10, 1, 1, false, false, false) ]; cards_array = []; } private function createChildren():Void { for (var i:Number = 0; i <= 32; i++) { var card_name:String = 'card_' + (i + 1) + '_mc'; var card:MovieClip = cards_array[i] = this.createChildAtDepth(i, DepthManager.kTop); //card.onPress = raiseCard; //card.onPress = Delegate.create(card, raiseCard); card.onPress = function() { trace('CLICKED CARD: ' + _width + ' x ' + _height + ' @ ' + _x + ', ' + _y + ' ' + _rotation); this.setDepthTo(DepthManager.kTop); this.filters = _parent.shadow_array; } } size(); } function raiseCard():Void { trace('CLICKED CARD: ' + _width + ' x ' + _height + ' @ ' + _x + ', ' + _y + ' ' + _rotation); this.setDepthTo(DepthManager.kTop); // XXX PROBLEM this.filters = _parent.shadow_array; } private function size():Void { super.size(); //if (! (this.__width > 0 && this.__height > 0) //return; for (var i:Number = 0; i <= 32; i++) { var card:MovieClip = cards_array[i]; card._x = Math.floor(Math.random() * (this.__width - card._width)); card._y = Math.floor(Math.random() * (this.__height - card._height)); card._rotation = Math.floor(Math.random() * 10 - 5); } invalidate(); } private function draw():Void { super.draw(); } } ___ 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] Compiler chokes when using a class method as eventhandler
The DepthManager adds methods to the MovieClip prototype, but they're not defined in UIComponent. Some are defined in UIObject, but setDepthTo is not one of them: var buildDepthTable:Function; var findNextAvailableDepth:Function; var createChildAtDepth:Function; var createClassChildAtDepth:Function So when you want to use setDepthTo in a class that extends UIComponent, you'll have to define it as a property of the class. import mx.core.UIComponent; class Deck extends UIComponent { public var setDepthTo:Function; } Your use of createChildAtDepth() seems to be incorrect. The first argument needs to be the LinkageID of a Symbol in the Library this.createChildAtDepth("Card", DepthManager.kTop); When dealing with multiple child objects within a class (cards in the deck), it is best to make those a child objects a seperate class (Card). This will allow you to deal with them properly, like respond to/listen to events dispatched from each card instance. For instance, if card is a plain movieclip and you have the following scenarios: card.onPress = raiseCard; function raiseCard() { // runs in scope of card instance and not Deck //bad // this != Card } --> The above will let you target the card instance (by using 'this') but that's bad practice. 'this' within a class should always point to the class instance. card.onPress = Delegate.create(this, raiseCard); function raiseCard() { // runs in scope of Deck //good // this == Card // but which card was clicked?? } --> The above looks better, but you have no way of knowing which card was pressed. No big deal if you only have one card instance, but you have 32 of them ;-) so this is no good either. card.onPress = function(){} --> Don't even go there ;-) There's only one option left.. Make it a Class --> Card: // Card - (only defined events for clarity) import mx.core.UIComponent; import mx.events.EventDispatcher; import mx.managers.DepthManager; class Card extends UIComponent { private static var dispatcherInit = EventDispatcher.initialize(Card.prototype); public var setDepthTo:Function; private function onPress() { trace("Card ::: onPress"); this.startDrag(); this.dispatchEvent({type:"press"}); } private function onRelease() { trace("Card ::: onRelease"); this.stopDrag() this.dispatchEvent({type:"release"}); } } And here's what the Deck class looks like: //Deck import mx.core.UIComponent; import mx.managers.DepthManager; import mx.utils.Delegate; import flash.filters.DropShadowFilter; class Deck extends UIComponent{ static var symbolName:String = 'Deck'; static var symbolOwner:Object = Deck; var className:String = 'Deck'; private var bb_mc:MovieClip; private var cards_array:Array; var shadow_array:Array; function Deck() { } private function init():Void { super.init(); bb_mc.unloadMovie(); shadow_array = [ new DropShadowFilter(0, 90, 0x00, 0.30, 10, 10, 1, 1, false, false, false) ]; cards_array = []; } private function createChildren():Void { trace("Deck ::: createChildren"); for (var i:Number = 0; i < 32; i++) { var card:MovieClip = cards_array[i] = this.createChildAtDepth("Card", DepthManager.kTop); card.addEventListener("press", Delegate.create(this, cardPressHandler)); card.addEventListener("release", Delegate.create(this, cardReleaseHandler)); } size(); } private function size():Void { super.size(); var len:Number = this.cards_array.length; for (var i:Number = 0; i < len; i++) { var card:MovieClip = cards_array[i]; card.x = Math.floor(Math.random() * (this.__width - card.width)); card.y = Math.floor(Math.random() * (this.__height - card.height)); card._rotation = Math.floor(Math.random() * 10 - 5); } invalidate(); } private function cardPressHandler(o:Object):Void { trace("Deck ::: cardPressHandler"); var t:MovieClip = o.target; trace("- target: "+t); trace("- width: "+t.width); trace("- height: "+t.height); trace("- x: "+t.x); trace("- y: "+t.y); trace("- _rotation: "+t._rotation); t.setDepthTo(DepthManager.kTop); t.filters = this.shadow_array; } function cardReleaseHandler(o:Object):Void { trace("Deck ::: cardReleaseHandler"); var t:MovieClip = o.target; trace("- target: "+t); t.filters = []; } } Because each card instance now uses the EventDispatcher class you can easily determine which card instance was pressed/released through the argument passed to the event handler. Note that setDepthTo is defined in the Card class, not the Deck class. And allthough it is now defined, it's actually no longer needed, because I'm defining the target as MovieClip var t:MovieClip = o.target; t.setDepthTo(...); The following would actually be better: var t:Card = o.target; t.setDepthTo(...); regards, Muzak - Original Message - From: "Alexander Farber" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, April 19, 2007 2:41 PM Subj
Re: [Flashcoders] Compiler chokes when using a class method as event handler
Hello Robert, On 4/19/07, Robert Brisita <[EMAIL PROTECTED]> wrote: The compiler says: "**Error** Deck.as: There is no method with the name 'setDepthTo'. this.setDepthTo(DepthManager.kTop);" And from your code I don't see it either: this.setDepthTo or this.filters. When you say "it works" do you mean it compiles ok or that onPress the card acts the way it should visually? Took a quick look at UIComponent and didn't see them there either.. I wouldn't be surprised if you traced those two calls and they would be undefined. no, it really works in the sense that the clicked card is displayed at the top, with a shadow underneath. I've found a workaround: defined a dummy method with the same name in the ("parent") Deck class: private function setDepthTo() { // dummy method to stop compiler from complaining } I think what's happening is that the compiler is too dumb to realize that the Deck class method will be called in the other scope (i.e. with "this" pointing to card mc and not to a Deck object). But at run-time the method is really called with card (and thus the 2 methods won't be undefined) Regards Alex -- http://preferans.de PS: Below is my almost working code (the "card" event doesn't dispatch yet for some reason, but the rest works - card can be dragged etc.): import flash.filters.DropShadowFilter; import flash.filters.GlowFilter; import mx.managers.DepthManager; import mx.core.UIComponent; [Event('card')] class Deck extends UIComponent { static var symbolName:String = 'Deck'; static var symbolOwner:Object = Deck; var className:String = 'Deck'; var shadow_array:Array; var evt_obj:Object; private var bb_mc:MovieClip; private var cards_array:Array; function Deck() { } private function init():Void { super.init(); bb_mc.unloadMovie(); shadow_array = [ new DropShadowFilter(0, 90, 0x00, 0.40, 16, 16, 1, 1, false, false, false) ]; cards_array = []; evt_obj = {target: this, type: 'card'}; } private function createChildren():Void { for (var i:Number = 0; i <= 32; i++) { var card:MovieClip = cards_array[i] = this.createChildAtDepth(i, DepthManager.kTop); card._xscale = card._yscale = 50; card.onPress = raiseCard; card.onRelease = card.onReleaseOutside = releaseCard; } size(); } private function setDepthTo() { // dummy method to stop compiler from complaining } function raiseCard():Void { setDepthTo(DepthManager.kTopmost); _rotation = Math.floor(Math.random() * 9 - 4); _x -= 1; _y -= 2; _xscale = _yscale = 54; filters = _parent.shadow_array; startDrag(this, false, 0, 0, _parent._width - this._width, _parent._height - this._height); } function releaseCard():Void { setDepthTo(DepthManager.kTop); _x += 1; _y += 2; _xscale = _yscale = 50; filters = []; stopDrag(); _parent.evt_obj.x = this._x; _parent.dispatchEvent(evt_obj); } private function size():Void { super.size(); for (var i:Number = 0; i <= 32; i++) { var card:MovieClip = cards_array[i]; card._x = Math.floor(Math.random() * (this.__width - card._width)); card._y = Math.floor(Math.random() * (this.__height - card._height)); card._rotation = Math.floor(Math.random() * 9 - 4); } invalidate(); } private function draw():Void { super.draw(); } } ___ 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] Compiler chokes when using a class method aseventhandler
typo: card.onPress = raiseCard; function raiseCard() { // runs in scope of card instance and not Deck //bad // this != Card } should be card.onPress = raiseCard; function raiseCard() { // runs in scope of card instance and not Deck //bad // this != Deck } ___ 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] Anything to know about Vista multimedia development?
Hey everyone, We might have a project coming up that needs to run in Vista. We'll do the development in Flash, and I'm assuming that making a Flash projector should be no problem (right? even if we're using Flash 8?) What I'm worried about is if the client needs to set the desktop resolution, or anything else we've relied on Director, or Zinc, or SWFStudio in the past to do. I haven't upgraded to Vista, so I can't test these things out yet. Can I still promise essentially the same things? None of these products seem to claim Vista support yet, but I assume it SHOULD workbut then I don't know if there's any quirks I should be aware of. Anybody done anything with these products yet in Vista? Thanks! ben ___ 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] Compiler chokes when using a class method as event handler
Found my error - was missing _parent.evt_obj in the last line below: On 4/19/07, Alexander Farber <[EMAIL PROTECTED]> wrote: PS: Below is my almost working code (the "card" event doesn't dispatch yet for some reason, but the rest works - card can be dragged etc.): function releaseCard():Void { setDepthTo(DepthManager.kTop); _x += 1; _y += 2; _xscale = _yscale = 50; filters = []; stopDrag(); _parent.evt_obj.x = this._x; _parent.dispatchEvent(evt_obj); } ___ 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] Compiler chokes when using a class method aseventhandler
Bah, and another.. sorry.. function raiseCard() { // runs in scope of Deck //good // this == Card // but which card was clicked?? } should be function raiseCard() { // runs in scope of Deck //good // this == Deck // but which card was clicked?? } ___ 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] Debugging browser/plugin interaction
Hi there, I was wondering if anyone could help me out on this... For reasons which I won't go into, I want to observe what calls the flash player (mozilla plugin) makes to the browser via the mozilla plugin (NPAPI). Specifically, I'd like to find out what's happening when a URL, javascript or asfunction link is clicked. I'm guessing that one of the four URL methods are called: http://web.archive.org/web/20040203100442/devedge.netscape.com/library/manuals/2002/plugin/1.0/develop.html#1001184 Ideally, it would be cool if I could just get a tool which I could load the mozilla plugin into, and monitor the NSAPI calls as I interact with the flash player. Failing that, does anyone know for sure what parameters the player uses? I suspect it would be different in many different scenarios Does anyone know if this is possible? Or do I have to learn C++ and compile the Firefox source code myself? Thanks in advance, Alias ___ 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] Compiler chokes when using a class method as eventhandler
Hello Muzak, On 4/19/07, Muzak <[EMAIL PROTECTED]> wrote: Because each card instance now uses the EventDispatcher class you can easily determine which card instance was pressed/released through the argument passed to the event handler. your suggestion is excellent as always - I'll try that! May I ask you and others another related question? The DepthManager seems to fit my card gaming needs quite well, but there is one annoyance: (please see here: http://preferans.de/flash/Deck.swf ) I (will) have a Deck component managing playing cards, but I also have 3 other components representing the players. I'd like those 3 components to be above all cards, BUT: when user drags a card, then that top card should be drawn above them. Is that possible at all? I've tried this code: import mx.managers.DepthManager; import mx.controls.Loader; var player1 = createClassChildAtDepth(Loader, DepthManager.kTop); var player2 = createClassChildAtDepth(Loader, DepthManager.kTop); var player3 = createClassChildAtDepth(Loader, DepthManager.kTop); player1.move(280, 300); player2.move(10, 10); player3.move(580, 10); player1.contentPath = player2.contentPath = player3.contentPath = 'http://preferans.de/images/avatars/4.jpg'; // and the deck component already placed in auth. env. and played with kTop, kTopmost etc. but it doesn't help... The docs mention some Cursor and Tooltip "levels". Should I go there? (players = Tooltip, top card = Cursor) Regards Alex -- http://preferans.de ___ 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] Unique Machine ID from within the Browser?
Hello, Does anyone know of a way to get/generate a unique machine ID from within Flash (or even Javascript) in the browser? I have done this with mProjector before, but it was of course a function specific to mProjector. I'm trying to achieve the same functionality within the browser. A UID based on a timestamp and a pseudo-random generator will not suffice...this needs to identify the machine in the same fashion every time (although I understand that it would probably change if the hard drive were formatted) and I will not necessarily be storing the value in a local SharedObject. I hope that's enough information to explain what I'm trying to achieve! Any help/thoughts are greatly appreciated. Cheers! -- Jordan Snyder Application Developer Image Action http://www.imageaction.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] On2VP6 hardware acceleration
We have not had much luck deploying video that is more demanding than the following: 720x540 pixels, at 15fps, 1.2mbps. If we do larger than that, we get stuttering video. Even jacking up the frame rate to 29.97 causes hesitation problems. Are there ways to hook into video board acceleration to run On2VP6? We've used PowerDVD Deluxe to playback H264 at 1080-24p via an Nvidia board acceleration. Hoping there is a way to do this with On2. Otherwise, I don't get the point to Adobe's announced Flash Video Player. Thanks, Randy Tinfow IMAGE PLANT ___ 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] Adobe Media Player vs. the competition..??
@ben: excellent point! i hadnt thought about the HTML embed route, that's def. something to think about. i want to try it actually just to see what happens. @jon: i'm not familiar with libavec but that is def something to think about and look into as well. it seems like apollo is going to have to support the other video formats at some point to really compete with other desktop authoring environments. also what about artemis right? seems like there may be a way to do something similar for video... (all of this total speculation here too btw, just thinking out loud with you guys.) a little off the original subject, i think it's very cool that this is the first app by adobe in apollo. my suspicion is that this is going to help get the runtime out there. thanks again for the replies guys, awesome input!! - Original Message - From: "Jon Bradley" <[EMAIL PROTECTED]> To: Sent: Thursday, April 19, 2007 5:25 AM Subject: Re: [Flashcoders] Adobe Media Player vs. the competition..?? On Apr 18, 2007, at 10:49 PM, ben gomez farrell wrote: I'd say it stands a decent chance of supporting a bunch of formats eventually. Remember this thing is built on Apollo, and you can build your Apollo app with HTML. Maybe Apollo won't support HTML pages with plugins (except for Flash) at launch, but it would be in their best interest to render webpages as they appear in your browser, which means bringing in Quicktime support and others. Just speculation though! Initially there is not going to be any support for any motion video format other than FLV. In the 1.0 release, Adobe 'might' include the ability to run external applications to handle a file of a certain type, but it definitely won't be integrated into the application any time soon. Although WebKit includes support for plugin libraries, Adobe might be getting itself into a legal quagmire if it tried to 'pipe' the video data through any other player plugin (WMP, Quicktime, Real) into it's own interface. That remains to be seen though. All they'd really need to do to kill other media players would be to add support for the libavec libraries (FFMpeg and MPlayer) and they'd be able to playback a few hundred different formats. Definitely going to be interesting though ... - jon ___ 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] Finding the height and width of the VISIBLE area ofamasked SWF
Why not place a movie clip, behind the bottom-most background layer (or, make it invisible) that is the same size as the "desired" size(or "visible" height & width) you wish the swf to be read as, by the main stage (assuming that is what you are trying to do)? That way, if your swf is really 800 X 600, you can have the main stage call the swf to see what the desired size is of the incoming swf, (400 X 300) and do with that information whatever it is you are trying to do. (I dunno if that makes any sense?) Heck, I'm not even sure if what you are attempting to do can be done that way, or not - I'm still trying to get a handle on ActionScript, myself! I sure wish they would stop re-writing/updating ActionScript it long enough for the slower of us to catch on! :-P Also, what about "_lockroot"? If it's a matter of your ext. swfs being re-sized because they are being imported onto the stage, perhaps using "_lockroot" might prevent that (although, I am not sure if that actually controls the stage size of the swf ,or not). Michael Hood Internal Applications Dev ADMS/ CMS/ Armory > [Original Message] > From: Hershell Bryant <[EMAIL PROTECTED]> > To: > Date: 4/18/2007 3:21:39 PM > Subject: RE: [Flashcoders] Finding the height and width of the VISIBLE area ofamasked SWF > > To center the visible part on stage, center the mask on stage. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of matt > stuehler > Sent: Wednesday, April 18, 2007 2:30 PM > To: Flashcoders mailing list > Subject: [Flashcoders] Finding the height and width of the VISIBLE area of > amasked SWF > > All, > > It looks like this has been asked before, but I couldn't find an answer. > > I'm creating a Flash app that loads several SWFs. > > Those SWFs contain use masks. > > I'd like to be able to find the VISIBLE height and width of those > SWFs; however _width and _height return the size of ALL the masked > content. > > In other words, if the SWF has a stage size of 400x300, and a mask of > 400x300, but the total size of the SWF is 800x600 (e.g., b/c of > off-stage content, or stuff that's not visible thru the mask), then > _width returns 800, and _height returns 600. > > I can see why that's sometimes useful, but in this particular > application, I need to know the VISIBLE size. > > For example, I'd like to be able to center the VISIBLE part of the SWF > on the stage. > > Is there any way to figure that out? > > Cheers, > Matt Stuehler > ___ > 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] On2VP6 hardware acceleration
On Apr 19, 2007, at 1:09 PM, Randy Tinfow wrote: We have not had much luck deploying video that is more demanding than the following: 720x540 pixels, at 15fps, 1.2mbps. If we do larger than that, we get stuttering video. Even jacking up the frame rate to 29.97 causes hesitation problems. Are there ways to hook into video board acceleration to run On2VP6? We've used PowerDVD Deluxe to playback H264 at 1080-24p via an Nvidia board acceleration. Hoping there is a way to do this with On2. Otherwise, I don't get the point to Adobe's announced Flash Video Player. On2 VP6 is a software decoded format, it's not supported in any hardware decoding systems that I am aware of. You shouldn't need hardware acceleration for H.264. If you need hardware acceleration, then your system is too slow (honestly). I can play back 1080p, 4:2:0 in realtime, 24/30 fps no problem. Playback of H.264 is dependent on the data rate you're working with, which, unless you're a broadcast firm is most likely to be well under 20 MB/s. Encode a 1080p H.264 Quicktime file (mid-profile is all it supports for now) and play that back. At best quality you shouldn't have any problem if you have a fast enough system. H.264 is way more demanding than the OnVP6 codec. It's also quite a bit higher quality and can handle much higher data rates. I'm not sure what your system specs are but I've got HD FLV files that playback quite nicely, from 720p up to1080p. cheers, Jon Jon Bradley Animation / Interactive / Visual FX Post Central, Inc. 170 Linden Oaks, Suite B Rochester, NY 14625 585.385.1530 x273 [EMAIL PROTECTED] www.cherrycrushthemovie.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] [semi-OT] - Preventing Software Piracy
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Weyert de Boer > > > Genuine Dongles? What about dumping dongle data and then use a dongle > emulator? I'm glad you asked! =) Making a totally un-copyable dongle is actually pretty trivial. There are many USB microcontrollers that have Flash-ROM embedded in the chip, allowing you to "lock" the memory once its programmed -- no way to read it, even if you physically dismantle the circuit, except through the program's pre-programmed outputs. Using a combination of book encryption and hashing algorithms, you can essentially have gigabytes of random data that can only be expressed through the microcontroller's pre-programmed USB outputs. Using a deliberate delay in the microcontroller, it could take 10 seconds to verify any one arbitrary key. Even if a straight year was spent downloading keys, the counterfeit would only have one answer for every 100 verifications. The PC then only stores one-way encrypted versions of the "answers", so even the PC does not know what the dongle will answer (making it impossible to steal keys from the PC). To see if the dongle answered correctly, the dongle's answer is encrypted using the same one-way encryption, and that is compared to the PC's already encrypted answers. - Kipp PS. There are ways of hacking these chips, involving slicing the top of the microchip off in a clean-room, running gold thread to the memory controller and reading the embedded memory directly. Haha. ___ 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] * Paid Project * - FLV Player Skin, enhancements
I'm looking for an actionscript developer to customize the flv player here: http://www.jeroenwijering.com/?item=flash_video_player All of the graphics are complete and I have a prototype of the skin working with an older version of the source code, but need further enhancements within a tight time line. Here are the basic requirements: 1. New look and feel - graphics provided. 2. Modify fullscreen behavior. The player will be loaded into a flash website and the "fullscreen" mode will be 640x480 contained in the same flash movie. The fullscreen controlbar is slightly different than the normal size controls. So it's actually two different player views. 3. Two playlist views. In "fullscreen" mode the playlist has larger buttons and more info on each button. 4. The code must be clean, well documented and adhere to the MVC pattern of the existing code. If you are interested please contact me off-list and we can discuss in further detail. Thanks, Brian ___ 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] Finding the height and width of the VISIBLE area ofamasked SWF
All, I've come up with a solution - it's not perfect, but it's pretty robust and reliable. If anyone is following this thread and would like more detail, send me an email. Cheers, Matt Stuehler On 4/19/07, Michael Hood <[EMAIL PROTECTED]> wrote: Why not place a movie clip, behind the bottom-most background layer (or, make it invisible) that is the same size as the "desired" size(or "visible" height & width) you wish the swf to be read as, by the main stage (assuming that is what you are trying to do)? That way, if your swf is really 800 X 600, you can have the main stage call the swf to see what the desired size is of the incoming swf, (400 X 300) and do with that information whatever it is you are trying to do. (I dunno if that makes any sense?) Heck, I'm not even sure if what you are attempting to do can be done that way, or not - I'm still trying to get a handle on ActionScript, myself! I sure wish they would stop re-writing/updating ActionScript it long enough for the slower of us to catch on! :-P Also, what about "_lockroot"? If it's a matter of your ext. swfs being re-sized because they are being imported onto the stage, perhaps using "_lockroot" might prevent that (although, I am not sure if that actually controls the stage size of the swf ,or not). Michael Hood Internal Applications Dev ADMS/ CMS/ Armory > [Original Message] > From: Hershell Bryant <[EMAIL PROTECTED]> > To: > Date: 4/18/2007 3:21:39 PM > Subject: RE: [Flashcoders] Finding the height and width of the VISIBLE area ofamasked SWF > > To center the visible part on stage, center the mask on stage. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of matt > stuehler > Sent: Wednesday, April 18, 2007 2:30 PM > To: Flashcoders mailing list > Subject: [Flashcoders] Finding the height and width of the VISIBLE area of > amasked SWF > > All, > > It looks like this has been asked before, but I couldn't find an answer. > > I'm creating a Flash app that loads several SWFs. > > Those SWFs contain use masks. > > I'd like to be able to find the VISIBLE height and width of those > SWFs; however _width and _height return the size of ALL the masked > content. > > In other words, if the SWF has a stage size of 400x300, and a mask of > 400x300, but the total size of the SWF is 800x600 (e.g., b/c of > off-stage content, or stuff that's not visible thru the mask), then > _width returns 800, and _height returns 600. > > I can see why that's sometimes useful, but in this particular > application, I need to know the VISIBLE size. > > For example, I'd like to be able to center the VISIBLE part of the SWF > on the stage. > > Is there any way to figure that out? > > Cheers, > Matt Stuehler > ___ > 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] [semi-OT] - Preventing Software Piracy
Can you give me some guidance about vendors for low cost dongles please? Thanks. Laurie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Friday, 20 April 2007 4:51 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] [semi-OT] - Preventing Software Piracy > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Weyert de Boer > > > Genuine Dongles? What about dumping dongle data and then use a dongle > emulator? I'm glad you asked! =) Making a totally un-copyable dongle is actually pretty trivial. There are many USB microcontrollers that have Flash-ROM embedded in the chip, allowing you to "lock" the memory once its programmed -- no way to read it, even if you physically dismantle the circuit, except through the program's pre-programmed outputs. ___ 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] Finding the height and width of the VISIBLE area ofamasked SWF
You could probably do it by blitting the contents of the clip to a BitmapData and then using getColorBoundsRect(). Ian On 4/19/07, matt stuehler <[EMAIL PROTECTED]> wrote: All, I've come up with a solution - it's not perfect, but it's pretty robust and reliable. If anyone is following this thread and would like more detail, send me an email. Cheers, Matt Stuehler ___ 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] [semi-OT] - Preventing Software Piracy
And me ;) ! How would I connect such a dongle with the app I am trying to preotect when I am using Director and / or Flash! Nik On 4/19/07, Laurie Jensen <[EMAIL PROTECTED]> wrote: Can you give me some guidance about vendors for low cost dongles please? Thanks. Laurie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Friday, 20 April 2007 4:51 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] [semi-OT] - Preventing Software Piracy > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Weyert de Boer > > > Genuine Dongles? What about dumping dongle data and then use a dongle > emulator? I'm glad you asked! =) Making a totally un-copyable dongle is actually pretty trivial. There are many USB microcontrollers that have Flash-ROM embedded in the chip, allowing you to "lock" the memory once its programmed -- no way to read it, even if you physically dismantle the circuit, except through the program's pre-programmed outputs. ___ 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 -- Nik C ___ 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] Compiler chokes when using a class method aseventhandler
Have you tried using setDepthAbove(instance) DepthManager.setDepthAbove() regards, Muzak - Original Message - From: "Alexander Farber" <[EMAIL PROTECTED]> To: Sent: Thursday, April 19, 2007 6:13 PM Subject: Re: [Flashcoders] Compiler chokes when using a class method aseventhandler > Hello Muzak, > > On 4/19/07, Muzak <[EMAIL PROTECTED]> wrote: >> Because each card instance now uses the EventDispatcher class you can easily >> determine which card instance was pressed/released >> through the argument passed to the event handler. > > your suggestion is excellent as always - I'll try that! > > May I ask you and others another related question? > > The DepthManager seems to fit my card gaming > needs quite well, but there is one annoyance: > > (please see here: http://preferans.de/flash/Deck.swf ) > > I (will) have a Deck component managing playing cards, > but I also have 3 other components representing the > players. I'd like those 3 components to be > above all cards, BUT: when user drags a card, > then that top card should be drawn above them. > > Is that possible at all? I've tried this code: > > import mx.managers.DepthManager; > import mx.controls.Loader; > > var player1 = >createClassChildAtDepth(Loader, DepthManager.kTop); > var player2 = >createClassChildAtDepth(Loader, DepthManager.kTop); > var player3 = >createClassChildAtDepth(Loader, DepthManager.kTop); > > player1.move(280, 300); > player2.move(10, 10); > player3.move(580, 10); > > player1.contentPath = player2.contentPath = > player3.contentPath = 'http://preferans.de/images/avatars/4.jpg'; > > // and the deck component already placed in auth. env. > > > and played with kTop, kTopmost etc. but it doesn't help... > > The docs mention some Cursor and Tooltip "levels". > Should I go there? (players = Tooltip, top card = Cursor) > > Regards > Alex > ___ 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] Flash Media Player
I may be stupid for asking but could someone tell me where I can get the media player used here: http://www.adobe.com/products/creativesuite/production/events/nab2007/webcast/ I went to the Multicast website and saw that they had something called "Interactive Media Player." Just to be clear, I am not talking about the entire application, just the media player part that has email, send link and help functionality as well as bandwidth detection and video source switching from the context menu. Thanks, Aaron ___ 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] MXP installation in Flash CS3
Hi all, A client of mine has recently reported that he has problems installing MXP package in Flash CS3. I haven't upgraded to CS3 yet, so I'd appreciate if someone can confirm or deny: 1) mxp still can work for CS3 (with Extension manager, of course) 2) content goes as it used in Flash 8: components - in $flash/Components classes - in $flash/Classes help - in $flash/HelpPanel/Help 3) Has $flash path changed sighnifically in Flash CS3? To answer above questions, you just need to install any mxp from Adobe exchange. While I do understand that it is (with probability of 90%) just a "client can't see the obvious thing" issue, but just to be sure. Thanks in advance. -- -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ 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