[Flashcoders] Re: Disable focus change on arrow keys down
I forgot to mention, it works if I set the scrollpane focusRect property to false. But I want to use the default yellow focusrect. > From: Patrick Matte > Date: Tue, 04 Aug 2009 16:35:43 -0700 > To: Flash Coders List > Conversation: Disable focus change on arrow keys down > Subject: Disable focus change on arrow keys down > > When the focus is set to this scrollpane I made, I want to use the arrow keys > to scroll the scrollpane content left, up, down, and right. But flash > automatically changes focus to the next object in the tab order as soon as I > press an arrow key. Is there any way to prevent that? I've tried calling > preventDefault, stopImmediatePropagation and stopPropagation on the keydown > handler but it doesn't change anything. This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Disable focus change on arrow keys down
When the focus is set to this scrollpane I made, I want to use the arrow keys to scroll the scrollpane content left, up, down, and right. But flash automatically changes focus to the next object in the tab order as soon as I press an arrow key. Is there any way to prevent that? I've tried calling preventDefault, stopImmediatePropagation and stopPropagation on the keydown handler but it doesn't change anything. This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] re: gotoStopAndWait
Have you tried addFrameScript? Leandro Ferreira Sent from Brasilia, DF, Brazil On Tue, Aug 4, 2009 at 15:30, Mario Gonzalez wrote: > (I think there was a problem when i sent my initial email so resending) > > Hey list, > > Here's a problem i've had to lesser or greater degrees for pretty much > ever. I'm sure everyone's come across it. > Depending on what's going on, on the site, or especially if it's during the > application initialization. > > Here's an example scenario, > > You have 10 different illustrated pants for a character in a MovieClip, > each mapped to a different label. > Based on the database information, you load the proper 'pants' swf, then > switch to the variation of it based on the frame label using gotoAndStop. > However when you try to access, pants.getChildByName('thing') you receive > null. > > Sometimes the assets are just not ready yet, period case closed. > > I've tried different solutions to this problem on different projects, > ranging from > -moving asset initialization function (sometimes just not an option) > -creating a FrameDelay class, > -creating enterframe listener checking then killing itself once the asset > is accessible, > - and shamefully even sometimes having to use setTimeout with 250 ms when > the site was live and there was no time for elegant work arounds > -- > > I'm aware of how the flash player works, that it needs a step sometimes to > process the assets in the frame. > Does anyone have a kind of magic bullet solution or workaround for this or > in general i'm interested in hearing how you guys have dealt with this > problem. > -- > > Mario Gonzalez > http://www.onedayitwillmake.com > > > > __ Information from ESET NOD32 Antivirus, version of virus > signature database 4305 (20090804) __ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > > ___ > 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] removeMovieClip, Flashlite3, AS2
Tried that. Have also verified that the depth is in valid range. --- On Tue, 8/4/09, Karl DeSaulniers wrote: From: Karl DeSaulniers Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2 To: "Flash Coders List" Date: Tuesday, August 4, 2009, 4:32 PM Hi, I have a suggestion, but someone may have a more in-depth answer. Have you tried just using: removeMovieClip(my_mc); ? Best, Karl DeSaulniers Design Drumm k...@designdrumm.com http://designdrumm.com On Aug 4, 2009, at 3:15 PM, Jim Lafser wrote: > I'm having some trouble with removeMovieClip - it doesn't appear to be working > I have code that does an attachMovie that looks like: > var my_mt_mc:MovieClip = createEmptyMovieClip( ... ); > var my_mc:MovieClip = attachMovie(linkageId, "aMovie"+depth, depth, init); > > and later I do > my_mc.removeMovieClip(); > > If I list the properties of "this" using for(var i in this) > > I can see that aMovieX still exists. > I've tried doing a removeMovie on aMovieX, but that doesn't work either. > The movie clip has an onUnload method and I can see that it gets called. > Any suggestions? > > > > > > ___ > 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] removeMovieClip, Flashlite3, AS2
Hi, I have a suggestion, but someone may have a more in-depth answer. Have you tried just using: removeMovieClip(my_mc); ? Best, Karl DeSaulniers Design Drumm k...@designdrumm.com http://designdrumm.com On Aug 4, 2009, at 3:15 PM, Jim Lafser wrote: I'm having some trouble with removeMovieClip - it doesn't appear to be working I have code that does an attachMovie that looks like: var my_mt_mc:MovieClip = createEmptyMovieClip( ... ); var my_mc:MovieClip = attachMovie(linkageId, "aMovie"+depth, depth, init); and later I do my_mc.removeMovieClip(); If I list the properties of "this" using for(var i in this) I can see that aMovieX still exists. I've tried doing a removeMovie on aMovieX, but that doesn't work either. The movie clip has an onUnload method and I can see that it gets called. Any suggestions? ___ 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] removeMovieClip, Flashlite3, AS2
I'm having some trouble with removeMovieClip - it doesn't appear to be working I have code that does an attachMovie that looks like: var my_mt_mc:MovieClip = createEmptyMovieClip( ... ); var my_mc:MovieClip = attachMovie(linkageId, "aMovie"+depth, depth, init); and later I do my_mc.removeMovieClip(); If I list the properties of "this" using for(var i in this) I can see that aMovieX still exists. I've tried doing a removeMovie on aMovieX, but that doesn't work either. The movie clip has an onUnload method and I can see that it gets called. Any suggestions? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] re: gotoStopAndWait
(I think there was a problem when i sent my initial email so resending) Hey list, Here's a problem i've had to lesser or greater degrees for pretty much ever. I'm sure everyone's come across it. Depending on what's going on, on the site, or especially if it's during the application initialization. Here's an example scenario, You have 10 different illustrated pants for a character in a MovieClip, each mapped to a different label. Based on the database information, you load the proper 'pants' swf, then switch to the variation of it based on the frame label using gotoAndStop. However when you try to access, pants.getChildByName('thing') you receive null. Sometimes the assets are just not ready yet, period case closed. I've tried different solutions to this problem on different projects, ranging from -moving asset initialization function (sometimes just not an option) -creating a FrameDelay class, -creating enterframe listener checking then killing itself once the asset is accessible, - and shamefully even sometimes having to use setTimeout with 250 ms when the site was live and there was no time for elegant work arounds -- I'm aware of how the flash player works, that it needs a step sometimes to process the assets in the frame. Does anyone have a kind of magic bullet solution or workaround for this or in general i'm interested in hearing how you guys have dealt with this problem. -- Mario Gonzalez http://www.onedayitwillmake.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4305 (20090804) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] MVC and Event Architecture
Thanks all - great discussion! Someday I'll have some time to tackle Pure MVC. Cairngorm is cool, but gave me headaches and seemed way too complicated and bloated to use. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Gitchell Sent: Tuesday, August 04, 2009 12:08 PM To: Flash Coders List Subject: Re: [Flashcoders] MVC and Event Architecture This is about how I'm doing things at present. If something only affects one 'branch' of the MVC model (mostly View), then I handle it with events, for the most part. If it engages two, then I move to a Command (Controller).I've been working a lot in PureMVC lately, and while it seems like a pain when you're first getting into it (event handlers dispatch notifications which then are dealt with by notificationhandlers, which then hit your public methods in view components), I've found that the amount of enforcement it provides as far as loose coupling etc. is well worth it. It certainly makes changing things later less of a big deal, and it's not all that heavy. On Tue, Aug 4, 2009 at 8:39 AM, Piers Cowburn wrote: > I'll sometimes use callbacks in small, enclosed parts of a system, which > are coupled by their nature and are never going to have their component > classes used individually in other systems. As a general rule though, this > is the only time that I use them. > > WRT the event / notification question, I usually find a place for both. I > tend to use events if the information is going 'up' the heirachy, and > notifications if it's going 'across'. To put it more clearly, I use events > for smaller 'happenings', and notifications for larger, system wide > 'happenings'. Hope that makes sense! > > Piers > > > > On 4 Aug 2009, at 16:27, Merrill, Jason wrote: > > Ok thanks Paul, yeah, I know about the concept of loose coupling, I was >> just wondering how strict people generally follow event-driven loose >> coupling design when using MVC - so it seems you're saying, for small MVC >> projects, callbacks are OK, but for large projects, they should really be >> 100% event driven-loosely coupled. Gotcha - thanks! >> >> >> Jason Merrill >> >> Bank of America Global Learning >> Shared Services Solutions Development >> >> Monthly meetings on the Adobe Flash platform for rich media experiences - >> join the Bank of America Flash Platform Community >> >> >> >> >> >> -Original Message- >> From: flashcoders-boun...@chattyfig.figleaf.com [mailto: >> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews >> Sent: Tuesday, August 04, 2009 11:19 AM >> To: Flash Coders List >> Subject: Re: [Flashcoders] MVC and Event Architecture >> >> Merrill, Jason wrote: >> >>> I know there is probably no definite right or wrong answer here, and it >>> depends on the type of project, but I'm curious to get your opinion, if >>> you're experienced with the MVC pattern (not frameworks per se that use MVC, >>> I know about, say, Commands in Cairngorm and have checked into the Pure MVC >>> architecture with its use of Notifications [though I only partially >>> understand the Façade - I do something similar I think in a class I call >>> "MVC"]- just interested in your opinions of raw MVC development). >>> >>> My question is, in practice, when programming with the MVC design >>> pattern, I know the Model is usually completely decoupled from outside >>> classes, but do you usually completely decouple all other classes like views >>> and controllers as well, in favor of dispatching events? Therefore >>> communication between MVC classes are triggered completely by events (seems >>> logical, but its also a heck of a lot of event handling) or do you have some >>> coupling going on (i.e. the controller calls a method in the view telling it >>> to change). Or do you follow what some frameworks do and use Command >>> classes with lots of event handling going on? >>> >>> Trying to find a good mix, I can see advantages and disadvantages both >>> ways. I'm doing a lot of event dispatching, but it seems a bit like >>> overkill in some cases and harder to manage than just calling public >>> methods. Interested in how you handle it when you use MVC pattern(s). >>> Thanks, >>> >>> The real point is that to call public methods, you have to know about >> the object whose method you want to call and you need to know about the >> method itself. When you broadcast an event, you don't need to know whose >> listening, your just indicating that something meaningful has happenned >> and perhaps also passing data that is meaningful. >> >> Because of this you can build standalone components that don't need to >> know everything about the world that surrounds them, so the
RE: [Flashcoders] Seek cue points from texthtml list.
FYI - that's only good if you want the link to go to a URL - if you want it to trigger some actionscript to do something else (like the OP mentioned to go to a point in the video), you have to use TextEvent.LINK AFAIK. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, August 04, 2009 12:06 PM To: Flash Coders List Subject: Re: [Flashcoders] Seek cue points from texthtml list. texthtml = ''+string+''; Or texthtml = ''+string+''; Have not tested, but I think these should work. Hth Karl Sent from losPhone On Aug 4, 2009, at 10:13 AM, Paul Jinks wrote: > Hi > > I have a video player which takes event cue points in the flv and > outputs them as a rolling list of bullet points (kind of a summary of > what's being said). I do this by listening for the cue point name and > putting it within html list tags which are then displayed in a text > field. > > texthtml = ("")+string+(""); > > I've been asked to make the list items clickable so that they take the > viewer to their cue point. > > Is this possible, and if so how? > > Many thanks in advance > > Paul > ___ > 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] gotoStopAndWait
till the light turns green? gotta be safe you know. ;) On Tue, Aug 4, 2009 at 10:20 AM, Mario Gonzalez wrote: > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] gotoStopAndWait
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC and Event Architecture
This is about how I'm doing things at present. If something only affects one 'branch' of the MVC model (mostly View), then I handle it with events, for the most part. If it engages two, then I move to a Command (Controller).I've been working a lot in PureMVC lately, and while it seems like a pain when you're first getting into it (event handlers dispatch notifications which then are dealt with by notificationhandlers, which then hit your public methods in view components), I've found that the amount of enforcement it provides as far as loose coupling etc. is well worth it. It certainly makes changing things later less of a big deal, and it's not all that heavy. On Tue, Aug 4, 2009 at 8:39 AM, Piers Cowburn wrote: > I'll sometimes use callbacks in small, enclosed parts of a system, which > are coupled by their nature and are never going to have their component > classes used individually in other systems. As a general rule though, this > is the only time that I use them. > > WRT the event / notification question, I usually find a place for both. I > tend to use events if the information is going 'up' the heirachy, and > notifications if it's going 'across'. To put it more clearly, I use events > for smaller 'happenings', and notifications for larger, system wide > 'happenings'. Hope that makes sense! > > Piers > > > > On 4 Aug 2009, at 16:27, Merrill, Jason wrote: > > Ok thanks Paul, yeah, I know about the concept of loose coupling, I was >> just wondering how strict people generally follow event-driven loose >> coupling design when using MVC - so it seems you're saying, for small MVC >> projects, callbacks are OK, but for large projects, they should really be >> 100% event driven-loosely coupled. Gotcha - thanks! >> >> >> Jason Merrill >> >> Bank of America Global Learning >> Shared Services Solutions Development >> >> Monthly meetings on the Adobe Flash platform for rich media experiences - >> join the Bank of America Flash Platform Community >> >> >> >> >> >> -Original Message- >> From: flashcoders-boun...@chattyfig.figleaf.com [mailto: >> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews >> Sent: Tuesday, August 04, 2009 11:19 AM >> To: Flash Coders List >> Subject: Re: [Flashcoders] MVC and Event Architecture >> >> Merrill, Jason wrote: >> >>> I know there is probably no definite right or wrong answer here, and it >>> depends on the type of project, but I'm curious to get your opinion, if >>> you're experienced with the MVC pattern (not frameworks per se that use MVC, >>> I know about, say, Commands in Cairngorm and have checked into the Pure MVC >>> architecture with its use of Notifications [though I only partially >>> understand the Façade - I do something similar I think in a class I call >>> "MVC"]- just interested in your opinions of raw MVC development). >>> >>> My question is, in practice, when programming with the MVC design >>> pattern, I know the Model is usually completely decoupled from outside >>> classes, but do you usually completely decouple all other classes like views >>> and controllers as well, in favor of dispatching events? Therefore >>> communication between MVC classes are triggered completely by events (seems >>> logical, but its also a heck of a lot of event handling) or do you have some >>> coupling going on (i.e. the controller calls a method in the view telling it >>> to change). Or do you follow what some frameworks do and use Command >>> classes with lots of event handling going on? >>> >>> Trying to find a good mix, I can see advantages and disadvantages both >>> ways. I'm doing a lot of event dispatching, but it seems a bit like >>> overkill in some cases and harder to manage than just calling public >>> methods. Interested in how you handle it when you use MVC pattern(s). >>> Thanks, >>> >>> The real point is that to call public methods, you have to know about >> the object whose method you want to call and you need to know about the >> method itself. When you broadcast an event, you don't need to know whose >> listening, your just indicating that something meaningful has happenned >> and perhaps also passing data that is meaningful. >> >> Because of this you can build standalone components that don't need to >> know everything about the world that surrounds them, so they can be >> reused and also other people can look at them and understand how the >> system fits together via the event system. >> >> That said, for small systems I still sometimes use callbacks.. >> >> Paul >> >>> >>> Jason Merrill >>> >>> Bank of America Global Learning >>> Shared Services Solutions Development >>> >>> Monthly meetings on the Adobe Flash platform for rich media experiences - >>> join the Bank of America Flash Platform Community >>> >>> >>> >>> ___ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> >>> >> __
Re: [Flashcoders] Seek cue points from texthtml list.
texthtml = ''+string+''; Or texthtml = ''+string+''; Have not tested, but I think these should work. Hth Karl Sent from losPhone On Aug 4, 2009, at 10:13 AM, Paul Jinks wrote: Hi I have a video player which takes event cue points in the flv and outputs them as a rolling list of bullet points (kind of a summary of what's being said). I do this by listening for the cue point name and putting it within html list tags which are then displayed in a text field. texthtml = ("")+string+(""); I've been asked to make the list items clickable so that they take the viewer to their cue point. Is this possible, and if so how? Many thanks in advance Paul ___ 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] MVC and Event Architecture
I'll sometimes use callbacks in small, enclosed parts of a system, which are coupled by their nature and are never going to have their component classes used individually in other systems. As a general rule though, this is the only time that I use them. WRT the event / notification question, I usually find a place for both. I tend to use events if the information is going 'up' the heirachy, and notifications if it's going 'across'. To put it more clearly, I use events for smaller 'happenings', and notifications for larger, system wide 'happenings'. Hope that makes sense! Piers On 4 Aug 2009, at 16:27, Merrill, Jason wrote: Ok thanks Paul, yeah, I know about the concept of loose coupling, I was just wondering how strict people generally follow event-driven loose coupling design when using MVC - so it seems you're saying, for small MVC projects, callbacks are OK, but for large projects, they should really be 100% event driven-loosely coupled. Gotcha - thanks! Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul Andrews Sent: Tuesday, August 04, 2009 11:19 AM To: Flash Coders List Subject: Re: [Flashcoders] MVC and Event Architecture Merrill, Jason wrote: I know there is probably no definite right or wrong answer here, and it depends on the type of project, but I'm curious to get your opinion, if you're experienced with the MVC pattern (not frameworks per se that use MVC, I know about, say, Commands in Cairngorm and have checked into the Pure MVC architecture with its use of Notifications [though I only partially understand the Façade - I do something similar I think in a class I call "MVC"]- just interested in your opinions of raw MVC development). My question is, in practice, when programming with the MVC design pattern, I know the Model is usually completely decoupled from outside classes, but do you usually completely decouple all other classes like views and controllers as well, in favor of dispatching events? Therefore communication between MVC classes are triggered completely by events (seems logical, but its also a heck of a lot of event handling) or do you have some coupling going on (i.e. the controller calls a method in the view telling it to change). Or do you follow what some frameworks do and use Command classes with lots of event handling going on? Trying to find a good mix, I can see advantages and disadvantages both ways. I'm doing a lot of event dispatching, but it seems a bit like overkill in some cases and harder to manage than just calling public methods. Interested in how you handle it when you use MVC pattern(s). Thanks, The real point is that to call public methods, you have to know about the object whose method you want to call and you need to know about the method itself. When you broadcast an event, you don't need to know whose listening, your just indicating that something meaningful has happenned and perhaps also passing data that is meaningful. Because of this you can build standalone components that don't need to know everything about the world that surrounds them, so they can be reused and also other people can look at them and understand how the system fits together via the event system. That said, for small systems I still sometimes use callbacks.. Paul Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ 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] MVC and Event Architecture
It depends which type of framework you're talking about, because in PureMVC the controller is the commands. The commands only exist temporarliy, and so you can't 'listen to events from the controller', if that makes sense. So in PureMVC you have the commands directly call public methods in the view classes (or I do anyway!). Piers On 4 Aug 2009, at 16:36, Merrill, Jason wrote: So, if you want the Controller to alter the View (say, tell it to animate), you don't have the controller call a public method of the view - you have the controller dispatch an event and some other class (say, a command class) tells the view to animate? Or do you have the view listen to the controller for the event directly and then react? Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ 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] MVC and Event Architecture
So, if you want the Controller to alter the View (say, tell it to animate), you don't have the controller call a public method of the view - you have the controller dispatch an event and some other class (say, a command class) tells the view to animate? Or do you have the view listen to the controller for the event directly and then react? Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] MVC and Event Architecture
Ah, good point Ian. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas Sent: Tuesday, August 04, 2009 11:30 AM To: Flash Coders List Subject: Re: [Flashcoders] MVC and Event Architecture On Tue, Aug 4, 2009 at 4:24 PM, Dave Watts wrote: >> The real point is that to call public methods, you have to know about the >> object whose method you want to call and you need to know about the method >> itself. When you broadcast an event, you don't need to know whose listening, >> your just indicating that something meaningful has happenned and perhaps >> also passing data that is meaningful. > > This is really the key. If you don't do this, you're baking > dependencies into your application. And also potentially compilation dependencies, if, for example, you later decide to split your app into modules then you'd have to include the target of the method call across both the relevant modules (or do something with interfaces instead). Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] MVC and Event Architecture
>>> That said, for small systems I still sometimes use callbacks. >>Me too, but I feel dirty afterward. Well, nobody likes to feel dirty when they code... thanks Dave ! Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts Sent: Tuesday, August 04, 2009 11:24 AM To: Flash Coders List Subject: Re: [Flashcoders] MVC and Event Architecture > The real point is that to call public methods, you have to know about the > object whose method you want to call and you need to know about the method > itself. When you broadcast an event, you don't need to know whose listening, > your just indicating that something meaningful has happenned and perhaps > also passing data that is meaningful. This is really the key. If you don't do this, you're baking dependencies into your application. > That said, for small systems I still sometimes use callbacks. Me too, but I feel dirty afterward. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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] MVC and Event Architecture
On Tue, Aug 4, 2009 at 4:24 PM, Dave Watts wrote: >> The real point is that to call public methods, you have to know about the >> object whose method you want to call and you need to know about the method >> itself. When you broadcast an event, you don't need to know whose listening, >> your just indicating that something meaningful has happenned and perhaps >> also passing data that is meaningful. > > This is really the key. If you don't do this, you're baking > dependencies into your application. And also potentially compilation dependencies, if, for example, you later decide to split your app into modules then you'd have to include the target of the method call across both the relevant modules (or do something with interfaces instead). Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] MVC and Event Architecture
Ok thanks Paul, yeah, I know about the concept of loose coupling, I was just wondering how strict people generally follow event-driven loose coupling design when using MVC - so it seems you're saying, for small MVC projects, callbacks are OK, but for large projects, they should really be 100% event driven-loosely coupled. Gotcha - thanks! Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews Sent: Tuesday, August 04, 2009 11:19 AM To: Flash Coders List Subject: Re: [Flashcoders] MVC and Event Architecture Merrill, Jason wrote: > I know there is probably no definite right or wrong answer here, and it > depends on the type of project, but I'm curious to get your opinion, if > you're experienced with the MVC pattern (not frameworks per se that use MVC, > I know about, say, Commands in Cairngorm and have checked into the Pure MVC > architecture with its use of Notifications [though I only partially > understand the Façade - I do something similar I think in a class I call > "MVC"]- just interested in your opinions of raw MVC development). > > My question is, in practice, when programming with the MVC design pattern, I > know the Model is usually completely decoupled from outside classes, but do > you usually completely decouple all other classes like views and controllers > as well, in favor of dispatching events? Therefore communication between MVC > classes are triggered completely by events (seems logical, but its also a > heck of a lot of event handling) or do you have some coupling going on (i.e. > the controller calls a method in the view telling it to change). Or do you > follow what some frameworks do and use Command classes with lots of event > handling going on? > > Trying to find a good mix, I can see advantages and disadvantages both ways. > I'm doing a lot of event dispatching, but it seems a bit like overkill in > some cases and harder to manage than just calling public methods. Interested > in how you handle it when you use MVC pattern(s). Thanks, > The real point is that to call public methods, you have to know about the object whose method you want to call and you need to know about the method itself. When you broadcast an event, you don't need to know whose listening, your just indicating that something meaningful has happenned and perhaps also passing data that is meaningful. Because of this you can build standalone components that don't need to know everything about the world that surrounds them, so they can be reused and also other people can look at them and understand how the system fits together via the event system. That said, for small systems I still sometimes use callbacks.. Paul > > Jason Merrill > > Bank of America Global Learning > Shared Services Solutions Development > > Monthly meetings on the Adobe Flash platform for rich media experiences - > join the Bank of America Flash Platform Community > > > > ___ > 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] MVC and Event Architecture
> The real point is that to call public methods, you have to know about the > object whose method you want to call and you need to know about the method > itself. When you broadcast an event, you don't need to know whose listening, > your just indicating that something meaningful has happenned and perhaps > also passing data that is meaningful. This is really the key. If you don't do this, you're baking dependencies into your application. > That said, for small systems I still sometimes use callbacks. Me too, but I feel dirty afterward. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Seek cue points from texthtml list.
Hi Paul Yep - this is do-able - just search for textEvent.LINK in the Flash help docs - there are examples there on how the event works (how to write a method to capture the event) and how to format the HTML that is embedded in your FLV metadata. Or, here is an article on it: http://troyworks.com/blog/2008/03/14/flash-textfield-actionscript-hyperl ink-in-as30/ Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC and Event Architecture
Merrill, Jason wrote: I know there is probably no definite right or wrong answer here, and it depends on the type of project, but I'm curious to get your opinion, if you're experienced with the MVC pattern (not frameworks per se that use MVC, I know about, say, Commands in Cairngorm and have checked into the Pure MVC architecture with its use of Notifications [though I only partially understand the Façade - I do something similar I think in a class I call "MVC"]- just interested in your opinions of raw MVC development). My question is, in practice, when programming with the MVC design pattern, I know the Model is usually completely decoupled from outside classes, but do you usually completely decouple all other classes like views and controllers as well, in favor of dispatching events? Therefore communication between MVC classes are triggered completely by events (seems logical, but its also a heck of a lot of event handling) or do you have some coupling going on (i.e. the controller calls a method in the view telling it to change). Or do you follow what some frameworks do and use Command classes with lots of event handling going on? Trying to find a good mix, I can see advantages and disadvantages both ways. I'm doing a lot of event dispatching, but it seems a bit like overkill in some cases and harder to manage than just calling public methods. Interested in how you handle it when you use MVC pattern(s). Thanks, The real point is that to call public methods, you have to know about the object whose method you want to call and you need to know about the method itself. When you broadcast an event, you don't need to know whose listening, your just indicating that something meaningful has happenned and perhaps also passing data that is meaningful. Because of this you can build standalone components that don't need to know everything about the world that surrounds them, so they can be reused and also other people can look at them and understand how the system fits together via the event system. That said, for small systems I still sometimes use callbacks.. Paul Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ 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] Seek cue points from texthtml list.
Hi I have a video player which takes event cue points in the flv and outputs them as a rolling list of bullet points (kind of a summary of what's being said). I do this by listening for the cue point name and putting it within html list tags which are then displayed in a text field. texthtml = ("")+string+(""); I've been asked to make the list items clickable so that they take the viewer to their cue point. Is this possible, and if so how? Many thanks in advance Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] MVC and Event Architecture
I know there is probably no definite right or wrong answer here, and it depends on the type of project, but I'm curious to get your opinion, if you're experienced with the MVC pattern (not frameworks per se that use MVC, I know about, say, Commands in Cairngorm and have checked into the Pure MVC architecture with its use of Notifications [though I only partially understand the Façade - I do something similar I think in a class I call "MVC"]- just interested in your opinions of raw MVC development). My question is, in practice, when programming with the MVC design pattern, I know the Model is usually completely decoupled from outside classes, but do you usually completely decouple all other classes like views and controllers as well, in favor of dispatching events? Therefore communication between MVC classes are triggered completely by events (seems logical, but its also a heck of a lot of event handling) or do you have some coupling going on (i.e. the controller calls a method in the view telling it to change). Or do you follow what some frameworks do and use Command classes with lots of event handling going on? Trying to find a good mix, I can see advantages and disadvantages both ways. I'm doing a lot of event dispatching, but it seems a bit like overkill in some cases and harder to manage than just calling public methods. Interested in how you handle it when you use MVC pattern(s). Thanks, Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Compiling API Docs with Flex 3 SDK
clean up all the import statments for classes that aren't used in the class that throws errors. Cheers, Latcho Jeff Fox wrote: I've tried a few times to compile my API docs for a framework I am working on with the asdoc tool that comes in the FLEX 3 SDK, but I always run into a number of strange compile errors that don't come up with the regular Flex compiler. I've tried using both FlashDevlop's integrated ASDoc Tool as well as the command line version. Anyone have any tips or suggestions? Regards, -JFox ___ 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] Extending Flex UIComponent in flash SWC
ok, if you add the FlexComponentBase to the library manually, you can publish to FP9 no problem. If its not in the lib and you try and convert, this is where it warns you. I am using skinning for buttons etc. But for bringing in ad-hoc graphics, im using swc instead of swf lib. cheers, MaTT On Thu, Jul 30, 2009 at 3:28 AM, Muzak wrote: > FlexComponentBase is added automatically here, is that not the case for > you? > Just watched the screencast.. :) it's being added. > > Odd though, I don't get that warning.. maybe it's a Mac thing? > > > And just wondering, why are you using a Flex component just for skins? > There's no need for that, but maybe I'm missing something. > > For instance, if your skinning buttons, use a Flex Button and style it > through CSS, using png's or movieclip symbols from swf's. > > // png images, using 9-grid scaling for some > .menuButton { > upSkin: Embed(source="/skins/LinkButton_upSkin.png"); > overSkin: Embed(source="/skins/LinkButton_overSkin.png"); > downSkin: Embed(source="/skins/LinkButton_downSkin.png"); > disabledSkin: Embed(source="/skins/LinkButton_selectedSkin.png", > scaleGridLeft="10", scaleGridRight="56", scaleGridTop="1", > scaleGridBottom="15"); > } > > // symbols from swf > Tab { > upSkin: Embed(source="/assets/PMSGraphical.swf", symbol="Tab_upSkin"); > overSkin: Embed(source="/assets/PMSGraphical.swf", symbol="Tab_overSkin"); > downSkin: Embed(source="/assets/PMSGraphical.swf", symbol="Tab_downSkin"); > } > > If they're not "skins", but graphical elements, you can do the same by > using png's or symbols as container "backgrounds". > > // CSS > .bgCanvas { > backgroundImage: Embed(source="/assets/Graphical.swf", > symbol="CanvasBackground"); > } > > // MXML > > //other stuff here > > > regards, > Muzak > > - Original Message - From: "Matt Muller" > To: "Flash Coders List" > Sent: Wednesday, July 29, 2009 11:30 AM > Subject: Re: [Flashcoders] Extending Flex UIComponent in flash SWC > > > figured it out. you need to have FlexComponentBase in the lib for FP9 >> export. >> >> >> >> On Wed, Jul 29, 2009 at 10:13 AM, Matt Muller > >wrote: >> >> i made a video of whats happening... >>> >>> http://screencast.com/t/cvTKLGch >>> >>> go figure. unless im meant to make a class that ecenteds something other >>> than mc before creating the component? >>> >>> >>> On Wed, Jul 29, 2009 at 8:16 AM, Matt Muller >> >wrote: >>> >>> there is no class attached. its just to get ui graphics from flash into flex. add to mx:Box and using layout props. On Wed, Jul 29, 2009 at 3:06 AM, Muzak wrote: Yup, using CS4. > > Doing the same thing as you described: > > - select File -> Publish Settings > - in Formats tab: > - deselect "HTML" > in Flash tab > - select "Flash Player 9" - select ActionScript 3 > - select "Export SWC" > > - create Movieclip symbol, fill in a class name (export for > ActionScript) > - select the Movieclip in Library, select Commands -> Convert Symbol to > Flex Component > - File -> Publish > > > I'm only asked to change the framerate to 24 when converting the > MovieClip to Flex Component. > Other than that it just works.. > > What does the class look like (the one attached to the MovieClip > symbol)? > > regards, > Muzak > > - Original Message - From: "Matt Muller" < > matthewmul...@gmail.com> > To: "Flash Coders List" > Sent: Wednesday, July 29, 2009 12:09 AM > Subject: Re: [Flashcoders] Extending Flex UIComponent in flash SWC > > > yep. are you using cs4? > >> >> i was just exporting swc and add to flex but then had to use >> rawchildren >> and >> couldnt use positioning. >> >> when i select the clip in the lib and then go to commands>make flex >> component the warning pops up. >> >> MaTT >> >> >> ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > >>> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating Fonts dynamically
Would swfmill do what you are lookong for? Or are you trying to generate a font from the swf app itself? Please clarify On Fri, Jul 3, 2009 at 3:30 AM, Sumeet Kumar wrote: > Thanks for the reply, > > I forgot to mention, i need this for ActionScript 2.0 and for a standalone > application. > > Thanks AgainWill swfmill > > - Original Message - From: "Glen Pike" > To: "Flash Coders List" > Sent: Friday, July 03, 2009 3:46 PM > Subject: Re: [Flashcoders] Creating Fonts dynamically > > > > Just a suggestion - could you compile them into library swfs that you load >> at runtime if you had the flash compiler running on the server (perhaps)? >> >> The idea would be to dynamically generate an ActionScript file that uses >> the [Embed] command then compile this into a SWF with the name you want - >> you would probably have to have the file create a text field on the stage >> that embedded the characters, etc. >> >> Just an idea - I don't have much experience of this... >> >> Glen >> >> Sumeet Kumar wrote: >> >>> Hi All, >>> >>> Is there any way by which i can create the fonts dynamically i.e. i want >>> to create fonts files dynamically without using Flash IDE. Is there any >>> method or workaround by which i can do this? >>> >>> Thanks in Advance >>> Sumeet >>> ___ >>> 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