Re: [Flashcoders] Seek cue points from texthtml list.

2009-08-05 Thread Paul Jinks
Thanks guys

Will look into this and get back. I'm using as2 where I think
asfunction does the job now performed by TextEvent.LINK, but I need to
check this out.

Paul

On Tue, Aug 4, 2009 at 6:53 PM, Merrill,
Jasonjason.merr...@bankofamerica.com wrote:
 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 = 'a href=www.yourlink.comli'+string+'/li/a';

 Or

 texthtml = 'a href='+urlstring+'li'+string+'/li/a';

 Have not tested, but I think these should work.
 Hth

 Karl

 Sent from losPhone

 On Aug 4, 2009, at 10:13 AM, Paul Jinks p...@pauljinks.co.uk 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 = (li)+string+(/li);

 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


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] removeMovieClip, Flashlite3, AS2

2009-08-05 Thread Juan Delgado
Assuming you have no listeners attached to it or other external
references to the object, try this:

mc.removeMovieClip();
mc = null;
delete mc;

Yes, it's a pain in the ass, but you need it to keep footprint low on
mobile devices.

HTH,

Juan

On Tue, Aug 4, 2009 at 10:15 PM, Jim Lafserjimlaf...@yahoo.com wrote:
 Tried that. Have also verified that the depth is in valid range.

 --- On Tue, 8/4/09, Karl DeSaulniers k...@designdrumm.com wrote:


 From: Karl DeSaulniers k...@designdrumm.com
 Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 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




-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Seek cue points from texthtml list.

2009-08-05 Thread Paul Jinks
Thanks for the help so far. The asfunction code does indeed enable the
video player to go to a cue point. Thus

function clickMe(){
caption_flvp.seekToNavCuePoint(navpoint);
}

and

mainText.htmlText += a href=\asfunction:clickMe, navpoint\navpoint/a;

produces linktext navpoint which when clicked takes the video player
back to cuepoint navpoint. Hurrah! So, I guess the tricky bit is done,
but

I need to be able to pass variables through this code and that's where
I hit a problem.  The way I have the player rigged up is that as cue
points come along they're added to an array, the last which is output
to the list provided it's not already present (this so that re-viewing
the video doesn't produce a whole lot of duplicate list items).

So, in the original code I have:
mainText.htmlText = ;
for (var i = 0; ilen2; i++) {
mainText.htmlText += cueArray[i];}

My problem is that when I put cueArray[i] into the asfunction code:
mainText.htmlText += a href=\asfunction:clickMe,
cueArray[i]\cueArray[i]/a;

It outputs cueArray[i] as string since it falls between the double
quote marks, any attempt to change the quote marks throws an error and
breaks the player. I'm hoping this is only a problem because my
knowledge of coding is pretty basic; any suggestions on fixing this?

Many thanks in advance

Paul

On Wed, Aug 5, 2009 at 10:50 AM, Paul Jinksp...@pauljinks.co.uk wrote:
 Thanks guys

 Will look into this and get back. I'm using as2 where I think
 asfunction does the job now performed by TextEvent.LINK, but I need to
 check this out.

 Paul

 On Tue, Aug 4, 2009 at 6:53 PM, Merrill,
 Jasonjason.merr...@bankofamerica.com wrote:
 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 = 'a href=www.yourlink.comli'+string+'/li/a';

 Or

 texthtml = 'a href='+urlstring+'li'+string+'/li/a';

 Have not tested, but I think these should work.
 Hth

 Karl

 Sent from losPhone

 On Aug 4, 2009, at 10:13 AM, Paul Jinks p...@pauljinks.co.uk 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 = (li)+string+(/li);

 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



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Seek cue points from texthtml list.

2009-08-05 Thread Karl DeSaulniers

You could try..

mainText.htmlText += 'a href=asfunction:clickMe,'+
cueArray[i]+''+cueArray[i]+'/a';

Haven't tested.
Or assign cueArray[i] to a var and insert that.

var newCuePoint = cueArray[i];
replace in above code, but call this line before it executes.

Lmk,

Karl

Sent from losPhone

On Aug 5, 2009, at 7:04 AM, Paul Jinks p...@pauljinks.co.uk wrote:


Thanks for the help so far. The asfunction code does indeed enable the
video player to go to a cue point. Thus

function clickMe(){
caption_flvp.seekToNavCuePoint(navpoint);
}

and

mainText.htmlText += a href=\asfunction:clickMe, navpoint 
\navpoint/a;


produces linktext navpoint which when clicked takes the video player
back to cuepoint navpoint. Hurrah! So, I guess the tricky bit is done,
but

I need to be able to pass variables through this code and that's where
I hit a problem.  The way I have the player rigged up is that as cue
points come along they're added to an array, the last which is output
to the list provided it's not already present (this so that re-viewing
the video doesn't produce a whole lot of duplicate list items).

So, in the original code I have:
mainText.htmlText = ;
for (var i = 0; ilen2; i++) {
mainText.htmlText += cueArray[i];}

My problem is that when I put cueArray[i] into the asfunction code:
mainText.htmlText += a href=\asfunction:clickMe,
cueArray[i]\cueArray[i]/a;

It outputs cueArray[i] as string since it falls between the double
quote marks, any attempt to change the quote marks throws an error and
breaks the player. I'm hoping this is only a problem because my
knowledge of coding is pretty basic; any suggestions on fixing this?

Many thanks in advance

Paul

On Wed, Aug 5, 2009 at 10:50 AM, Paul Jinksp...@pauljinks.co.uk  
wrote:

Thanks guys

Will look into this and get back. I'm using as2 where I think
asfunction does the job now performed by TextEvent.LINK, but I need  
to

check this out.

Paul

On Tue, Aug 4, 2009 at 6:53 PM, Merrill,
Jasonjason.merr...@bankofamerica.com wrote:
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 = 'a href=www.yourlink.comli'+string+'/li/a';

Or

texthtml = 'a href='+urlstring+'li'+string+'/li/a';

Have not tested, but I think these should work.
Hth

Karl

Sent from losPhone

On Aug 4, 2009, at 10:13 AM, Paul Jinks p...@pauljinks.co.uk  
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 = (li)+string+(/li);

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





___
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] Seek cue points from texthtml list.

2009-08-05 Thread Paul Jinks
Karl

Thanks for your suggestions, they make good sense and don't throw any
syntax errors.

However they both cause nothing to appear in mainText. If I trace
newCuePoint (in your example) or cueArray[i] I get the full array of
cuepoints, so the value is being passed along but isn't making it to
mainText.htmlText

Looking at the relevant livedocs page I see that asfunction requires
string parameters. Could this be the problem?

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1719.html

Any other suggestions?

Paul

On Wed, Aug 5, 2009 at 1:44 PM, Karl DeSaulniersk...@designdrumm.com wrote:
 You could try..

 mainText.htmlText += 'a href=asfunction:clickMe,'+
 cueArray[i]+''+cueArray[i]+'/a';

 Haven't tested.
 Or assign cueArray[i] to a var and insert that.

 var newCuePoint = cueArray[i];
 replace in above code, but call this line before it executes.

 Lmk,

 Karl

 Sent from losPhone

 On Aug 5, 2009, at 7:04 AM, Paul Jinks p...@pauljinks.co.uk wrote:

 Thanks for the help so far. The asfunction code does indeed enable the
 video player to go to a cue point. Thus

 function clickMe(){
 caption_flvp.seekToNavCuePoint(navpoint);
 }

 and

 mainText.htmlText += a href=\asfunction:clickMe,
 navpoint\navpoint/a;

 produces linktext navpoint which when clicked takes the video player
 back to cuepoint navpoint. Hurrah! So, I guess the tricky bit is done,
 but

 I need to be able to pass variables through this code and that's where
 I hit a problem.  The way I have the player rigged up is that as cue
 points come along they're added to an array, the last which is output
 to the list provided it's not already present (this so that re-viewing
 the video doesn't produce a whole lot of duplicate list items).

 So, in the original code I have:
 mainText.htmlText = ;
 for (var i = 0; ilen2; i++) {
 mainText.htmlText += cueArray[i];}

 My problem is that when I put cueArray[i] into the asfunction code:
 mainText.htmlText += a href=\asfunction:clickMe,
 cueArray[i]\cueArray[i]/a;

 It outputs cueArray[i] as string since it falls between the double
 quote marks, any attempt to change the quote marks throws an error and
 breaks the player. I'm hoping this is only a problem because my
 knowledge of coding is pretty basic; any suggestions on fixing this?

 Many thanks in advance

 Paul

 On Wed, Aug 5, 2009 at 10:50 AM, Paul Jinksp...@pauljinks.co.uk wrote:

 Thanks guys

 Will look into this and get back. I'm using as2 where I think
 asfunction does the job now performed by TextEvent.LINK, but I need to
 check this out.

 Paul

 On Tue, Aug 4, 2009 at 6:53 PM, Merrill,
 Jasonjason.merr...@bankofamerica.com wrote:

 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 = 'a href=www.yourlink.comli'+string+'/li/a';

 Or

 texthtml = 'a href='+urlstring+'li'+string+'/li/a';

 Have not tested, but I think these should work.
 Hth

 Karl

 Sent from losPhone

 On Aug 4, 2009, at 10:13 AM, Paul Jinks p...@pauljinks.co.uk 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 = (li)+string+(/li);

 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



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 

[Flashcoders] Custom Dialog Accessibility Implementation

2009-08-05 Thread Jer Brand
(Flash CS3 using ActionScript 3)

Not sure if anyone's done something similar, but am hitting a serious
frustration point. If I'm overly wordy, I apologize.
I'm working on a project where I need to create a modal menu dialog that
must be accessible, preferably telling MSAA that is is an actual dialog, has
a title bar, close button and exposes it's child controls (text and
buttons). The window is an external swf (typically created by an artist,
wired by me at runtime), loaded in via a loader, and the loader.content
pulled out and added as a child of the main view class.

I've been working for a day or so at creating my own MenuDialogAccImpl
class, based off the Flex TitleWindowAccImpl. The problem is this: If I use
a customized version of this implementation, ACCExplorer ignores the
contents of the swf, only reports the existance of the title bar and a
Dialog -- names/roles/states specified by childIDs 1  2. Event worse,
these are ghost entries in MSAA that don't actually reflect the actual
controls in the swf.

Without an Accessibility Implementation, the items appear to MSAA with no
parent-child relationship, and the MenuDialog is a simple graphic.

I've looked at all of the classes in the Flex mx.accessibilty package, and
the Flash flash.accessibility and mx.accessibility package (which are
incidentally for AS2) and the vast majority of these are built for simple,
non-container components. TitleWindowAccImpl and PanelAccImpl are both
overly simple and nearly identical, and neither has any obvious code for
dealing with the actual children of the window itself.

I feel like I'm missing something basic here. How would a container expose
it's children to MSAA? Flex obviously does this, but I can't find the code
that would have this effect -- the children are wrapped in the Dialog
object and that doesn't map to an implementation. Is there some code
in flash.accessibility.AccessibilityImplementation that handles containers
and exposes the children to MSAA. Unfortunately, nothing I've tried has
worked.

The only solution I can think of so far is not a workable one: To manually
iterate each visible child of the MenuDialog from within the
MenuDialogAccImpl and manually hand that item over to MSAA. Thing is, those
children have their own AccImpl (SimpleButton, text, etc) and doing things
this way breaks the connection to that object in MSAA. On top of that is the
fact that the menus are fairly graphical ordeals, and I cannot predict the
contents -- the app is used to deliver thousands of courses.

Seriously frustrated and begging for help. Thanks folks.

Jer
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Disable focus change on arrow keys down

2009-08-05 Thread Jer Brand
Complete shot in the dark, but have you tried upping the priority of the
event listener and continuing to use stopImmediatePropagation()?  My thought
is that perhaps the focus change listener is occurring before your listener.
So, if it's possible to up the priority of your listener above that of the
focus change listener, you might be able to prevent the behavior.
Another idea: set the focusRect property to false, and Create a custom
focusRect for a focused state  that appears to be the yellow rectangle and
activate that state when the scrollpane has focus?



Jer


On Tue, Aug 4, 2009 at 6:39 PM, Patrick Matte
patrick.ma...@tbwachiat.comwrote:

 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 patrick.ma...@tbwachiat.com
  Date: Tue, 04 Aug 2009 16:35:43 -0700
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MVC and Event Architecture

2009-08-05 Thread kris range
I would really suggest looking into it as it has streamlined a bunch
of my previous workflow. I use PureMVC ( with the fabrication utility
) a lot at work and really enjoy it. As with any framework that you
use, it might not fit every specific project need, but generally it's
been great.

As far as the conversation about commands, my experience ( in relation
to PureMVC ) is that a command should send out a notification to the
mediator ( the view ) to respond to. Then the mediator , which listens
to this notification, acts upon it. This decouples your commands from
your view and multiple views can respond to the same notification.


On Tue, Aug 4, 2009 at 10:54 AM, Merrill,
Jasonjason.merr...@bankofamerica.com wrote:
 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 m...@pierscowburn.com 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 

RE: [Flashcoders] re: gotoStopAndWait

2009-08-05 Thread Jack Doyle
Senocular explained it well here:
http://www.kirupa.com/forum/showthread.php?p=2113726#post2113726


-Original Message-
From: Mario Gonzalez [mailto:ma...@wddg.com] 
Sent: Tuesday, August 04, 2009 1:31 PM
To: Flash Coders List
Subject: [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] removeMovieClip, Flashlite3, AS2

2009-08-05 Thread Jim Lafser
When I list out the properties of this I am seeing something along the lines 
of
    _level0.movie1.aMovie0
 
Where movie1 is another movie clip that was also loaded. Shouldn't aMovie0 
be removed since the movie clip was removed when I did:
    my_mc.removeMovieClip();

Or is this the mysterious second reference that I need to delete?

--- On Wed, 8/5/09, Juan Delgado zzzar...@gmail.com wrote:


From: Juan Delgado zzzar...@gmail.com
Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Date: Wednesday, August 5, 2009, 7:19 AM


Assuming you have no listeners attached to it or other external
references to the object, try this:

mc.removeMovieClip();
mc = null;
delete mc;

Yes, it's a pain in the ass, but you need it to keep footprint low on
mobile devices.

HTH,

Juan

On Tue, Aug 4, 2009 at 10:15 PM, Jim Lafserjimlaf...@yahoo.com wrote:
 Tried that. Have also verified that the depth is in valid range.

 --- On Tue, 8/4/09, Karl DeSaulniers k...@designdrumm.com wrote:


 From: Karl DeSaulniers k...@designdrumm.com
 Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 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




-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv

___
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] Re: Custom Dialog Accessibility Implementation

2009-08-05 Thread Jer Brand
Well, found a blog post that lead me in the right direction here:
http://www.yswfblog.com/blog/2009/01/12/creating-accessible-components-in-flash-and-flex-part-2/
If anyone's interested:

http://www.yswfblog.com/blog/2009/01/12/creating-accessible-components-in-flash-and-flex-part-2/#more-114The
key piece I was missing was the accLocation(childID:uint):* method. As I
found, creating an accessibility implementation for any MovieClip/Component
effectively hides the children from MSAA. Your accesssibility implementation
must provide access to all the children, their roles, names, states, etc.
and returning a child from accLocation() will make that object visible to
MSAA and allow it to interrogate that accessibility implementation.

Now if there were some simple way of making flash hookAccessibility for an
implementation applied to a MovieClip (other than derive from UIComponent)
I'd be a happy camper.


Jer

On Wed, Aug 5, 2009 at 9:43 AM, Jer Brand thejhe...@gmail.com wrote:

 (Flash CS3 using ActionScript 3)

 Not sure if anyone's done something similar, but am hitting a serious
 frustration point. If I'm overly wordy, I apologize.
 I'm working on a project where I need to create a modal menu dialog that
 must be accessible, preferably telling MSAA that is is an actual dialog, has
 a title bar, close button and exposes it's child controls (text and
 buttons). The window is an external swf (typically created by an artist,
 wired by me at runtime), loaded in via a loader, and the loader.content
 pulled out and added as a child of the main view class.

 I've been working for a day or so at creating my own MenuDialogAccImpl
 class, based off the Flex TitleWindowAccImpl. The problem is this: If I use
 a customized version of this implementation, ACCExplorer ignores the
 contents of the swf, only reports the existance of the title bar and a
 Dialog -- names/roles/states specified by childIDs 1  2. Event worse,
 these are ghost entries in MSAA that don't actually reflect the actual
 controls in the swf.

 Without an Accessibility Implementation, the items appear to MSAA with no
 parent-child relationship, and the MenuDialog is a simple graphic.

 I've looked at all of the classes in the Flex mx.accessibilty package, and
 the Flash flash.accessibility and mx.accessibility package (which are
 incidentally for AS2) and the vast majority of these are built for simple,
 non-container components. TitleWindowAccImpl and PanelAccImpl are both
 overly simple and nearly identical, and neither has any obvious code for
 dealing with the actual children of the window itself.

 I feel like I'm missing something basic here. How would a container expose
 it's children to MSAA? Flex obviously does this, but I can't find the code
 that would have this effect -- the children are wrapped in the Dialog
 object and that doesn't map to an implementation. Is there some code
 in flash.accessibility.AccessibilityImplementation that handles containers
 and exposes the children to MSAA. Unfortunately, nothing I've tried has
 worked.

 The only solution I can think of so far is not a workable one: To manually
 iterate each visible child of the MenuDialog from within the
 MenuDialogAccImpl and manually hand that item over to MSAA. Thing is, those
 children have their own AccImpl (SimpleButton, text, etc) and doing things
 this way breaks the connection to that object in MSAA. On top of that is the
 fact that the menus are fairly graphical ordeals, and I cannot predict the
 contents -- the app is used to deliver thousands of courses.

 Seriously frustrated and begging for help. Thanks folks.

 Jer

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Free UML tool for AS3?

2009-08-05 Thread Merrill, Jason
Grant Skinner's gModeler was never updated for AS3 (and the last news on
his project page was in April 2004), are there any other good free UML
modeling tools out there for AS3?  I googled a lot, but couldn't find
any - a lot of discussion about building one, but nothing I could
actually download.  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] other lists for compiler design, assembly, and machine code?

2009-08-05 Thread Anthony Pace
Thanks to Paul, Ian , and Kerry for your responses.

I absolutely require additional knowledge of assembly and machine code
for me to compile the final result and to take advantage of the
different types of  hardware the way I want/need to.  I know I am a long
way away, even with my books; yet, the final result even if it takes
years, (although I doubt it should take that long once I have exhausted
the documentation, as I learn pretty quickly) it will be worth it.

The purple dragon is what I am reading now, and the compiler design
handbook is what I will be reading next.  I am pretty sure I should be
able to make my way through them in a few months; yet, I am very
interested in what small-c has to offer too.

I will definitely take a look at the haxe source when I am ready to
learn ocaml.

Any other advice about books, lists, or trends is appreciated.

Thanks,
Anthony

Ian Thomas wrote:
 You could do worse than take a look at the sources for both MTASC and haXe.

 MTASC is a compiler for AS2.
 http://mtasc.org/

 haXe is a compiler for... uh... haXe. But haXe is a very AS3-like
 language (it has its roots in AS).
 http://haxe.org/

 Both are written by Nicolas Cannasse.

 Both are written in the functional programming language OCAML and are
 lightning fast. A lot of people swear by functional languages for
 compiler-writing these days; BNF-style rule-based parsing maps on to
 functional languages much more naturally than on to OOP/procedural
 languages.

 HTH,
Ian

 On Mon, Aug 3, 2009 at 4:37 PM, Kerry Thompsonal...@cyberiantiger.biz wrote:
   
 Anthony Pace wrote:

 
 Can anyone recommend a good mailing list for compiler design for newbies?

 I have books on it, and I know the basics of how to perform tokenization
 and lexical analysis; yet, even with study and practise, I am most
 likely going to be considering myself a newbie in the compiler design
 realm for at least a few years.  Keep in mind that my assembly is very
 rudimentary, and my machine code is even worse
   
 I did some compiler work for Borland, but that was 15 years ago or more.
 Anybody remember Borland's Fortran compiler? No? I thought not.

 I don't know of compiler mailing lists, but I can tell you that you probably
 don't need assembly or machine code. We did the Fortran compiler in C (not
 C++), with very little inline assembly code. I don't know of anybody who has
 done machine code for 20 years or more. It is truly obsolete unless you're
 writing for some proprietary hardware.

 There is a school of thought that you ought to be able to write a compiler
 in its own language. I.e., if you're writing a C++ compiler, you would write
 it in C++. I don't know if that would apply so well to ActionScript, though,
 because of its speed. I would probably choose a language that compiles to
 machine code, like C++, rather than a tokenized language--you want that
 extra speed boost in your primary tool.

 Cordially,

 Kerry Thompson

 ___
 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