RE: [Flashcoders] AIR native extension - Windows debugging

2014-09-05 Thread Merrill, Jason
I just have to add, the rumors of Flash dying are overblown, is correct. 
Flash isn't dying, its already dead. Doesn't matter how good the runtime is, 
it's hardly used much anymore compared to what it used to be. Sorry, I don't 
mean to be snarky, but I just don't agree with the Flash isn't dead idea. 
Does it have to go away completely to be dead? No, but it's certainly lost 90% 
of its relevance on the WWW, and that to me, is dead. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
703.302.9265



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson
Sent: Friday, September 05, 2014 1:37 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AIR native extension - Windows debugging

The rumors of Flash dying are overblown. The Flash and AIR runtimes are still 
great at what they do.

Apple pulled a stunt to shame Flash, but the truth is that they just wanted to 
protect their appstore. They didn't want to kill Flash. They wanted to kill 
Flash apps in the browser. They have succeeded, within their target market. 
Developers obeyed the dictators and moved to the appstore. The runtime remains 
great.

John McCormack skriver:
 Very comprehensive!
 I suppose these are the hooks that Microsoft uses when a program crashes.

 Henrik, I noticed that your subject has AIR native extension.

 Are you of the opinion that AIR still has a long life ahead of it?
 I ask because I like AS3 and would like to write some app's for 
 delivery in AIR but am afraid to go down a dead end.

 John




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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] AIR native extension - Windows debugging

2014-09-05 Thread Merrill, Jason
Well that's great it's going well for you. I personally don't see a lot of 
Flash-based jobs out there anymore though. But great it's not dead to you. I do 
miss it. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
703.302.9265






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney 
Jr.
Sent: Friday, September 05, 2014 2:51 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AIR native extension - Windows debugging

I never really used Flash much for the WWW. I build applications and Flash is 
doing great for me. I have over a dozen apps in the iTunes store and 6 of them 
are now going over to the Android store and dozens, upon dozens are available 
for PC/MAC.

Touchscreens for trade shows, corporate and private, kiosks, video walls, 
audience polling software and the list goes on and on. 

Have a nice day,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Sep 5, 2014, at 12:49 PM, Merrill, Jason jason.merr...@bankofamerica.com 
wrote:

 I just have to add, the rumors of Flash dying are overblown, is correct. 
 Flash isn't dying, its already dead. Doesn't matter how good the runtime is, 
 it's hardly used much anymore compared to what it used to be. Sorry, I don't 
 mean to be snarky, but I just don't agree with the Flash isn't dead idea. 
 Does it have to go away completely to be dead? No, but it's certainly lost 
 90% of its relevance on the WWW, and that to me, is dead. 


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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Flash to HTML

2014-06-19 Thread Merrill, Jason
New version of Flash just came out that claims to export to HTML5 Canvas and do 
Actionscript to Javascript translations. Worth checking out?

https://helpx.adobe.com/flash/how-to/creating-publishing-html5-canvas-document.html


Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
703.302.9265






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney 
Jr.
Sent: Thursday, June 19, 2014 4:03 PM
To: Flash Coders List
Subject: [Flashcoders] Flash to HTML

The group has been quite for awhile. Anyone still here?

I know things are constantly evolving, I'm curious if anyone has found a good 
tool that will convert a rather complex game from Flash to HTML? I know Adobe 
has tools to convert timeline animations and graphics and minimal code and 
Google Swiffy came around when CS4 was out. I'm looking around to see if there 
is any newer developments in bringing existing Flash AS3 apps to HTML. Even if 
it's not one to one, but at least gets me a good start, please through out your 
thoughts and/or suggestions.

Much appreciated.

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169


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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


[Flashcoders] RE: Modifying Sharepoint 2010 list from Flash

2013-11-29 Thread Merrill, Jason
Yes - you can call Sharepoint webservices from Flash. There are some libraries 
out there (or were) for calling Webservices from Flash you can use to do this. 
Been a while though, so can't give you any specific links, but yes, it can be 
done, we've done it for many projects.

There are also Javascript libraries out there that call Webservices and even 
Sharepoint specific JS libraries. You can set up Javascript communication in 
Flash to talk to these libraries to send and receive Sharepoint list data. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Wednesday, November 27, 2013 8:42 AM
To: Flash Coders List
Subject: [Flashcoders] Modifying Sharepoint 2010 list from Flash

Anyone have any experience/guidance with how to modifying list entries in 
Sharepoint 2010 from Flash?

Ted

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


[Flashcoders] Figleaf list for Javascript/HTML/CSS or other lists?

2013-05-23 Thread Merrill, Jason
Does Figleaf have a Javascript/HTML/CSS mailing list like this? I'd love to 
subscribe if there is. Or what lists are there out there for questions? I don't 
mean website forums, I mean e-mail lists - I find those easier to use, more 
accessible. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)


--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

2013-01-25 Thread Merrill, Jason
Thanks guys! We narrowed down our recommendations to O'Reilley Fluent, FITC, 
and Adobe Max. I think I am leaning towards going to FITC. Fluent looks awesome 
but expensive!

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)


--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


[Flashcoders] OT: Interactive conferences

2013-01-24 Thread Merrill, Jason
We're transitioning away from Flash mostly and into the HTML/Javascript/CSS 
world of interactive development. We used to attend Adobe Max, but since we're 
doing less and less with Adobe products, what conferences would you suggest? 
What is/are the biggest and best interactive design conferences for people in 
our industry that use these technologies? Bascially, we were Flash developers 
and now do most of our stuff with Javascript/HTML/CSS to build interactive 
simulations and games for learning. What would be the equivalent of Adobe Max?  

Thanks!

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)



--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] OT: Interactive conferences

2013-01-24 Thread Merrill, Jason
Ha, well right now I am mostly just using Dreamweaver (don't ask, but to sum 
up, I can't install other tools myself on my work machine) for 
HTML/Javascript/CSS. I'm really more about learning the languages and 
techniques rather than the tools though, but good question!

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John McCormack
Sent: Thursday, January 24, 2013 12:48 PM
To: Flash Coders List
Subject: Re: [Flashcoders] OT: Interactive conferences

Since this might also be about tools you might want to see on your visit, what 
do tools/IDEs you use (especially Javascript)?
John

On 24/01/2013 16:14, Merrill, Jason wrote:
 We're transitioning away from Flash mostly and into the HTML/Javascript/CSS 
 world of interactive development. We used to attend Adobe Max, but since 
 we're doing less and less with Adobe products, what conferences would you 
 suggest? What is/are the biggest and best interactive design conferences for 
 people in our industry that use these technologies? Bascially, we were Flash 
 developers and now do most of our stuff with Javascript/HTML/CSS to build 
 interactive simulations and games for learning. What would be the equivalent 
 of Adobe Max?

 Thanks!

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
   703.302.9265 (w/h)



 --
 This message, and any attachments, is for the intended recipient(s) only, may 
 contain information that is privileged, confidential and/or proprietary and 
 subject to important terms and conditions available at 
 http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
 recipient, please delete this message.

 ___
 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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

2013-01-24 Thread Merrill, Jason
Thanks Randall!

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Randall Tinfow
Sent: Thursday, January 24, 2013 12:31 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

 We're transitioning away from Flash mostly and into the HTML/Javascript/CSS 
 world of interactive development. We used to attend Adobe Max, but since 
 we're doing less and less with Adobe products, what conferences would you 
 suggest? What is/are the biggest and best interactive design conferences for 
 people in our industry that use these technologies? Bascially, we were Flash 
 developers and now do most of our stuff with Javascript/HTML/CSS to build 
 interactive simulations and games for learning. What would be the equivalent 
 of Adobe Max?

Great question.  Many, like us, are in the same transition as you.

Our key learning event for 2013 will be O'Reilly's Fluent Conference in San 
Francisco in May, followed by DefCon5, which is in our hood, NYC, late July.

RT



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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

2013-01-24 Thread Merrill, Jason
Great, that's good info Dave!

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
Sent: Thursday, January 24, 2013 1:58 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

 Our key learning event for 2013 will be O'Reilly's Fluent Conference 
 in San Francisco in May

I'd second Fluent, based on feedback I got about the last one. I didn't attend 
myself, though.

Once you have a specific toolset, you might find other, more directed, 
conferences. For example, we do a lot of stuff with Sencha (Touch, EXT-JS, EXT 
for GWT, Sencha Designer) and they have their own conference called, 
appropriately enough, SenchaCon. On an unrelated note, I recommend you check 
out Sencha Designer, which is shaping up to be a very nice tool.

You might also want to check out Google I/O - although this is certainly not a 
JS conference, they do cover a lot of technologies that rely heavily on JS.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and 
provides the highest caliber vendor-authorized instruction at our training 
centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

2013-01-24 Thread Merrill, Jason
Oh, and as a side note, does Fig Leaf host a similar mailing list like this but 
for Javascript / AJAX'y stuff?

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
Sent: Thursday, January 24, 2013 1:58 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

 Our key learning event for 2013 will be O'Reilly's Fluent Conference 
 in San Francisco in May

I'd second Fluent, based on feedback I got about the last one. I didn't attend 
myself, though.

Once you have a specific toolset, you might find other, more directed, 
conferences. For example, we do a lot of stuff with Sencha (Touch, EXT-JS, EXT 
for GWT, Sencha Designer) and they have their own conference called, 
appropriately enough, SenchaCon. On an unrelated note, I recommend you check 
out Sencha Designer, which is shaping up to be a very nice tool.

You might also want to check out Google I/O - although this is certainly not a 
JS conference, they do cover a lot of technologies that rely heavily on JS.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and 
provides the highest caliber vendor-authorized instruction at our training 
centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

2013-01-24 Thread Merrill, Jason
OK cool - yeah I am in Charlotte, so only a 5 hour drive to that conference in 
Atlanta. And yeah, I miss this list too! It really dried up this past year 
sadly. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jon Bradley
Sent: Thursday, January 24, 2013 2:12 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

The Sencha stuff is certainly worth looking in to, considering previous 
Flex/Flash evangelists are on the Sencha team now. Of course, that's a larger 
framework that comes with certain expectations as opposed to understanding the 
underlying technology and learning needed to excel in that field.

Remix South, founded and organized by one of my colleagues may be of interest 
as well.  I'm not sure where you are located, Jason, but it might be of some 
value to connect with those that are converting from the Flash to web space. 
This conference, specifically, is growing rapidly and many of those attending 
came from the 'interactive designer' or 'interactive developer' space and are 
broadening their interests.

http://remixsouth.com/


BTW, I miss this list. I spent many years on flashcoders and flexcoders and 
have moved on. Sort of amazing to see that, one in a great while, there is 
still some activity here!

cheers,

jon bradley
cynergy. | Director, Research  Development
O:   585.563.2132M:  585.729.0837
@: jon.brad...@cynergy.com



On Jan 24, 2013, at 1:58 PM, Dave Watts wrote:

 Our key learning event for 2013 will be O'Reilly's Fluent Conference 
 in San Francisco in May
 
 I'd second Fluent, based on feedback I got about the last one. I 
 didn't attend myself, though.
 
 Once you have a specific toolset, you might find other, more directed, 
 conferences. For example, we do a lot of stuff with Sencha (Touch, 
 EXT-JS, EXT for GWT, Sencha Designer) and they have their own 
 conference called, appropriately enough, SenchaCon. On an unrelated 
 note, I recommend you check out Sencha Designer, which is shaping up 
 to be a very nice tool.
 
 You might also want to check out Google I/O - although this is 
 certainly not a JS conference, they do cover a lot of technologies 
 that rely heavily on JS.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA 
 Schedule, and provides the highest caliber vendor-authorized 
 instruction at our training centers, online, or onsite.
 ___
 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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

2013-01-24 Thread Merrill, Jason
Thanks Dave - I have found a few of my answers on Stack Overflow in the past, I 
like it. Is it web browser only or can you subscribe like a mailing list? I 
think I prefer that format. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
Sent: Thursday, January 24, 2013 2:12 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Re: OT: Interactive conferences (Merrill, Jason)

 Oh, and as a side note, does Fig Leaf host a similar mailing list like this 
 but for Javascript / AJAX'y stuff?

We do not. I personally tend to just rely on StackExchange for JS questions.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and 
provides the highest caliber vendor-authorized instruction at our training 
centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] 3D engine for dynamic text

2013-01-15 Thread Merrill, Jason
Swift3D is a modeling tool and for Flash, it exports out as Papervision3D 
files/classes. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: Monday, January 14, 2013 9:51 PM
To: Flash Coders List
Subject: Re: [Flashcoders] 3D engine for dynamic text

Has anyone tried Unity 3D? Do you know if it works with flash.
I have that one and was wanting to try it out, just hadn't yet.
Worth the time or no? There is also Swift 3D which has been updated recently (I 
believe).
Swift 3D works with vectors well as far as I could tell.

Best,
Karl

On Jan 14, 2013, at 3:50 PM, Randall Tinfow wrote:

 Know little about 3D for AS3, so I'm struggling to decide where to 
 focus my efforts.  What's the recommendation for a library that will 
 build a 3D model and animate in realtime from input text?

 Papervision3D
 Away3D
 Sandy3D
 Alternativa3D?

 Hopefully the learning curve will not bury me.

 Thanks,

 Randy Tinfow
 IMAGE PLANT





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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] 3D engine for dynamic text

2013-01-15 Thread Merrill, Jason
Also Away3D and Alternativa support hardware acceleration. I don't know about 
the others. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Frank McGuire
Sent: Monday, January 14, 2013 5:28 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] 3D engine for dynamic text

I agree with Jason. Away3D is well-documented. Alternativa is faster but not 
much documentation. Take a look at http://wonderfl.net/ and 
http://www.flashandmath.com/ for some interesting samples in both.

Frank McGuire
Flex/Flash Developer
e-learning/mobile/AIR


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
Sent: Monday, January 14, 2013 10:55 PM
To: Flash Coders List
Subject: RE: [Flashcoders] 3D engine for dynamic text

Papervision3D - fantastic library, very capable, but dead.
Away3D - fantastic library, active community, still being supported (last I
heard)
Sandy3D - smaller, less capable as far as I know, not sure if it's still in
development 
Alternativa - very capable, still being supported (I assume), seemed harder to 
get up and working when I tried it.

That said, if it was me, I would probably try out Away3D, even though I am well 
versed in Papervision. Second choice would be Alternativa. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning
 703.302.9265 (w/h)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Randall
Tinfow
Sent: Monday, January 14, 2013 4:50 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] 3D engine for dynamic text

Know little about 3D for AS3, so I'm struggling to decide where to focus my
efforts.  What's the recommendation for a library that will build a 3D model
and animate in realtime from input text?

Papervision3D
Away3D
Sandy3D
Alternativa3D?

Hopefully the learning curve will not bury me.

Thanks,

Randy Tinfow
IMAGE PLANT





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

--
This message, and any attachments, is for the intended recipient(s) only,
may contain information that is privileged, confidential and/or proprietary
and subject to important terms and conditions available at
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended
recipient, please delete this message.

___
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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] making as3 movie scorm compliant

2013-01-15 Thread Merrill, Jason
Google Pipwerks SCORM - nice classes and files to make your Flash communicate 
with an LMS via SCORM. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Hans Wichman
Sent: Tuesday, January 15, 2013 6:03 AM
To: Flash Coders List
Subject: [Flashcoders] making as3 movie scorm compliant

Hi list,

assuming I have a flash movie which communicates with a custom CMS, what would 
need to be done to make it scorm compliant?

As far as I can tell, I'll need some scorm as classes to communicatie with the 
wrapper, but how can I test whether everything works, etc, I have absolutely no 
experience with LMSes etc and to me it's kind of hazy how everything fits 
together, which in turn makes it hard to know where to start/look. Is there a 
definite scorm specs, which will work with any LMS, so that I can simply pick a 
free open source LMS somewhere to test my development progress?

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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] making as3 movie scorm compliant

2013-01-15 Thread Merrill, Jason
http://pipwerks.com/laboratory/scorm/ 

Code, examples, and documentation there.

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: Merrill, Jason 
Sent: Tuesday, January 15, 2013 12:00 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] making as3 movie scorm compliant

Google Pipwerks SCORM - nice classes and files to make your Flash communicate 
with an LMS via SCORM. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Hans Wichman
Sent: Tuesday, January 15, 2013 6:03 AM
To: Flash Coders List
Subject: [Flashcoders] making as3 movie scorm compliant

Hi list,

assuming I have a flash movie which communicates with a custom CMS, what would 
need to be done to make it scorm compliant?

As far as I can tell, I'll need some scorm as classes to communicatie with the 
wrapper, but how can I test whether everything works, etc, I have absolutely no 
experience with LMSes etc and to me it's kind of hazy how everything fits 
together, which in turn makes it hard to know where to start/look. Is there a 
definite scorm specs, which will work with any LMS, so that I can simply pick a 
free open source LMS somewhere to test my development progress?

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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] 3D engine for dynamic text

2013-01-14 Thread Merrill, Jason
Papervision3D - fantastic library, very capable, but dead.
Away3D - fantastic library, active community, still being supported (last I 
heard)
Sandy3D - smaller, less capable as far as I know, not sure if it's still in 
development 
Alternativa - very capable, still being supported (I assume), seemed harder to 
get up and working when I tried it.

That said, if it was me, I would probably try out Away3D, even though I am well 
versed in Papervision. Second choice would be Alternativa. 

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning 
 703.302.9265 (w/h)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Randall Tinfow
Sent: Monday, January 14, 2013 4:50 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] 3D engine for dynamic text

Know little about 3D for AS3, so I'm struggling to decide where to focus my 
efforts.  What's the recommendation for a library that will build a 3D model 
and animate in realtime from input text?

Papervision3D
Away3D
Sandy3D
Alternativa3D?

Hopefully the learning curve will not bury me.

Thanks,

Randy Tinfow
IMAGE PLANT





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

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

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


RE: [Flashcoders] AS3

2012-10-26 Thread Merrill, Jason
Yeah, unfortunately the world has accepted Javascript without much complaint. 
But here's a simple example of simulating a class in Javascript - put this in a 
js file:

(function(window){

function Person(name, address){
this.name = name;
this.address = address;
}

Person.prototype.sayHello = function(){
console.log(this.name +  says hello from+this.address);
};

Person.SPECIES = human;

window.Person = Person;

}(window));


Then in HTML you can do this after importing the above js file:

var jason = new Person(Jason Merrill, 123 Smith Street);
jason.sayHello();


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: Friday, October 26, 2012 11:23 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

Thanks Kevin, I guess what I meant was a more object orientated approach, which 
I have enjoyed learning and using in AS3. I'll look into those libraries you 
mentioned.

David

On 26 October 2012 16:11, tom rhodes tom.rho...@gmail.com wrote:

 how depressing that a simple AS3 question has turned into a thread 
 about how everyone is now coding JS!!

 whilst we're on that subject though...

 http://haxe.org/doc/targets/js
 http://www.haxejs.org/

 is about as close as you are going to get to AS3 in terms of JS. i 
 can't recommend haxe enough for a million reasons but the JS target 
 has just improved massively in the code it generates and haxe 3 is a 
 few months away which should have the complete html5 spec covered as 
 standard, including webgl.

 On 26 October 2012 16:40, Ross Sclafani ross.sclaf...@gmail.com wrote:

  my framework lets you code like this:
 
 
  _package('com.neuromantic.display.shapes',
 
  _import( 'com.neuromantic.display.shapes.Oval'),
 
  _class( 'Circle' )._extends( 'Oval',{
  Circle: function ( size ) {
  this._super( size, size );
  }
 
  })
  );
 
 
 
  Ross P. Sclafani
  design / technology / creative
 
  http://ross.sclafani.net
  http://www.twitter.com/rosssclafani
  http://www.linkedin.com/in/rosssclafani
  [347] 204.5714
 
 
 
  let go of even your longest held beliefs, the only truth is in 
  observation.
 
  On Oct 26, 2012, at 10:25 AM, Kevin Newman capta...@unfocus.com wrote:
 
   JS doesn't have classes, and emulating them is somewhat tricky 
   using
 the
  prototype chain (it can be done though).
  
   The easiest way to emulate classes though is to use a framework 
   like
  underscore.js (which Backbone.js is built on).
  
   Kevin N.
  
  
   On 10/26/12 9:21 AM, David Hunter wrote:
   I'd
   really like to learn to approach javascript from a class-based
 approach,
  
   ___
   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




--
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
@DHDPIC
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This 

RE: [Flashcoders] AS3

2012-10-26 Thread Merrill, Jason
I hate to say it, but AS3 is kind of dying. 

It's the platform that is taking the big hit (Flash player)  therefore AS3 is 
decreasing in use because the platform is decreasing in use. It's not because 
AS3 lost favorability, the player did. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
Sent: Friday, October 26, 2012 2:28 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

I don't think there is going to be an AS4. The ECMA Script committee was 
working on a new standard at one point, but they disbanded 2-3 years ago 
without issuing a standard for ECMA Script 4.

Adobe have been adding capabilities, such as sort, and I expect they will 
continue to add capabilities. They might even call a new release ActionScript 
4, but it won't meet any ECMA standard.

I don't think that's necessarily a bad thing. AS3 is a mature, robust language 
that has most of the features found in Java, JavaScript, and even
C++. To go much beyond what they already have, it would almost mean a 
C++whole
new programming paradigm.

Cordially,

Kerry Thompson

On Fri, Oct 26, 2012 at 1:32 PM, Kevin Newman capta...@unfocus.com wrote:

 I hate to say it, but AS3 is kind of dying. My hope is AS4 (or 
 whatever they end up calling Actionscript Next) with it's gaming 
 focus, will revitalize things a bit.

 Kevin N.


 On 10/26/12 11:11 AM, tom rhodes wrote:

 how depressing that a simple AS3 question has turned into a thread 
 about how everyone is now coding JS!!


 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com 
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://cha
 ttyfig.figleaf.com/mailman/listinfo/flashcoders

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3

2012-10-25 Thread Merrill, Jason
I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) Going 
through a lot of courses on Lynda.com - completed some Javascript courses and 
jQuery, now enjoying Lee Brimlow's HTML 5 For Flash Developers course right 
now. Good stuff - I wish Javascript was a more advanced language but it has 
some pretty cool features.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: Thursday, October 25, 2012 9:59 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

Yay!
I just completed my first AS3 job Go Me!

:P

Best,
Karl


On Oct 25, 2012, at 8:48 AM, John R. Sweeney Jr. wrote:

 And we'll be there again, I'm sure... :)

 John

 John R. Sweeney Jr.
 Senior Interactive Multimedia Developer OnDemand Interactive Inc 
 Hoffman Estates, IL 60169




 On Oct 25, 2012, at 3:15 AM, Paul A. wrote:

 No worries - we've all been there.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com


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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3

2012-10-25 Thread Merrill, Jason
Yeah, been looking to someday switch to Java and use GWT to export to 
Javascript but think it's wise to get really comfortable with JS first. I'm 
comfortable with the language, just haven't done much in the way of application 
yet. I've been programmed by a full 10 years of Actionscript. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ross P. Sclafani
Sent: Thursday, October 25, 2012 1:28 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

or you can just turn it into an advanced language.

https://github.com/neuromantic/CodeJS/blob/master/doc/README.markdown


On Oct 25, 2012, at 11:35 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) 
 Going through a lot of courses on Lynda.com - completed some Javascript 
 courses and jQuery, now enjoying Lee Brimlow's HTML 5 For Flash Developers 
 course right now. Good stuff - I wish Javascript was a more advanced language 
 but it has some pretty cool features.
 
 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
 703.302.9265 (w/h)
 
 
 
 
 
 ___
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl 
 DeSaulniers
 Sent: Thursday, October 25, 2012 9:59 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3
 
 Yay!
 I just completed my first AS3 job Go Me!
 
 :P
 
 Best,
 Karl
 
 
 On Oct 25, 2012, at 8:48 AM, John R. Sweeney Jr. wrote:
 
 And we'll be there again, I'm sure... :)
 
 John
 
 John R. Sweeney Jr.
 Senior Interactive Multimedia Developer OnDemand Interactive Inc 
 Hoffman Estates, IL 60169
 
 
 
 
 On Oct 25, 2012, at 3:15 AM, Paul A. wrote:
 
 No worries - we've all been there.
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or attached 
 to this message is prohibited. 
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law. 
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced in countries other than 
 the country in which you are located. This message cannot be guaranteed to be 
 secure or free of errors or viruses. 
 
 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
 Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
 Government Agency. Attachments that are part of this EC may have additional 
 important disclosures and disclaimers, which you should read. This message is 
 subject to terms available at the following link: 
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
 consent to the foregoing.
 ___
 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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
 function() { gotoAndStop(divinedivers); });

Yeah, this is weird and unnecessary. Anonymous functions are recommended 
against in AS3. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
Sent: Wednesday, October 24, 2012 8:33 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

Try removing:

button1_btn.mouseChildren = false;
button2_btn.mouseChildren = false;

Your code is a bit convoluted!

divers_btn.addEventListener(MouseEvent.CLICK, function() { 
gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, 
function() { gotoAndStop(scubadudes); });

divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
divers_btn.gotoAndStop(OVER);});
..

Paul

On 24/10/2012 12:39, Karl DeSaulniers wrote:
 Hello All,
 Long time. If your available at the moment, I could use your help with 
 some AS3.
 I finally got an AS3 job! Yay! But I am stuck on the most simple of 
 things.
 All I am trying to do is make some buttons work... lol Here is my 
 code.

 button1_btn.buttonMode = true;
 button2_btn.buttonMode = true;
 button1_btn.useHandCursor = true;
 button2_btn.useHandCursor = true;
 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 button1_btn.addEventListener(MouseEvent.CLICK, function() { 
 changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, 
 function() { changeSelect(2); }); 
 button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, 
 function() { toggleB2(2); }); 
 button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { 
 toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, 
 function() { toggleB2(1); });

 function changeSelect(p):void {
 switch (p) {
 case 1:
 this.gotoAndStop(divinedivers); //goto frame 
 divinedivers in this MC
 break;
 case 2:
 this.gotoAndStop(scubadudes); //got frame scubadudes in 
 this MC
 break;
 }
 }

 function toggleB1(f):void {
 button1_btn.gotoAndStop(f); //toggle this button MC frame }

 function toggleB2(f):void {
 button2_btn.gotoAndStop(f); //toggle this button MC frame }

 Why does AS3 have to make things so difficult for something so simple??
 What the heck am I doing wrong???

 Also, how do you use just a button instead of a mc?
 I tried using just a button and it wouldn't even switch to the over 
 state that is inside the button!!?

 AS2 is just so much more simple... sigh*

 TIA,

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
Plus, anonymous functions can throw off your scope, so your buttons could 
fail...

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
Sent: Wednesday, October 24, 2012 9:43 AM
To: Flash Coders List
Subject: RE: [Flashcoders] AS3

 function() { gotoAndStop(divinedivers); });

Yeah, this is weird and unnecessary. Anonymous functions are recommended 
against in AS3. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
Sent: Wednesday, October 24, 2012 8:33 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

Try removing:

button1_btn.mouseChildren = false;
button2_btn.mouseChildren = false;

Your code is a bit convoluted!

divers_btn.addEventListener(MouseEvent.CLICK, function() { 
gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, 
function() { gotoAndStop(scubadudes); });

divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
divers_btn.gotoAndStop(OVER);});
..

Paul

On 24/10/2012 12:39, Karl DeSaulniers wrote:
 Hello All,
 Long time. If your available at the moment, I could use your help with 
 some AS3.
 I finally got an AS3 job! Yay! But I am stuck on the most simple of 
 things.
 All I am trying to do is make some buttons work... lol Here is my 
 code.

 button1_btn.buttonMode = true;
 button2_btn.buttonMode = true;
 button1_btn.useHandCursor = true;
 button2_btn.useHandCursor = true;
 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 button1_btn.addEventListener(MouseEvent.CLICK, function() { 
 changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, 
 function() { changeSelect(2); }); 
 button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, 
 function() { toggleB2(2); }); 
 button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { 
 toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, 
 function() { toggleB2(1); });

 function changeSelect(p):void {
 switch (p) {
 case 1:
 this.gotoAndStop(divinedivers); //goto frame 
 divinedivers in this MC
 break;
 case 2:
 this.gotoAndStop(scubadudes); //got frame scubadudes in 
 this MC
 break;
 }
 }

 function toggleB1(f):void {
 button1_btn.gotoAndStop(f); //toggle this button MC frame }

 function toggleB2(f):void {
 button2_btn.gotoAndStop(f); //toggle this button MC frame }

 Why does AS3 have to make things so difficult for something so simple??
 What the heck am I doing wrong???

 Also, how do you use just a button instead of a mc?
 I tried using just a button and it wouldn't even switch to the over 
 state that is inside the button!!?

 AS2 is just so much more simple... sigh*

 TIA,

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
Ok, what's a good case to use them?  Just curious, I have never found a 
situation where they were warranted.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
Sent: Wednesday, October 24, 2012 10:07 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

On 24/10/2012 14:43, Merrill, Jason wrote:
 function() { gotoAndStop(divinedivers); });
 Yeah, this is weird and unnecessary. Anonymous functions are recommended 
 against in AS3.

Really?

I used to be of the same opinion, but certainly not as a blanket rule. 
It all depends.


   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning
   703.302.9265 (w/h)





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
 Sent: Wednesday, October 24, 2012 8:33 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3

 Try removing:

 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 Your code is a bit convoluted!

 divers_btn.addEventListener(MouseEvent.CLICK, function() { 
 gotoAndStop(divinedivers); }); 
 scuba_btn.addEventListener(MouseEvent.CLICK, function() { 
 gotoAndStop(scubadudes); });

 divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 divers_btn.gotoAndStop(OVER);});
 ..

 Paul

 On 24/10/2012 12:39, Karl DeSaulniers wrote:
 Hello All,
 Long time. If your available at the moment, I could use your help 
 with some AS3.
 I finally got an AS3 job! Yay! But I am stuck on the most simple of 
 things.
 All I am trying to do is make some buttons work... lol Here is my 
 code.

 button1_btn.buttonMode = true;
 button2_btn.buttonMode = true;
 button1_btn.useHandCursor = true;
 button2_btn.useHandCursor = true;
 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 button1_btn.addEventListener(MouseEvent.CLICK, function() { 
 changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK,
 function() { changeSelect(2); });
 button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER,
 function() { toggleB2(2); });
 button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { 
 toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT,
 function() { toggleB2(1); });

 function changeSelect(p):void {
  switch (p) {
  case 1:
  this.gotoAndStop(divinedivers); //goto frame 
 divinedivers in this MC
  break;
  case 2:
  this.gotoAndStop(scubadudes); //got frame scubadudes 
 in this MC
  break;
  }
 }

 function toggleB1(f):void {
  button1_btn.gotoAndStop(f); //toggle this button MC frame }

 function toggleB2(f):void {
  button2_btn.gotoAndStop(f); //toggle this button MC frame }

 Why does AS3 have to make things so difficult for something so simple??
 What the heck am I doing wrong???

 Also, how do you use just a button instead of a mc?
 I tried using just a button and it wouldn't even switch to the over 
 state that is inside the button!!?

 AS2 is just so much more simple... sigh*

 TIA,

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.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

 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or attached 
 to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
That still isn't an argument to use them in my opinion, personally I think the 
code is much more convoluted that way. Your argument is essentially it's a 
preference in coding style, not that there are situations that specifically 
call for their use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
Sent: Wednesday, October 24, 2012 10:19 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3

On 24/10/2012 15:08, Merrill, Jason wrote:
 Ok, what's a good case to use them?  Just curious, I have never found a 
 situation where they were warranted.
Sometimes (depending on what your buttons do), it seems rather artificial to 
have to fabricate a stand-alone function to handle an event when the action 
required is very simple.

I used to always create named event handler functions and realised I was 
adopting some fixed pattern that was actually obfuscating my code unnecessarily 
in some situations.

The OP was using an event handler simply to control the timeline and 
manufacturing a named function to do this very specific thing seems 
unnecessary. With an inline function you can see straight off what happens when 
the event is handled, without looking up the handler function to see what it 
does.

   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning
   703.302.9265 (w/h)





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
 Sent: Wednesday, October 24, 2012 10:07 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3

 On 24/10/2012 14:43, Merrill, Jason wrote:
 function() { gotoAndStop(divinedivers); });
 Yeah, this is weird and unnecessary. Anonymous functions are recommended 
 against in AS3.
 Really?

 I used to be of the same opinion, but certainly not as a blanket rule.
 It all depends.

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning
703.302.9265 (w/h)





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
 Sent: Wednesday, October 24, 2012 8:33 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3

 Try removing:

 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 Your code is a bit convoluted!

 divers_btn.addEventListener(MouseEvent.CLICK, function() { 
 gotoAndStop(divinedivers); }); 
 scuba_btn.addEventListener(MouseEvent.CLICK, function() { 
 gotoAndStop(scubadudes); });

 divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 divers_btn.gotoAndStop(OVER);});
 ..

 Paul

 On 24/10/2012 12:39, Karl DeSaulniers wrote:
 Hello All,
 Long time. If your available at the moment, I could use your help 
 with some AS3.
 I finally got an AS3 job! Yay! But I am stuck on the most simple of 
 things.
 All I am trying to do is make some buttons work... lol Here is my 
 code.

 button1_btn.buttonMode = true;
 button2_btn.buttonMode = true;
 button1_btn.useHandCursor = true;
 button2_btn.useHandCursor = true;
 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 button1_btn.addEventListener(MouseEvent.CLICK, function() { 
 changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK,
 function() { changeSelect(2); });
 button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER,
 function() { toggleB2(2); });
 button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { 
 toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT,
 function() { toggleB2(1); });

 function changeSelect(p):void {
   switch (p) {
   case 1:
   this.gotoAndStop(divinedivers); //goto frame 
 divinedivers in this MC
   break;
   case 2:
   this.gotoAndStop(scubadudes); //got frame scubadudes 
 in this MC
   break;
   }
 }

 function toggleB1(f):void {
   button1_btn.gotoAndStop(f); //toggle this button MC frame 
 }

 function toggleB2(f):void {
   button2_btn.gotoAndStop(f); //toggle this button MC frame 
 }

 Why does AS3 have to make things so difficult for something so simple??
 What the heck am I doing wrong???

 Also, how do you use just a button instead of a mc?
 I tried using just a button and it wouldn't even switch to the over 
 state that is inside the button!!?

 AS2 is just so much more simple... sigh*

 TIA,

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
Right, it's cool, we're on the same page, my only point is there is no 
functional reason to use them (no pun intended) and in my personal opinion, 
they have more potential to introduce problems. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 
 703.302.9265 (w/h)





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
Sent: Wednesday, October 24, 2012 10:34 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3

Jason, I wasn't arguing anything except that IMHO using them makes code more 
readable in some circumstances. It's not an either/or.

We can agree to differ.

On 24/10/2012 15:23, Merrill, Jason wrote:
 That still isn't an argument to use them in my opinion, personally I think 
 the code is much more convoluted that way. Your argument is essentially it's 
 a preference in coding style, not that there are situations that specifically 
 call for their use.

   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning
   703.302.9265 (w/h)





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
 Sent: Wednesday, October 24, 2012 10:19 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] AS3

 On 24/10/2012 15:08, Merrill, Jason wrote:
 Ok, what's a good case to use them?  Just curious, I have never found a 
 situation where they were warranted.
 Sometimes (depending on what your buttons do), it seems rather artificial to 
 have to fabricate a stand-alone function to handle an event when the action 
 required is very simple.

 I used to always create named event handler functions and realised I was 
 adopting some fixed pattern that was actually obfuscating my code 
 unnecessarily in some situations.

 The OP was using an event handler simply to control the timeline and 
 manufacturing a named function to do this very specific thing seems 
 unnecessary. With an inline function you can see straight off what happens 
 when the event is handled, without looking up the handler function to see 
 what it does.
Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning
703.302.9265 (w/h)





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
 Sent: Wednesday, October 24, 2012 10:07 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3

 On 24/10/2012 14:43, Merrill, Jason wrote:
 function() { gotoAndStop(divinedivers); });
 Yeah, this is weird and unnecessary. Anonymous functions are recommended 
 against in AS3.
 Really?

 I used to be of the same opinion, but certainly not as a blanket rule.
 It all depends.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
 703.302.9265 (w/h)





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul A.
 Sent: Wednesday, October 24, 2012 8:33 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3

 Try removing:

 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 Your code is a bit convoluted!

 divers_btn.addEventListener(MouseEvent.CLICK, function() { 
 gotoAndStop(divinedivers); }); 
 scuba_btn.addEventListener(MouseEvent.CLICK, function() { 
 gotoAndStop(scubadudes); });

 divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 divers_btn.gotoAndStop(OVER);});
 ..

 Paul

 On 24/10/2012 12:39, Karl DeSaulniers wrote:
 Hello All,
 Long time. If your available at the moment, I could use your help 
 with some AS3.
 I finally got an AS3 job! Yay! But I am stuck on the most simple of 
 things.
 All I am trying to do is make some buttons work... lol Here is my 
 code.

 button1_btn.buttonMode = true;
 button2_btn.buttonMode = true;
 button1_btn.useHandCursor = true;
 button2_btn.useHandCursor = true;
 button1_btn.mouseChildren = false;
 button2_btn.mouseChildren = false;

 button1_btn.addEventListener(MouseEvent.CLICK, function() { 
 changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK,
 function() { changeSelect(2); });
 button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { 
 toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER,
 function() { toggleB2(2); });
 button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { 
 toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT,
 function() { toggleB2(1); });

 function changeSelect(p):void {
switch (p) {
case 1:
this.gotoAndStop(divinedivers); //goto frame 
 divinedivers in this MC
break

RE: [Flashcoders] Actionscript lives on.

2012-09-18 Thread Merrill, Jason
 Make it an EMCA viable script language. Like Actionscript becoming 
 Javascripts competitor. Make it so Actionscript can control and manipulate 
 DOM.
Just sayin..

THAT would be AWESOME and make me VERY HAPPY.  

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 


--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Integrating Flash with Sharepoint

2012-06-07 Thread Merrill, Jason
Hey Ted,

Here's how to get the XML url of the SharePoint list:

Click on Settings  List Settings 
From the browser's address bar get the ID of the list (everything following 
List=) 
Example: %7BFE1F96DF%2DED4E%2D4B55%2D96FD%2D79F7D61F0D8B%7D
Put together the URL for the XML 
http://[YOUR SHAREPOINT SITE URL]/_vti_bin/owssvr.dll?Cmd=DisplayList=[YOUR 
LIST ID]XMLDATA=TRUE

Example: 
http://sharepoint.mysite.com/sites/SDTeam/_vti_bin/owssvr.dll?Cmd=DisplayList=%7BFE1F96DF%2WQA4E%2D4B55%2D96FD%2D79F7D61F0D8B%7DXMLDATA=TRUE

That link should display a page that shows the XML for the list.


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Thursday, June 07, 2012 12:03 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Great - thanks - I'll look into the xml view...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it. 

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws

RE: [Flashcoders] RE: Integrating Flash with Sharepoint

2012-06-07 Thread Merrill, Jason
No problem!

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Thursday, June 07, 2012 2:14 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

nice - works perfectly... thanks!


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Thu 6/7/2012 1:49 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Hey Ted,

Here's how to get the XML url of the SharePoint list:

Click on Settings  List Settings 
From the browser's address bar get the ID of the list (everything following 
List=) 
Example: %7BFE1F96DF%2DED4E%2D4B55%2D96FD%2D79F7D61F0D8B%7D
Put together the URL for the XML 
http://[YOUR SHAREPOINT SITE URL]/_vti_bin/owssvr.dll?Cmd=DisplayList=[YOUR 
LIST ID]XMLDATA=TRUE

Example: 
http://sharepoint.mysite.com/sites/SDTeam/_vti_bin/owssvr.dll?Cmd=DisplayList=%7BFE1F96DF%2WQA4E%2D4B55%2D96FD%2D79F7D61F0D8B%7DXMLDATA=TRUE

That link should display a page that shows the XML for the list.


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Thursday, June 07, 2012 12:03 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Great - thanks - I'll look into the xml view...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it. 

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies

[Flashcoders] RE: Integrating Flash with Sharepoint

2012-06-05 Thread Merrill, Jason
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Integrating Flash with Sharepoint

2012-06-05 Thread Merrill, Jason
Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it. 

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged

[Flashcoders] RE: Grab Textfield Value from Javascript

2012-05-23 Thread Merrill, Jason
Yes. Javascript can call Flash functions. Flash functions can return data to 
Javascript. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Wednesday, May 23, 2012 3:13 PM
To: Flash Coders List
Subject: [Flashcoders] Grab Textfield Value from Javascript

Is it possible for Javascript to call into a swf and grab a variable or 
textfield value?

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Merrill, Jason
You would have to add code to the .swf, but yes, Javascript can listen for 
Flash events and vice versa. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, May 22, 2012 11:44 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Can Javascript Listen to Flash Events?

So I have a swf that needs to run locally and make an ExternalInterface.call 
... I am unable to make settings changes to the users Flash Players ... so as 
of now it seems unpossible! 

My thoughts was to see if the javascript can listen for a flash event (the end 
of a flv in FLVPlayback to be specific)

Any thoughts?

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Merrill, Jason
I'm assuming you've already read the capabilities and info listed here, but if 
not, check this out: 
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html?filter_flash=cs5filter_flashplayer=10.2filter_air=2.6

From that page: 

From ActionScript, you can do the following on the HTML page: 

Call any JavaScript function. 
Pass any number of arguments, with any names. 
Pass various data types (Boolean, Number, String, and so on). 
Receive a return value from the JavaScript function. 

From JavaScript on the HTML page, you can: 

Call an ActionScript function. 
Pass arguments using standard function call notation. 
Return a value to the JavaScript function.



 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, May 22, 2012 12:36 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

I cannot change security settings for the player - this will be used by a lot 
of people and I cannot go to each work station and change that setting... 
unless you are talking about some other setting...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Paul Andrews
Sent: Tue 5/22/2012 12:15 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?
 
Just get a flash event handler to call a javascript function.

You probably don't have the security setting for the project set right - 
network access only.

Paul


On 22/05/2012 17:06, Ted Lehr wrote:
 Oh - yes - I have the .fla... I just am running into issues when I try to 
 have the swf call out to the javascript - I get the security warning from the 
 player - so I am trying to figure out how to, instead of having the swf make 
 a call out - maybe the javascript could just listen to the player...


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, 
 Jason
 Sent: Tue 5/22/2012 11:52 AM
 To: Flash Coders List
 Subject: [Flashcoders] RE: Can Javascript Listen to Flash Events?

 You would have to add code to the .swf, but yes, Javascript can listen for 
 Flash events and vice versa.

   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted 
 Lehr
 Sent: Tuesday, May 22, 2012 11:44 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Can Javascript Listen to Flash Events?

 So I have a swf that needs to run locally and make an ExternalInterface.call 
 ... I am unable to make settings changes to the users Flash Players ... so as 
 of now it seems unpossible!

 My thoughts was to see if the javascript can listen for a flash event 
 (the end of a flv in FLVPlayback to be specific)

 Any thoughts?

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

 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or attached 
 to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced in countries other than 
 the country in which you are located. This message cannot be guaranteed to be 
 secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
 Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
 Government Agency. Attachments that are part

RE: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Merrill, Jason
Weird because I used to do it that way all the time. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
Sent: Monday, April 30, 2012 8:00 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Accessing FlashVars

Thanks, Karina and Jason.

Jason, I've traced out the url, and it's not in that. For the time being, I'm 
running locally, and the URL just points to the swf.

Karina, I've tried it the way you suggest, with no luck. I've looked at 
loaderInfo.parameters in the debugger, in the constructor, and parameters is an 
object, but it has no properties. It should have at least one parameter--I'm 
declaring 5 parameters in the HTML, but it's showing none of them. I'm 
wondering if the problem has to do with the object's parameters, and not 
specifically FlashVars.

Cordially,

Kerry Thompson

On Mon, Apr 30, 2012 at 7:27 PM, Karina Steffens kar...@neo-archaic.netwrote:

 Hey Kerry,

 I think it's because you assigned the event to loaderinfo - not the 
 Main class instance, and then you're asking for the loaderinfo's 
 loaderinfo, when it's the Main's loaderinfo that you need.

 Also I don't think you need any event at all. You should be able to 
 access the flashvars from the Main function's constructor 
 (loaderinfo.parameters)

 Cheers,

 Karina

 On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote:

  Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.
 
  I can't access the FlashVars in the HTML file. I've been working on 
  this all day, and it's driving me crazy (crazier). Do you see 
  anything in the following code?
 
  In the constructor of my default AS3 file, I have this:
 
this.loaderInfo.addEventListener(Event.COMPLETE, init);
 
  and in the init() function:
 
 var flashVars:Object;
 
 flashVars = this.loaderInfo.parameters;
 
  When I look at it in the debugger, flashVars is an object, but it 
  has no parameters. The relevant HTML is pretty straightforward:
 
 object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
  width=100% height=100% id=RMK_Beta
 param name=movie value=RMK_Beta.swf /
 param name=FlashVars value=appUrl=test /
 param name=quality value=high /
 param name=bgcolor value=#ff /
 param name=allowScriptAccess value=sameDomain /
 param name=allowFullScreen value=true /
 !--[if !IE]--
 object type=application/x-shockwave-flash
  data=RMK_Beta.swf width=100% height=100%
param name=FlashVars value=appUrl=test
  /
 param name=quality value=high /
 param name=bgcolor value=#ff /
 param name=allowScriptAccess value=sameDomain /
 param name=allowFullScreen value=true /
 !--![endif]--
 !--[if gte IE 6]--
 p
 Either scripts and active content are not
 permitted
  to run or Adobe Flash Player version
 10.0.0 or greater is not installed.
 /p
 !--![endif]--
 a href=http://www.adobe.com/go/getflashplayer;
 img src=
  http://www.adobe.com/images/shared/download_buttons/get_flash_player
  .gif
 
  alt=Get Adobe Flash Player /
 /a
 !--[if !IE]--
 /object
 !--![endif]--
 /object
  ___
  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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an 

RE: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Merrill, Jason
My memory is foggy, but I always thought you just access the FlashVars variable 
you created in the HTML straight away in the swf, in this case, appUrl.  Have 
you tried a trace on appUrl?

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
Sent: Monday, April 30, 2012 6:46 PM
To: FlashCoders
Subject: [Flashcoders] Accessing FlashVars

Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.

I can't access the FlashVars in the HTML file. I've been working on this all 
day, and it's driving me crazy (crazier). Do you see anything in the following 
code?

In the constructor of my default AS3 file, I have this:

   this.loaderInfo.addEventListener(Event.COMPLETE, init);

and in the init() function:

var flashVars:Object;

flashVars = this.loaderInfo.parameters;

When I look at it in the debugger, flashVars is an object, but it has no 
parameters. The relevant HTML is pretty straightforward:

object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
width=100% height=100% id=RMK_Beta
param name=movie value=RMK_Beta.swf /
param name=FlashVars value=appUrl=test /
param name=quality value=high /
param name=bgcolor value=#ff /
param name=allowScriptAccess value=sameDomain /
param name=allowFullScreen value=true /
!--[if !IE]--
object type=application/x-shockwave-flash
data=RMK_Beta.swf width=100% height=100%
   param name=FlashVars value=appUrl=test
/
param name=quality value=high /
param name=bgcolor value=#ff /
param name=allowScriptAccess value=sameDomain /
param name=allowFullScreen value=true /
!--![endif]--
!--[if gte IE 6]--
p
Either scripts and active content are not permitted to 
run or Adobe Flash Player version
10.0.0 or greater is not installed.
/p
!--![endif]--
a href=http://www.adobe.com/go/getflashplayer;
img src=
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif;
alt=Get Adobe Flash Player /
/a
!--[if !IE]--
/object
!--![endif]--
/object
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MVC - ScreenManager

2012-03-26 Thread Merrill, Jason
I wouldn't put it in the controller, it a data thing.  I create a class that 
loads in XML as a service class, and have the model load the service, 
dispatching an event when done that the controller picks up on.  MVCS. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Creighton, Gerry
Sent: Monday, March 26, 2012 1:25 PM
To: Flash Coders List
Subject: Re: [Flashcoders] MVC - ScreenManager

I thought that it should be in the controller. Just wanted to be certain.

Thanks,

-Gerry

On 3/26/12 1:21 PM, tom rhodes tom.rho...@gmail.com wrote:

well, either you can add an Service to MVC and get MVCS, or perhaps 
your main app controller would load it if it's config stuff and set up 
models accordingly. i imagine you have a model ready and waiting to 
store the info in?

basically you want to keep app logic out of models, they just want to 
be about data. so either do it in a controller that updates your model, 
or have a controller use a service (so you don't bloat the controller) 
which updates a model.

On 26 March 2012 19:07, Creighton, Gerry gcreigh...@discmakers.com
wrote:

 If I'm loading XML would that be done in the model or the controller?


 On 3/9/12 9:06 AM, Glen Pike g...@engineeredarts.co.uk wrote:

 :D
 
 On 09/03/2012 05:20, Karl DeSaulniers wrote:
  If you can't take the Henrik, get out of the kitchen.. lol
 
 
 ___
 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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MVC style Correction

2012-03-05 Thread Merrill, Jason
tutor mentions Controller can update View, but that example is not included.
If anyone can give me a little example of how that is done in MVC, don't 
hasitate 

In about the simplest form:


//In the controller:

onSomeEventHandler(event:SomeEvent):void
{
_someViewInstance.update();
}


//In the view:

public function update():void
{
//Do stuff to change the view
}

Hope that helps.


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor
Sent: Monday, March 05, 2012 5:27 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] MVC style Correction

@Karl,

I just created my first MVC and it is still in progress...
Lots of fun!

This video helped me a lot!
http://pv3d.org/2009/02/11/actionscript-3-model-view-controller-mvc/

Unfortuneatly the tutor mentions Controller can update View, but that example 
is not included.
If anyone can give me a little example of how that is done in MVC, don't 
hasitate. :-)

best regards
Cor van Dooren
The Netherlands

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: maandag 27 februari 2012 11:19
To: Flash Coders List
Subject: Re: [Flashcoders] MVC style Correction

That actually makes a lot of sense to me and I haven't written one MVC yet.
Thanks for the break-down!
In relation to what Henrik said about using adaptors, I see the sub controllers 
as the adaptors, but they are not actually adaptors, just sub controllers with 
targets to the main controller.
Yes?

Best,
Karl


On Feb 27, 2012, at 1:16 AM, Ross Sclafani wrote:

 thanks, its just how i do MVC

 it really get interesting when you follow a mitosis development 
 pattern... You start with one model, controller, and view, add 
 features to each in parallel, and as each class gets too big, you 
 break them out into subcontrollers, submodels, and subviews. Then 
 sub-sub. My projects have a triple-tree structure branching out from 
 the core model, controller, and view classes

 finer granularity as you reach further in, and always broken into M, 
 V, and C:

 Models contain properties only. they dispatch a CHANGE Event every 
 time one of their properties change,.

 Views display properties of the model. they listen for the CHANGE 
 Event, and update their appearance with the new values stored in the 
 model every time it changes.

 Controllers manipulate properties of the model. Whether trigger by 
 event handlers in the views, or internal timers or network activity, 
 any command that sets any value of any property of the model is placed 
 in a controller. Controllers might use other controllers to trigger 
 changes in submodels outside its subdomain

 the project starts off very compact, then grows with its functionality 
 as required, always growing out from the center so you never paint 
 yourself into a corner

 then later to optimize, you can get specific about which submodel a 
 particular view is listening to, in turn limiting the number of change 
 events it receives to those actually represented in the view.

 all subcontrollers hold a reference to the root controller, so it is 
 easy to target any node on the controller tree from anywhere inside of 
 it.

 same with the model tree. some submodel properties can emit the CHANGE 
 Event only on a local level, and not send the event up the hierarchy, 
 isolating the scope of view updates

 An MVC Example

 FLVPlayback is an interesting MVC  component:

 it holds a NetStream as a model of the video

 it holds a Video as a view of the Video

 It acts as controller to set the model in motion by connecting it to a 
 stream

 the ui is also a view of the video: the percent elapsed is represented 
 n the scrub bar, ther is a play button while paused, a pause button 
 while playing, then there are the time readouts..

 if the video its playing,
 the user clicks pause in the view,
 it tells the controller to pause the stream in the model, which 
 notifies the views, so the Video is paused, and  pause button becomes 
 a play button.

 thats how i do MVC.
 data is stored in mvc.models,
 data is displayed in mvc.views, and
 data is manipulated in mvc.controllers.


 Ross P. Sclafani
 design / technology / creative

 http://ross.sclafani.net
 http://www.twitter.com/rosssclafani
 http://www.linkedin.com/in/rosssclafani
 [347] 204.5714

 On Feb 26, 2012, at 11:09 PM, Karl DeSaulniers wrote:

 BTW Ross, I thought your example was great.

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

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


 ___
 Flashcoders mailing list
 

RE: [Flashcoders] MVC style Correction

2012-03-05 Thread Merrill, Jason
It's the simplest form of MVC. I didn't say it was the best, I was just giving 
the man what he asked for. :) 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: Monday, March 05, 2012 9:11 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] MVC style Correction

The dependency with this is that any changes to the UI - additional views being 
added or removed, requires that the controller be changed too. Any change to a 
view could cause the controller to become broken.

For this reason, I would say it's bad practice.


On 05/03/2012 13:57, Merrill, Jason wrote:
 tutor mentions Controller can update View, but that example is not included.
 If anyone can give me a little example of how that is done in MVC, 
 don't hasitate
 In about the simplest form:


 //In the controller:

 onSomeEventHandler(event:SomeEvent):void
 {
   _someViewInstance.update();
 }


 //In the view:

 public function update():void
 {
   //Do stuff to change the view
 }

 Hope that helps.


   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor
 Sent: Monday, March 05, 2012 5:27 AM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] MVC style Correction

 @Karl,

 I just created my first MVC and it is still in progress...
 Lots of fun!

 This video helped me a lot!
 http://pv3d.org/2009/02/11/actionscript-3-model-view-controller-mvc/

 Unfortuneatly the tutor mentions Controller can update View, but that example 
 is not included.
 If anyone can give me a little example of how that is done in MVC, 
 don't hasitate. :-)

 best regards
 Cor van Dooren
 The Netherlands

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl 
 DeSaulniers
 Sent: maandag 27 februari 2012 11:19
 To: Flash Coders List
 Subject: Re: [Flashcoders] MVC style Correction

 That actually makes a lot of sense to me and I haven't written one MVC yet.
 Thanks for the break-down!
 In relation to what Henrik said about using adaptors, I see the sub 
 controllers as the adaptors, but they are not actually adaptors, just sub 
 controllers with targets to the main controller.
 Yes?

 Best,
 Karl


 On Feb 27, 2012, at 1:16 AM, Ross Sclafani wrote:

 thanks, its just how i do MVC

 it really get interesting when you follow a mitosis development 
 pattern... You start with one model, controller, and view, add 
 features to each in parallel, and as each class gets too big, you 
 break them out into subcontrollers, submodels, and subviews. Then 
 sub-sub. My projects have a triple-tree structure branching out from 
 the core model, controller, and view classes

 finer granularity as you reach further in, and always broken into M, 
 V, and C:

 Models contain properties only. they dispatch a CHANGE Event every 
 time one of their properties change,.

 Views display properties of the model. they listen for the CHANGE 
 Event, and update their appearance with the new values stored in the 
 model every time it changes.

 Controllers manipulate properties of the model. Whether trigger by 
 event handlers in the views, or internal timers or network activity, 
 any command that sets any value of any property of the model is 
 placed in a controller. Controllers might use other controllers to 
 trigger changes in submodels outside its subdomain

 the project starts off very compact, then grows with its 
 functionality as required, always growing out from the center so you 
 never paint yourself into a corner

 then later to optimize, you can get specific about which submodel a 
 particular view is listening to, in turn limiting the number of 
 change events it receives to those actually represented in the view.

 all subcontrollers hold a reference to the root controller, so it is 
 easy to target any node on the controller tree from anywhere inside 
 of it.

 same with the model tree. some submodel properties can emit the 
 CHANGE Event only on a local level, and not send the event up the 
 hierarchy, isolating the scope of view updates

 An MVC Example

 FLVPlayback is an interesting MVC  component:

 it holds a NetStream as a model of the video

 it holds a Video as a view of the Video

 It acts as controller to set the model in motion by connecting it to 
 a stream

 the ui is also a view of the video: the percent elapsed is 
 represented n the scrub bar, ther is a play button while paused, a 
 pause button while playing, then there are the time readouts..

 if the video its playing,
 the user clicks pause in the view

RE: [Flashcoders] MVC style Correction

2012-03-05 Thread Merrill, Jason
 Fair enough, but they do sell cigarettes with a health warning these days..  
 ;-)

Trolling is so 2 years ago. :) 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: Monday, March 05, 2012 9:33 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] MVC style Correction

On 05/03/2012 14:13, Merrill, Jason wrote:
 It's the simplest form of MVC. I didn't say it was the best, I was 
 just giving the man what he asked for. :)
Fair enough, but they do sell cigarettes with a health warning these days..  ;-)

   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning






--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MVC style Correction

2012-02-24 Thread Merrill, Jason
Maybe I'm off, but I don't think the controller should manipulate data. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik 
(MIN-WSW)
Sent: Thursday, February 23, 2012 8:26 PM
To: Flash Coders List
Subject: Re: [Flashcoders] MVC style Correction

Ross Sclafani ross.sclaf...@gmail.com wrote:
It is very easy to locate any code in one of my projects by ascertaining the 
domain of the code in question and looking in the appropriate branch.
Does it store data? It's in the model. Does it interpret and display data? Try 
your views. Does it manipulate data? Look in the controller.

This thread has been useful, thanks all. I've a ton of questions regarding 
judgment calls and below I post a class illustrating a few I've struggled with. 
The comments are intended to be my questions/admissions of bafflement. I'm 
unsure where in a MVC this class should go as its main purpose is to work with 
the File class which itself has methods which retrieve 
(File.applicationDirectory), interpret (File.exists) and display 
(File.browseForOpen) data.

The class also is a dreaded example of allowing the view to listen directly to 
the model for events, perhaps only because I've misguidedly decided to make it 
part of the model as it has to do with copying and deleting a SQLite file used 
in the app.

package mvc.model {
 /* saveFileAs() saves a copy of a SQLite DB for the purposes of  transferring 
data to an instance of this app on another  computer.

closeDBAndReplace() = replaces the db file if the user  is importing data.
 */
 import flash.events.EventDispatcher;
 import flash.events.Event;
 import flash.filesystem.File;
 // class Data works with a SQLite DB
 import mvc.model.Data;
 // Where in a MVC should custom event classes  // be located? I wish to pass 
my own objects  // along with events, usually Transfer Objects
 // or a string to be displayed
 import mvc.controller.CustomDataEvent;

 public class ManipulateDBFile extends EventDispatcher {

  private var _data:Data;
  private var _sourceFile:File;
  private var _copyToDirectory:File;

  public function ManipulateDBFile(data:Data) {
   _data = data;
  }

  public function saveFileAs() : void {
   var docsDir:File = File.desktopDirectory;
   // This creates a UI element. I would look for this code in the view!
   docsDir.browseForDirectory('Save File in  ...');
   // This is asking a UI elemt to inform the Model directly. Big bad no?
   docsDir.addEventListener(Event.SELECT, copyFile);
  }

  private function copyFile(e:Event):void  {
   _sourceFile = File.applicationStorageDirectory.resolvePath(msgDB.db);
   _copyToDirectory = e.target.resolvePath(msgDB.db);
   if (_copyToDirectory.exists) {
// Passing this event through the Controller seems to create complexity,
// or at least unnecessary lines of code. Is there an advantage gained by
// communicating to the view through the controller here?
var evt:CustomDataEvent = new 
CustomDataEvent(CustomDataEvent.FILE_ALREADY_EXISTS);
dispatchEvent(evt);
   }
   else {
replaceFile();
   }
  }

  public function replaceFile() : void {
   var evt:CustomDataEvent = new CustomDataEvent(CustomDataEvent.COPY_COMPLETE);
   try {
_sourceFile.copyTo(_copyToDirectory, true);
dispatchEvent(evt);
   }

   catch (error:Error) {
evt.param = error.message;
dispatchEvent(evt);
   }
   _sourceFile = null;
   _copyToDirectory = null;
  }

  public function closeDBAndReplace() : void {
   // The file cannot be deleted if there is a SQLConnection to it.
   // The class that is aware of a possible connection also does the
   // deletion. But deleting the file seems to conceptually
   // fit into this class better
   _data.addEventListener(CustomDataEvent.DRILL_RESET, findFile, false, 0, 
true);
   _data.deleteDBFile();

  }

  private function findFile(e:CustomDataEvent) : void {
   _data.removeEventListener(CustomDataEvent.DRILL_RESET, findFile, false);
   var docsDir:File = File.desktopDirectory;
   docsDir.browseForOpen('Select msgDB.db file ...');
   docsDir.addEventListener(Event.SELECT, replaceDBFile);
  }

  private function replaceDBFile(e:Event):void  {
   var sourceFile:File = e.target as File;
   var destination:File = 
File.applicationStorageDirectory.resolvePath(msgDB.db);
   try {
sourceFile.copyTo(destination, true);
dispatchEvent(new CustomDataEvent(CustomDataEvent.RESTART_REQUIRED));
   }
   catch (error:Error) {
trace(Error:, error.message);
   }
  }
 }
}

On 2/17/12 6:07 PM, Ross Sclafani ross.sclaf...@gmail.com wrote:
It is very easy to locate any code in one of my projects by ascertaining the 
domain of the code in question and looking in the appropriate branch.
Does it store data? It's in the model.
Does it interpret and display data? Try your views.

RE: [Flashcoders] MVC style Correction

2012-02-24 Thread Merrill, Jason
No rules, you're right, just having the controller manipulate data just seems 
to go against the spirit of what MVC is all about. Controllers are usually 
used as communication busses in my experience. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ross Sclafani
Sent: Friday, February 24, 2012 4:29 PM
To: Flash Coders List
Subject: Re: [Flashcoders] MVC style Correction

Apparently there are no rules.

Just call it MVC and it's MVC I guess.



Ross P. Sclafani
Owner / Creative Director
Neuromantic Industries
http://www.neuromantic.com
http://ross.sclafani.net
http://www.twitter.com/rosssclafani
347.204.5714

On Feb 24, 2012, at 10:15 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Maybe I'm off, but I don't think the controller should manipulate data. 
 
 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
 
 
 
 
 
 ___
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of 
 Mattheis, Erik (MIN-WSW)
 Sent: Thursday, February 23, 2012 8:26 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] MVC style Correction
 
 Ross Sclafani ross.sclaf...@gmail.com wrote:
 It is very easy to locate any code in one of my projects by ascertaining the 
 domain of the code in question and looking in the appropriate branch.
 Does it store data? It's in the model. Does it interpret and display data? 
 Try your views. Does it manipulate data? Look in the controller.
 
 This thread has been useful, thanks all. I've a ton of questions regarding 
 judgment calls and below I post a class illustrating a few I've struggled 
 with. The comments are intended to be my questions/admissions of bafflement. 
 I'm unsure where in a MVC this class should go as its main purpose is to work 
 with the File class which itself has methods which retrieve 
 (File.applicationDirectory), interpret (File.exists) and display 
 (File.browseForOpen) data.
 
 The class also is a dreaded example of allowing the view to listen directly 
 to the model for events, perhaps only because I've misguidedly decided to 
 make it part of the model as it has to do with copying and deleting a SQLite 
 file used in the app.
 
 package mvc.model {
 /* saveFileAs() saves a copy of a SQLite DB for the purposes of  transferring 
 data to an instance of this app on another  computer.
 
 closeDBAndReplace() = replaces the db file if the user  is importing data.
 */
 import flash.events.EventDispatcher;
 import flash.events.Event;
 import flash.filesystem.File;
 // class Data works with a SQLite DB
 import mvc.model.Data;
 // Where in a MVC should custom event classes  // be located? I wish to pass 
 my own objects  // along with events, usually Transfer Objects
 // or a string to be displayed
 import mvc.controller.CustomDataEvent;
 
 public class ManipulateDBFile extends EventDispatcher {
 
  private var _data:Data;
  private var _sourceFile:File;
  private var _copyToDirectory:File;
 
  public function ManipulateDBFile(data:Data) {
   _data = data;
  }
 
  public function saveFileAs() : void {
   var docsDir:File = File.desktopDirectory;
   // This creates a UI element. I would look for this code in the view!
   docsDir.browseForDirectory('Save File in  ...');
   // This is asking a UI elemt to inform the Model directly. Big bad no?
   docsDir.addEventListener(Event.SELECT, copyFile);  }
 
  private function copyFile(e:Event):void  {
   _sourceFile = File.applicationStorageDirectory.resolvePath(msgDB.db);
   _copyToDirectory = e.target.resolvePath(msgDB.db);
   if (_copyToDirectory.exists) {
// Passing this event through the Controller seems to create complexity,
// or at least unnecessary lines of code. Is there an advantage gained by
// communicating to the view through the controller here?
var evt:CustomDataEvent = new 
 CustomDataEvent(CustomDataEvent.FILE_ALREADY_EXISTS);
dispatchEvent(evt);
   }
   else {
replaceFile();
   }
  }
 
  public function replaceFile() : void {
   var evt:CustomDataEvent = new 
 CustomDataEvent(CustomDataEvent.COPY_COMPLETE);
   try {
_sourceFile.copyTo(_copyToDirectory, true);
dispatchEvent(evt);
   }
 
   catch (error:Error) {
evt.param = error.message;
dispatchEvent(evt);
   }
   _sourceFile = null;
   _copyToDirectory = null;
  }
 
  public function closeDBAndReplace() : void {
   // The file cannot be deleted if there is a SQLConnection to it.
   // The class that is aware of a possible connection also does the
   // deletion. But deleting the file seems to conceptually
   // fit into this class better
   _data.addEventListener(CustomDataEvent.DRILL_RESET, findFile, false, 0, 
 true);
   _data.deleteDBFile();
 
  }
 
  private

RE: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-23 Thread Merrill, Jason
 Karl DeSaulniers skriver:
 If I had anything to say about the future of flash, it would be, sell 
 it back to Macromedia if you can't fill the position.

Adobe didn't buy Flash. They bought Macromedia.

And they bought Macromedia because Macromedia had Flash. :) 


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Merrill, Jason
 Jason Merrill wrote:
 A new version of AS3 will be nice, 

Jason Merrill did NOT write that, that was JAMES Merrill... easy mistake :) 
just wanted to clarify...


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
Sent: Wednesday, February 22, 2012 2:04 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Flash Platform roadmap released - time to start 
learning HTML 5 unless you make games.

Jason Merrill wrote:

 http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html

 A new version of AS3 will be nice, it's just too bad no one wants 
 Flash anymore. Flash player is basically dead in the water, with its 
 future usage being hardcore gaming. How many of you guys/gals are doing that?

I do a lot of games, and intend to continue to use Flash (actually
FlashBuilder) for a few more years. There is still a ton of work out there, and 
there will be a continuing demand for maintenance as fewer people learn Flash.

I thought their plans for AS3 looked promising. There was a committee working 
on ECMA 4, but I think it got disbanded 3-4 years ago. AS3 is still my favorite 
language.

Cordially,

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Merrill, Jason
Haha, no worries - when I first glanced at his post, I first thought, Did I 
write that? 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
Sent: Wednesday, February 22, 2012 2:16 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Flash Platform roadmap released - time to start 
learning HTML 5 unless you make games.

Jason Merrill wrote:

 Jason Merrill did NOT write that, that was JAMES Merrill... easy mistake :) 
 just wanted to clarify...

So he did. Sorry about that.

Cordially,

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Merrill, Jason
Have you tried building an interactive 3D environment in Javascript/HTML5?  
There is 3D capability out there, but most of the examples I have seen have 
been ports from C++ code. Just because there is a trend towards something, and 
it's possible to do something with a new tech, doesn't make it the best option. 
Most of my friends in the interactive space tell me while they can do most 
Flash like stuff in HTML 5/Canvas/CSS3/Javascript, it takes about three times 
longer than it does in Flash/Flex/Actionscript and they don't get the same OOP 
benefits when programming. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of James Merrill
Sent: Wednesday, February 22, 2012 2:53 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Flash Platform roadmap released - time to start 
learning HTML 5 unless you make games.

I'm going to play devils advocate here for a second.

The whole browser compatibility aspect of HTML is diminishing, modern browsers 
are constantly updated without having to re-download them. In a couple of 
years, it won't be a problem.

Another major concern of mine was seeing this site:
http://www.nikechosenseries.com/

That's basically Flash quality, with SEO, linking, native scroll, all the 
goodies from HTML. Once it becomes easy to develop sites like that, I can't see 
why using Flash would be better.




On Wed, Feb 22, 2012 at 2:41 PM, Creighton, Gerry gcreigh...@discmakers.com
 wrote:

 Except that you need a certain level of browser to handle HTML5. 
 That's the bummer, it'll Take some time to get more people on board.

 -Gerry

 On 2/22/12 2:24 PM, James Merrill jmerri...@gmail.com wrote:

  When HTML5 can do what I can do in AS3, I'll consider it.  :) 
 
 What exactly are you referring to? I have very few examples of things 
 that Flash can do that HTML5/CSS3/JS cant do these days. At my agency 
 Flash is being utilized for banner ads, and that's it. Every cool, 
 animated website we do these days is built in HTML. I am seriously 
 afraid to start developing for mobile, because the second a client 
 asks for some functionality that requires Native Extensions to work, 
 I'll be totally SOL.
 
 Wouldn't it be such a nice world if JS was revised with ECMAScript 4? 
 It's unfortunate that it will never happen.
 
 
 
 On Wed, Feb 22, 2012 at 2:06 PM, Ima Newsletta
 bignewsletter...@gmail.comwrote:
 
  At last, Adobe showed us that is alive.
 
 
  Il 22/02/2012 20:01, John R. Sweeney Jr. ha scritto:
 
   When HTML5 can do what I can do in AS3, I'll consider it.  :)
 
  John
 
  John R. Sweeney Jr.
  Senior Interactive Multimedia Developer OnDemand Interactive Inc 
  Hoffman Estates, IL 60169
 
 
 
 
  On Feb 22, 2012, at 12:50 PM, James Merrill wrote:
 
 
 http://www.adobe.com/devnet/**flashplatform/whitepapers/**roadmap.h
 tml
 h
 ttp://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html
 
  A new version of AS3 will be nice, it's just too bad no one wants 
 Flash  anymore. Flash player is basically dead in the water, with 
 its future  usage  being hardcore gaming. How many of you 
 guys/gals are doing that?
 
  __**_
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.**com 
  Flashcoders@chattyfig.figleaf.com
 
 
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders
 http://chatt
 yfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  __**_
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.**com 
  Flashcoders@chattyfig.figleaf.com
 
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders
 http://chatty
 fig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 --
 James Merrill
 ___
 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




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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, 

RE: [Flashcoders] MVC style

2012-02-15 Thread Merrill, Jason
Calculations would not be in the controller, they would be in the Model.  
Sometimes you can justify them being in the view if it's related to the view.  
Calculations are also in a Service class if they are part of a service in some 
way. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: Wednesday, February 15, 2012 1:32 PM
To: Flash Coders List
Subject: [Flashcoders] MVC style

Hello list,

If I am making an application with MVC pattern and calculations are needed to 
be performed on the data when the user interacts with the application, would 
you:

do the calculations in the Model?

create a separate class that handles the calculations and puts the results in 
the model?

do the calculations in the Controller?

looking forward to hearing people's thoughts on this,

david

--
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] no posts since yesterday

2011-10-20 Thread Merrill, Jason
 Either everyone is busy or unemployed.  

I would guess it's both, plus the list has likely matured (many of have grown 
our skills enough and don't need as much help), and others have moved into 
other technology areas.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X XML manipulation

2011-10-11 Thread Merrill, Jason
 row id=c /
/row

And

 row id=c /
/row


Are not valid XML.  Therefore, I'm not clear on what you want to do. :) 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: Tuesday, October 11, 2011 9:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] E4X XML manipulation

What's the best way to turn

this:

myXMLNode =
my_xml
 row id=a /
 row id=b /
 row id=c /
/my_xml;

into:

my_xml
 row id=a
 row id=b /
 row id=c /
/row
/my_xml

Using some E4X?

It's not so much a case of adding b and c as children of a, but of removing 
them so I don't end up with:

my_xml
 row id=a
 row id=b /
 row id=c /
/row
 row id=b /
 row id=c /
/my_xml

Paul



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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X XML manipulation

2011-10-11 Thread Merrill, Jason
This, what you are saying you want to turn it into:

row id=c /
/row

That actually is valid, sorry, but you just want to have any empty node in 
there?  Check out this thread:

http://www.kirupa.com/forum/showthread.php?318159-AS3-XML-How-to-add-element-nodes


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: Tuesday, October 11, 2011 11:54 AM
To: Flash Coders List
Subject: Re: [Flashcoders] E4X XML manipulation

On 11/10/2011 16:33, Merrill, Jason wrote:
   row id=c /
 /row

 And

   row id=c /
 /row


 Are not valid XML.  Therefore, I'm not clear on what you want to do. :)
Hmm..

myXMLNode =
my_xml
row id=a /
row id=b /
row id=c /
/my_xml;

into:

my_xml
row id=a
row id=b /
row id=c /
/row
/my_xml

I didn't realise the space was there - not intended- too much going on at once!



   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
 Sent: Tuesday, October 11, 2011 9:53 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] E4X XML manipulation

 What's the best way to turn

 this:

 myXMLNode =
 my_xml
   row id=a /
   row id=b /
   row id=c /
 /my_xml;

 into:

 my_xml
   row id=a
   row id=b /
   row id=c /
 /row
 /my_xml

 Using some E4X?

 It's not so much a case of adding b and c as children of a, but of removing 
 them so I don't end up with:

 my_xml
   row id=a
   row id=b /
   row id=c /
 /row
   row id=b /
   row id=c /
 /my_xml

 Paul



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

 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or attached 
 to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced in countries other than 
 the country in which you are located. This message cannot be guaranteed to be 
 secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
 Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
 Government Agency. Attachments that are part of this EC may have additional 
 important disclosures and disclaimers, which you should read. This message is 
 subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
 consent to the foregoing.
 ___
 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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official

RE: [Flashcoders] E4X XML manipulation

2011-10-11 Thread Merrill, Jason
Just trying to help. :)  I don't know if this helps what you're trying to do, 
but I have found it much easier to parse XML data into value objects and 
vectors, then doing the data manipulations from there, rather than trying to do 
all the manipulations with E4X.  But if that isn't an option for you and you 
need to stick with XML all the way, just ignore. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: Tuesday, October 11, 2011 12:30 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] E4X XML manipulation

On 11/10/2011 17:21, Merrill, Jason wrote:
 This, what you are saying you want to turn it into:

 row id=c /
 /row

 That actually is valid, sorry, but you just want to have any empty node in 
 there?  Check out this thread:

 http://www.kirupa.com/forum/showthread.php?318159-AS3-XML-How-to-add-e
 lement-nodes

Jason it's an example, not a real scenario. Thanks for the link. Adding nodes 
is easy, as is copying them, but removing them once they've been copied has 
defeated me.

Paul


   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul 
 Andrews
 Sent: Tuesday, October 11, 2011 11:54 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] E4X XML manipulation

 On 11/10/2011 16:33, Merrill, Jason wrote:
row id=c /
 /row

 And

row id=c /
 /row


 Are not valid XML.  Therefore, I'm not clear on what you want to do. 
 :)
 Hmm..

 myXMLNode =
 my_xml
 row id=a /
 row id=b /
 row id=c /
 /my_xml;

 into:

 my_xml
 row id=a
 row id=b /
 row id=c /
 /row
 /my_xml

 I didn't realise the space was there - not intended- too much going on at 
 once!


Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul 
 Andrews
 Sent: Tuesday, October 11, 2011 9:53 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] E4X XML manipulation

 What's the best way to turn

 this:

 myXMLNode =
 my_xml
row id=a /
row id=b /
row id=c /
 /my_xml;

 into:

 my_xml
row id=a
row id=b /
row id=c /
 /row
 /my_xml

 Using some E4X?

 It's not so much a case of adding b and c as children of a, but of removing 
 them so I don't end up with:

 my_xml
row id=a
row id=b /
row id=c /
 /row
row id=b /
row id=c /
 /my_xml

 Paul



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

 -
 - This message w/attachments (message) is intended solely for the use 
 of the intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or 
 attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced in countries other than 
 the country in which you are located. This message cannot be guaranteed to 
 be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
 Condition to Any Banking Service or Activity * Are Not Insured by Any 
 Federal Government Agency. Attachments that are part of this EC may have 
 additional important disclosures and disclaimers, which you should read. 
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
 consent to the foregoing

RE: [Flashcoders] Custom Event Question

2011-08-15 Thread Merrill, Jason
Yeah man, AS3Signals are awesome!

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Polk
Sent: Monday, August 15, 2011 2:06 PM
To: John Polk; Flash Coders List
Subject: Re: [Flashcoders] Custom Event Question

Hmmm. Why didn't anyone recommend Robert Penner's as3-signals?
John




From: John Polk j.pol...@yahoo.com
To: John Polk j.pol...@yahoo.com; Flash Coders List 
flashcoders@chattyfig.figleaf.com
Sent: Sunday, August 14, 2011 7:03 PM
Subject: Re: [Flashcoders] Custom Event Question




 From: John Polk j.pol...@yahoo.com
 To: Flash List flashcoders@chattyfig.figleaf.com
 Sent: Sunday, August 14, 2011 12:04 PM
 Subject: [Flashcoders] Custom Event Question

I have figured out how to do this. It requires more than just dispatching a 
custom event. It requires a getter as well. I took the wrong approach initially.
John

 Hi;

 I have this code in
 the class dispatching the custom event:

        private function progressHandler(e:LoaderEvent):void
        {
            dispatchEvent(new Event(e.target.progress));
        }


(This is from a greensock loaderEvent.) 

I have this pseudo-code from the class listening for the event:

        var re:RegExp = new RegExp();
            re = /\d\.\d*/
 //            re.exec(str)
            mySlides.addEventListener(, function() {trace(progress: )});


 What I am trying to achieve is to use the regex re to evaluate
 what I'm listening for (that which will be in the quotes ()) and then I'd 
like to use  that number in the trace function. How do I do this?
 TIA,
 John

___
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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.

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


RE: [Flashcoders] Custom Event Question

2011-08-15 Thread Merrill, Jason
If you want to do bubbling with Signals, then read this post first:  
http://www.dehash.com/2010/03/07/as3-signals-bubbling-note/

You can do it, it's just not automatic.

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning





___

From: John Polk [mailto:j.pol...@yahoo.com]
Sent: Monday, August 15, 2011 5:51 PM
To: Merrill, Jason; Flash Coders List
Subject: Re: [Flashcoders] Custom Event Question


 From: Merrill, Jason jason.merr...@bankofamerica.com
 To: John Polk j.pol...@yahoo.com; Flash Coders List 
 flashcoders@chattyfig.figleaf.com
 Sent: Monday, August 15, 2011 3:08 PM
 Subject: RE: [Flashcoders] Custom Event Question

 Yeah man, AS3Signals are awesome!

They look like fun and I'm looking forward to it. Just getting acquainted 
with them now before I jump in bed with them lol. I did the dispatchEvent + 
getter dance with three similar problems. One forced me to go 2 classes down 
and I couldn't figure how to bubble through it, so it became cumbersome. Then I 
was trying to figure out how to use them in my (now) infinitely nested 
drop-down menu so that I could control when the whole 
branch-upon-branch-upon-branch structure should disappear onRollOut from 
*everything* but *not* to the next branch or previous one, etc. What a freaking 
mess that would be with dispatchEvent + getter! Not even the quadrille could 
compare lol. Googled for bubbling events and violá! as3-signals to the rescue ;)
John

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Simplify XML Call

2011-08-14 Thread Merrill, Jason
 What I need it to target a specific sequence of nodes.

You can do that with my function as well - just pass in the sequence you want 
to target.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Polk
Sent: Sunday, August 14, 2011 9:40 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Simplify XML Call

 From: Taka Kojima t...@gigafied.com

 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Sunday, August 14, 2011 4:24 AM
 Subject: Re: [Flashcoders] Simplify XML Call

 function getNumItems(level:int, xml:XML):int{ var levelXML:XML = 
 xml.menu; for(var i:int = 0; i  level; i ++){ levelXML = 
 levelXML.item[whichItems[level]]; } return levelXML.length(); }

I modified your code to correct an oversight or two like this:

        private function getNumItems(level, xml):int
        {
            var levelXML:XMLList = xml.menu;
            for(var i:int = 0; i  level - 1; i ++)
            {
           
     levelXML = levelXML.item[whichItems[i]] as XMLList;
                trace(String(levelXML));
            }
            return levelXML.length();
        }

The problem here is that it traces null because you can't convert a string into 
an XMLList and, of course, you can't assign a string to an XMLList either, 
which is why I tried the conversion. (I also tried casting levelXML as a 
wildcard with the same result: null.)

Regarding Jason's code, 

        private function countItems(xmlNode:XML):void
        {
            var total:int = 0;
            var xmlChildren:XMLList = xmlNode.children();
            if(xmlChildren.length()  0)
            {
                for each (var xmlNode:XML in xmlChildren)
                {
                    total++;
                    countItems(xmlNode); //The recursive call
                }
            }
            trace(totalItems2: , total);
        }

it doesn't do what I need. What I need it to target a specific sequence of 
nodes. Let's suppose I have the following xml:

data
    item
        label![CDATA[Bracelets]]/label
        item
            label![CDATA[Hook Bracelets]]/label
            item
                label![CDATA[one]]/label
            /item
            item
                label![CDATA[two]]/label
                item
                    label![CDATA[three]]/label
                /item
            /item
        /item
/data

Perhaps it would clarify things to state I'm building a drop-down menu. So the 
client mouses over Bracelets. Out pops Hook Bracelets. She mouses over that 
and out pops one and two. In order to accomplish this, I need to discover 
which node is being moused over, in this case:

item[0].item[0]

but clearly it could just as easily be:

item[46].item[27]

and I could care less about the rest of the tree. Having said as much, my 
revised code:

    var x:*;
    x = xml.menu.item[whichItems[0]];
    var levelsLeft:int = level - 2;
    var q:int;
    while(levelsLeft--)
    {
    q++;
    x = x.item[whichItems[q]];
    }
    trace('xxx', x.item.length());

does, in fact, appear to work :))
Thanks again,
John
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * 

RE: [Flashcoders] Simplify XML Call

2011-08-13 Thread Merrill, Jason
 Then I think I hit on what Jason was suggesting:

Not really. :) I think you're over complicating this.  This is all I was 
suggesting you do from my original suggestion, it's pretty straightforward 
(this is a test case you could copy paste and run):

//DUMMY DATA:
var myXML:XML = data
functionalarea type=amountKeying 
backgroundImage=images/background.png
exercises
exercise type=NoviceRDS
keyingItems
keyingItem 
fileURL=assets/images/simulations/ATC/atc_701201045.png 
invertedFileURL=myImages/myFileInverted1.png legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile2.png invertedFileURL=myImages/myFileInverted2.png 
legible=false amount=743600 /
keyingItem 
fileURL=myImages/myFile3.png invertedFileURL=myImages/myFileInverted3.png 
legible=true amount=3213212 /
keyingItem 
fileURL=myImages/amountkeying/myFile4.png 
invertedFileURL=myImages/myFileInverted4.png legible=true amount=43242323 
/
keyingItem 
fileURL=myImages/myFile5.png invertedFileURL=myImages/myFileInverted5.png 
legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile6.png invertedFileURL=myImages/myFileInverted6.png 
legible=false amount=342132 /
keyingItem 
fileURL=myImages/myFile7.png invertedFileURL=myImages/myFileInverted7.png 
legible=true amount=78400 /
/keyingItems
/exercise
exercise type=ExpertRDS
keyingItems
keyingItem 
fileURL=assets/images/simulations/ATC/atc_701201045.png 
invertedFileURL=myImages/myFileInverted1.png legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile2.png invertedFileURL=myImages/myFileInverted2.png 
legible=false amount=743600 /
keyingItem 
fileURL=myImages/myFile3.png invertedFileURL=myImages/myFileInverted3.png 
legible=true amount=3213212 /
keyingItem 
fileURL=myImages/amountkeying/myFile4.png 
invertedFileURL=myImages/myFileInverted4.png legible=true amount=43242323 
/
keyingItem 
fileURL=myImages/myFile5.png invertedFileURL=myImages/myFileInverted5.png 
legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile6.png invertedFileURL=myImages/myFileInverted6.png 
legible=false amount=342132 /
keyingItem 
fileURL=myImages/myFile7.png invertedFileURL=myImages/myFileInverted7.png 
legible=true amount=78400 /
/keyingItems
/exercise
/exercises
/functionalarea
/data

//RECURSIVE FUNCTION:

var totalItems:uint = 0;

function countItems(xmlNode:XML):void
{
var xmlChildren:XMLList = xmlNode.children();
if(xmlChildren.length()  0)
{
for each (var xmlNode:XML in xmlChildren)
{
totalItems++;
countItems(xmlNode); //The recursive call
}
}
}

countItems(myXML);

//RESULT:
trace(totalItems);//Traces 20 - there are 20 nodes in the given XML from the 
root down.  

Instead of the root, you could start farther in too if you wanted, i.e.:

var exercisesXML:XML = myXML.functionalarea[0].exercises[0];
countItems(exercisesXML);
trace(totalItems); //traces 18 - there are 18 nodes from that level down.

If that's not exactly what you need, it would seem the general concept could be 
modified to fit your needs. Hope that helps,

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Polk
Sent: Saturday, August 13, 2011 5:58 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Simplify XML Call

 From: Henrik Andersson he...@henke37.cjb.net

 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Saturday, August 13, 2011 3:37 PM
 Subject: Re: [Flashcoders] Simplify XML Call

 There is still no eval function.

I know there is no eval fn. Jason Merrill earlier wrote: You just need a 
recursive loop to do this.  So I would write a function that handles each node 
level individually, adding to a class-level private property called something 
like, _totalItems. I tried googling [as3 recursive loop xml node] without 
much luck. Then I think I hit on what Jason was suggesting:

            var x:*;
            x = xml.menu.item[whichItems[0]];
        

RE: [Flashcoders] Simplify XML Call

2011-08-13 Thread Merrill, Jason
And here's another recursive function example for XML, slightly different, with 
a more complex structure, showing how to get all values from some attributes in 
an XML file (in this case, firstName and lastName), no matter where or how deep 
they lie:

var peopleXML:XML = 
people
person firstName=Bob lastName=Smith
person firstName=Timmy lastName=Smith /
person firstName=Jenny lastName=Jones 
person firstName=Sal lastName=Stephens /
/person
person firstName=Marcia lastName=Marquez
person firstName=Julio lastName=Rogers/
/person
/person
person firstName=Tom lastName=Williams
person firstName=Mary lastName=Jones /
person firstName=Albert lastName=Denniston
person firstName=Barney lastName=Elmington /
person firstName=Campo lastName=Fatigua
person firstName=Harpo lastName=Oprah/
/person
person firstName=Hugo lastName=Boss
person firstName=Benny lastName=Elkins/
person firstName=Sheri lastName=Downing/
/person
/person
/person
person firstName=Marcia lastName=Marquez
person firstName=Manny lastName=Peterson/
/person
person firstName=Joe lastName=Merritt/
/people;


function recurseXML(xml:*):void
{
var xmlList:XMLList = xml.children();
for each (var currentNode:* in xmlList) 
{
trace(currentNode.@firstName+ +currentNode.@lastName);
if(currentNode.children()) recurseXML(currentNode);
}
}

recurseXML(peopleXML);

//Traces:
Bob Smith
Timmy Smith
Jenny Jones
Sal Stephens
Marcia Marquez
Julio Rogers
Tom Williams
Mary Jones
Albert Denniston
Barney Elmington
Campo Fatigua
Harpo Oprah
Hugo Boss
Benny Elkins
Sheri Downing
Marcia Marquez
Manny Peterson
Joe Merritt

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
Sent: Saturday, August 13, 2011 9:58 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Simplify XML Call

 Then I think I hit on what Jason was suggesting:

Not really. :) I think you're over complicating this.  This is all I was 
suggesting you do from my original suggestion, it's pretty straightforward 
(this is a test case you could copy paste and run):

//DUMMY DATA:
var myXML:XML = data
functionalarea type=amountKeying 
backgroundImage=images/background.png
exercises
exercise type=NoviceRDS
keyingItems
keyingItem 
fileURL=assets/images/simulations/ATC/atc_701201045.png 
invertedFileURL=myImages/myFileInverted1.png legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile2.png invertedFileURL=myImages/myFileInverted2.png 
legible=false amount=743600 /
keyingItem 
fileURL=myImages/myFile3.png invertedFileURL=myImages/myFileInverted3.png 
legible=true amount=3213212 /
keyingItem 
fileURL=myImages/amountkeying/myFile4.png 
invertedFileURL=myImages/myFileInverted4.png legible=true amount=43242323 
/
keyingItem 
fileURL=myImages/myFile5.png invertedFileURL=myImages/myFileInverted5.png 
legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile6.png invertedFileURL=myImages/myFileInverted6.png 
legible=false amount=342132 /
keyingItem 
fileURL=myImages/myFile7.png invertedFileURL=myImages/myFileInverted7.png 
legible=true amount=78400 /
/keyingItems
/exercise
exercise type=ExpertRDS
keyingItems
keyingItem 
fileURL=assets/images/simulations/ATC/atc_701201045.png 
invertedFileURL=myImages/myFileInverted1.png legible=true amount=78400 /
keyingItem 
fileURL=myImages/myFile2.png invertedFileURL=myImages/myFileInverted2.png 
legible=false amount=743600 /
keyingItem 
fileURL=myImages/myFile3.png invertedFileURL=myImages/myFileInverted3.png 
legible=true amount=3213212 /
keyingItem 
fileURL=myImages/amountkeying/myFile4.png 
invertedFileURL=myImages/myFileInverted4.png legible=true amount=43242323 
/
keyingItem

RE: [Flashcoders] Simplify XML Call

2011-08-11 Thread Merrill, Jason
You just need a recursive loop to do this.  So I would write a function that 
handles each node level individually, adding to a class-level private property 
called something like, _totalItems.  The function basically checks the XML node 
to see if it has any children.  If it does, it calls itself, passing in the 
child XML node as an argument, and does the count the node, adding to the 
_totalItems private class property.  The function then does not call itself 
again if the XML node does not have any children. No switch statement would be 
needed.  Make sense?


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Polk
Sent: Thursday, August 11, 2011 11:31 AM
To: Flash List
Subject: [Flashcoders] Simplify XML Call

Hi;
I have this code:

            switch (level)
            {
                case 2:
                    totalItems = xml.menu.item[whichItem].item.length();
                    break;
                case 3:
                    totalItems = 
xml.menu.item[whichItem].item[whichItem2].item.length();
                    break;
                case 4:
                    totalItems = 
xml.menu.item[whichItem].item[whichItem2].item[whichItem3].item.length();
                    break;
                case 5:
                    totalItems = 
xml.menu.item[whichItem].item[whichItem2].item[whichItem3].item[whichItem4].item.length();
                    break;
            }



Ugly, I know. How do I write one or two lines that does all that and even 
better: loops it?
TIA,
John

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.

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


RE: [Flashcoders] Simplify XML Call

2011-08-11 Thread Merrill, Jason
Ingenious idea, but that would be limited to you hard coding the number of 
levels to go down to. If the XML gets larger and deeper, that function would 
fail... I think it would be better to check if the node has children, and if 
so, recursively dig deeper.  

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu
Sent: Thursday, August 11, 2011 11:58 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Simplify XML Call

sorry should have been this:



var level:int = 5;

var xmlItem:* = xml.menu;
for (var i:int =  1; i  level; i++) {
xmlItem = xmlItem.item[this[whichItem + ((i == 1) ?  : i)]];
}
totalItems = xmlItem.item.length;





On Thu, Aug 11, 2011 at 11:54 AM, Ktu ktu_fl...@cataclysmicrewind.comwrote:

 *UNTESTED*, but this was my thought...

 var level:int = 5;

 var xmlItem:* = xml.menu;
 for (var i:int =  0; i  level; i++) {
 xmlItem = xmlItem.item[this[whichItem + ((i == 0) ?  : i)]];
 }
 totalItems = xmlItem.item.length;



 I am doing this: [whichItem + ((i == 0) ?  : i)] because I have no 
 idea where that value comes from or what its for...






 On Thu, Aug 11, 2011 at 11:48 AM, Merrill, Jason  
 jason.merr...@bankofamerica.com wrote:

 You just need a recursive loop to do this.  So I would write a 
 function that handles each node level individually, adding to a 
 class-level private property called something like, _totalItems.  The 
 function basically checks the XML node to see if it has any children.  
 If it does, it calls itself, passing in the child XML node as an 
 argument, and does the count the node, adding to the _totalItems 
 private class property.  The function then does not call itself again 
 if the XML node does not have any children. No switch statement would be 
 needed.  Make sense?


  Jason Merrill
  Instructional Technology Architect II  Bank of America  Global 
 Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Polk
 Sent: Thursday, August 11, 2011 11:31 AM
 To: Flash List
 Subject: [Flashcoders] Simplify XML Call

 Hi;
 I have this code:

 switch (level)
 {
 case 2:
 totalItems = xml.menu.item[whichItem].item.length();
 break;
 case 3:
 totalItems =
 xml.menu.item[whichItem].item[whichItem2].item.length();
 break;
 case 4:
 totalItems =
 xml.menu.item[whichItem].item[whichItem2].item[whichItem3].item.length();
 break;
 case 5:
 totalItems =
 xml.menu.item[whichItem].item[whichItem2].item[whichItem3].item[whichItem4].item.length();
 break;
 }



 Ugly, I know. How do I write one or two lines that does all that and 
 even
 better: loops it?
 TIA,
 John

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

 -
 - This message w/attachments (message) is intended solely for the use 
 of the intended recipient(s) and may contain information that is 
 privileged, confidential or proprietary. If you are not an intended 
 recipient, please notify the sender, and then please delete and 
 destroy all copies and attachments, and be advised that any review or 
 dissemination of, or the taking of any action in reliance on, the 
 information contained in or attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell 
 or a solicitation of any investment products or other financial 
 product or service, an official confirmation of any transaction, or 
 an official statement of Sender. Subject to applicable law, Sender 
 may intercept, monitor, review and retain e-communications (EC) 
 traveling through its networks/systems and may produce any such EC to 
 regulators, law enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the 
 handling of EC, and EC may be archived, supervised and produced in 
 countries other than the country in which you are located. This 
 message cannot be guaranteed to be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of 
 America Corporation. Securities and Insurance Products: * Are Not 
 FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a 
 Bank Deposit * Are Not a Condition to Any Banking Service or Activity 
 * Are Not Insured by Any Federal

RE: [Flashcoders] Simplify XML Call

2011-08-11 Thread Merrill, Jason
 If the XML gets larger and deeper, that function would fail... 
 - why would it fail? (assuming that the level var could be whatever you want?

(OK, I am not trying to argue with you here, I promise) 

Because that's exactly it, if the levels got deeper, you would have to know how 
deep in order to change the variable - human intervention. Otherwise, if you 
didn't manually keep the XML in synch with the variable value, it would fail. 
And how could you know that dynamically without doing a recursive function, 
which is what I suggested. It gets worse if a system produces the XML.  So what 
would be advantage of your suggestion over mine?  Yours would require a manual 
tweaking of the level variable.  A recursive function would not that value to 
be set at all.  And a recursive function could be set to only check down to a 
certain level if you wanted that, or only check certain specific levels.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu
Sent: Thursday, August 11, 2011 2:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Simplify XML Call

that would be limited to you hard coding the number of levels to go down to
 - he already had this level var created with whatever number he had intended, 
I was just giving an example value...

 If the XML gets larger and deeper, that function would fail... 
 - why would it fail? (assuming that the level var could be whatever you want?


it would be a better idea to check the length of the array instead
 - John didn't indicate that this was a problem of verifying the data, but 
instead wishing to write the same code in fewer lines. That is what I did. I do 
agree with you though, that error checking would be good to have.




I've changed my code to test creating the string required. This is a TEST to 
prove that my code would indeed create the referencing desired.


var level:int = 5;
var str:String = xml.menu
for (var i:int =  1; i  level; i++) {
str += .item[whichItem + ((i == 1) ?  : i) + ]; } str += 
.item.length();


change level to whatever you want and it will produce the same lines of code 
John reference above. Clearly this doesn't work, but since such little 
information was given (especially about the 'whichItemX' variables, this was my 
shot at it.




This here is an updated version of it that breaks out a piece to make it a bit 
cleaner to read:

var level:int = n;
var xmlItem:* = xml.menu;
for (var i:int =  1; i  level; i++) {
var which:* = this[whichItem + ((i == 1) ?  : i)]
xmlItem = xmlItem.item[which];
}
totalItems = xmlItem.item.length();




John, I think if we are going to be able to help you further we would need more 
information about how this xml is truly setup, and wher some of these values 
come from (whichItem, whichItem2..., level)





On Thu, Aug 11, 2011 at 12:58 PM, Henrik Andersson he...@henke37.cjb.netwrote:

 While you have the right spirit I think that it would be a better idea 
 to check the length of the array instead. That way you won't 
 accidentally step out of bounds there.

 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com 
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://cha
 ttyfig.figleaf.com/mailman/listinfo/flashcoders




--
Ktu;

The information contained in this message may or may not be privileged and/or 
confidential. If you are NOT the intended recipient, congratulations, you got 
mail!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, 

RE: [Flashcoders] Simplify XML Call

2011-08-11 Thread Merrill, Jason
(I try not to do more than people ask for. It's easy to get sucked into 
solving a larger problem than was asked)

Yes, I agree totally, that can be a problem for sure.

 - apparently he already knows how deep to go. his original post said switch 
 (level) {

Yeah, understood. I was just responding to his request for something that does 
it better.  So given that, I think both our approaches satisfy that request.  
:) 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Signals in Robotlegs

2011-07-25 Thread Merrill, Jason
He's probably using Signals differently, and doing more dependency injection 
with them than I currently am.  He's the pro.  On my end, I have found the 
opposite to be true, since most of the time when you create a Signal, unlike 
custom events, you don't have to create any classes.  If you have to inject a 
signal, sure, you create a class for that, but the same would be true of custom 
events (and in fact every custom event would have to have an associated class 
in every situation, unlike Signals), and creating a Signal class is simpler 
because you don't have to add any boilerplate code like you do for custom 
events. To me, Signals (simply declared as a public property, or with an 
associated class than extends Signal) are simpler and more elegant to handle 
than custom events.

Overall, I would far prefer to use Signals over Events in a Robotlegs project 
(that said, I'm only on my third Robotlegs project now).

Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

From: David Wilcox [mailto:dwgoldfi...@gmail.com]
Sent: Sunday, July 24, 2011 1:27 AM
To: Merrill, Jason
Subject: Re: [Flashcoders] Signals in Robotlegs

Thanks for the advice. I had also asked the same question on the Robotlegs 
Forums, but Flashcoders gave a faster response. I did eventually get a response 
from Joel Hooks, and he linked a conversation here:

https://m.google.com/app/plus/mp/451/#~loop:backv=notificationsaid=z13cf5ub5n3vfn4cw23wv3abfu2aed0d3type=1fr=1view=activity

in which he said signals have a significant cognitive overhead in larger 
projects because of all the extra classes he has to create, but either way I'll 
take what you've said into account when I apply changes to my app.

Thanks again,
Dave Wilcox
On 21 July 2011 23:26, Merrill, Jason 
jason.merr...@bankofamerica.commailto:jason.merr...@bankofamerica.com wrote:
I just use Joel Hook's stuff.  I wouldn't know if Lindquist's methods are 
better, but Hooks classes work just dandy.  I use any of the Signals-specific 
stuff for Robotlegs like SignalMediator instead of Mediator, SignalCommand 
instead of Command (though in general, you can just use Command) and 
SignalContext instead of Context, and I set the signalCommandMap.mapSignalClass 
method inside of SignalContext to map Signals in my SignalContext.

From there, everything works as you would expect for Signals and Robotlegs.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning





___

-Original Message-
From: 
flashcoders-boun...@chattyfig.figleaf.commailto:flashcoders-boun...@chattyfig.figleaf.com
 
[mailto:flashcoders-boun...@chattyfig.figleaf.commailto:flashcoders-boun...@chattyfig.figleaf.com]
 On Behalf Of David Wilcox
Sent: Wednesday, July 20, 2011 11:35 PM
To: flashcoders@chattyfig.figleaf.commailto:flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Signals in Robotlegs

What's the best way to add signals to robotlegs?

Those of you coding in Robotlegs are probably familiar with signals being used 
as a replacement for events. I'm looking to replace events in my app for 
signals but there seem to be two methods of implementing them.

The first has been demonstrated by John Lindquist here:
http://johnlindquist.com/2010/01/21/as3-signals-tutorial/ . He uses signal 
methods like 'suphero.punch(string)' to get this done.

The other method uses Joel Hook's CommandSignal and SignalContext (github
here: https://github.com/joelhooks/signals-extensions-CommandSignal ). This can 
be coupled with Stray's SignalMediator ( 
https://github.com/Stray/robotlegs-utilities-SignalMediator ) and instead of 
using signal methods like John, it involves creating a single signal for a 
given command. This would probably involve creating many more classes than the 
first method.

This is what I understand of the two methods. Does anybody know why I would 
want to do one over the other? And if they do would they have any advice on how 
best to implement it (particularly with the CommandSignals and how to best deal 
with so many classes floating around)?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.commailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment

RE: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Merrill, Jason
 topic title=my topic
 menu
section type=pubs
  asset id=i type=doc fileName=doc.pdf//section
section type=media
  asset id=a title=Presentation fileName=pres.pptx/
  asset id=b title=animation fileName=flash.swf/
section type=info
  asset id=c title=questions/
  asset id=d title=something/ /section
   /menu
 /topic

 That's not valid XML

(fyi It's missing the /section closing tag on the third section node.)

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Merrill, Jason
(fyi It's missing the /section closing tag on the third section node.)

I meant the second node, not third...

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: Merrill, Jason 
Sent: Friday, July 22, 2011 5:04 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] contract/FT position (Paris/Europe)

 topic title=my topic
 menu
section type=pubs
  asset id=i type=doc fileName=doc.pdf//section
section type=media
  asset id=a title=Presentation fileName=pres.pptx/
  asset id=b title=animation fileName=flash.swf/
section type=info
  asset id=c title=questions/
  asset id=d title=something/ /section
   /menu
 /topic

 That's not valid XML

(fyi It's missing the /section closing tag on the third section node.)

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Signals in Robotlegs

2011-07-21 Thread Merrill, Jason
I just use Joel Hook's stuff.  I wouldn't know if Lindquist's methods are 
better, but Hooks classes work just dandy.  I use any of the Signals-specific 
stuff for Robotlegs like SignalMediator instead of Mediator, SignalCommand 
instead of Command (though in general, you can just use Command) and 
SignalContext instead of Context, and I set the signalCommandMap.mapSignalClass 
method inside of SignalContext to map Signals in my SignalContext.

From there, everything works as you would expect for Signals and Robotlegs.  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Wilcox
Sent: Wednesday, July 20, 2011 11:35 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Signals in Robotlegs

What's the best way to add signals to robotlegs?

Those of you coding in Robotlegs are probably familiar with signals being used 
as a replacement for events. I'm looking to replace events in my app for 
signals but there seem to be two methods of implementing them.

The first has been demonstrated by John Lindquist here:
http://johnlindquist.com/2010/01/21/as3-signals-tutorial/ . He uses signal 
methods like 'suphero.punch(string)' to get this done.

The other method uses Joel Hook's CommandSignal and SignalContext (github
here: https://github.com/joelhooks/signals-extensions-CommandSignal ). This can 
be coupled with Stray's SignalMediator ( 
https://github.com/Stray/robotlegs-utilities-SignalMediator ) and instead of 
using signal methods like John, it involves creating a single signal for a 
given command. This would probably involve creating many more classes than the 
first method.

This is what I understand of the two methods. Does anybody know why I would 
want to do one over the other? And if they do would they have any advice on how 
best to implement it (particularly with the CommandSignals and how to best deal 
with so many classes floating around)?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] PureMVC vs Cairngorm // who's better?

2011-07-14 Thread Merrill, Jason
I'll second that, Robotlegs is really nice - we love it here.  We did an 
evaluation of AS3 frameworks to implement as a team, and for the moment, have 
decided to go with Robotlegs for all of our medium to large projects as a basis 
for architecture.  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of allandt 
bik-elliott (thefieldcomic.com)
Sent: Thursday, July 14, 2011 1:15 PM
To: Flash Coders List
Subject: Re: [Flashcoders] PureMVC vs Cairngorm // who's better?

i have my own and use puremvc but robotlegs is the industry standard now (and 
has certainly taken over from both puremvc and cairngorm). if you're starting 
off, go robotlegs

best
a

On 24 June 2011 08:04, Ross Sclafani ross.sclaf...@gmail.com wrote:

 I wrote my own MVC package.
 On Jun 23, 2011, at 7:23 PM, Ben Sand wrote:

  We use robotlegs
 
  On Thursday, 23 June 2011, Jordan L. Chilcott - Interactivity 
  Unlimited jchilc...@interactivityunlimited.com wrote:
  Huge vote for RobotLegs as well.
 
  jord
  --
  Jordan L. Chilcott
 
  Sent from my iPhone... because I can
 
  On 2011-06-23, at 9:23 AM, Merrill, Jason 
 jason.merr...@bankofamerica.com wrote:
 
  Robotlegs +1
 
 
  ___
  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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FXG's Interface: IGraphicElement?

2011-06-28 Thread Merrill, Jason
I'm importing FXGs via code in a pure AS3 FP10 project (Flex 4 SDK).  According 
to what I could find in Gumbo docs, FXGs implement the IGraphicElement 
interface.  However, that interface doesn't seem to be recognized as code 
hinting in my pure AS3 (Flex 4 SDK) FlashDevleop project.  Is the interface for 
FXGs IGraphicElement?  Would be ideal to do something like:

var mailIcon:MailIcon as IGraphicElement

I can cast as Sprite instead, but that's not really what FXGs are, even though 
they have several similar properties - right?  I see there is an 
flash.text.engine.GraphicElement class, but that doesn't appear to be the same 
thing.

Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] PureMVC vs Cairngorm // who's better?

2011-06-23 Thread Merrill, Jason
Robotlegs +1

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel Stransky
Sent: Thursday, June 23, 2011 5:37 AM
To: Flash Coders List
Subject: Re: [Flashcoders] PureMVC vs Cairngorm // who's better?

I have to go with Robot Legs on this one.

On Sat, Jun 11, 2011 at 10:08 AM, Christoffer Enedahl  
christof...@enedahl.com wrote:

 PureMVC

 artur skrev 2008-04-11 21:08:

 whats the verdict for using one over the other --  for a Flex+AMFphp  RIA.



 thanks


 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com 
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://cha
 ttyfig.figleaf.com/mailman/listinfo/flashcoders




--
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] PlayBook

2011-06-21 Thread Merrill, Jason
 If you have a CS5 suite do you get a free upgrade to CS5.5?

Can't help you with your other questions, but I do know the answer to that one 
is unfortunately no.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: Tuesday, June 21, 2011 4:48 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] PlayBook

Hi All,

Hope you are all well. I have just returned to work after a 4 month break 
seeing a little of the other side of the world. I have been asked to make a 
Blackberry Playbook app with AIR (it just got released in the UK) and hoping 
for any pointers anyone has- particularly if I NEED to get FlashBuilder 4.5 or 
if I can use FlashBuilder 4 / Flash CS5 (which I already have)? If you have a 
CS5 suite do you get a free upgrade to CS5.5?

Cheers,

--
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] PlayBook

2011-06-21 Thread Merrill, Jason
 I only got CS5 six months ago.

You might want to check with Adobe to see if they will upgrade you to 5.5 at no 
charge. If you buy within a certain timeframe of a new release, they will give 
you the new release for free.  I don't know what the timeframe is for this one 
though - 6 months might be just outside that window, but wouldn't hurt to 
contact them and ask (or maybe someone here knows).  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: Tuesday, June 21, 2011 10:20 AM
To: Flash Coders List
Subject: Re: [Flashcoders] PlayBook

is there no way of doing it with Flash Professional CS5 or Flashbuilder 4.0 ? I 
am on a mac so Flash Develop is not really an option.

I find it mind boggling that adobe would give away the Android extension for 
free and then remove it and make you pay for it. I only got CS5 six months ago.

On 21 June 2011 15:09, tom rhodes tom.rho...@gmail.com wrote:

 flash develop + the new flex sdk will let you target android with AIR.

 or have a look at www.haxe.org for another way to do it without 
 spening money ;)


 On 21 June 2011 16:03, David Hunter m...@davidhunterdesign.com wrote:

  Thanks Jason,
 
  Guessed that would be the case.
 
  I was badly briefed and the app is an AIR for Android app to run on 
  a Samsung Galaxy TAB. Do I need to get CS5.5 to compile for Android? 
  I have
  CS5 but there is no mention of an Android packager only the iPhone 
  packager.
  I'm sure I was shown that you could compile Android apps from Flash CS5.
 
  I saw online there was an Android extension by adobe but they have 
  taken
 it
  down since the release of CS5.5.
 
  Thanks all,
 
 
  On 21 June 2011 14:43, Merrill, Jason 
  jason.merr...@bankofamerica.com
  wrote:
 
If you have a CS5 suite do you get a free upgrade to CS5.5?
  
   Can't help you with your other questions, but I do know the answer 
   to
  that
   one is unfortunately no.
  
Jason Merrill
Instructional Technology Architect  Bank of America  Global 
   Learning
  
  
  
  
  
   ___
  
  
   -Original Message-
   From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
   flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David 
   Hunter
   Sent: Tuesday, June 21, 2011 4:48 AM
   To: flashcoders@chattyfig.figleaf.com
   Subject: [Flashcoders] PlayBook
  
   Hi All,
  
   Hope you are all well. I have just returned to work after a 4 
   month
 break
   seeing a little of the other side of the world. I have been asked 
   to
 make
  a
   Blackberry Playbook app with AIR (it just got released in the UK) 
   and
  hoping
   for any pointers anyone has- particularly if I NEED to get 
   FlashBuilder
  4.5
   or if I can use FlashBuilder 4 / Flash CS5 (which I already have)? 
   If
 you
   have a CS5 suite do you get a free upgrade to CS5.5?
  
   Cheers,
  
   --
   David Hunter
  
   www.davidhunterdesign.com
   +44 (0) 7869 104 906
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   --
    This message w/attachments (message) is intended solely for 
   the use of
  the
   intended recipient(s) and may contain information that is 
   privileged, confidential or proprietary. If you are not an 
   intended recipient,
 please
   notify the sender, and then please delete and destroy all copies 
   and attachments, and be advised that any review or dissemination 
   of, or the taking of any action in reliance on, the information 
   contained in or attached to this message is prohibited.
   Unless specifically indicated, this message is not an offer to 
   sell or
 a
   solicitation of any investment products or other financial product 
   or service, an official confirmation of any transaction, or an 
   official statement of Sender. Subject to applicable law, Sender 
   may intercept, monitor, review and retain e-communications (EC) 
   traveling through its networks/systems and may produce any such EC 
   to regulators, law
  enforcement,
   in litigation and as required by law.
   The laws of the country of each sender/recipient may impact the
 handling
  of
   EC, and EC may be archived, supervised and produced in countries 
   other
  than
   the country in which you are located. This message cannot be 
   guaranteed
  to
   be secure or free of errors or viruses.
  
   References to Sender are references to any subsidiary of Bank of
  America
   Corporation. Securities and Insurance Products: * Are Not FDIC 
   Insured
 *
  Are
   Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * 
   Are Not
 a
   Condition to Any Banking Service

RE: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Merrill, Jason
 var kids = xmlData.children(); // gets me the CDATA content without the 
 ![CDATA[ or ]] 
 var kidscdata:String = kids[0].toString();

That seems unnecessary unless I don't understand your question.  Wouldn't  var 
kids:String = theXMLNode.text() work?

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, 
Michael
Sent: Monday, June 20, 2011 11:04 AM
To: Flash Coders List
Subject: RE: [Flashcoders] E4X: reading CDATA

Well, how about that!

var kids = xmlData.children();
// gets me the CDATA content without the ![CDATA[ or ]] var kidscdata:String 
= kids[0].toString();

I was doing this RegExp, which also worked, but isn't necessary:
var altered:String = kidscdata.replace(new 
RegExp((^\!\[CDATA\[)(.+)(\]\]\), gi), $2);


Thanks everyone!
- Michael M.


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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Merrill, Jason
The text method returns an XMLList just like the children method. It just is 
limited to the text nodes. 

No - see I didn't think Michael wanted to get the CDATA of ALL of the nodes at 
once.  He referred to a specific node in his code:  kids[0].   So therefore, 
why wouldn't this be a better solution?

var  myXML:XML = xml
myNode
![CDATA[Hello World.]]
/myNode
/xml;

trace(myXML.myNode.text()); //traces Hello World.

The method he posted as his solution seems an unnecessary way around - like 
going out the front door of a house, walking around to the back and then  going 
in the back door just to get to the kitchen.  


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson
Sent: Monday, June 20, 2011 11:21 AM
To: Flash Coders List
Subject: Re: [Flashcoders] E4X: reading CDATA

Merrill, Jason skriver:
 var kids = xmlData.children(); // gets me the CDATA content without 
 the![CDATA[ or ]] var kidscdata:String = kids[0].toString();

 That seems unnecessary unless I don't understand your question.  Wouldn't  
 var kids:String = theXMLNode.text() work?

The text method returns an XMLList just like the children method. It just is 
limited to the text nodes.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Merrill, Jason
.  The toString() method did fine for my purposes.  :-)

OK, maybe I don't understand your XML structure.  Why would what you settled on:

   var kids:XMLList = xmlData.children();
   var kidscdata:String = kids[0].toString();

be a better solution for you than this?

   var myString:String = xmlData[0].text();

Can you post some sample XML?


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, 
Michael
Sent: Monday, June 20, 2011 12:39 PM
To: Flash Coders List
Subject: RE: [Flashcoders] E4X: reading CDATA

Jason, couldn't have said it better myself.  The RegExp was unnecessary, but at 
least it worked.  The toString() method did fine for my purposes.  :-)

- MM


 like going out the front door of a house, walking around to the back and then 
  going in the back door just to get to the kitchen.  

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Merrill, Jason
Yeah, I mean in that case, just call the text() node of the XML node.  Much 
simpler and you'd get the same result.  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, 
Michael
Sent: Monday, June 20, 2011 12:57 PM
To: Flash Coders List
Subject: RE: [Flashcoders] E4X: reading CDATA

Sure...the reason is that in all the xml files I'm pulling in, I know the 
structure, it's the same for all.  There's only one item tag in each xml 
file.  So, I don't need an xmllist, given that there's only one item, I can 
just call toString().  But, I see where you're coming from with an xmllist.  
That would be the way I'd go if there were more than one item tags in each 
file.  Maybe the name of the tag, item, is misleading.  I suppose that would be 
a case of semantics.

Ultimately, I only need to call this line (using Greensock's XMLLoader):
private static function getTextContentComplete(le:LoaderEvent):void{
var xmlData:XML = XML(le.target.content);
var cdataContent:String = xmlData.toString();
// not needed...strip CDATA tags: string.replace(new 
RegExp((^\!\[CDATA\[)(.+)(\]\]\), gi), $2);
// populate my textfield.htmlText with cdataContent; }

Each xml file I read in has this structure:
===
?xml version=1.0 encoding=utf-8?
item
![CDATA[some html formatted text]]
/item


Hope that's all clear.
- MM




OK, maybe I don't understand your XML structure.  Why would what you settled on:

   var kids:XMLList = xmlData.children();
   var kidscdata:String = kids[0].toString();

be a better solution for you than this?

   var myString:String = xmlData[0].text();

Can you post some sample XML?

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Spark BorderContainer.borderColor inconsistency?

2011-06-14 Thread Merrill, Jason
Are there some properties of Spark components you can only set with MXML?

Why is it I can do this:

   s:BorderContainer borderColor=0x99 /

but when I do this:

   var borderContainer:BorderContainer = new BorderContainer;

I can't then do this:

   borderContainer.borderColor = 0x99;

?

Using Flashbuilder 4, code hinting does not show a borderColor property of the 
BorderContainer instance, and you get the compiler error:

   1119: Access of possibly undefined property borderColor through a reference 
with static type spark.components:BorderContainer.

Can you not set the borderContainer.borderColor property via Actionscript?  
Seems nuts - unless it's a known bug or I am missing something obvious.


Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] using this in AS3 classes?

2011-06-08 Thread Merrill, Jason
 When you work in the Flash IDE though (sorry Jason)

Ugh. :)

I agree though, using this has an advantage of code hinting for the class, in 
other tools tool like Flashbuilder.  However, I never use it, it's redundant 
and agree with Moock it only adds visual clutter.  Rarely is using this 
necessary for clarifying your code - most coders should understand scope.  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Geografiek
Sent: Wednesday, June 08, 2011 4:21 AM
To: Flash Coders List
Subject: Re: [Flashcoders] using this in AS3 classes?

Hi Micky,
Colin Moock (in EAS3) explicitly advises agains the redundant use of 'this' to 
avoid visual clutter.
When you work in the Flash IDE though (sorry Jason) it has the advantage that 
all variables and methods of 'this' are available in the code hinting 
contextual menu. So I think it's really up to your own preference.
HTH
Willem van den Goorbergh

On 8 jun 2011, at 06:55, Micky Hulse wrote:

 Hi,
 
 Stupid question, but...
 
 Let's say I have some class properties:
 
 private var _mc1:MovieClip;
 private var _mc2:MovieClip;
 
 ... and methods:
 
 private function baz():void { ... }
 private function foo():void { ... }
 
 In my code, would it be overkill to always reference the above 
 examples with a prefix of this?
 
 For example:
 
 this._mc1 = ...;
 this._mc2 = this.mc1;
 this.baz();
 this.foo();
 
 I could easily do this instead:
 
 _mc1 = ...;
 _mc2 = mc1;
 baz();
 foo();
 
 Sorry if silly question, I am just kinda wondering what the pros do. 
 :)
 
 Best practices?
 
 Thanks!
 Micky
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell 
phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 
89 3514 AX UTRECHT Visit our website at: www.geografiek.nl
twitter: @wvdgoorbergh
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=





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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XML Gallery Viewer

2011-06-07 Thread Merrill, Jason
 but I need to have the fla source file to modify the code

I think a better approach is to:

1. Learn how to load XML and get the data.
2. Learn how to create display objects with code, animate and present them.
3. Learn how to load external images.


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Bassam M
Sent: Tuesday, June 07, 2011 3:24 AM
To: Flash Coders List
Subject: [Flashcoders] XML Gallery Viewer

Hi Guys
I need AS2 xml gallery viewer, it should be thumbnail and big image something 
like this http://www.flashgallery.org/demo.html
but I need to have the fla source file to modify the code

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Flash AS editor preferences question

2011-06-02 Thread Merrill, Jason
Also, I have seen ads for Amenthyst in Flash  Flex magazine, looks cool for 
Visual Studio users. Any users here? Curious how it stack up Actionscript wise 
- having the Visual Studio features would of course be awesome already.

http://blog.sephiroth.it/2010/05/25/amethyst-actionscript-editor/



 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu
Sent: Thursday, June 02, 2011 3:22 PM
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Flash AS editor preferences question

I use Anonymous http://www.ms-studio.com/FontSales/anonymous.html


On Thu, Jun 2, 2011 at 10:16 AM, Merrill, Jason  
jason.merr...@bankofamerica.com wrote:

  Here's an odd one:  what font do you use in the Actionscript editor
 window?

 Wait - hold the phone, you're editing Actionscript with the Flash IDE?  
 If so, we need to TALK man.

 (
   http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page 
 (free,
 awesome)
   http://www.jetbrains.com/idea/download/ (awesome++)
   http://www.fdt.powerflasher.com/ (awesome++)
   http://www.adobe.com/products/flash-builder.html (awesome, maybe you 
 have this already?)
 )

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning



 --
 This message w/attachments (message) is intended solely for the use of 
 the intended recipient(s) and may contain information that is 
 privileged, confidential or proprietary. If you are not an intended 
 recipient, please notify the sender, and then please delete and 
 destroy all copies and attachments, and be advised that any review or 
 dissemination of, or the taking of any action in reliance on, the 
 information contained in or attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or 
 a solicitation of any investment products or other financial product 
 or service, an official confirmation of any transaction, or an 
 official statement of Sender. Subject to applicable law, Sender may 
 intercept, monitor, review and retain e-communications (EC) traveling 
 through its networks/systems and may produce any such EC to 
 regulators, law enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the 
 handling of EC, and EC may be archived, supervised and produced in 
 countries other than the country in which you are located. This 
 message cannot be guaranteed to be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of 
 America Corporation. Securities and Insurance Products: * Are Not FDIC 
 Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank 
 Deposit * Are Not a Condition to Any Banking Service or Activity * Are 
 Not Insured by Any Federal Government Agency. Attachments that are 
 part of this EC may have additional important disclosures and disclaimers, 
 which you should read.
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender 
 you consent to the foregoing.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Ktu;

The information contained in this message may be privileged and/or 
confidential. If you are NOT the intended recipient, please notify the sender 
immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may

[Flashcoders] Recommendations for isometric engines

2011-05-27 Thread Merrill, Jason
If you have experience with some of the free isometric game engines out there, 
which one is superior?  It seems As3IsoLib and FFilmation are bubbling to the 
top in my research, but not sure which one is the best in terms of:


1.Performance (including z-sorting)

2.Ease of Use

3.Features (collision detection, primitives, event systems, etc.)

4.Scalability

5.Integration (more than one scene in the flash app at a time, use with 
other frameworks and tools, etc.)

Anyone have some experience with isometric engines?  And by the way, I don't 
mean 3D libraries like Away3D or Alternativa3D - I'm talking about isometric 
game engines.

Thanks,

Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: Recommendations for isometric engines

2011-05-27 Thread Merrill, Jason
Oh, and to add on to that requirements list, a 6th item would be:

6. Community support/popularity and documentation/tutorials

Thanks,


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
Sent: Friday, May 27, 2011 10:54 AM
To: Flash Coders List
Subject: [Flashcoders] Recommendations for isometric engines

If you have experience with some of the free isometric game engines out there, 
which one is superior?  It seems As3IsoLib and FFilmation are bubbling to the 
top in my research, but not sure which one is the best in terms of:


1.Performance (including z-sorting)

2.Ease of Use

3.Features (collision detection, primitives, event systems, etc.)

4.Scalability

5.Integration (more than one scene in the flash app at a time, use with 
other frameworks and tools, etc.)

Anyone have some experience with isometric engines?  And by the way, I don't 
mean 3D libraries like Away3D or Alternativa3D - I'm talking about isometric 
game engines.

Thanks,

Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government

RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
 Once you have the XML instance, just call the namespace method with the 
 prefix to get the correct Namespace instance to use.
 Or even simpler, create the Namespace object directly from the used url.

If you followed the thread, that's what I was doing and it wasn't working.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 




--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
Here is my final utility function to disable XML namespaces if anyone finds 
this useful:

/**
 * This method will disable, but not remove namespace declarations 
in an XML document. Namespace declarations
 * are altered from using a color designator (:) to a replacement 
character. Default namespaces
 * can be kept if desired, and the replacement character can also 
be customized.
 * @param xml The XML document to be processed.
 * @param replacementCharacter The character to substitute for the 
colon (:) in the XML document.
 * @param disableDefaultNamespaces When false, this keeps the 
default namespace declarations in the document (any xmlns= attribute 
declaration).
 * @return The modified XML document.
 */
public static function disableNamespaces(xml:XML, 
replacementCharacter:String=_, disableDefaultNamespaces:Boolean=true):XML
{
var xmlString:String = xml.toXMLString();
xmlString = xmlString.replace(new 
RegExp('*:','gi'),replacementCharacter);
if(disableDefaultNamespaces) xmlString = xmlString.replace(new 
RegExp('xmlns=','gi'),'xmlns'+replacementCharacter+'=');
return XML(xmlString);
}

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 




--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
You've never heard of the color (:)?   Kinda inbetween fuschia and midnight 
blue. 

;) 


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ross Sclafani
Sent: Friday, April 29, 2011 3:18 PM
To: Flash Coders List
Subject: Re: [Flashcoders] XMLList  Namespace Madness

typo
On Apr 29, 2011, at 2:54 PM, Merrill, Jason wrote:

 color designator (:)

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
Cool - thanks Peter.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Peter Ginneberge
Sent: Friday, April 29, 2011 4:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] XMLList  Namespace Madness

The following works for me:

===

var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse 
xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;
 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 GetUserProfileByNameResult
  PropertyData
   ValueHelloWorld 1/Value
 /PropertyData
  PropertyData
   ValueHelloWorld 2/Value
  /PropertyData
  /GetUserProfileByNameResult
/GetUserProfileByNameResponse);

var pnNs:Namespace=new 
Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;);
var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

for each (var node:XML in myXMLList2.pnNs::PropertyData) {
 trace(- PropertyData: , node.toXMLString());
}

===

regards,
Muzak

- Original Message - 
From: Merrill, Jason jason.merr...@bankofamerica.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, April 29, 2011 4:32 AM
Subject: [Flashcoders] XMLList  Namespace Madness


 I'm going crazy trying to drill down into a XMLList which has namespaces 
 declared. I have been able to go into a few layers of the 
 original XML with namespaces using namespace definitions in AS3, but now I am 
 stuck at the last level.

 The XMLList I have pared it down to has a length of 1 and has namespaces 
 declared, which is throwing things off.  How can I get to 
 the PropertyData / nodes given that namespaces are involved?

 The following code can be copied and pasted into a fresh .fla as a test case:

 /*TEST CASE-*/

 var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse 
 xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;
  
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  GetUserProfileByNameResult
PropertyData
ValueHelloWorld 1/Value
/PropertyData
PropertyData
ValueHelloWorld 1/Value
/PropertyData
  /GetUserProfileByNameResult
 /GetUserProfileByNameResponse);

 var pnNs:Namespace = new 
 Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;);

 var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

 trace(myXMLList2: +myXMLList2)//Traces fine, except more namespaces (xmlns) 
 appear as attributes in first node.

 for each (var propertyDataXML:XML in myXMLList2..PropertyData)
 {
//WHY DOES THIS NOT TRACE?
trace(propertyDataXML: +propertyDataXML);
 }
 /*--*/

 I also tried this for the loop as well:

 /*--*/

 for each (var propertyDataXML2:XML in 
 myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData)
 {
//WHY DOES THIS NOT TRACE?
trace(propertyDataXML: +propertyDataXML2);
 }
 /*--*/

 And why does the trace on myXMLList2 show an XML list where there is more 
 namespace applied: GetUserProfileByNameResponse 
 xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService...;
  ??

 Any help is MUCH appreciated.

 Jason Merrill


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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may

RE: [Flashcoders] How make an SWF run on IPad?

2011-04-28 Thread Merrill, Jason
MP4 does not support Actionscript, so that won't work.  Any interactive buttons 
you have seen on similar sites are built with something else other than Flash.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Abaffy
Sent: Thursday, April 28, 2011 4:21 PM
To: 'Flash Coders List'
Subject: [Flashcoders] How make an SWF run on IPad?

I have been searching  the web for about an hour now, and I can't find a SWF to 
MP4 convert that will allow the actionscript (i.e. buttons etc..) to work. What 
I am trying to do is convert my flash presentation to something that will run 
on an IPad. I have entire site written in actionscript 3.0 so I have buttons 
and other interactive things on the screen. But flash will not run on an IPad 
so what can one do.

 

Thanks

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How make an SWF run on IPad?

2011-04-28 Thread Merrill, Jason
 Any interactive buttons you have seen on similar sites are built with 
 something else other than Flash.

I guess I should qualify that a little better - they could have been built with 
the iOS export option from the Flash IDE, but they are not Flash files - .swfs 
do not work in iOS thanks to Mr. Jobs bullheadedness.

But as has been mentioned, you can look into the iOS export options from Flash 
and turn it into an iOS application which pulls in the MP4 video. Make sure you 
read up on what's compatible with that iOS app export though - not all of AS3 
and the Flash framework are compatible.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
Sent: Thursday, April 28, 2011 4:28 PM
To: Flash Coders List
Subject: RE: [Flashcoders] How make an SWF run on IPad?

MP4 does not support Actionscript, so that won't work.  Any interactive buttons 
you have seen on similar sites are built with something else other than Flash.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Abaffy
Sent: Thursday, April 28, 2011 4:21 PM
To: 'Flash Coders List'
Subject: [Flashcoders] How make an SWF run on IPad?

I have been searching  the web for about an hour now, and I can't find a SWF to 
MP4 convert that will allow the actionscript (i.e. buttons etc..) to work. What 
I am trying to do is convert my flash presentation to something that will run 
on an IPad. I have entire site written in actionscript 3.0 so I have buttons 
and other interactive things on the screen. But flash will not run on an IPad 
so what can one do.

 

Thanks

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender

[Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
I'm going crazy trying to drill down into a XMLList which has namespaces 
declared. I have been able to go into a few layers of the original XML with 
namespaces using namespace definitions in AS3, but now I am stuck at the last 
level.

The XMLList I have pared it down to has a length of 1 and has namespaces 
declared, which is throwing things off.  How can I get to the PropertyData / 
nodes given that namespaces are involved?

The following code can be copied and pasted into a fresh .fla as a test case:

/*TEST CASE-*/

var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse 
xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  GetUserProfileByNameResult
PropertyData
ValueHelloWorld 1/Value
/PropertyData
PropertyData
ValueHelloWorld 1/Value
/PropertyData
  /GetUserProfileByNameResult
/GetUserProfileByNameResponse);

var pnNs:Namespace = new 
Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;);

var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

trace(myXMLList2: +myXMLList2)//Traces fine, except more namespaces (xmlns) 
appear as attributes in first node.

for each (var propertyDataXML:XML in myXMLList2..PropertyData)
{
//WHY DOES THIS NOT TRACE?
trace(propertyDataXML: +propertyDataXML);
}
/*--*/

I also tried this for the loop as well:

/*--*/

for each (var propertyDataXML2:XML in 
myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData)
{
//WHY DOES THIS NOT TRACE?
trace(propertyDataXML: +propertyDataXML2);
}
/*--*/

And why does the trace on myXMLList2 show an XML list where there is more 
namespace applied: GetUserProfileByNameResponse 
xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService...;
 ??

Any help is MUCH appreciated.

Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
Nope - complex content just refers to nodes that contain child nodes.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: Thursday, April 28, 2011 11:26 PM
To: Flash Coders List
Subject: Re: [Flashcoders] XMLList  Namespace Madness

Hi Jason,
As you know I am not the Pro AS3 developer, but I have some google fu. (I'd 
like to think so anyways) Could this be what your looking for?

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/
XMLList.html#hasComplexContent()

Best,
Karl


On Apr 28, 2011, at 9:32 PM, Merrill, Jason wrote:

 I'm going crazy trying to drill down into a XMLList which has 
 namespaces declared. I have been able to go into a few layers of the 
 original XML with namespaces using namespace definitions in AS3, but 
 now I am stuck at the last level.

 The XMLList I have pared it down to has a length of 1 and has 
 namespaces declared, which is throwing things off.  How can I get to 
 the PropertyData / nodes given that namespaces are involved?

 The following code can be copied and pasted into a fresh .fla as a 
 test case:

 /*TEST CASE-*/

 var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse
 xmlns=http://microsoft.com/webservices/SharePointPortalServer/
 UserProfileService xmlns:soap=http://schemas.xmlsoap.org/soap/
 envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;  
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   GetUserProfileByNameResult
 PropertyData
 ValueHelloWorld 1/Value
 /PropertyData
 PropertyData
 ValueHelloWorld 1/Value
 /PropertyData
   /GetUserProfileByNameResult
 /GetUserProfileByNameResponse);

 var pnNs:Namespace = new Namespace(http://microsoft.com/ 
 webservices/SharePointPortalServer/UserProfileService);

 var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

 trace(myXMLList2: +myXMLList2)//Traces fine, except more namespaces 
 (xmlns) appear as attributes in first node.

 for each (var propertyDataXML:XML in myXMLList2..PropertyData) {
 //WHY DOES THIS NOT TRACE?
 trace(propertyDataXML: +propertyDataXML); } 
 /*--*/

 I also tried this for the loop as well:

 /*--*/

 for each (var propertyDataXML2:XML in
 myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData)
 {
 //WHY DOES THIS NOT TRACE?
 trace(propertyDataXML: +propertyDataXML2); } 
 /*--*/

 And why does the trace on myXMLList2 show an XML list where there is 
 more namespace applied: GetUserProfileByNameResponse 
 xmlns=http://microsoft.com/webservices/SharePointPortalServer/
 UserProfileService... ??

 Any help is MUCH appreciated.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning





 ___

 --
 This message w/attachments (message) is intended solely for the use of 
 the intended recipient(s) and may contain information that is 
 privileged, confidential or proprietary. If you are not an intended 
 recipient, please notify the sender, and then please delete and 
 destroy all copies and attachments, and be advised that any review or 
 dissemination of, or the taking of any action in reliance on, the 
 information contained in or attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or 
 a solicitation of any investment products or other financial product 
 or service, an official confirmation of any transaction, or an 
 official statement of Sender. Subject to applicable law, Sender may 
 intercept, monitor, review and retain e-communications (EC) traveling 
 through its networks/systems and may produce any such EC to 
 regulators, law enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the 
 handling of EC, and EC may be archived, supervised and produced in 
 countries other than the country in which you are located. This 
 message cannot be guaranteed to be secure or free of errors or 
 viruses.

 References to Sender are references to any subsidiary of Bank of 
 America Corporation. Securities and Insurance Products: * Are Not FDIC 
 Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank 
 Deposit * Are Not a Condition to Any Banking Service or Activity * Are 
 Not Insured by Any Federal Government Agency.
 Attachments that are part of this EC may have additional important 
 disclosures and disclaimers, which you should read. This message is 
 subject to terms available

RE: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
Thanks Karl.  

There are some problems doing it that way if you have more than one namespace 
or the namespaces contain prefixes.  I developed a workaround based on various 
things I pieced together from Google, to disable the namespaces by using 
RegEx and inserting underscores for the :, which works for the default and 
any others with prefixes:

var xmlString:String = myXMLList.toXMLString();

// define the regex pattern to remove the namespaces from the string
xmlString = xmlString.replace(new RegExp('*:','gi'),'_');
xmlString = xmlString.replace(new RegExp('xmlns=','gi'),'xmlns_=');
var finalXML:XML = XML(xmlString);

However, I would love to know why it has to be done this way. Seems kinda 
hackish.

But it is kinda cool, it will turn this:

GetUserProfileByNameResponse 
xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  GetUserProfileByNameResult
PropertyData
  IsPrivacyChangedfalse/IsPrivacyChanged
  IsValueChangedfalse/IsValueChanged
  NameUserProfile_GUID/Name
  PrivacyPublic/Privacy
  Values
ValueData
  Value xsi:type=q1:guid 
xmlns:q1=http://microsoft.com/wsdl/types/;cce6e082-0423-4d2d-930c-bf522a9852b1/Value
/ValueData
  /Values
/PropertyData

Into this very workable XML:

GetUserProfileByNameResponse 
xmlns_=http_//microsoft.com/webservices/SharePointPortalServer/UserProfileService
 xmlns_soap=http_//schemas.xmlsoap.org/soap/envelope/ 
xmlns_xsi=http_//www.w3.org/2001/XMLSchema-instance 
xmlns_xsd=http_//www.w3.org/2001/XMLSchema
  GetUserProfileByNameResult
PropertyData
  IsPrivacyChangedfalse/IsPrivacyChanged
  IsValueChangedfalse/IsValueChanged
  NameUserProfile_GUID/Name
  PrivacyPublic/Privacy
  Values
ValueData
  Value xsi_type=q1_guid 
xmlns_q1=http_//microsoft.com/wsdl/types/cce6e082-0423-4d2d-930c-bf522a9852b1/Value
/ValueData
  /Values
/PropertyData

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: Thursday, April 28, 2011 11:28 PM
To: Flash Coders List
Subject: Re: [Flashcoders] XMLList  Namespace Madness

Or even this??

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/
XML.html#text()

I believe this one strips out namespaces.

Best,
Karl


On Apr 28, 2011, at 9:32 PM, Merrill, Jason wrote:

 I'm going crazy trying to drill down into a XMLList which has 
 namespaces declared. I have been able to go into a few layers of the 
 original XML with namespaces using namespace definitions in AS3, but 
 now I am stuck at the last level.

 The XMLList I have pared it down to has a length of 1 and has 
 namespaces declared, which is throwing things off.  How can I get to 
 the PropertyData / nodes given that namespaces are involved?

 The following code can be copied and pasted into a fresh .fla as a 
 test case:

 /*TEST CASE-*/

 var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse
 xmlns=http://microsoft.com/webservices/SharePointPortalServer/
 UserProfileService xmlns:soap=http://schemas.xmlsoap.org/soap/
 envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;  
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   GetUserProfileByNameResult
 PropertyData
 ValueHelloWorld 1/Value
 /PropertyData
 PropertyData
 ValueHelloWorld 1/Value
 /PropertyData
   /GetUserProfileByNameResult
 /GetUserProfileByNameResponse);

 var pnNs:Namespace = new Namespace(http://microsoft.com/ 
 webservices/SharePointPortalServer/UserProfileService);

 var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

 trace(myXMLList2: +myXMLList2)//Traces fine, except more namespaces 
 (xmlns) appear as attributes in first node.

 for each (var propertyDataXML:XML in myXMLList2..PropertyData) {
 //WHY DOES THIS NOT TRACE?
 trace(propertyDataXML: +propertyDataXML); } 
 /*--*/

 I also tried this for the loop as well:

 /*--*/

 for each (var propertyDataXML2:XML in
 myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData)
 {
 //WHY DOES THIS NOT TRACE?
 trace(propertyDataXML: +propertyDataXML2); } 
 /*--*/

 And why does the trace on myXMLList2 show an XML list where there is 
 more namespace applied: GetUserProfileByNameResponse 
 xmlns=http://microsoft.com/webservices/SharePointPortalServer/
 UserProfileService... ??

 Any help is MUCH appreciated

RE: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
Thanks Karl - good stuff.  Yeah, modifying the XML and all that - good ideas, 
but more work than it may be worth.  I've moved on now - kinda very partial to 
the RegEx clean/disable the namespace solution - code is much less confusing to 
string together. 99% of the time you really don't need the namespace anymore - 
just need to consume the data.  However, instead of completely removing it, 
it's still there if you ever need it - just in the form of a : replaced with a 
_.

My code now looks like this:

var xmlString:String = xml.toXMLString();
xmlString = xmlString.replace(new 
RegExp('*:','gi'),'_');
xmlString = xmlString.replace(new 
RegExp('xmlns=','gi'),'xmlns_=');
var finalXML:XML = XML(xmlString);

userVO.firstName =  finalXML..PropertyData.(Name == 
FirstName)..Value;
userVO.lastName =   finalXML..PropertyData.(Name == 
LastName)..Value;
userVO.accountName =finalXML..PropertyData.(Name == 
AccountName)..Value;
userVO.GUID =   finalXML..PropertyData.(Name == 
UserProfile_GUID)..Value;
userVO.email =  finalXML..PropertyData.(Name == 
WorkEmail)..Value;
...etc.

..working from this XML:

soap:Envelope  xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  soap:Body
GetUserProfileByNameResponse 
xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;
  GetUserProfileByNameResult
PropertyData
  IsPrivacyChangedfalse/IsPrivacyChanged
  IsValueChangedfalse/IsValueChanged
  NameUserProfile_GUID/Name
  PrivacyPublic/Privacy
  Values
ValueData
  Value xsi:type=q1:guid 
xmlns:q1=http://microsoft.com/wsdl/types/;***(censored for 
Flashcoders)***/Value
/ValueData
  /Values
/PropertyData
...etc.


OK, need to get to bed. Thanks for your ideas!


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: Friday, April 29, 2011 12:23 AM
To: Flash Coders List
Subject: Re: [Flashcoders] XMLList  Namespace Madness

Mmmm.. I've been getting into AS3 and XML a little more, so good to know.
So is your problem solved? I don't want to beat a dead horse. :)

If no, I have run across somewhat a similar case of a return from an XML not 
parsing into a string when referenced directly.

so this doesn't work..

for each (var propertyDataXML:XML in myXMLList2..PropertyData) {
 //WHY DOES THIS NOT TRACE?
 trace(propertyDataXML: +propertyDataXML); }

but try setting it to a var then trace..

for each (var propertyDataXML:XML in myXMLList2..PropertyData) {
 //SEE IF THIS DOES
var result = propertyDataXML;
 trace(propertyDataXML: +result); }

or for the namespace/prefix problem and the return try..

for each (var propertyDataXML:XML in myXMLList2..PropertyData) {
 //OR MAYBE THIS DOES
var result = ![CDATA[ +propertyDataXML+]];
 trace(propertyDataXML: +result); }

or if you can insert the CDATA in the xml, if you have control over that aspect.

  Value![CDATA[ HelloWorld 1]]/Value

I have also found that when converting spaces and prefixes, using the HTML 
special characters instead translates back well.
so using %20 or the nbsp; for space for example.

Also, there was another post on this list about wrapping your result in 
![CDATA[  ]] the subject was [Flashcoders] AS2.0 - Parsing special HTML 
characters in CDATA - onLoad vs onData.
Granted it is an AS2 post, but I think the logic is possibly the right 
direction for the resulting data.

Not sure if this is the fix for your situation, but I hope so.

HTH,

Best,
Karl

On Apr 28, 2011, at 10:44 PM, Merrill, Jason wrote:

 Thanks Karl.

 There are some problems doing it that way if you have more than one
 namespace or the namespaces contain prefixes.  I developed a
 workaround based on various things I pieced together from Google, to
 disable the namespaces by using RegEx and inserting underscores for
 the :, which works for the default and any others with prefixes:

 var xmlString:String = myXMLList.toXMLString();

 // define the regex pattern to remove the namespaces from the string
 xmlString = xmlString.replace(new RegExp('*:','gi'),'_'); xmlString =
 xmlString.replace(new RegExp('xmlns=','gi'),'xmlns_='); var
 finalXML:XML = XML(xmlString);

 However, I would love to know why it has to be done this way. Seems
 kinda hackish.

 But it is kinda cool

RE: [Flashcoders] How to access MovieClip declared in one function in an event listener

2011-04-22 Thread Merrill, Jason
The only example that seems to work is to make the movieClip a global 
variable, 
which seems to me to violate everything I have ever been taught about 
programming. 
Which is to say that one should use global variables as sparingly as 
possible. 
I have written thousands of lines of code in my 30+ years as a programmer 
 and probably only used global variables
 once or twice before OOPs programming became the rage.

And you still shouldn't have to. I haven't followed this thread, and don't have 
time at the moment to dig in, but there still should be no need for a global 
variable in your application, if that makes you feel any better.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 




--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Why doesn't this work addChild() removeChild()

2011-04-22 Thread Merrill, Jason
A couple of things:

1. Var should be lower-case var.  You probably have it as var in your 
code and your e-mail client capitalized it for you (or you mis-typed), but if 
you want is to trouble-shoot, I would post it as it is in your code.  If it is 
Var in your code, it should throw a compiler error.
2. You are naming your instance name the same as the Class name Mort.  
Instance names are also usually lower case, classes upper case, which helps to 
prevent coding errors like this.
3. You are casting your instance as MovieClip when it is actually Mort.  
Your Mort class may extend MovieClip, but it would be better to cast it as 
Mort.

The following works for me:

import mortsPackage.Mort;

function createAndDestroyMortJustForFun():void
{
var mort:Mort = new Mort();
addChild(mort);
removeChild(mort);
}

createAndDestroyMortJustForFun();


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Abaffy
Sent: Friday, April 22, 2011 1:17 PM
To: 'Flash Coders List'
Subject: [Flashcoders] Why doesn't this work addChild() removeChild()

Hello,

 

Why doesn't this work??

 

In the same function

Var Mort:movieClip = new Mort();

addChild(Mort);

removeChild(Mort);

I get this error

The supplied DisplayObject must be a child of the caller.

 

 

 

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] What is up with adobes documentation?

2011-04-22 Thread Merrill, Jason
I miss the good old days when Adobe's local help was easy to access and find 
information. I find better results with Google.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman
Sent: Friday, April 22, 2011 1:52 PM
To: Flash Coders List
Subject: Re: [Flashcoders] What is up with adobes documentation?

I usually just put the class name with as3 into google (LocalConnection
as3) - it almost always gives me something useful.

I do generally agree that's it's often hard to find anything using Adobe's 
built in documentation tool - especially using the search field (which is local 
in CS5). Though you can just type your keyword into Flash's action dialog, or 
an as document, then click that little ? icon
- sometimes pulls it right up (after 17 update dialog boxes maybe).

I don't agree with your conclusions about competitiveness based on that 
difficulty, but yeah, it could be better.

Kevin N.


On 4/21/11 1:54 PM, allandt bik-elliott (thefieldcomic.com) wrote:
 Hey folks

 Every time I do a big search I seem to get a LOT of as2 links and when 
 I add
 as3 into the search terms I keep getting links to either a page 
 offering up a bunch of generic documentation pages (ie not direct 
 links to the class I'm looking for) or I get class documentation pages that 
 are only half full.
 Seriously do a search on the livedocs site for the  flvplayback class, 
 its shocking especially in light of the fact that there is no longer 
 any local docs installed with the software any more

 What is going on with this? With people (rightly or wrongly) bashing 
 flash in favour of the yet untried html5 spec, adobe can ill afford 
 this kind of crap support for the flash platform.

 Come on
 A
 ___
 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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Test if class is attached to document or symbol?

2011-04-21 Thread Merrill, Jason
 Basically, I needed a way to test if my class was assigned to the FLA as a 
 Document Class, 
or, if it was assigned to movieclip/sprite in library (export for 
actionscript) and added to stage manually.

This is one of those occasional questions where I would ask, even if you could 
do this, why would it really be necessary from an architectural point of view?  
I see what you are trying to accomplish technically from in your original post, 
but the broader architectural question comes into play and something may be off 
if you're trying to go this route.  That's just my thought.  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 




--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Merrill, Jason
Also, what is the font extension?  I have found fonts with an .otf extension 
(like MyriadPro-Regular.otf) don't seem to embed with code.  TTF fonts work for 
me though,  could that be the issue?  Also, in Flex (can't recall in the Flash 
framework off the top of my head), when you embed fonts, there is an option to 
embedAsCFF - if something like that is available, try toggling true or false, 
sometimes that makes a difference.  Lastly, if your font is otf or something 
non-TTF, there are some Myriad fonts for free out there that have the .ttf 
extension, you could try downloading one of those instead.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
Sent: Monday, April 11, 2011 3:11 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Problem embedding and using a font variant

 Well, the textField as library symbol will work fine -

I believe the font embedding works differently with library symbols, but I 
could be wrong.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
Sent: Monday, April 11, 2011 3:04 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Problem embedding and using a font variant

Well, the textField as library symbol will work fine - I tested that, but would 
rather keep it pure AS.


On Mon, Apr 11, 2011 at 2:56 PM, Merrill, Jason  
jason.merr...@bankofamerica.com wrote:

 I have found every now and then certain fonts don't play well with 
 Flash and there isn't much you can do if they don't work.  There are a 
 few fonts I have which simply don't embed, and the failure is silent.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
 Sent: Monday, April 11, 2011 2:25 PM
 To: Flash Coders List
 Subject: [Flashcoders] Problem embedding and using a font variant

 I'm using Myriad Pro for regular (non TLF) dynamic text fields in my 
 project and it's working fine. Now the client wants to use Myriad Pro 
 Condensed Bold for titles and I cannot get it to show up. I can't get 
 just Myriad Pro Condensed to show either. I don't have any problems 
 with Myriad Pro - I think the condensed variant/style is causing 
 issues. I've checked over and over that I have it embedded properly.

 Looks like Condensed Bold is treated as a style like bold but 
 there's no way to set a style on a text format object.

 I even tried setting the font style via html in the text content:
 textfild.htmlText = font face='Myriad Pro 
 Condensed'+mytext+/font; Didn't work.

 Any tips for using font variants like this? I'd rather keep doing it 
 dynamically like this and not have to create a textfield symbol in the 
 library to use (which would work). Also, this is an AS3/CS5 project.

 The TLF TextLayoutFormat has a font style property, but not sure if it 
 would work - but the last time I tried to use TLF my FLA wouldn't 
 compile because of some error with my assets SWC and the TLF SWC. So 
 I'd rather not go there.

 Maybe I can fake it by tweaking the scaleX property.

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

 --
 This message w/attachments (message) is intended solely for the use of 
 the intended recipient(s) and may contain information that is 
 privileged, confidential or proprietary. If you are not an intended 
 recipient, please notify the sender, and then please delete and 
 destroy all copies and attachments, and be advised that any review or 
 dissemination of, or the taking of any action in reliance on, the 
 information contained in or attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or 
 a solicitation of any investment products or other financial product 
 or service, an official confirmation of any transaction, or an 
 official statement of Sender. Subject to applicable law, Sender may 
 intercept, monitor, review and retain e-communications (EC) traveling 
 through its networks/systems and may produce any such EC to 
 regulators, law enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the 
 handling of EC, and EC may be archived, supervised and produced in 
 countries other than the country in which you are located

RE: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Merrill, Jason
 To support otf, it is necessary to tell the compiler the a certain font 
 manager is to use. 
 That's not all, you need to compile with the Free SDK not the Open Source 
 SDK. 
The reason is, that the AFEFontManager is not open source and not included 
into the Open Source SDK.

Woah, good to know!  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jens Struwe
Sent: Tuesday, April 12, 2011 2:39 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Problem embedding and using a font variant

Don't ask me for details, but just a week ago I got this running.

[Embed(source=myfont.otf, fontFamily=myfont, 
mimeType=application/x-font-opentype)]
public var MyFont : Class;

To support otf, it is necessary to tell the compiler the a certain font manager 
is to use. I put it into my build.xml, but its easy to find the according 
command line option in the docs.

mxmlc
file=${SRC}/Movie.as
...


fonts
manager class=flash.fonts.AFEFontManager/
/fonts
...

That's not all, you need to compile with the Free SDK not the Open Source SDK. 
The reason is, that the AFEFontManager is not open source and not included into 
the Open Source SDK. Took me a while to find it out.

Best,

Jens



Am 12.04.2011 08:04, schrieb Merrill, Jason:
 Also, what is the font extension?  I have found fonts with an .otf extension 
 (like MyriadPro-Regular.otf) don't seem to embed with code.  TTF fonts work 
 for me though,  could that be the issue?  Also, in Flex (can't recall in the 
 Flash framework off the top of my head), when you embed fonts, there is an 
 option to embedAsCFF - if something like that is available, try toggling true 
 or false, sometimes that makes a difference.  Lastly, if your font is otf or 
 something non-TTF, there are some Myriad fonts for free out there that have 
 the .ttf extension, you could try downloading one of those instead.

   Jason Merrill
   Instructional Technology Architect
   Bank of America  Global Learning





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of 
 Merrill, Jason
 Sent: Monday, April 11, 2011 3:11 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] Problem embedding and using a font variant

 Well, the textField as library symbol will work fine -

 I believe the font embedding works differently with library symbols, but I 
 could be wrong.

   Jason Merrill
   Instructional Technology Architect
   Bank of America  Global Learning





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt 
 Perkins
 Sent: Monday, April 11, 2011 3:04 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Problem embedding and using a font variant

 Well, the textField as library symbol will work fine - I tested that, but 
 would rather keep it pure AS.


 On Mon, Apr 11, 2011 at 2:56 PM, Merrill, Jason  
 jason.merr...@bankofamerica.com  wrote:

 I have found every now and then certain fonts don't play well with 
 Flash and there isn't much you can do if they don't work.  There are 
 a few fonts I have which simply don't embed, and the failure is silent.

   Jason Merrill
   Instructional Technology Architect
   Bank of America  Global Learning





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
 Sent: Monday, April 11, 2011 2:25 PM
 To: Flash Coders List
 Subject: [Flashcoders] Problem embedding and using a font variant

 I'm using Myriad Pro for regular (non TLF) dynamic text fields in my 
 project and it's working fine. Now the client wants to use Myriad 
 Pro Condensed Bold for titles and I cannot get it to show up. I 
 can't get just Myriad Pro Condensed to show either. I don't have 
 any problems with Myriad Pro - I think the condensed 
 variant/style is causing issues. I've checked over and over that I have it 
 embedded properly.

 Looks like Condensed Bold is treated as a style like bold but 
 there's no way to set a style on a text format object.

 I even tried setting the font style via html in the text content:
 textfild.htmlText = font face='Myriad Pro 
 Condensed'+mytext+/font; Didn't work.

 Any tips for using font variants like this? I'd rather keep doing it 
 dynamically like this and not have to create a textfield symbol in 
 the library to use (which would work). Also, this is an AS3/CS5 project.

 The TLF TextLayoutFormat has a font style property, but not sure if 
 it would work - but the last time I tried to use TLF my FLA wouldn't 
 compile

RE: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Merrill, Jason
I have found every now and then certain fonts don't play well with Flash and 
there isn't much you can do if they don't work.  There are a few fonts I have 
which simply don't embed, and the failure is silent.  

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
Sent: Monday, April 11, 2011 2:25 PM
To: Flash Coders List
Subject: [Flashcoders] Problem embedding and using a font variant

I'm using Myriad Pro for regular (non TLF) dynamic text fields in my project 
and it's working fine. Now the client wants to use Myriad Pro Condensed Bold 
for titles and I cannot get it to show up. I can't get just Myriad Pro 
Condensed to show either. I don't have any problems with Myriad Pro - I 
think the condensed variant/style is causing issues. I've checked over and 
over that I have it embedded properly.

Looks like Condensed Bold is treated as a style like bold but there's no 
way to set a style on a text format object.

I even tried setting the font style via html in the text content:
textfild.htmlText = font face='Myriad Pro Condensed'+mytext+/font; 
Didn't work.

Any tips for using font variants like this? I'd rather keep doing it 
dynamically like this and not have to create a textfield symbol in the library 
to use (which would work). Also, this is an AS3/CS5 project.

The TLF TextLayoutFormat has a font style property, but not sure if it would 
work - but the last time I tried to use TLF my FLA wouldn't compile because of 
some error with my assets SWC and the TLF SWC. So I'd rather not go there.

Maybe I can fake it by tweaking the scaleX property.

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Merrill, Jason
 Well, the textField as library symbol will work fine -

I believe the font embedding works differently with library symbols, but I 
could be wrong.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
Sent: Monday, April 11, 2011 3:04 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Problem embedding and using a font variant

Well, the textField as library symbol will work fine - I tested that, but would 
rather keep it pure AS.


On Mon, Apr 11, 2011 at 2:56 PM, Merrill, Jason  
jason.merr...@bankofamerica.com wrote:

 I have found every now and then certain fonts don't play well with 
 Flash and there isn't much you can do if they don't work.  There are a 
 few fonts I have which simply don't embed, and the failure is silent.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning





 ___


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins
 Sent: Monday, April 11, 2011 2:25 PM
 To: Flash Coders List
 Subject: [Flashcoders] Problem embedding and using a font variant

 I'm using Myriad Pro for regular (non TLF) dynamic text fields in my 
 project and it's working fine. Now the client wants to use Myriad Pro 
 Condensed Bold for titles and I cannot get it to show up. I can't get 
 just Myriad Pro Condensed to show either. I don't have any problems 
 with Myriad Pro - I think the condensed variant/style is causing 
 issues. I've checked over and over that I have it embedded properly.

 Looks like Condensed Bold is treated as a style like bold but 
 there's no way to set a style on a text format object.

 I even tried setting the font style via html in the text content:
 textfild.htmlText = font face='Myriad Pro 
 Condensed'+mytext+/font; Didn't work.

 Any tips for using font variants like this? I'd rather keep doing it 
 dynamically like this and not have to create a textfield symbol in the 
 library to use (which would work). Also, this is an AS3/CS5 project.

 The TLF TextLayoutFormat has a font style property, but not sure if it 
 would work - but the last time I tried to use TLF my FLA wouldn't 
 compile because of some error with my assets SWC and the TLF SWC. So 
 I'd rather not go there.

 Maybe I can fake it by tweaking the scaleX property.

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

 --
 This message w/attachments (message) is intended solely for the use of 
 the intended recipient(s) and may contain information that is 
 privileged, confidential or proprietary. If you are not an intended 
 recipient, please notify the sender, and then please delete and 
 destroy all copies and attachments, and be advised that any review or 
 dissemination of, or the taking of any action in reliance on, the 
 information contained in or attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or 
 a solicitation of any investment products or other financial product 
 or service, an official confirmation of any transaction, or an 
 official statement of Sender. Subject to applicable law, Sender may 
 intercept, monitor, review and retain e-communications (EC) traveling 
 through its networks/systems and may produce any such EC to 
 regulators, law enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the 
 handling of EC, and EC may be archived, supervised and produced in 
 countries other than the country in which you are located. This 
 message cannot be guaranteed to be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of 
 America Corporation. Securities and Insurance Products: * Are Not FDIC 
 Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank 
 Deposit * Are Not a Condition to Any Banking Service or Activity * Are 
 Not Insured by Any Federal Government Agency. Attachments that are 
 part of this EC may have additional important disclosures and disclaimers, 
 which you should read.
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender 
 you consent to the foregoing.
 ___
 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

[Flashcoders] Flex 4 Skinning 9-Slice Scaling of Bitmaps

2011-04-06 Thread Merrill, Jason
I posted this on Flexcoders, but didn't get any responses.

I am skinning a Spark Panel with a Flex 4 Skin MXML class, and using some
bitmaps for fills. I have researched and seem to be doing it right, but the
graphics in the filled areas get stretched anyway. I have defined the
rectangular area of the scalable area of the bitmaps correctly as far as I can
tell. What am I doing wrong?

The following code is the part of the Spark Panel for the title bar fill:

!-- layer 0: title bar fill --
s:Rect id=tbFill left=0 right=0 top=0 bottom=1 height=20
s:fill
mx:BitmapFill source=@Embed('assets/images/panel1_titleAreaWithTab.png',
scaleGridTop='17', scaleGridBottom='19', scaleGridLeft='175',
scaleGridRight='485') /
/s:fill
/s:Rect

The following is for the background fill of the Spark Panel:

!-- layer 2: background fill --
!--- Defines the appearance of the PanelSkin class's background. --
s:Rect id=background left=1 top=27 right=1 bottom=1
s:fill
s:BitmapFill source=@Embed('assets/images/panel1_background.png',
scaleGridTop='45', scaleGridBottom='60', scaleGridLeft='15',
scaleGridRight='485') /
/s:fill
/s:Rect


I've also tried as an alternative to BitmapFill, using an mx:Image 
width=100% height=100%/ tag and embed metadata:

[Embed(source=assets/images/panel1_titleAreaWithTab.png, scaleGridTop='17',
  scaleGridBottom='19', scaleGridLeft='175', 
scaleGridRight='485')]



What am I missing? Thanks,

Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning





___

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] F4V progressive download?

2011-04-01 Thread Merrill, Jason
I believe F4V is for H.264 video, AAC or MP3 audio only.  Could that be the 
reason?

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of J.C. Berry
Sent: Friday, April 01, 2011 7:11 PM
To: Flash Coders List
Subject: [Flashcoders] F4V progressive download?

Hello all,
I have googled this for the last few hours and have not found a full answer.
I have a progressive download player and it works fine with FLV's, but when I 
encode my video to F4V's I cannot seem to get any video loading into the page. 
I published to FP10 from CS5 (and video from CS5 Media Encoder). Any help would 
be greatly appreciated!

--
J.C. Berry, M.A.
UI Developer
619.306.1712(m)
jcharlesbe...@gmail.com
portfolio: http://Client:maz...@www.mindarc.com


This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. 
?? 2510-2521 and is legally privileged. This information is confidential 
information and is intended only for the use of the individual or entity named 
above. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  1   2   3   4   5   6   7   8   9   10   >