Re: [Flashcoders] Re:Adjust .swf to 100 % to screen size

2006-09-07 Thread Mike Britton

Jorge, here's an example of using ExternalInterface to send stage
dimensions to JavaScript.

http://www.randomusa.com/flash/downloads/externalInterface_screenDimensions.zip

Hope I'm not OT on this one.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Job postings ok?

2006-09-07 Thread Mike Britton

imho it's a distraction from the point of the list, which is coding,
and for this reason it's borderline unethical.  Just my opinion.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [JOB] Sr. Flash/AS Programmers (4), Los Angeles, CA | 70-125k

2006-09-07 Thread Mike Britton

This is a ridiculous analogy, but to me, a job post here is kind of
like jumping up on stage in the middle of a play with an advertisement
for a nearby coffee shop.  You have the target demographic's
attention, but not in context.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Job postings ok?

2006-09-07 Thread Mike Britton

I'm surprised people are ok w/ job posts here.

if (!codeRelatedPost)
   offTopic = true;

Can a FlashJobPosts list be started?  Job posts show us options, sure,
but they aren't about code, they are about jobs.


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash + Web Services problems

2006-08-31 Thread Mike Britton

What does your crossdomain.xml file look like?

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash + Web Services problems

2006-08-31 Thread Mike Britton

Try adding a domain=* attribute to cross-domain-policy, and a
allow-access-from domain=* / node to your cross-domain-policy
nodes.

Let me know if this works so I can feel a smug sense of satisfaction.


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash + Web Services problems

2006-08-31 Thread Mike Britton

Like this:

?xml version=1.0?
cross-domain-policy domain=* /
allow-access-from domain=somedomain secure=false  /
allow-access-from domain=anotherdomain secure=false  /  
allow-access-from domain=* /
/cross-domain-policy


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-29 Thread Mike Britton

All I have to say about this is tellTarget and _global


tellTarget was deprecated in Flash 5 and has been removed in AS3.  Not
sure what you mean about _global, or why the conversation is over.

If the original poster wants to build scalable and easily maintained
apps, suggesting he use tellTarget and _global to accomplish this is
questionable.  Maybe I'm missing something.


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] mvc dillema

2006-08-29 Thread Mike Britton

You could use EventDispatcher in the Model, View and Controller, and
send the XML data to your Model through your Controller.  When the
Model changes, make it dispatch an event that updates the view, etc.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] UML Diagrams

2006-08-25 Thread Mike Britton

It also has round trip AS2 code generation.  Gotta love that.

http://www.5etdemi.com/blog/archives/2005/11/uml-to-as2-generator-for-enterprise-architect/


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Best way to learn OO Analysis and Design with ActionScript

2006-08-18 Thread Mike Britton

I second James' recommendation of Headfirst Design Patterns.  I also
recommend downloading an Enterprise Architect trial
http://www.sparxsystems.com/ or Poseidon
http://gentleware.com/index.php and learning some UML.  It helps me to
step outside of the code and focus on the logic behind the business
decisions.  Understanding sequence diagrams (user clicks button,
event is passed to manager, etc) first can help you sketch out class
diagrams that eventually turn into really scalable systems.  Then
later, people can wade right in and add to it.

Most important: try not to learn everything at once.  Give your brain
time to wrap around small chunks of new info.

My .02


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Mike Britton

$this-test2();

hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Mike Britton

?php

class testClass
{
function testClass() {
$this-methodTable = array(
test1 = array(
description=I return 'hello world',
access=remote,
arguments=array(),
returntype=string),

test2 = array(
description=I return 'hello',
access=remote,
arguments=array(),
returntype=string)
);
}

function test1() {
return $this-test2(). world;
}

function test2() {
return hello;
}
}

?

html
headtitle/title/head
body
?php

include('testClass.php');

$myTest = new testClass();
$message  = $myTest-test1();
echo $message;



?
/body
/html




Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Mike Britton

You need to create a methodTable array in the constructor of every
class you're using with AMFPHP.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Mike Britton

I always put my methodTable in the constructor, not include it.  This
could be the source of the problem.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: quotes in XML

2006-08-09 Thread Mike Britton

Are you using remoting?  Check out AMFPHP: http://www.amfphp.org/

You don't need to use the XML object to send your POST, just to receive it.
Create your XML object after you get your result back.

var my_xml = new XML();my_xml.onLoad = function(success){if (success){trace(
this);}}my_xml.load(yourScript.php);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ActionScript Application Framework

2006-07-18 Thread Mike Britton

We definitely can do this, but it may amount to reinventing the wheel.

Do you suggest this in lieu of Cairngorm and ARP?  Are there things about
these frameworks that make them undesirable?

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP: CrossDomain

2006-07-17 Thread Mike Britton

To skirt this issue, I use AMFPHP proxy classes on my swf's host
server to talk to other servers or snap up RSS files.  Not sure about
filesystem stuff though.  It seems like that would be a security issue
on the backend as well as the front!

Feel free to mail me offlist if you want to check out one of the PHP
proxy classes.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-16 Thread Mike Britton

I would build a wrapper MovieClip class extension for your compiled
SWF, and use LocalConnection to send/receive the values.  That is, use
LocalConnection in both the compiled swfs and in the wrapper.  The
wrapper is the receiver and the compiled clips are the broadcasters.

http://www.osflash.org/localconnection

hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-15 Thread Mike Britton

A couple questions for you Jeff:

1. What version of Flash player are you targeting?
2. How are you generating the swfs?


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Php Host

2006-07-12 Thread Mike Britton

I use FutureQuest (http://www.futurequest.net/) and love their service.
I've never had a problem for over four years.  They have PHP, MySQL and
Ruby; shared and dedicated hosting; I can't say enough good things about
them quite honestly.

hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] IIS vs Apache: transferring of vars from swf to PHPproblem?

2006-07-12 Thread Mike Britton

Bernard is right.  Take a look at these resources before you go live with
your application:

http://del.icio.us/search/?all=PHP+security


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods

2006-07-06 Thread Mike Britton

Hey Julian,

I feel your pain.  Take a look at this example:
http://www.randomusa.com/flash/downloads/tojulian.zip

Mike Britton
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods

2006-07-06 Thread Mike Britton

Perhaps, but you never know: someone on this list may have a better
solution for your problem.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Sound markers

2006-06-27 Thread Mike Britton

Cuepoints can be used with mp3 as well as flv.


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Fjax... does this seem ridiculous to anyone else?

2006-06-23 Thread Mike Britton

Seems like a hack to me, from both the AJAX programming and Flash
programming perspective.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] growing animation

2006-06-20 Thread Mike Britton

It looks like a lot of onEnterFrame (to position the flower and adjust as it
grows) and setInterval for the spawning of the branches.  I think the text
generation uses setInterval, maybe 100 milliseconds to make it seem like
it's being output by a computer.  Really beautiful work, I think.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Yahoo! Maps Flash API

2006-06-14 Thread Mike Britton

I'm getting started with the Yahoo! Flash API, and noticed their Maps
mxp doesn't include com.yahoo.maps.widgets.NavigatorWidget.  Looks
like Yahoo! needs to update their MXP to include this code since
there's an article on Adobe about how to use it.

http://www.adobe.com/devnet/flash/articles/yahoo_mashup_02.html

If anyone's run into this, let me know (and if you have this MXP with
com.yahoo.maps.widgets.NavigatorWidget included, I'd appreciate it
someone could send this to me offlist).


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash coders content degrading

2006-06-13 Thread Mike Britton

Any way you look at it, we're building a searchable repository of both
newb and advanced tips.  Flash programmers aren't Nazis, marching
together as some kind of unified front against all newbies.  A
community has elements from all skill levels, and if a newbie has a
coding question for the group, I don't see why it shouldn't be asked.
If the newbie hasn't searched for the answer before posting, he/she
should receive a mild electric shock and we can be done with it.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash coders content degrading

2006-06-13 Thread Mike Britton

I recommend avoiding flashvars and loading the XML using XML2
http://www.gskinner.com/blog/archives/2004/02/the_ultimate_as.html.



Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Mike Britton

I recommend going with ExternalInterface.  No external files needed:

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

However the kit is good and definitely works!

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash coders content degrading

2006-06-12 Thread Mike Britton

Not to mention the ability to search through messages (or digests) for
keywords of interest.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Stretching Designs - Coded?

2006-06-11 Thread Mike Britton

Aaron, thanks for putting together that example.  I made an example of
keeping an element in the center of the Stage using zmc_tween along
with your technique, something I started doing to add a little depth
when the user resizes.  Just eye candy.  The attachment is your
example with zmc_tween being used on another clip on stage.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] anyone using mCom?

2006-06-07 Thread Mike Britton

Could someone please email these .mxps to me so I can do a visual inspection?

;-)

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] mp3 play back being sped up

2006-06-06 Thread Mike Britton

The sample rate shopuld be 44.1Khz.  You may need to resample your audio
before you create the mp3.

I've also had problems using variable bitrate.


hth,

Mike Britton
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] self published.

2006-06-01 Thread Mike Britton

Red5 requires a jvm (or jre) on the server, if I read correctly.  I've been
trying to get my host to install one for shared hosting accounts, and would
use this red5 over localconnection if I were lucky enough to have java.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] re: self published

2006-05-31 Thread Mike Britton

Good luck Thomas.  From a high-level perspective, your server flash
element can create a localconnection to receive, and your client flash
element can do the sending.  In the data can be the type of action
required, allowing for a switch statement to route it properly, as well as
the data itself (XML or whatever).

Keep in mind that localconnections of the same name will break if both are
open at the same time.  If you have concurrent instances of your application
open, you'll observe this problem.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] self published.

2006-05-30 Thread Mike Britton

Someone please correct me if I'm wrong, but it would be possible to make a
connection between servers using LocalConnection.  You'd have to ensure your
client swf was assigned an id to authenticate their application to access
the data.  There would have to be a security model, in other words.

Once again I've never done this so take my advice with a grain of salt, but
I'm sure interesting things are possible if they are sophisticated enough to
drop a crossdomain.xml to give you the ability to distribute components that
interact with your data.

In this case I have to say Flash would make a compelling choice for your
idea.


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Parsing

2006-05-25 Thread Mike Britton

How many nodes are in the XML file?

Can you post the code that does the parsing?

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Parsing

2006-05-25 Thread Mike Britton
) {
// create main menu after successful loading of XML
if (ok) {
this._parent._parent.loading._alpha = 0;
create_menu();
} else {
trace(menu_interactive_xml.getBytesLoaded());
}
};
//

counter = 0;
function create_menu() {
while (countermenu_interactive_xml.firstChild.childNodes.length)
{
attachMovie(global_button, btn+counter, counter+1);
//place the buttons
set(btn+counter+._x, counter*97-97);
row = 1;
if(counter3){
row = 2;
set(btn+counter+._y, btn1._y + 82);
set(btn+counter+._x, counter*97-485);
}
if(counter7){
row = 3;
set(btn+counter+._y, btn1._y + 164);
set(btn+counter+._x, counter*97-873);
}
if(counter11){
row = 4;
set(btn+counter+._y, btn1._y + 246);
set(btn+counter+._x, counter*97-1261);
}
if(counter15){
row = 5;
set(btn+counter+._y, btn1._y + 328);
set(btn+counter+._x, counter*97-1649);
}
set(btn+counter+.row, row);
set(btn+counter+.column, counter+1-((row-1)*4));
btn1._x = 0;
// set the button's text
set(btn+counter+.the_title,
menu_interactive_xml.firstChild.childNodes[counter].attributes.title);
set(btn+counter+.the_client,
menu_interactive_xml.firstChild.childNodes[counter].attributes.client);
//set(btn+counter+.image0,

menu_interactive_xml.firstChild.childNodes[counter].firstChild.childNodes);

//trace(btn1.image);
imgcounter = 0;
set(btn+counter+.totalImages,

menu_interactive_xml.firstChild.childNodes[counter].firstChild.childNodes.le
ngth);
totalImages =

menu_interactive_xml.firstChild.childNodes[counter].firstChild.childNodes.le
ngth;
//trace(totalImages);
//trace(imgcounter);
while (imgcounter=totalImages) {
set(btn+counter+.image+imgcounter,

menu_interactive_xml.firstChild.childNodes[counter].firstChild.childNodes[im
gcounter].childNodes);
imgcounter++;
}
//set(btn+counter+.btnNum, counter);
// load the button image
var mcLoader:MovieClipLoader = new MovieClipLoader();

mcLoader.loadClip
(images/interactive/thumbs/+menu_interactive_xml.firstChi
ld.childNodes[counter].attributes.buttonIMAGE,
this[btn+counter].imageLoader.btnImage);

counter++;
}
_parent._visible = true;
info_clip._visible = false;
}


--

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Britton
Sent: Thursday, May 25, 2006 10:18 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML Parsing

How many nodes are in the XML file?

Can you post the code that does the parsing?

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ads inside a SWF

2006-05-07 Thread Mike Britton

Do it!

(Disclaimer: I have no legal training...)

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:del.icio.us API

2006-05-05 Thread Mike Britton

This technique is a bit sketchy though.


True, and their API isn't finalized.  There are few things more
soul-shattering than having your XML-parsing wrapper rendered obsolete
without warning.

Mike



On 5/5/06, elibol [EMAIL PROTECTED] wrote:

It can be done with AS2.

The easiest way would be to build an API around the query strings.

_xml.load(http://del.icio.us/api/posts/get?tag=humor);

This technique is a bit sketchy though.

M.

On 5/4/06, Mike Britton [EMAIL PROTECTED] wrote:

 Mike, can it be done with AS2?

 Mike Britton



 On 5/4/06, Troy Rollins [EMAIL PROTECTED] wrote:
 
  On May 4, 2006, at 1:01 PM, Mike Chambers wrote:
 
   Also, I am doing this in AS3, not AS2.
 
  You wouldn't happen to be doing this in AS3 on a Mac, would you
  Mike?  ;-)
 
  (Still waiting for a flex beta for Mac...)
  --
  Troy
  RPSystems, Ltd.
  http://www.rpsystems.net
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


 --
 Mike
 --
 http://www.mikebritton.com
 http://www.mikenkim.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:del.icio.us API

2006-05-04 Thread Mike Britton

Mike, can it be done with AS2?

Mike Britton



On 5/4/06, Troy Rollins [EMAIL PROTECTED] wrote:


On May 4, 2006, at 1:01 PM, Mike Chambers wrote:

 Also, I am doing this in AS3, not AS2.

You wouldn't happen to be doing this in AS3 on a Mac, would you
Mike?  ;-)

(Still waiting for a flex beta for Mac...)
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] retrieving names of external files in a folder (or is there something similar to Directors getNthFileNameInFolder())

2006-05-03 Thread Mike Britton

I made a very basic directory scraper class way back.  I use this with AMFPHP.

http://www.randomusa.com/flash/downloads/directoryScraper.zip

hth,

Mike


On 5/3/06, Mikael Wirén [EMAIL PROTECTED] wrote:

Hi gang,
I´m slowly finding the pros (can admit there are some =) and cons of Flash

I´m lookning for a method similar to Directors getNthFileInFolder().
Atm, i´m using a dirty solution, SendAndLoad(myFiles.php, myObj, POST) with a 
PHP file returning a variable containing the files in that folder.
Works well enough for the web but it feels like overkill for a standalone 
player, or?
Is there a simpler way to do this?

/Micke









___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:del.icio.us API

2006-05-03 Thread Mike Britton

The API is under development and it requires authentication.  I looked
into it and it's pretty simple:

http://del.icio.us/api/posts/get?tag=humor

...returns an XML object like this:

posts dt=2006-05-03 tag=humor user=
post href= description= hash= others=2 tag=humor
time=2006-05-03T15:14:14Z/
/posts

Pretty easy to consume with Flash, but I'm not sure how to 1)
authenticate and 2) prevent being banned because of having a weird
user-agent.

hth


Mike


On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi
Has anyone incorporated the  del.icio.us API or similar social bookmarking 
feature into any of their projects?

Just looking for examples and ideas at the moment and what is/isn't possible.

Thanks in advance
Jim Bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:del.icio.us API

2006-05-03 Thread Mike Britton

This may be a dumb question, but how would HTTP basic authentication
be handled through AS2?  Wouldn't it have to go through some kind of
server-side proxy?

Mike Britton



On 5/3/06, Mike Chambers [EMAIL PROTECTED] wrote:

I am in the process of building an ActionScript 3 library to wrap this.

Every API should work, although:

1. You have to handle HTTP Basic authentication, either via the browser
(automatic) or ActionScript.

2. they currently don't have a crossdomain.xml file, so you have to go
through a proxy.

mike chambers

[EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:
 Hi
 Has anyone incorporated the  del.icio.us API or similar social bookmarking 
feature into any of their projects?

 Just looking for examples and ideas at the moment and what is/isn't possible.

 Thanks in advance
 Jim Bachalo

 [e] jbach at bitstream.ca
 [c] 416.668.0034
 [w] www.bitstream.ca
 
 ...all improvisation is life in search of a style.
  - Bruce Mau,'LifeStyle'
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Required Actionscript Programmers

2006-05-02 Thread Mike Britton

As a precautionary measure, I never work with people who use the word 'gr8'.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] eLearning Standards Guide?

2006-05-02 Thread Mike Britton

Although e-learning is interesting, a call for these kinds of
standards is probably more appropriate on a design list or discussion
forum, not flashcoders imho (please correct me if I'm wrong).  That
is, unless the question relates to coding or best practices.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] MXNA

2006-04-28 Thread Mike Britton

What's going on with MXNA?  It looks like the server is down.

http://weblogs.macromedia.com/mxna/index.cfm


Mike
--
http://www.mikebritton.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash Layout Manager

2006-04-26 Thread Mike Britton
I hear ya.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ExternalInterface

2006-04-19 Thread Mike Britton
Sorry about the crappily-formatted code - I'm writing it in GMail!

FLASH:

import flash.external.ExternalInterface;

class blah
{
var instance:Object = new Object();
// Function alias for JavaScript
var methodName:String = goToCuePoint;
// Function alias for Actionscript
var method:Function = setPlayIndexByTrack;

function blah() {
ExternalInterface.addCallback(methodName, instance, method);
}

function setPlayIndexByTrack() {
  trace(dude, JS just called my AS!);
}

}


JS:

script language=JavaScript

function getNextTrack() {
thisMovie(mediaPlayer).goToCuePoint();
}

function thisMovie( movieName ) {
if (navigator.appName.indexOf(Microsoft) != -1) {
return window[movieName];
} else {
return document[movieName];
}
}

/script



hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE:Flashcoders] Extending Array Question

2006-04-18 Thread Mike Britton
class com.ArrayExtension extends Array
{

   public function ArrayExtension()
   {
   super()
var argString = arguments[0].split(,);

   for(var i=0; i argString.length; i++)
   push(argString[i]);

   }

}

Usage:

var arEx = new ArrayExtension(one,two,three);
trace(arEx.length);



hth,

Mike


On 4/18/06, Robert Leisle [EMAIL PROTECTED] wrote:
 You could also do:

 var myArray:ArrayExtension = new ArrayExtension();

 myArray.push(Hello, Goodbye, World);

 same result as doing them separately.



 [EMAIL PROTECTED] wrote:

 Thanks, that will work. So there is no definitive way to add the values all 
 at once, i.e. [1,4,5,76,3] when extending an Array?
 
 Thanks again.
 
 
 
 Ian Thomasn wrote:
 Hi there (whoever you are!)
 
 Your problem is that the [1,2,3] initialiser syntax is actually a
 short cut for creating a new Array() object, not an ArrayExtension().
 So you're replacing the object you just created with new().
 
 What you need to do is to _modify_ your ArrayExtension() object, not 
 replace it.
 
 If you try:
 
 var myArray:ArrayExtension = new ArrayExtension();
 
 myArray.push(Hello);
 myArray.push(Goodbye);
 myArray.push(World);
 
 That should sort your problem.
 
 HTH,
  Ian
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 

 --
 ~
 Bob Leisle
 Headsprout Software  Engineering
 http://www.headsprout.com
 Where kids learn to read!


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Local Connection Object problem

2006-04-11 Thread Mike Britton
I've also had problems when there's more than one instance of your
application active.  If the name of the LC is the same across applications
it can result in windows stealing LC's from each other.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] PayPal issues

2006-04-01 Thread Mike Britton
Thanks Dave, that's good to know.  You have to love when a company stops
supporting a product and fails to notify us about it.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Recommendation on good AS 2.0 framework code?

2006-03-29 Thread Mike Britton
ARP: http://www.osflash.org/arp

Cairngorn:
http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1_02.html

William Gibson: http://en.wikipedia.org/wiki/William_Gibson_%28novelist%29 -
respect!

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] 8.5 player and javascript

2006-03-27 Thread Mike Britton
I suggest switching to the flash.external (ExternalInterface) package.
 This seems to be *the way* to do it in AS3.  I use it currently in
AS2 and it works really well.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Actionscript 2 - suitable for designers?

2006-03-27 Thread Mike Britton
Knowing AS2 well would also make it easier to learn architectural
frameworks for Flash applications (ARP and Cairngorn).  These allow
you to fully experience the benefits of OOP, and you get the added
bonus of a developer community around any given framework to answer
specific questions.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Accordion Component

2006-03-11 Thread Mike Britton
Here's some code I snipped out of one of my apps that uses the accordion.
I'm sure it can be simplified.

var childWidth:Number = 300;
var childHeight:Number = 200;

main_ac.setSize(300,400);

main_ac.createChild(View,latest,{label:  Posts});
main_ac.createChild(View,latestComments,{label:  Latest Comments});
main_ac.createChild(View,categories,{label:  Categories});
main_ac.createChild(View,authors,{label:  Authors});
main_ac.createChild(View,favorites,{label:  Favorite Entries});

latest_lb = main_ac.latest.createChild(EnhancedDataGrid, latest_lb);
latest_lb.setSize(childWidth,childHeight);

latestComments_lb = main_ac.latestComments.createChild(EnhancedDataGrid,
latestComments_lb);
latestComments_lb.setSize(childWidth,childHeight);

categories_lb = main_ac.categories.createChild(EnhancedDataGrid,
categories_lb);
categories_lb.setSize(childWidth,childHeight);

authors_lb = main_ac.authors.createChild(EnhancedDataGrid, authors_lb);
authors_lb.setSize(childWidth,childHeight);

favorites_lb = main_ac.favorites.createChild(EnhancedDataGrid,
favorites_lb);
favorites_lb.setSize(childWidth,childHeight);



On 3/11/06, Karthik [EMAIL PROTECTED] wrote:

  I need to set up an accordion component but its the
  first time that i deal with it, where can i learn how
  to uset it in deep form?

 Have you checked the help files? I'm pretty sure it comes with a good
 example and a snippet or three.

 -K
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Flex / ActionScript Podcasts?

2006-03-10 Thread Mike Britton
Eric Dolecki's is the best out there right now.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Flex / ActionScript Podcasts?

2006-03-09 Thread Mike Britton
I did one, but I think the most interesting development podcasts
involve more than one person.  Conversation between more than one
developer is compelling; the pontifications of one person are weak, at
best.  I'm still trying to figure out the medium.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE: rich text box

2006-03-06 Thread Mike Britton
This one looks nice:

http://www.flashloaded.com/flashcomponents/flashtexteditor/

Pricey though for a component.

hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Newbiew question AS3

2006-03-06 Thread Mike Britton
Adobe Labs http://labs.macromedia.com/ is the place to go for demos and
examples.

 there isn't a build of flex for osx

It would be consistent with Eclipse's cross-platform standing if one were
eventually made available.  Flex Builder 2 should install on any machine
ColdFusion can install on.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RIA patent granted

2006-03-02 Thread Mike Britton
All your innovations are belong to us

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:Add tracking to dynamic text

2006-03-01 Thread Mike Britton
I've never heard of this being possible with dynamic text fields.  With
regular text fields you simply adjust the value with the IDE, of course.  If
it is possible I'd like to know myself.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] {Business/Workflow} The use of mock prototypes

2006-03-01 Thread Mike Britton
Thorough prototyping is so key.  I made a prototyping tool for
internal use that allows people to discuss prototype screens.  This
allows the designer to follow a discussion between users, creating
elements as they are requested.  I got the inspiration from success
with FLiP - style development
http://www.fusebox.org/index.cfm?fuseaction=fusebox.faq#gq20, which
uses something called devnotes
http://www.grokfusebox.com/index.cfm?ref=showGoodies.  Benefits are
the user knows what they are getting -- no surprises -- and the
requirements can be traced from devnotes all the way through the code
if necessary.  The public forum also helps eliminate the closed-door
design decisions that cause conflict.  Anyway this is how I prototype
so maybe it can give others some ideas.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] mailto is not working

2006-02-27 Thread Mike Britton
Better yet, don't use mailto: at all.  Personally I don't like when Outlook
opens from links.  It's disruptive.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Attaching code to buttons already on stage

2006-02-27 Thread Mike Britton
var universalButtonHandler = new Object();
universalButtonHandler.click = function(eventObject) {
trace(click!);
trace(eventObject.target); // get button name
// Logic here
}
btn00.addEventListener(click, universalButtonHandler);
btn01.addEventListener(click, universalButtonHandler);


hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How often do you use components? Or do you use it at all?

2006-02-27 Thread Mike Britton
I meant distribution / EULA concerns, not the ability to look at the code.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Focus within the Browser

2006-02-27 Thread Mike Britton
No - just when you receive it.  When you lose focus, onblur is called.  The
event handler would look like

var obj00 = document.getElementById (oid);
obj00.onblur = function() {
alert(Embed tag has lost focus);
}



On 2/27/06, Claudia Barnal [EMAIL PROTECTED] wrote:

 Thanks Mike,

 I'm going to try this out as soon as possible. I had a quick look at it,
 for
 which I have only one question. Would this handle both when you loose
 focus
 and when you receive it?

 _
 Are you using the latest version of MSN Messenger? Download MSN Messenger
 7.5 today! http://messenger.msn.co.uk

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Focus within the Browser

2006-02-27 Thread Mike Britton
I would look at onClick as the event handler if a mouse click is the entry
point.  Both object and embed tags support it, but don't forget that the
code I showed only works in Mozilla if the embed tag is taken out of the
object tag.  I'd have to work more with it to come up with anything more
specific.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How often do you use components? Or do you use it at all?

2006-02-26 Thread Mike Britton
I use the v2 components because I really don't like reinventing the wheel.
Unless you're creating a component set as a standalone product, I don't see
the value in making your own combobox, data grid, etc.  Educational, but a
waste of time.

Another reason I use the v2's: they will be versioned, and resulting changes
will be less involved than switching component sets in your application from
your own home-spun to something else.

I'll second Michael's wish-list item.  If component updates were frequent
enough to warrant it and the EULA were less rigid, automatic update of comps
would be a great benefit.  Hey Adobe, why don't you go ahead and open source
those babies so we can really share our applications?

my .02

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How can I display a tall document?

2006-02-22 Thread Mike Britton
Make a ScrollPane width and height equal to Stage.width and
Stage.height of a fullscreen app and load a clip containing your text
field into the ScrollPane.

You could also send the new textfield height to JavaScript and
dynamically resize the object and embed (I think, though I'd probably
never do it this way).

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using Cairngorm, good idea?

2006-02-13 Thread Mike Britton
I think ARP http://osflash.org/arp would work well with this, too.  It would
make it easier to reapproach the code later.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MovieclipTween120.mxp from http://laco.wz.cz/tween/

2006-02-09 Thread Mike Britton
Fuse is giving this error:

Error opening URL http://www.mosessupposes.com/2004/sequencer/version.xml;

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MovieclipTween120.mxp from http://laco.wz.cz/tween/

2006-02-09 Thread Mike Britton
Apologies to this list -- I solved the problem.  Just change the path to the
version xml file to your local path

com\mosesSupposes\util\sequencer\documentation

in Sequencer.as.

Works great!

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MovieclipTween120.mxp from http://laco.wz.cz/tween/

2006-02-09 Thread Mike Britton
I found the download here:

http://www.mosessupposes.com/2004/sequencer/index2.html

This ARE the right files, right?


Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to alter all movieClips with as2

2006-02-02 Thread Mike Britton
class someObj extends MovieClip
{
public var someProperty:String;

function someObj() {}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] v2 components - are you kidding me?

2006-02-01 Thread Mike Britton
mCom components are an attractive alternative:

http://www.metaliq.com/mCOM/

These were formerly known as 'glic'.  Supposedly they are easier to skin, too.


Mike


On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
 'something that can play nicely with stuff that other people are likely to
 use'

 well, that's a good point, but it's hard to tell which stuff people are
 likely to use, allthough macromedia's frameworks seems a good bet.

 but perhaps take a look at some opensource projects, i think that's a
 definitely a nice way to play. I haven't looked much into it, but aswing (
 http://www.osflash.org/aswing) seems to be promising.

 But perhaps (v2) components aren't that evil though, I should get more into
 it someday :).

 -Meinte

 On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote:
 
  Meinte,
 
  Thanks for the tip. I don't intend to use v2 components myself. I am
  trying to make a component for distribution, and I would like to make
  something that can play nicely with stuff that other people are
  likely to use.
 
  Jason
 
  On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED]
  wrote:
 
   From: Meinte van't Kruis [EMAIL PROTECTED]
   Subject: Re: [Flashcoders] v2 components - are you kidding me?
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Message-ID:
 [EMAIL PROTECTED]
   Content-Type: text/plain; charset=ISO-8859-1
  
   then maybe your question should be:
  
   Why do I use V2 components?
  
   -Meinte
  
   (the first time I even tried using components was when I discovered the
   things it put on the highest level(of _root in that case), plus i saw
   my
   flash movie go from 5 to 60kb, I never looked at components again after
   that.)
  
   On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote:
  
   My main question is: why does opening a v2 combobox subsequently cause
   an onRollOut event to fire every time I click a button or movieclip,
   and is there any way to prevent that?
  
   Some other questions I have are:
   Is there anything that the combobox does right?
  
   Why can I not use getNextHighestDepth anymore when I put a component
   on
   the stage?
  
   Why does DepthManager.kCursor exist when I can still attach all kinds
   of objects above that depth?
  
   Why can I attach movie clips at depths that are outside the valid
   range?
  
 
  ___
  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



--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] v2 components - are you kidding me?

2006-02-01 Thread Mike Britton
Ghostwire's are fast and simple, but the deprecated AS1 syntax makes
me wonder how good they'll fit with a new project.  Are there plans to
update these components?

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


Re: [Flashcoders] v2 components - are you kidding me?

2006-02-01 Thread Mike Britton
Much of AS1 isn't deprecated, but that's just how I think of it. 
Sorry if it seemed like I was declaring AS1 deprecated because it
isn't (officially).  The point I wanted to make was that it makes me
nervous to use AS1 stuff for practical reasons, one being the
*likelihood* AS1 contains much syntax that will be deprecated.

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


Re: [Flashcoders] How to call functions in sequence

2006-01-28 Thread Mike Britton
function1() {
function2();
}

function2() {
function3();
}

You could also use onEnterFrame to conditionally check for flags
indicating the progress of execution:

var f1Fired = false;
var f2Fired = false;
var f3Fired = false;

this.onEnterFrame = function() {
if (f1Fired) {
 trace(f1Fired);
 function2();
} else if (f2Fired) {
 trace(f2Fired);
 function3();
} else if (f3Fired) {
 trace(f3Fired);
} else {
function1();
}
}

function1() {
f1Fired = true;
}

function2() {
f2Fired = true;
}

function3() {
f3Fired = true;
}

Or setInterval could be employed, but it sounds like you need
sequential executions of your functions, in which case setInterval is
inappropriate.

hth

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


Re: [Flashcoders] How to call functions in sequence

2006-01-28 Thread Mike Britton
The more of them you use, the slower the performance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to call functions in sequence

2006-01-28 Thread Mike Britton
Yes, don't think in terms of avoiding functions.  If something needs
to be repeated, it's a candidate for a function.  Performance is
important for a game, but if an app's object-orientated design makes
it a millisecond slower than procedural (inline) code, that's
acceptable if you get the benefits of reusable code (more functions). 
Sorry if I gave you the wrong impression.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ActionScript Cheatsheet Update (new URL)!

2006-01-27 Thread Mike Britton
Nice!  It would be great if each element was a link to the docs!

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


Re: [Flashcoders] Re: AMFPHP for commercial projects

2006-01-26 Thread Mike Britton
It's the legal issue -- this implies risk where other options don't. 
Personally I love AMFPHP and have never observed it blowing up; it's
far faster than ColdFusion remoting in my experience.  Legal issues
aside, I'd go with it for enterprise-scale projects.

Mike


On 1/26/06, Simen Brekken [EMAIL PROTECTED] wrote:
  Hello Flashcoders,
  
  Question:
  What's your opinion and/or practice of using AMFPHP for client's
  project?
  

 AMFPHP is production ready (we run 20+ pretty big sites on it) but there's no
 warranty that it won't blow up and you'll have someone to call when it does.

 Regards,
 Simen Brekken


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



--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: AMFPHP for commercial projects

2006-01-26 Thread Mike Britton
Any would-be lawyers lurking here who could once and for all help us
resolve this issue?

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


Re: [Flashcoders] Re: AMFPHP for commercial projects

2006-01-26 Thread Mike Britton
Because they have a capable competing language, ColdFusion.  It would
be like bringing a product to market and then releasing a free version
of the same thing.

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


Re: [Flashcoders] Re: AMFPHP for commercial projects

2006-01-26 Thread Mike Britton
If that is their approach, it inhibits AMFPHP which is itself oppressive.

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


Re: [Flashcoders] array question

2006-01-26 Thread Mike Britton
FruitArray = [apples, pears, watermelons, oranges, peaches];

for (i=0; iFruitArray.length; i++) {
if (FruitArray[i] == oranges) {
trace(i);
}
}

hth,

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


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread Mike Britton
AMFPHP is really straightforward code -- any PHP programmer worth his
salt could go in and fix if needed.  It also keeps the option of
moving to CF or Java open, since your AS2 will be the same.

The project has picked up again and has been out of beta for some time.

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


Re: [Flashcoders] Microsoft Sparkle

2006-01-26 Thread Mike Britton
Agreed, well put.

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


[Flashcoders] Preview window: always full screen?

2006-01-24 Thread Mike Britton
I apologize if this has been covered, but can someone tell me how to
make the Flash IDE preview window launch fullscreen?  I have
dynamically-scaling apps I need to test without causing a resize event
to trigger by making the damn window larger.  This is killing me!

Thanks in advance,

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


Re: [Flashcoders] embed SWF with PHP

2006-01-17 Thread Mike Britton
Pumping the object and embed tags into a DIV's innerHTML using AJAX is one
possibility.  You could also write the object and embed tags with an
external JavaScript.  This would prevent the source from being viewed and is
probably an easier option given its all on the client.

It's impossible to completely hide your swf filename, and techniques for
preventing caching are dodgy at best.  If anyone knows how to make swfs
un-obfuscatable I'd like to hear their approaches.

hth

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


Re: [Flashcoders] Using the $ sign at the beginning of a variable

2006-01-12 Thread Mike Britton
Nothing in particular - just a style of naming vars.  I don't do it
because it looks too much like PHP and I get disoriented.

I recall seeing this technique used to distinguish public from private
vars, but I think it went out of favor when AS2 came out.



On 1/12/06, Ryan Luce [EMAIL PROTECTED] wrote:
 What does a dollar sign do at the beginning of a variable in Flash?
 Anything? like Stage.$blah = rar;
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Stage.height Misreporting

2006-01-05 Thread Mike Britton
Try using setInterval

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


Re: [Flashcoders] Flash does not run when wmode is transparent and div is hidden

2006-01-04 Thread Mike Britton
I never use wmode transparent -- it's buggy and broken.

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


Re: [Flashcoders] flash and cfm

2005-12-20 Thread Mike Britton
Looks like you're running into the character limit of URL strings.  I second
Jason's recommendation of remoting.  Either that or use coldfusion to write
XML files.

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


Re: [Flashcoders] anchors in dynamic textfield?

2005-12-15 Thread Mike Britton
In the past I've simulated anchors with a ScrollPane using its
vPosition property and duplicated clips inside the ScrollPane. 
However I agree it would be nice if TextArea had the ability to
anchor.

You could use asfunction to control the textArea's vPosition based on
a variable you pass in.  The variable could be a few words you know
are unique to the line you wish to anchor to.  There would have to be
some text-parsing code to search for the words, but in theory it would
work.

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


Re: [Flashcoders] Flash is a single-threaded app? Maybe it's just the AVM? or...

2005-12-08 Thread Mike Britton
It scares me too, but so does UI lock, something that's been happening
to me a lot lately.

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


Re: [Flashcoders] targeting classes in a loaded swf

2005-12-03 Thread Mike Britton
I'd look into LocalConnection.  It sounds like you're trying to figure
out how to avoid dependencies between objects, which (to me) makes
sense.  Rather than over-design and make things work in a complicated
way, you can use LocalConnection to init your child clips from your
controller:

receiving_lc = new LocalConnection;

receiving_lc.init = function() {
this.c.init(); // Calls your clip's init
};

receiving_lc.connect(lc_name);

In your main application:

var sending_lc2:LocalConnection = new LocalConnection();
sending_lc2.send(lc_name, init);


hth,

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


  1   2   >