Re: [Flashcoders] unsubscribe

2014-09-23 Thread Kerry Thompson
Umm, William, check below for the easy way to unsubscribe. Sending an
unsubscribe message to everybody on the list might work if the admin
happens to see it, but probably not.

Look for these instructions:

To subscribe or unsubscribe via the World Wide Web, visit
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 or, via email, send a message with subject or body 'help' to
 flashcoders-requ...@chattyfig.figleaf.com

They're down here
   |
   |
  \/

On Tue, Sep 23, 2014 at 2:47 PM, William Chadwick 
wrote:

> unsubscribe
>
> On Mon, Sep 22, 2014 at 10:00 AM, <
> flashcoders-requ...@chattyfig.figleaf.com
> > wrote:
>
> > Send Flashcoders mailing list submissions to
> > flashcoders@chattyfig.figleaf.com
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > or, via email, send a message with subject or body 'help' to
> > flashcoders-requ...@chattyfig.figleaf.com
> >
> > You can reach the person managing the list at
> > flashcoders-ow...@chattyfig.figleaf.com
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Flashcoders digest..."
> >
> >
> > Today's Topics:
> >
> >1. Re: Re: Datagrid cell focus (Dave Watts)
> >2. Re: Re: Datagrid cell focus (Karl DeSaulniers)
> >3. RE: Re: Datagrid cell focus (Rick)
> >4. Re: Re: Datagrid cell focus (Bill)
> >
> >
> > --
> >
> > Message: 1
> > Date: Sun, 21 Sep 2014 13:13:50 -0400
> > From: Dave Watts 
> > Subject: Re: [Flashcoders] Re: Datagrid cell focus
> > To: Flash Coders List 
> > Message-ID:
> >  > tyi6lssshh...@mail.gmail.com>
> > Content-Type: text/plain; charset=UTF-8
> >
> > > I think this question may be in the archives. Have you checked there?
> > Not positive how to get there, just know one exists.
> > > Might post your question again as many flash devs are not paying
> > attention to the list as much anymore, but peek in from
> > > time to time.  They probably just missed it or because it's a data grid
> > question, be hiding from it. :P
> >
> > The archives don't work since the last server migration, unfortunately.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > 1-202-527-9569
> > 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.
> >
> >
> > --
> >
> > Message: 2
> > Date: Sun, 21 Sep 2014 20:46:06 -0500
> > From: Karl DeSaulniers 
> > Subject: Re: [Flashcoders] Re: Datagrid cell focus
> > To: Flash Coders List 
> > Message-ID: <7cdb76cd-af60-47b5-b190-a3057d604...@designdrumm.com>
> > Content-Type: text/plain; charset=us-ascii
> >
> > Well, that was unexpected.
> > Then I would say Adobe forums are your best bet Bill.
> > Unless there is still someone here that can help?
> > I wish I knew more or I would. Sry.
> >
> > Best,
> >
> > Karl DeSaulniers
> > Design Drumm
> > http://designdrumm.com
> >
> >
> >
> > On Sep 21, 2014, at 12:13 PM, Dave Watts  wrote:
> >
> > >> I think this question may be in the archives. Have you checked there?
> > Not positive how to get there, just know one exists.
> > >> Might post your question again as many flash devs are not paying
> > attention to the list as much anymore, but peek in from
> > >> time to time.  They probably just missed it or because it's a data
> grid
> > question, be hiding from it. :P
> > >
> > > The archives don't work since the last server migration, unfortunately.
> > >
> > > Dave Watts, CTO, Fig Leaf Software
> > > 1-202-527-9569
> > > 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
> >
> >
> >
> >
> > --
> >
> > Message: 3
> > Date: Sun, 21 Sep 2014 19:26:02 -0700
> > From: Rick 
> > Subject: RE: [Flashcoders] Re: Datagrid cell focus
> > To: 
> > Message-ID: 
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Kirupa forums were the place to go a few years ago and luckiky are still
> > maintained. The community was incredible.
> >
> > Forums:
> > http://www.kirupa.com/forum/
> >
> > Here are some tutorials from the site:
> > http://www.kirupa.com/developer/flash/
> >  Good luck
> >
> > > Subject: Re: [Flashcoders] Re: Datagrid cell focus
> > > From: k...@designdrumm.com
> > > Date: Sun, 21 Sep 2014 20:46:06 -0500
> > > To: flashcoders@chattyfig

Re: [Flashcoders] Giving dynamic object a custom variable

2014-08-15 Thread Kerry Thompson
It's not that difficult if you do it right.

First, I'm not a fan of timeline code except for defining sections, such as
stop on a keyframe,  and minor control commands like gotoAndStop and
gotoAndPlay. The rest I like to do in an external ActionScript file.

I haven't used the Flash IDE in 3-4 years--I use Flex and FlashBuilder
almost exclusively now--but let's see what I can remember.

First, when you create the movie clip, click "Export for ActionScript".
Let's say your mc is called movingSprite. It will have a class name of
movingSprite. You can change that if you want.

If you already have the mc in the library, right-click and choose
properties. That will bring up the same dialog--check Export for
ActionScript.

In the Properties tab (often called the Property Inspector), declare a
document class. That just means the class that will run when you launch the
movie. Let's call it myDocClass.

Now create the document class. Choose File -> New... and choose
ActionScript Class. Name it myDocClass, and Flash will create a new
actionScript class file. Create another class file and name it
movingSprite.as.

Now you can create an instance of the movie clip and assign it variables. I
wouldn't do that in the document class, though. I would declare them in the
class file.

Cordially,

Kerry Thompson




On Fri, Aug 15, 2014 at 2:23 PM, Ted Lehr  wrote:

> How can I create a variable in a dynamic object?
>
> For example, if I had a movie clip in the library, I could open it up and
> on the first frame I could give it:
>
> var velocityX:Number = Math.random()*10-10;
>
> I could then refer to mc.velocityX;
>
> How can I create that variable on an object create in actionscript?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash to HTML

2014-06-19 Thread Kerry Thompson
It doesn't sound that tough a choice to me. Adobe will support Flash for
years, for sure--it still supports Director, with regular Shlockwave
updates. Whether there will be a market for us coders is another question.
I have a job, with a real salary (I had to put the retirement thing on hold
when I found out how much I would have to pay in taxes for IRA withdrawals
and my wife still working), and there seem to be plenty of opportunities
around for the time being, but more and more companies are discontinuing
Flash development.

I agree that the code probably wouldn't be production quality, but I've
found taking somebody's code and optimizing it to be a great way to learn a
new language. And, of course, JavaScript isn't that tough--it's ECMA 5,
while AS3 is ECMA 3. There aren't a lot of surprises in JavaScript for a
seasoned AS programmer.

Cordially,

Kerry Thompson


On Thu, Jun 19, 2014 at 4:47 PM, James Merrill  wrote:

> I would really consider saying no to that request, and suggesting a rebuild
> that uses modern web standards. There are a lot of web optimizations that I
> would almost guarantee an export wouldn't consider... You'd definitely want
> to be lazy loading a lot of those assets so the preloading is reasonable.
> Ultimately, do you want to be refactoring and fixing AS3 code that Adobe
> will hopefully support in the future, or dealing with loads of Javascript.
> It's a tough choice :/
>
>
> On Thu, Jun 19, 2014 at 4:31 PM, John R. Sweeney Jr. <
> jr.swee...@comcast.net
> > wrote:
>
> > Has anyone played with this? Everything I’ve read, timeline animations
> can
> > get converted and simple code. I have a 5 frame app that has 50 layers,
> > 1000+ library elements and thousands of lines of code that the client now
> > wants to go online for all platforms. What a surprise. ;)
> >
> > I’ll look into the latest update more closely, but was just wondering of
> > things like Google Swiffy had gotten better or something else had come
> > along. I’ll glad do the research, just wonder if anyone could point me
> in a
> > direction.
> >
> > Thanks,
> > John
> >
> > John R. Sweeney Jr.
> > Senior Interactive Multimedia Developer
> > OnDemand Interactive Inc
> > Hoffman Estates, IL 60169
> >
> >
> >
> >
> > On Jun 19, 2014, at 3:19 PM, Merrill, Jason <
> > jason.merr...@bankofamerica.com> wrote:
> >
> > > New version of Flash just came out that claims to export to HTML5
> Canvas
> > and do Actionscript to Javascript translations. Worth checking out?
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> James Merrill
> toThePixel.com <http://www.toThePixel.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


[Flashcoders] Halo Themes with Flash Builder 4.7

2014-05-06 Thread Kerry Thompson
I'm working on some legacy code with tons of Halo components. In the
project properties, I've chosen the Halo theme, but I'm getting 17 errors,
all complaining about mx controls and halo themes. Typically, "The style
'borderThickness' is only supported by type 'mx.containers.VBox' with the
theme(s) 'halo'.

I remember there is a compile directive you can include to fix that
problem. I've used it before, but can't find a reference to it now. Does
anybody know that compiler directive?

Cordially,

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


[Flashcoders] Know any good QA engineers in Boston?

2014-01-30 Thread Kerry Thompson
Sorry for the cross post. I know some people subscribe to both lists, but
there's not a 100% crossover--probably not even 50%.

I've been working for a terrific company in Cambridge, MA, since last June.
All the other engineers are Ruby on Rails--I'm the only Flash/Flex
engineer. Since Ruby is designed to be self-testing, the company hasn't
seen the need for a QA engineer until now.

Most of my bug fixes and feature additions have been languishing, waiting
for appropriate QA before they can be deployed to production. We need a QA
engineer, and we're ready to hire.

If you know a good QA engineer in the Boston area, or are one, I'd love to
hear from you. We're a small company (~50 people), but rapidly growing and,
oddly enough for the Web, profitable. The people are great--good enough to
lure me out of retirement.

Cordially,

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


[Flashcoders] Flex and Mouse up outside

2013-12-09 Thread Kerry Thompson
Flashbuilder 4.7, Mac OSX, Flex project (MXML & AS3)

I'm trying to catch a mouse up event when the mouse is released off the
stage. AS3 has RELEASE_OUTSIDE in Flash Player 11.3 and up, but I'm getting
an error in my FlashBuilder app--it doesn't recognize RELEASE_OUTSIDE.

I'm using the default SDK, 4.6, which appears to be the latest. By default,
it targets Flash Player 11.1.0, but setting it to target 11.3 doesn't
change what the compiler supports, and it doesn't seem to support
RELEASE_OUTSIDE.

I've Googled around a lot, and can't find a solution, except to track when
the mouse leaves the stage. That can get complex for something that should
be simple. Any ideas?

Cordially,

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


Re: [Flashcoders] Change Background Color of Datagrid Cell

2013-09-05 Thread Kerry Thompson
Check this out. I haven't tried it, but it looks promising. <
http://stackoverflow.com/questions/14985504/change-background-color-of-datagrid-cell-based-on-more-than-one-condition-in-fle
>

Cordially

Kerry Thompson


On Thu, Sep 5, 2013 at 8:40 AM, Ted Lehr  wrote:

> Is it possible to dynamically change the background color of an individual
> DG cell?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Flashcoders Digest, Vol 71, Issue 5

2013-08-31 Thread Kerry Thompson
The Flag player is sheer the support for bi-di text is, and I don't see
Adobe removing it. They would lose most of their Israeli market, as well as
the entire Arab, Persian, and Pakistan markets.

It won't make any difference if you use Flex. It publishes a .swf which
runs on the same player, and MXML is really just a shorthand version of
AS3.

Your problem is really more of an IDE problem. If the player supports TLF,
you just need a way to get it into your. swf.

Cordially,

Kerry Thompson
On Aug 31, 2013 7:51 AM, "Aly Mansour Aly Abdelaal" 
wrote:

>
>
> "flashcoders-requ...@chattyfig.figleaf.com" <
> flashcoders-requ...@chattyfig.figleaf.com> wrote:
>
>
> Send Flashcoders mailing list submissions to
> flashcoders@chattyfig.figleaf.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> or, via email, send a message with subject or body 'help' to
> flashcoders-requ...@chattyfig.figleaf.com
>
> You can reach the person managing the list at
> flashcoders-ow...@chattyfig.figleaf.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Flashcoders digest..."
>
>
> Today's Topics:
>
>1. RE: TLFTextField drowning me ...  (David Cohn)
>
>
> --
>
> Message: 1
> Date: Wed, 28 Aug 2013 10:13:33 -0700
> From: David Cohn 
> Subject: RE: [Flashcoders] TLFTextField drowning me ...
> To: flashcoders@chattyfig.figleaf.com
> Message-ID: 
> Content-Type: text/plain; charset=us-ascii
>
>
> So if CC no longer supports TLF, is there any long-term option in Flash
> for right-to-left text?
> Will Flex support TLF, and/or have other options for RTL support?
>
> This is something I haven't delved into yet, but may come up soon for a
> project.  It would be good to start in with a long-term path, even if we
> continue to use CS6 for now!
>
> Thanks,
> --Dave
>
>
> On Aug 28, 2013, at 9:00 AM, flashcoders-request@chattyfig.figleaf.comwrote:
>
> > I noticed that Flash CC no longer supports TLF, which I found gratifying
> - as I had lost tons of hours dealing with it, while on deadline no less.
> > So, good luck, as it sounds as if your application requires TLF!!! But
> if you weren't too far committed, I thought this bit of history might help
> you in your decision making to use the api at all.
>
>
>
>
> --
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> End of Flashcoders Digest, Vol 71, Issue 5
> **
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Kerry Thompson
Take it easy, Oren. There is no spam I've seen. It looks like something got
corrupted in my reply, but that's hardly spam. I'm posting from a Caribbean
island, and there might be some transmission problems-- this is a small,
less-visited island.

Be cool, Oren. the closest thing to spam in this thread is your profanity.
On May 23, 2013 11:16 AM, "Oren B."  wrote:

> Enough with the fuckin spam!!!
>
> בתאריך יום חמישי, 23 במאי 2013, Kerry Thompson כתב:
>
> > I've found Dreamweaver to be a good tool for HTML5. when you get
> JavaScript
> > under your belt, take a look at JQuery. it will save you a lot of
> > development time.
> >
> > Mailing lists are pretty quiet these days. I don't know where the
> > programmers congregate, but my colleagues in the French Horn world have
> > moved to a Facebook group.
> >
> > Cordially,
> >
> > Kerry Thompson
> > On May 23, 2013 9:52 AM, "Bryan Thompson"  >
> > wrote:
> >
> > > I know many developers are migrating towards HTML5/CSS/JavaScript.
> Google
> > > reveals a multitude of results for mailing lists.  I hope to take
> > advantage
> > > of the experience on this list to get some advice on good quality lists
> > > like
> > > this one.  I also would like recommendations for (Windows) IDE's for
> > > JavaScript, or general HTML5 development including all the supporting
> > > languages. I have Dreamweaver, but that seems a bit of overkill for a
> > > developer.
> > >
> > > Thanks in advance guys!
> > >
> > >
> > >
> > > Bryan Thompson
> > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com 
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com 
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> נשלח מ-Gmail לנייד
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Kerry Thompson
I've found Dreamweaver to be a good tool for HTML5. when you get JavaScript
under your belt, take a look at JQuery. it will save you a lot of
development time.

Mailing lists are pretty quiet these days. I don't know where the
programmers congregate, but my colleagues in the French Horn world have
moved to a Facebook group.

Cordially,

Kerry Thompson
On May 23, 2013 9:52 AM, "Bryan Thompson"  wrote:

> I know many developers are migrating towards HTML5/CSS/JavaScript. Google
> reveals a multitude of results for mailing lists.  I hope to take advantage
> of the experience on this list to get some advice on good quality lists
> like
> this one.  I also would like recommendations for (Windows) IDE's for
> JavaScript, or general HTML5 development including all the supporting
> languages. I have Dreamweaver, but that seems a bit of overkill for a
> developer.
>
> Thanks in advance guys!
>
>
>
> Bryan Thompson
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (no subject)

2013-05-15 Thread Kerry Thompson
It sounds like you need to upgrade to the latest Flash Player. I believe
the latest version is 11.7.700.202, but I'm on Windows 7. I think it's
unlikely, but there might be a different player for Windows 8. You can
check it out at www.adobe.com. Just search on "Flash Player".

Cordially,

Kerry Thompson


On Wed, May 15, 2013 at 3:59 PM, natalia Vikhtinskaya  wrote:

> Hi
> To all problems that Flash has I found new.
> I tested some flash sites in Windows 8 Metro and found that some pages with
> flash sites does not play. Adobe.com plays well. What  reason can be for
> other sites?
> Some sites said you need to upgrate you Flash player if they use swfobject,
> some just nothing show.
>
> Thanks in advance.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multilingual apps for Flash with as2

2013-01-24 Thread Kerry Thompson
Arabic, Hebrew, Urdu, and a few other languages read right to left. They
are actually called bi-directional, because quotes from an left-to-right
language will appear left to right, in the middle of the r-l script. Things
like periods and decimal points are difficult to deal with.

But Flash does have bi-di support. I think that all you need to do is have
the right font to display your bi-di text.

Cordially,

Kerry Thompson


On Thu, Jan 24, 2013 at 11:36 PM, Sumeet Kumar  wrote:

> Hi All,
>
> I am creating a multilingual as2 app and the data for this app will come
> from XML. I need to target almost 17 language(including Arabic and urdu). I
> have heard that Arabic and urdu are very difficult to implement in flash.
> Can anyone guide me in right direction to implement these languages.
>
>
> Any suggestions in this regard would be great
>
> Regards
> Sumeet Kumar
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3

2012-10-26 Thread Kerry Thompson
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 whole
new programming paradigm.

Cordially,

Kerry Thompson

On Fri, Oct 26, 2012 at 1:32 PM, Kevin Newman  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 
> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Mike Ogrady wants to share new pictures with you :)

2012-10-12 Thread Kerry Thompson
Mike, it looks like your computer has a Trojan horse. You need to run a
security scan.

Cordially,

Kerry Thompson

On Fri, Oct 12, 2012 at 9:59 AM, Mike Ogrady  wrote:

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


Re: [Flashcoders] Fonts taking up too much space

2012-06-26 Thread Kerry Thompson
When you embedded the fonts, did you embed the entire font, or just the
languages you need? If you embed the whole font, it's going to be big, and
you might not need Tibetan or Khmer.

Cordially,

Kerry Thompson

On Tue, Jun 26, 2012 at 4:02 PM, Tristan  wrote:

> Hello all.
>
> I am trying to optimize a swf and I've picked apart everything. When i run
> it through some shareware Flash Optimizer program it shows that it's made
> 70% fonts.
>
> Can anyone recommend a better optimizer or something i can do about the
> fonts. The font size seems high to me for what the swf is.
>
> http://cleargraphix.com/cg_files/demos/Livewell_BMI_728x90.swf
>
> I might just be stuck I suppose. Maybe everything really is as tight as it
> could be. Trying to just shave off 1-2K to get it below 39K. I have to
> render as flash player 9 AS2. I'm using CS6
>
> Any help appreciated.
>
> Thanks, T
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Loader Mouse Event

2012-06-11 Thread Kerry Thompson
I've never tried to get a mouse event on a loader. Do you have a
progress bar? I would add a MouseEvent listener to the progress bar,
not the loader itself. If that doesn't work, add a movie clip with a 0
alpha on top of the loader, and attach the mouse listener to that. You
could use a standard Flash shape like a rectangle, and lengthen it in
sequence with the progress bar, You would want something like this to
keep it in sequence:

progBar.addEventListener(ProgressEvent.PROGRESS, progressHandler);

and, in your progressHanler function, set its length and height to
that of the progress bar.

Cordially,

Kerry Thompson

On Mon, Jun 11, 2012 at 1:08 PM, Ted Lehr  wrote:
> So I have a Loader that is loading an image:
>
> var Img:Loader = new Loader();
> var urlReq:URLRequest = new URLRequest("http://www.someurl.com";);
>
> img.load(urlReq);
>
>
> and I am trying:
>
> img.addEventListener(MouseEvent.ROLL_OVER,x);
>
>
>
> this does not seem to work - does that make sense? and if so, how can I get a 
> mouse event on the loader - do I need to load it in another mc?
>
>
> Thanks!
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread Kerry Thompson
That may be what we end up doing. This is a Facebook game, and I'm calling
a lot of JavaScript functions already. It would be easy enough to write one
to get the paths I need.

Thanks, David.

Cordially,

Kerry Thompson

On Wed, May 2, 2012 at 4:13 AM, David Hunter wrote:

> Could you put what you need in some javascript and grab it using
> ExternalInterface instead?
>
> On 1 May 2012 17:27, Kevin Newman  wrote:
>
> > Back in the day I remember embed just plain old worked better across the
> > board in non-IE browsers. That may have changed (object offered better
> > fallbacks for one thing, and has been worked on a lot more lately, but it
> > also had other kinds of problems). Then we came up with this nested
> object
> > thing that has conditional comments, and duplicates of all the params,
> and
> > called that standards. Then HTML5 embraced tag soup again, arbitrary tag
> > names, and now even arbitrary attributes names, so using embed with
> random
> > attributes is actually standards compliant, but is still considered
> > "deprecated" whatever that means anymore. And embed still works better
> and
> > is less verbose, afaict.
> >
> > /bitter-lament
> >
> > Kevin N.
> >
> >
> >
> > On 5/1/2012 1:21 AM, Kerry Thompson wrote:
> >
> >> That's one way of doing it, but the embed tag has been deprecated. Well,
> >> maybe not officially deprecated, but it's considered obsolete.
> >>
> >
> > __**_
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.**com 
> > http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
> >
>
>
>
> --
> David Hunter
>
> www.davidhunterdesign.com
> +44 (0) 7869 104 906
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
That's one way of doing it, but the embed tag has been deprecated. Well,
maybe not officially deprecated, but it's considered obsolete.

I've done some more digging, and it may not even be related to the
FlashVars. There are some other things in the HTML that aren't working, so
there may be a deeper, or prior, problem.

Thanks, Karl.

Cordially,

Kerry Thompson

On Tue, May 1, 2012 at 1:12 AM, Karl DeSaulniers wrote:

> Something like this?
>
> 
> ...
>  
> ...
>
>  
> 
>
>
> FLASH ---
>
> function init(e:Event) {
> var flashVars=this.loaderInfo.**parameters;
>var appURL=flashVars.appURL;
> }
> this.loaderInfo.**addEventListener(Event.**COMPLETE, init);
>
> HTH,
> Karl
>
>
> On Apr 30, 2012, at 5:46 PM, Kerry Thompson 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:
>>
>>   > width="100%" height="100%" id="RMK_Beta">
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   > data="RMK_Beta.swf" width="100%" height="100%">
>>  > />
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   Either scripts and active content are not permitted
>> to run or Adobe Flash Player version
>>   10.0.0 or greater is not installed.
>>   
>>   
>>   > href="http://www.adobe.com/go/**getflashplayer<http://www.adobe.com/go/getflashplayer>
>> ">
>>   http://www.adobe.com/images/**shared/download_buttons/get_**
>> flash_player.gif<http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif>
>> "
>> alt="Get Adobe Flash Player" />
>>   
>>   
>>   
>>   
>>   
>> __**_
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.**com 
>> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<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<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
The examples I've looked at all use FlashVars <
http://helpx.adobe.com/flash/kb/pass-variables-swfs-flashvars.html>. I've
tried it with both flashVars and FlashVars, both inside quotes and without
quotes, with single and double quotes.

I've been trimming the HTML down bit by bit. I'll try the simplest HTML I
can in the morning to see if I can figure it out. I don't think it's the
 tag, though--that's been deprecated.

Cordially,

Kerry Thompson

On Mon, Apr 30, 2012 at 9:17 PM, Karina Steffens wrote:

> That's possible... Could it be that simple?
>
> Hmmm... should it be FlashVars or flashVars? Or does it even matter?
>
> Might also try embedding with swfObject and see if there's any difference.
>
> Now bed. Really.
>
> Karina
>
> On 1 May 2012, at 01:52, "Peter Ginneberge" 
> wrote:
>
> > Not sure it matters, but there's quotes missing in the HTML:
> >
> >   
> >
> > probably should be:
> >   
> >
> > - Original Message - From: "Kerry Thompson" <
> al...@cyberiantiger.biz>
> > To: "FlashCoders" 
> > Sent: Tuesday, May 01, 2012 12:46 AM
> > 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:
> >>>> width="100%" height="100%" id="RMK_Beta">
> >>   
> >>   
> >>   
> >>   
> >>   
> >>   
> >>   
> >>>> data="RMK_Beta.swf" width="100%" height="100%">
> >>   >> />
> >>   
> >>   
> >>   
> >>   
> >>   
> >>   
> >>   
> >>   Either scripts and active content are not
> permitted
> >> to run or Adobe Flash Player version
> >>   10.0.0 or greater is not installed.
> >>   
> >>   
> >>   http://www.adobe.com/go/getflashplayer";>
> >>   http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif";
> >> alt="Get Adobe Flash Player" />
> >>   
> >>   
> >>   
> >>   
> >>   
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
I've tried it both ways--with and without quotes. I'm just not getting any
parameters.

Cordially,

Kerry Thompson

On Mon, Apr 30, 2012 at 8:52 PM, Peter Ginneberge
wrote:

> Not sure it matters, but there's quotes missing in the HTML:
>
>
>   
>
> probably should be:
>   
>
> - Original Message - From: "Kerry Thompson" <
> al...@cyberiantiger.biz>
> To: "FlashCoders" 
> 
> >
> Sent: Tuesday, May 01, 2012 12:46 AM
> 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:
>>
>>   > width="100%" height="100%" id="RMK_Beta">
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   > data="RMK_Beta.swf" width="100%" height="100%">
>>  > />
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   Either scripts and active content are not permitted
>> to run or Adobe Flash Player version
>>   10.0.0 or greater is not installed.
>>   
>>   
>>   > href="http://www.adobe.com/go/**getflashplayer<http://www.adobe.com/go/getflashplayer>
>> ">
>>   http://www.adobe.com/images/**shared/download_buttons/get_**
>> flash_player.gif<http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif>
>> "
>> alt="Get Adobe Flash Player" />
>>   
>>   
>>   
>>   
>>   
>>
>
> __**_
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.**com 
> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
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 wrote:

> 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  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:
> >
> > > width="100%" height="100%" id="RMK_Beta">
> >
> >
> >
> >
> >
> >
> >
> > > data="RMK_Beta.swf" width="100%" height="100%">
> >> />
> >
> >
> >
> >
> >
> >
> >
> >Either scripts and active content are not
> permitted
> > to run or Adobe Flash Player version
> >10.0.0 or greater is not installed.
> >
> >
> >http://www.adobe.com/go/getflashplayer";>
> >http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif
> "
> > alt="Get Adobe Flash Player" />
> >
> >
> >
> >
> >
> > ___
> > 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] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
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:










   







Either scripts and active content are not permitted
to run or Adobe Flash Player version
10.0.0 or greater is not installed.


http://www.adobe.com/go/getflashplayer";>
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif";
alt="Get Adobe Flash Player" />





___
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-23 Thread Kerry Thompson
Kevin Newman wrote:

> That's the most important point IMO. You can at least technically do high
> quality Flash like work with HTML5. It can still be challenging, but it'll
> only get easier over time.

Will it get easier? I think yes and no. As with any tool, it will get
easier as we get more comfortable with it, more books are published,
more sample code is on the Web, etc.

I don't think HTML5 will get intrinsically easier to use, though. I've
been writing code for over 25 years, and seldom do I see software get
easier to use with successive versions. The tendency is to add
features, which usually adds complexity. On the flip side, those new
features sometimes do simplify our job--Unicode, for example.

There have also been ease-of-use improvements, of course. The
debugger, drag-and-drop visual programming, and the like. Those are
more the exception than the rule, though.

Cordially,

Kerry Thompson
___
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 Kerry Thompson
James Merrill wrote:

> Wouldn't it be such a nice world if JS was revised with ECMAScript 4? It's
> unfortunate that it will never happen.

There was an ECMAScript 4 committee, but they disbanded 3-4 years ago.

Cordially,

Kerry Thompson
___
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 Kerry Thompson
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


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

2012-02-22 Thread Kerry Thompson
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


Re: [Flashcoders] Confirmation succeeded?

2012-01-30 Thread Kerry Thompson
This is a low-traffic list lately. I haven't seen much in the past week or
two. Your post got through, so it's working--I just don't think there's a
lot of traffic.

Cordially,

Kerry Thompson

On Mon, Jan 30, 2012 at 10:30 AM,  wrote:

> Morning,
>
> Not sure this is the best way to introduce myself but here goes:
>
> Scanned list info did not see best way to do this:
>
> My confirmation succeeded Friday a.m. but not getting any mail from list.
> Bypassed email client still nothing on server. May take a few days to
> update but was have some problems prior to that. Any suggestions?
>
> Thanks,
> Terry
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Using a Flash Component in a Flex AS3 Project

2011-11-10 Thread Kerry Thompson
Paul Andrews wrote:

> What about just using FB with the flash IDE - you can tell the IDE to use FB
> as a class editor.

Hmmm... never thought of that. I like it. Is that Edit -> Preferences
-> ActionScript -> ActionScript 3.0 Settings -> Source Path for
"Folders containing ActionScript class files"? What do I point it to?

Cordially,

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


Re: [Flashcoders] Using a Flash Component in a Flex AS3 Project

2011-11-10 Thread Kerry Thompson
Nathan Mynarcik wrote:

> Have you tried having your entire player exported in a swc and reference
> the asset in the swc for your flex compile?

Yes, I've thought of that, and it's a good suggestion. The problem is
that I have it reskinned. I know how to tie a component to a skin, but
I did it in a rather unconventional way. I didn't reskin the
FLVPlayback component--I reskinned the buttons by simply opening them
and replacing the graphics. Still, I might be able to export all the
components as swc--it could work.

Thanks for the tip, Nathan.

Cordially,

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


Re: [Flashcoders] Using a Flash Component in a Flex AS3 Project

2011-11-10 Thread Kerry Thompson
Paul Andrews wrote:

> So why are you using Flex?

For the FlashBuilder IDE. Flash can't hold a candle to FlashBuilder
for writing code. The debugger alone is worth the price of admission.

I still use Flash to do my layouts, and import the swf's with code.

Cordially,

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


[Flashcoders] Re: Using a Flash Component in a Flex AS3 Project

2011-11-10 Thread Kerry Thompson
Apologies for the cross-post, but I posted the question on both lists
(after waiting a decent interval :-)

I usually don't comment on my own posts, but I figured this one out.
All I needed to do was include the Flash FLVPlayback component swc as
a library in my Flex project.

Cordially,

Kerry Thompson

On Thu, Nov 10, 2011 at 2:18 PM, Kerry Thompson  wrote:
> I posted this on another list, and got no takers. Hopefully, somebody
> here can point me in the right direction.
>
> I built a video player in Flash CS5, using the FLVPlayback component.
> I re-skinned some parts, like the play/pause button and the seek bar.
>
> I want to use that swf in a Flex AS3 project. I need to be able to
> listen for its events, and send it commands like Play(). When I try to
> import it with import fl.video.FLVPlayback, I get an error, and a
> bunch of errors when I try to listen for events and the like.
>
> How can I use the Flash component in Flex? This is for a Facebook
> game, so it has to be light--I can't use Flex components.
>
> Cordially,
>
> Kerry Thompson
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Using a Flash Component in a Flex AS3 Project

2011-11-10 Thread Kerry Thompson
I posted this on another list, and got no takers. Hopefully, somebody
here can point me in the right direction.

I built a video player in Flash CS5, using the FLVPlayback component.
I re-skinned some parts, like the play/pause button and the seek bar.

I want to use that swf in a Flex AS3 project. I need to be able to
listen for its events, and send it commands like Play(). When I try to
import it with import fl.video.FLVPlayback, I get an error, and a
bunch of errors when I try to listen for events and the like.

How can I use the Flash component in Flex? This is for a Facebook
game, so it has to be light--I can't use Flex components.

Cordially,

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


Re: [Flashcoders] tips for designing games for kids with special needs

2011-10-25 Thread Kerry Thompson
Here are a couple more links for you:

http://blogs.adobe.com/accessibility/2011/03/adobe-at-csun-2011-conference.html
http://developer.yahoo.com/blogs/ydn/posts/2010/03/csun_international_accessibility_conference/

Cordially,

Kerry Thompson

On Tue, Oct 25, 2011 at 1:15 PM, allandt bik-elliott  wrote:
> thankyou very much guys
>
> On 25 October 2011 16:11, Kerry Thompson  wrote:
>
>> I spent 3-4 years developing software for physically disabled
>> children. It can be very rewarding.
>>
>> I'd start here <http://www.justice.gov/crt/508/archive/oldsoftware.html>
>> to see the U.S. government guidelines.
>>
>> Among the things we did was a special keyboard that replaced
>> alphanumeric keys with icons that matched the buttons on the screen.
>> They were actually plastic sheets, and the teacher could put the
>> appropriate one for the current lesson on the keyboard. I think
>> Intellitools, a division of Cambium, still makes those keyboards, and
>> they're not expensive.
>>
>> For children with more profound disabilities, we had switches--large
>> buttons the diameter of a coffee cup the kids could hit to advance the
>> highlight from icon to icon. Depending on the level of a child's
>> physical abilities, there could be 1, 2, or 3 switches.
>>
>> I'll check with my wife, too. She runs a large web site (~20 million
>> paying customers) for a large educational publisher. I know they have
>> had to really jump through hoops to make their site accessible, so she
>> can point you to more information on accessibility standards.
>>
>> Cordially,
>>
>> Kerry Thompson
>>
>> On Tue, Oct 25, 2011 at 5:57 AM, allandt bik-elliott 
>> wrote:
>> > hey guys
>> >
>> > we've been given a brief to design / develop several games for kids
>> (6-12)
>> > with special needs and i thought maybe some of you have had some
>> experience
>> > with this kind of development?
>> >
>> > are there any tips that you can give me as i start researching this or
>> maybe
>> > point me in the direction of any resources that were useful to you
>> please?
>> >
>> > thanks in advance
>> > 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
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] tips for designing games for kids with special needs

2011-10-25 Thread Kerry Thompson
I spent 3-4 years developing software for physically disabled
children. It can be very rewarding.

I'd start here <http://www.justice.gov/crt/508/archive/oldsoftware.html>
to see the U.S. government guidelines.

Among the things we did was a special keyboard that replaced
alphanumeric keys with icons that matched the buttons on the screen.
They were actually plastic sheets, and the teacher could put the
appropriate one for the current lesson on the keyboard. I think
Intellitools, a division of Cambium, still makes those keyboards, and
they're not expensive.

For children with more profound disabilities, we had switches--large
buttons the diameter of a coffee cup the kids could hit to advance the
highlight from icon to icon. Depending on the level of a child's
physical abilities, there could be 1, 2, or 3 switches.

I'll check with my wife, too. She runs a large web site (~20 million
paying customers) for a large educational publisher. I know they have
had to really jump through hoops to make their site accessible, so she
can point you to more information on accessibility standards.

Cordially,

Kerry Thompson

On Tue, Oct 25, 2011 at 5:57 AM, allandt bik-elliott  wrote:
> hey guys
>
> we've been given a brief to design / develop several games for kids (6-12)
> with special needs and i thought maybe some of you have had some experience
> with this kind of development?
>
> are there any tips that you can give me as i start researching this or maybe
> point me in the direction of any resources that were useful to you please?
>
> thanks in advance
> 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


Re: [Flashcoders] no posts since yesterday

2011-10-20 Thread Kerry Thompson
Kevin Newman wrote:

> Which job boards? :-)

There are several. I'm in the Boston area, so I check out
<http://www.bostonpostmortem.org/jobboard/jobs/programmers/> when I'm
on the market. http://www.riajobs.org/ sometimes has recent job
postings. <http://www.actionscript.org/employment/search_positions.php>
is another site.

Some people use guru.com, but I don't like to go through them. They
demand a lot of paperwork, and most of the gigs I've seen have been
small-potatoes, lowball gigs.

Cordially,

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


Re: [Flashcoders] no posts since yesterday

2011-10-20 Thread Kerry Thompson
Jason Merrill wrote:

>>> 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.

I would guess either busy or overemployed. I see a lot of demand for
Flash/Flex developers on the job boards.

I think Jason is right about moving into other technology areas, but
from what I'm seeing, there's a lot of demand for people with multiple
talents. I.e., Flash, PHP, and XML. Or Flex and Java, or JavaScript.
It's getting harder to be just a Flash developer---you need multiple
skills.

Cordially,

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


Re: [Flashcoders] no posts since yesterday

2011-10-20 Thread Kerry Thompson
The list must be down. I didn't get this post :-^|

On Thu, Oct 20, 2011 at 2:01 PM, Odie Bracy  wrote:
> ? no posts or list down
>
> Odie
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] can flash do more than one thing in thr same time

2011-09-21 Thread Kerry Thompson
nasim h wrote:

> 1)  I dont know why the timer counter slow down when the loop start
> working?
>
> how can i solve it
>
> 2)
>
> My bigest Problem is , why flash speed goes down , during this program, Is 
> this
> correct that some people said flash can not do more than one thing in same
> time? other languages like vb has the property applicationdoevent , that it
> update event and timers,or other process doesent affect each other , but in
> flash if u see hthe proccess has affect on each other , the cpu usage goes up 
> ,
> frame rate goes down 

Didn't we go through this last week?

You have a timer trying to fire 1,000 times per second. It takes
longer than 1/1000 second to write to the text field and update it. Of
course the timer slows down.

Flash is not multi-threaded, which means it can do only one thing at a
time. I've heard some talk that there is a new version of the Flash
player that will handle multiple threads, but as it stands now, there
is no way to make your program work faster except to call the timer
less often.

Try new Timer(100), which will fire 10 times per second. Then your
text might be able to keep up with the timer. It depends on a lot of
things--your cpu speed, how many processes are running, and other
factors. The only thing I can pretty much guarantee is that you're not
going to get a timer to fire 1,000 times a second, at least not if
you're doing anything when it fires.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] Fw: Timer Probelem

2011-09-08 Thread Kerry Thompson
There are a couple of issues I see. One, as Glen just said, is that
your timer interval is too short. The other is that you're not ending
your lines with semicolons. I'm not sure what effect that would have.

I've rewritten the code with a timer interval of 100, and traces so
you can see a history of what's in your text boxes.

Other than that, I'm not sure what your goal is. All the text fields
are being populated correctly, though it goes so fast you don't see
all the updates.

Here's the modified code:

import flash.utils.Timer;
import flash.events.TimerEvent;

var i:int;
var flagloop:Boolean=false;
var step:Number=0

var startTime:Number=getTimer();
var timer1:Timer=new Timer(100);
var timer2:Timer=new Timer(100);
var timer3:Timer=new Timer(100);

timer1.start();
timer1.addEventListener(TimerEvent.TIMER,Func_time1);

function Func_time1(e:TimerEvent):void
{
timer1txt.text=String(step);
 trace("step: " + step);
step += 0.001;
}

/Timer 2
timer2.start();
timer2.addEventListener(TimerEvent.TIMER,Func_time2);

function Func_time2(e:TimerEvent):void
{
timer2txt.text=e.target.currentCount;
 trace ("timer2txt: " + timer2txt.text);
gettimertxt.text=String((getTimer()- startTime));
flagloop=true;
}

//vv/Timer 2
timer3.start();
timer3.addEventListener(TimerEvent.TIMER,Func_time3);

function Func_time3(e:TimerEvent):void
{

timer3txt.text=e.target.currentCount;
trace ("timer3txt: " + timer3txt.text);
if((step>2) && (step<2.25))
{
if(flagloop == true)
{
testTimer();
flagloop = false;
}

}

}

///vv
function testTimer():void
{
flagloop=false;
for(i=0;i<10;i++)
{
trace("Hello World");
}
flagloop=true;
}

On Thu, Sep 8, 2011 at 8:50 AM, New Flashdeveloper
 wrote:
>
> Hi
> I am student , I’m new in flash .In My Project I need to
> have  timer that work correctly with out
> depending on other  process in my project
> . Please look at the attachment  , one
> timer worl alone another work and have condition , when we get the condition
> the timers work slowly , I don’t know why is that and how can I solve it and
> have independent  timer . I test it when
> we need to work with loop or other thing the timer stop working even the 
> timers
> that aren’t related to it ?
>
>
> I have foure text box inside stage (i cant attach file because of limited 
> size in site)
>
>
> import flash.utils.Timer;
> import flash.events.TimerEvent;
> var i :int
> var flagloop:Boolean=false;
> var step:Number=0
> var startTime :Number=getTimer()
> var timer1:Timer=new Timer(1)
> timer1.start()
> timer1.addEventListener(TimerEvent.TIMER,Func_time1)
> function Func_time1(e:TimerEvent):void
> {
>     timer1txt.text=String(step)
>     step +=0.001
>
>
> }
>
> /Timer 2
> var timer2:Timer=new Timer(1)
> timer2.start()
> timer2.addEventListener(TimerEvent.TIMER,Func_time2)
> function Func_time2(e:TimerEvent):void
> {
>     timer2txt.text=e.target.currentCount
>     gettimertxt.text=String((getTimer()- startTime))
>     //e.updateAfterEvent();
>     flagloop=true
> }
> //vv/Timer 2
> var timer3:Timer=new Timer(1)
> timer3.start()
> timer3.addEventListener(TimerEvent.TIMER,Func_time3)
> function Func_time3(e:TimerEvent):void
> {
>     timer3txt.text=e.target.currentCount
>     if((step>2) && (step<2.25))
>     {
>         if(flagloop== true)
>         {
>             testTimer()
>         }
>
>     }
>
> }
>
> ///vv
> function testTimer():void
> {
>     flagloop=false
>     for(i=0;i<1000;i++)
>     {
>         trace("Hello World")
>     }
>     flagloop=true
> }
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

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


Re: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Kerry Thompson
The timer isn't completely independent. If there is code executing when it is 
time for the timer to fire, the timer has to wait until the code finishes. 
Loops are notorious CPU hogs--nothing else can happen until the loop finishes.

Cordially,

Kerry Thompson

On Aug 29, 2011, at 3:27 PM, nasim h  wrote:

> I Cant understad
> why is that
> when the timer start it should work independence any thing 
> but it wait for finish th loop
> can u explain the timer and loop i know them but i cant understand how they 
> work and has an effect on cpu
> 
> --- On Mon, 8/29/11, Cor  wrote:
> 
> From: Cor 
> Subject: RE: [Flashcoders] loop and Timer problem?
> To: "'Flash Coders List'" 
> Date: Monday, August 29, 2011, 2:44 PM
> 
> TRY THIS:
> 
> 
> var forsate,generalFlag:Boolean;
> var counter:int=0;
> var generalTimer:Timer=new Timer(1);
> generalTimer.addEventListener(TimerEvent.TIMER,generalfunc);
> 
> //NOW IT IS SET
> //UN COMMENT THE LINE BELOW TO NOTICE THE DIFFENCE
> //generalFlag=true;
> 
> testhalgheh();
> 
> function generalfunc(e:TimerEvent=null):void {
> generalFlag=true;
> //trace( " generalFlag " + generalFlag)
> }
> 
> function testhalgheh():void {
> generalTimer.start();
> //generalFlag IS FALSE AT THIS MOMENT, BECAUSE THE generalfunc IS NOT YET 
> CALLED
> while (counter<1000) {
> if (generalFlag==true) {
> trace("hello");
> counter++;
> }
> }
> }
> 
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] array problem,loop.plot

2011-08-23 Thread Kerry Thompson
HI Nasim,

You can save that many numbers in an array. We're talking about 20,000
numbers, and Flash can handle that in an array or a vector.

Yes, you can use one vector and store points in it. As to
re-initializing the Vector, I like to use vect = new Vector(). I think
setting the length to 0 will work, though--it's easy enough to test. I
think you can even reset it by setting vect[0] = null;

Computing the points is pretty fast. Its the drawing that is slow. I'm
going to disagree with Henrik, though. Unless the points are going to
change at some point, I would calculate once and keep it. You can even
draw once, into a sprite, and keep it. I would put it in a data
object, or even a class with public static vars.

If you draw it once, and have it in a sprite you can put on stage,
then it's just a matter of scaling it. If you're going to zoom in a
lot, I would definitely use lineTo() or curveTo(). Otherwise it will
pixellate when you zoom in close.

Bear in mind that you are going to have x values of -10,000, so you'll
need to compensate when  you put it on the stage. Still, it is a
doable task.

Cordially,

Kerry Thompson

On Tue, Aug 23, 2011 at 6:07 AM, nasim h  wrote:
> Hi kerry
> I think there should be morning so good morning
> i think i should convince my boss that i cant save that number of point in 
> aray
> u know ifirstly i wanted to make point and save it and i just draw that point 
> what are visible in page to use them in diferent situaion of user activity , 
> my gaph has scale + and -
> i draw visiblle point with scale factor again we need that points to simulate 
> pulse train , and have scale until 10^5 or more
> by the way
> about using vector as array is it better to use vector of point type or use 2 
> vector of number type???
> is it ok to clear vector by this code  vect.length=0
> best regard
> nasim
>
> --- On Tue, 8/23/11, Kerry Thompson  wrote:
>
>
> From: Kerry Thompson 
> Subject: Re: [Flashcoders] array problem,loop.plot
> To: "Flash Coders List" 
> Date: Tuesday, August 23, 2011, 12:35 AM
>
>
> Hi Nasim,
>
> You can certainly create an array of 20,000 elements (or two Vectors,
> as I did, with a smaller number).
>
> The problem is, I don't think you can display that many points. How
> big is your stage? I had mine set to 1024 x 768, which is normally
> about as high as you want to go.
>
> You don't need that many points to create a smooth graph, though. Try
> using every 10th point, and either lineTo or curveTo.
>
> To do that, in the part that creates the graph, increment by 10:
>
> // Now draw the graph
> for (x = 1; x<= len; x+=10)
>
> Did you get my second e-mail, where I wrote the class for you? It uses
> lineTo(), which should give you pretty smooth graph with 2,000 points.
> My class isn't bug-free, but it is free, and you should be able to
> make it do what you want. If not, I'll take another look at it in the
> morning (it's after midnight here).
>
> Cordially,
>
> Kerry Thompson
>
>
> On Tue, Aug 23, 2011 at 12:13 AM, nasim h  wrote:
>> Dear Kerry
>> Hi
>> I am really apreciate u , one of my bigest problem is when i want create 
>> point , my boss want to have an array of point that has distance between 
>> -1 to 1 or more than it because when the user want scale graph i 
>> should use that stoored point to calculate new graph , but the prolem is 
>> when i want to store data in array this loop take a lot of time and  flash 
>> dont do anything until the loop finished , and after 15 s it get me eror of 
>> time or hang the program and close it 
>> in my program i should fine soulotion to draw online point plz help me
>>
>> --- On Mon, 8/22/11, Kerry Thompson  wrote:
>>
>>
>> From: Kerry Thompson 
>> Subject: Re: [Flashcoders] array problem,loop.plot
>> To: "Flash Coders List" 
>> Date: Monday, August 22, 2011, 3:34 PM
>>
>>
>> Sure. I knew there would be bugs in my code :-)
>>
>> Actually, you have so many points, you probably don't need to use
>> curveTo(). lineTo() would probably work for you, and it just takes two
>> parameters.
>>
>> Here's a class I wrote that draws something. It's probably not what
>> you want, but it works, at least. You can take it from here. (I
>> created this class in a Flex AS3 project--that's why I defined the
>> stage size in line 6. If you do it in Flash, you won't need that--just
>> set the stage size to what you want).
>>
>> Cordially,
>>
>> Kerry Thompson
>>
>> package
>> {
>>     import flash.display.Sprite;

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Kerry Thompson
Hi Nasim,

You can certainly create an array of 20,000 elements (or two Vectors,
as I did, with a smaller number).

The problem is, I don't think you can display that many points. How
big is your stage? I had mine set to 1024 x 768, which is normally
about as high as you want to go.

You don't need that many points to create a smooth graph, though. Try
using every 10th point, and either lineTo or curveTo.

To do that, in the part that creates the graph, increment by 10:

// Now draw the graph
for (x = 1; x<= len; x+=10)

Did you get my second e-mail, where I wrote the class for you? It uses
lineTo(), which should give you pretty smooth graph with 2,000 points.
My class isn't bug-free, but it is free, and you should be able to
make it do what you want. If not, I'll take another look at it in the
morning (it's after midnight here).

Cordially,

Kerry Thompson


On Tue, Aug 23, 2011 at 12:13 AM, nasim h  wrote:
> Dear Kerry
> Hi
> I am really apreciate u , one of my bigest problem is when i want create 
> point , my boss want to have an array of point that has distance between 
> -1 to 1 or more than it because when the user want scale graph i 
> should use that stoored point to calculate new graph , but the prolem is when 
> i want to store data in array this loop take a lot of time and  flash dont do 
> anything until the loop finished , and after 15 s it get me eror of time or 
> hang the program and close it 
> in my program i should fine soulotion to draw online point plz help me
>
> --- On Mon, 8/22/11, Kerry Thompson  wrote:
>
>
> From: Kerry Thompson 
> Subject: Re: [Flashcoders] array problem,loop.plot
> To: "Flash Coders List" 
> Date: Monday, August 22, 2011, 3:34 PM
>
>
> Sure. I knew there would be bugs in my code :-)
>
> Actually, you have so many points, you probably don't need to use
> curveTo(). lineTo() would probably work for you, and it just takes two
> parameters.
>
> Here's a class I wrote that draws something. It's probably not what
> you want, but it works, at least. You can take it from here. (I
> created this class in a Flex AS3 project--that's why I defined the
> stage size in line 6. If you do it in Flash, you won't need that--just
> set the stage size to what you want).
>
> Cordially,
>
> Kerry Thompson
>
> package
> {
>     import flash.display.Sprite;
>     import flash.display.Graphics;
>
>     [SWF(width='1024',height='768',backgroundColor='#FF',frameRate='24')]
>     public class GraphTst extends Sprite
>     {
>         private var pointX:Vector.; //vectors are much faster than 
> arrays
>         private var pointY:Vector.;
>         private var ndx:int = 0;
>         private var len:int;
>
>
>         public function GraphTst()
>         {
>             init();
>             createPoints();
>             drawGraph();
>         }
>
>         private function init():void
>         {
>             // You have to create the vector in a new code line
>             pointX  = new Vector.();
>             pointY  = new Vector.();
>         }
>
>         private function createPoints():void
>         {
>             // first fill the vectors
>             for (var i:Number= -100; i<100; i++)
>             {
>                 pointX[ndx]=i + 100;
>                 pointY[ndx]=5*Math.sin(20*i);
>                 ndx++;
>             }
>         }
>
>         private function drawGraph():void
>         {
>             // prepare to draw the graph
>             graphics.lineStyle(2, 0X00); //set the line to 2 pixels wide, 
> black
>             len = pointX.length - 1;
>
>             // Now draw the graph
>             graphics.moveTo(pointX[0], pointY[0]);
>             for (ndx = 1; ndx< len; ndx++)
>             {
>                 //trace("ndx: " + ndx);
>                 graphics.lineTo(pointX[ndx], pointY[ndx]);
>             }
>         }
>     }
> }
>
>
>
>
>
> On Mon, Aug 22, 2011 at 2:08 PM, nasim h  wrote:
>> Dear  Kerry
>> I 'am really appreciate u ,but the first problem that i didnt use curve to 
>> is it's parameter
>> it needs 4 parameter  and i cant guess how to define curve point
>> do u have any idea plz tell me
>>
>> --- On Mon, 8/22/11, Kerry Thompson  wrote:
>>
>> From: Kerry Thompson 
>> Subject: Re: [Flashcoders] array problem,loop.plot
>> To: "Flash Coders List" 
>> Date: Monday, August 22, 2011, 9:41 AM
>>
>> Gerry and Henrik have the right answer. Your computer monitor isn't
>> capable o

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Kerry Thompson
Sure. I knew there would be bugs in my code :-)

Actually, you have so many points, you probably don't need to use
curveTo(). lineTo() would probably work for you, and it just takes two
parameters.

Here's a class I wrote that draws something. It's probably not what
you want, but it works, at least. You can take it from here. (I
created this class in a Flex AS3 project--that's why I defined the
stage size in line 6. If you do it in Flash, you won't need that--just
set the stage size to what you want).

Cordially,

Kerry Thompson

package
{
import flash.display.Sprite;
import flash.display.Graphics;


[SWF(width='1024',height='768',backgroundColor='#FF',frameRate='24')]
public class GraphTst extends Sprite
{
private var pointX:Vector.; //vectors are much faster 
than arrays
private var pointY:Vector.;
private var ndx:int = 0;
private var len:int;


public function GraphTst()
{
init();
createPoints();
drawGraph();
}

private function init():void
{
// You have to create the vector in a new code line
pointX  = new Vector.();
pointY  = new Vector.();
}

private function createPoints():void
{
// first fill the vectors
for (var i:Number= -100; i<100; i++)
{
pointX[ndx]=i + 100;
pointY[ndx]=5*Math.sin(20*i);
ndx++;
}
}

private function drawGraph():void
{
// prepare to draw the graph
graphics.lineStyle(2, 0X00); //set the line to 2 
pixels wide, black
len = pointX.length - 1;

// Now draw the graph
graphics.moveTo(pointX[0], pointY[0]);
for (ndx = 1; ndx< len; ndx++)
{
//trace("ndx: " + ndx);
graphics.lineTo(pointX[ndx], pointY[ndx]);
}
}
}
}





On Mon, Aug 22, 2011 at 2:08 PM, nasim h  wrote:
> Dear  Kerry
> I 'am really appreciate u ,but the first problem that i didnt use curve to is 
> it's parameter
> it needs 4 parameter  and i cant guess how to define curve point
> do u have any idea plz tell me
>
> --- On Mon, 8/22/11, Kerry Thompson  wrote:
>
> From: Kerry Thompson 
> Subject: Re: [Flashcoders] array problem,loop.plot
> To: "Flash Coders List" 
> Date: Monday, August 22, 2011, 9:41 AM
>
> Gerry and Henrik have the right answer. Your computer monitor isn't
> capable of displaying 20 million points, and Flash will hang, as you
> have found out.
>
> This is untested e-mail AS3, but I would do it something like this:
>
> var pointX:Vector.; //vectors are much faster than arrays
> var pointY:Vector.;
>
> // You have to create the vector in a new code line
> pointX  = new Vector.();
> pointY  = new Vector.();
> ndx:int = 0;
> len:int;
>
> // first fill the vectors
> for (var i:Number= -1 ;i<1;i+=.1)
> {
>    ndx++;
>    pointX[ndx]=i;
>    pointY[ndx]=5*Math.sin(20*i);
> }
>
> // prepare to draw the graph
> graphics.lineStyle(2, 0X00); //set the line to 2 pixels wide, black
> graphics.moveTo(pointX[0], pointY[0]); // move to the starting point
> len = pointX.length + 1;
>
> // Now draw the graph
> for (x = 1; x<= len; x++)
> {
>    graphics.curveTo(pointX[x], pointY[y];
> }
>
> There's more you have to do--importing the graphics package, perhaps
> putting this all into a class, and so on. There are probably minor
> bugs in the code you'll have to fix--this is just off the top of my
> head. I think you will be much happier with performance and appearance
> with something like this, though.
>
> Cordially,
>
> Kerry Thompson
>
> On Mon, Aug 22, 2011 at 4:49 AM, nasim h  wrote:
>> but the most problem is for loop i think flash dont do any thing until the 
>> loop finishde
>> i need to  use smal step because if the step is big the graph will be show 
>> like line to line , it s ugly graph
>> and the distance that i use for loop is more importatnt for me i 

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Kerry Thompson
Gerry and Henrik have the right answer. Your computer monitor isn't
capable of displaying 20 million points, and Flash will hang, as you
have found out.

This is untested e-mail AS3, but I would do it something like this:

var pointX:Vector.; //vectors are much faster than arrays
var pointY:Vector.;

// You have to create the vector in a new code line
pointX  = new Vector.();
pointY  = new Vector.();
ndx:int = 0;
len:int;

// first fill the vectors
for (var i:Number= -1 ;i<1;i+=.1)
{
   ndx++;
   pointX[ndx]=i;
   pointY[ndx]=5*Math.sin(20*i);
}

// prepare to draw the graph
graphics.lineStyle(2, 0X00); //set the line to 2 pixels wide, black
graphics.moveTo(pointX[0], pointY[0]); // move to the starting point
len = pointX.length + 1;

// Now draw the graph
for (x = 1; x<= len; x++)
{
   graphics.curveTo(pointX[x], pointY[y];
}

There's more you have to do--importing the graphics package, perhaps
putting this all into a class, and so on. There are probably minor
bugs in the code you'll have to fix--this is just off the top of my
head. I think you will be much happier with performance and appearance
with something like this, though.

Cordially,

Kerry Thompson

On Mon, Aug 22, 2011 at 4:49 AM, nasim h  wrote:
> but the most problem is for loop i think flash dont do any thing until the 
> loop finishde
> i need to  use smal step because if the step is big the graph will be show 
> like line to line , it s ugly graph
> and the distance that i use for loop is more importatnt for me i want to show 
> 2*10^8 distance / i want to make point in my program and plot it one by one i 
> make i plot
> i make i plot
> is there better way?

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


Re: [Flashcoders] Array Limit

2011-08-04 Thread Kerry Thompson
Deepak Sahu wrote:

> consider a vector..its faster than array.

It is. There are a couple of essential differences you should know of.
Primarily, all the elements of the vector need to be of the same type.
I think it will work with objects.

The other difference is that you can't have empty elements in a
vector. This is perfectly legal for an array:

arr[0] = 0;
arr[1] = 1;
arr[100] = 100;

You have 99 empty elements in that array--that is, there is nothing in
arr[2]...arr[99].

You can't do that with a vector. I think the compiler will throw an
error. If not, you'll get an error at runtime.

Cordially,

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


Re: [Flashcoders] Array Limit

2011-08-04 Thread Kerry Thompson
Dave Watts wrote:

> If you want to reuse it, just redeclare it. If you want it to be
> garbage-collected (you don't want to reuse it), things become a bit
> more complicated I think.

There's not a way of forcing garbage collection that I know of. You
can make an array eligible for garbage collection by removing all
references to it (e.g., myArray = null should do it).

There are two ways of re-declaring it so you can use it over. myArray
= []; will do it, as Dave mentioned. myArray = new Array(); will also
do it. I believe that frees up the space used by your array, and it
can be garbage collected. The Flash VM has its own ideas about when
garbage collection happens, though--you can make something available
for garbage collection, but, as I said, you can't force it.

Cordially,

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


Re: [Flashcoders] Library asset rename

2011-07-12 Thread Kerry Thompson
Paul Andrews wrote:

> I'm using Flash CS5.5 and recently imported about 200 mp3 samples. I needed
> to create instances of these on demand so I had to create classes without
> the suffix  ".mp3".
>
> It was a PIA renaming the MP3 files, so did I miss a trick about how to
> import large numbers of mp3 files and avoid renaming them individually to
> remove the .mp3 suffix?

I had a similar project not too long ago. I imported the files as is,
and used a jsfl command to rename them. It was pretty quick and
simple.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] job posting ok here?

2011-07-02 Thread Kerry Thompson
Artur wrote:

> if not where?

There have been job posts here, and I don't think anybody minds,
providing it's relevant (i.e., a Flash or Flex job). Some members
aren't happy with recruiters, but I personally don't care.

I am not the list moderator--just another member--so I only speak for myself.

Cordially,

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


Re: [Flashcoders] AS3 exploding and reassemble bitmap

2011-06-21 Thread Kerry Thompson
Debug versions will always run slower than the release. It's not a Flash/Flex 
thing--it's the same in almost any language or environment. The IDE has to 
watch for break points, update variables that you may be displaying, etc. It 
just has to do a lot of stuff it does 't have to do in a non-debug version.

Cordially,

Kerry Thompson.

Sent from my iPad, which doesn't support Flash!

On Jun 16, 2011, at 4:25 PM, Kevin Newman  wrote:

> It runs at a full 25fps (it can go much faster) on the release player. On the 
> same machine with the content debugger though, I only get 10fps.
> 
> It's not a problem for content that will be viewed by non-developers, but I 
> do wonder why it's so slow on the content debugger.
> 
> Kevin N.
> 
> 
> 
> On 6/16/11 1:28 PM, Eric E. Dolecki wrote:
>> set it to 2 pixels instead of 1 and see how it fares.
>> 
>> 
>>   Google Voice: (508) 656-0622
>>   Twitter: eric_dolecki  XBoxLive: edolecki  PSN: eric_dolecki
>>   http://blog.ericd.net
>> 
>> 
>> 
>> On Thu, Jun 16, 2011 at 12:49 PM, Glen Pikewrote:
>> 
>>> Probably all that CGI hair ;)
>>> 
>>> 
>>> On 16/06/2011 17:40, Kevin Newman wrote:
>>> 
>>>> I updated the post with a link to the source:
>>>> http://www.unfocus.com/2010/06/29/the-bunny-video-eplodes-explodes/
>>>> http://www.unfocus.com/PixelExploder/PixelExploder02.zip
>>>> 
>>>> If anyone knows why that runs so sluggishly in the content debugger
>>>> (including the incubator build), I'd love to know why. :-)
>>>> 
>>>> Kevin N.
>>>> 
>>>> 
>>>> On 6/14/11 5:22 PM, Eric E. Dolecki wrote:
>>>> 
>>>>> that would be very nice of you - for me and those lurking too.
>>>>> 
>>>>> 
>>>>>   Google Voice: (508) 656-0622
>>>>>   Twitter: eric_dolecki  XBoxLive: edolecki  PSN: eric_dolecki
>>>>>   http://blog.ericd.net
>>>>> 
>>>>> 
>>>>> 
>>>>> On Tue, Jun 14, 2011 at 4:43 PM, Kevin Newman
>>>>>  wrote:
>>>>> 
>>>>>  Hmm. I don't seem to have the source up for that (thought I did), you
>>>>>> can
>>>>>> use a slightly older set of files from here:
>>>>>> 
>>>>>> (This one has source)
>>>>>> http://www.unfocus.com/2010/06/23/the-pixels-explode-explode/
>>>>>> 
>>>>>> If you are interested in the newer faster one (fast enough to work with
>>>>>> video - and a blur filter), I'd be happy to zip up the source and post
>>>>>> it
>>>>>> somewhere.
>>>>>> 
>>>>>> Quick note on the video example - it's sloow in content debugger
>>>>>> builds. I don't know why.
>>>>>> 
>>>>>> Kevin N.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 6/14/11 4:25 PM, Eric E. Dolecki wrote:
>>>>>> 
>>>>>>  Thanks a lot for showing that to me - I managed to get something
>>>>>>> working
>>>>>>> which is both quick and relatively cool. I don't ever do a pixel by
>>>>>>> pixel
>>>>>>> explosion to save speed, smallest I go is 2px segments, but it's very
>>>>>>> quick
>>>>>>> that way and looks nearly as cool. I am working on the explosion
>>>>>>> physics
>>>>>>> at
>>>>>>> the moment (instead of just coming out from the displayObject, working
>>>>>>> in
>>>>>>> spirals, etc. for each piece).
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>   Google Voice: (508) 656-0622
>>>>>>>   Twitter: eric_dolecki  XBoxLive: edolecki  PSN: eric_dolecki
>>>>>>>   http://blog.ericd.net
>>>>>>> 
>>>>>>> 
>>>>>>>  ___
>>>>>> Flashcoders mailing list
>>>>>> Flashcoders@chattyfig.figleaf.com
>>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>> 
>>>>>>  ___
>>>>> Flashcoders mailing list
>>>>> Flashcoders@chattyfig.figleaf.com
>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>> 
>>>> ___
>>>> Flashcoders mailing list
>>>> Flashcoders@chattyfig.figleaf.com
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>> 
>>>> 
>>>> 
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>> 
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] reading a very simple XML file

2011-06-08 Thread Kerry Thompson
Since your nodes are empty, you are, in fact, retrieving everything you can
by getting the attributes. You could get all the attributes at once with
something like this:

var imageAttributes:XMLList;
var attribArray:Array = new Array();
var children:XMLList = xmlData.children();

   foreach(var child:XML in children)
   {
  imageAttributes = (XMLData.asset.attributes());
  attribArray.push(imageAttributes);
   }


Or, you could restructure your XML file to something like this:

   
  googlefilename
   


This is untested e-mail AS3, so there are likely bugs in it, but that's the
approach I would use.

Cordially,

Kerry Thompson

On Wed, Jun 8, 2011 at 11:46 AM, ACE Flash  wrote:

> right you could retrieve the attributes by doing that, but what I am going
> to get is the node like this== >  filename="googlefilename" size="1000"/>
>
> The reason I am asking this is because I need to merger two xml files, is
> that possible to retrieve the entire node not just attributes?
>
> Thanks
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] typechecking ActionScript 3.0

2011-05-20 Thread Kerry Thompson
Cor wrote:

Anyone encountered this error before?
>
> Warning: 5004: The file 'playerglobal.swc', which is required for
> typechecking ActionScript 3.0, could not be found. Please make sure the
> directory '$(AppConfig)/ActionScript 3.0/Classes' is listed in the global
> classpath of the ActionScript 3.0 Preferences.
>
> I checked the directory and found that file is in there. I even reinstalled
> the application only to have that error again later on.
>

In Flash, File -> Publish Settings -> Flash tab -> beside ActionScript 3.0,
Settings -> Library path. You should see '$(AppConfig)/ActionScript
3.0/Classes' there. If it's not, click on the folder icon navigate to it,
choose it, and you should be good.

On my system, Windows 7, it's in C:\Users\Kerry\AppData\Local\Adobe\Flash
CS5.5\en_US\Configuration. It's the same on CS5 and CS4 (except, of course,
in  CS5 and CS4 folders). In CS3, the only difference is the folder is
called Flash CS3\en.

Cordially,

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


Re: [Flashcoders] Vedanayagam G has invited you to use Google Talk

2011-05-05 Thread Kerry Thompson
Doesn't this qualify as spam?

On Thu, May 5, 2011 at 6:05 PM, Vedanayagam G wrote:

> I've been using Google Talk and thought you might like to try it out. We
> can use it to call each other for free over the internet. Here's an
> invitation to download Google Talk. Give it a try!
>
> 
>
>
> Vedanayagam G has invited you to sign up for Google Talk so you can talk to
> each other for free over your computers.
>
> To sign-up, go to:
>
> http://www.google.com/accounts/NewAccount?service=talk&sendvemail=true&skipvpage=true&reqemail=flashcoders@chattyfig.figleaf.com&continue=http://www.google.com/talk/service/handleinvite?p%3DKWGukTEBAAA.dU0jqBZofkCDtHk6K27_OErk5UrCKmkHBd0OQyYj-bcDfMKtac4IKeNeMN5pgujr7zmQBQSLdeHRpVODj9fC6w.MRenwCUJVElsnzDM5C2Uqg&followup=http://www.google.com/talk/service/HandleEmailVerified?ee%3DNGGukTEBAAA.pwD4uzz95JlxRt1Xoz_dXTnI2QSa3HwYq3et3xi8_V7YOJmSUyTHm_YfrIK72XWy.cVIVBzjHe7AigpQU6UHo4A%26p%3DKWGukTEBAAA.dU0jqBZofkCDtHk6K27_OErk5UrCKmkHBd0OQyYj-bcDfMKtac4IKeNeMN5pgujr7zmQBQSLdeHRpVODj9fC6w.MRenwCUJVElsnzDM5C2Uqg
>
> Google Talk is a downloadable Windows* application that offers:
> - Free calls over your computer anytime, from anywhere, and for as long as
> you want
> - A simple and intuitive user interface for sending instant messages or
> making calls--no clutter, pop-ups or ads
> - Superior voice quality through just a microphone and computer speaker
> - Fast file transfers with no restrictions on file type
>
> After signing-up, download Google Talk and sign in with your new Google
> Account username and password.
> You can then begin inviting anyone you want to talk to for free.
>
> Google Talk works with any computer speaker and microphone, such as the
> ones built-in to many PC laptops today,
> as well as with wired and wireless headsets and USB phones. Google Talk
> also works across all firewalls.
>
> Google Talk is still in beta. Just like with Gmail, we're working hard to
> add features and make improvements,
> so we might also ask for your comments and suggestions periodically. We
> appreciate your help in making it even better!
>
> Thanks,
>
> The Google Talk Team
>
> To learn more about Google Talk before signing up, visit:
>
> http://www.google.com/talk/about.html
>
> (If clicking the URLs in this message does not work, copy and paste them
> into the address bar of your browser).
>
> * Not a Windows user? No problem. You can also connect to the Google Talk
> service from any platform using third-party clients
> (http://www.google.com/talk/otherclients.html).
>
>
> ___
> 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] Security error with LoaderMax

2011-05-05 Thread Kerry Thompson
Flex 4, FlashBuilder 4.

I am building and running an app on my Windows 7 machine. It runs fine here,
but when my client installs it on his machine, he gets a SecurityError:
Error #2148: Only local-with-filesystem and trusted local SWF files may
access local resources.

That's happening when I start the LoaderMax load() process. I have appended
about a dozen loaders, and they are accessing files on the local drive.

It happens on Windows 7 in IE and Firefox, and on the Mac. The odd thing is
that it was working for them two days ago, and I haven't changed the loading
process at all.

Any ideas?

Cordially,

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


Re: [Flashcoders] test

2011-04-24 Thread Kerry Thompson
Cor wrote:

It is Easter, so hunting the bunny
>
>
Eggxactly.
___
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 Kerry Thompson
Steve Abaffy wrote:

Quick update
>
> Function{
>
> Var Mort: MovieClip = new Mort();
>
> Try{
>
>removeChild(Mort);
>
> }catch(e:Error){
>
>// Do nothing;
>
> }
>
> addChild(Mort);
>
> }
>
> This function is called multiple times and each time it adds the child
> Mort,
> but I want to remove the one placed there previously, it works if I add the
> two lines right after each other as in the previous email but I really need
> it work more like this.
>

You have a scope issue. Mort is a local variable, and is no longer there
when you call it the second time. Try moving it up so it's declared in the
class definition, and instantiated in the function.

You have a couple of other problems, too. You have a variable Mort and a
class Mort. You should really make the variable lower case mort, like Jason
suggested.

Also, if that is your entire function, you have other problems. Every time
you call it, you're creating a new Mort (in the variable declaration--var
Mort:MovieClip = new Mort();). That guarantees you that you won't have the
previously created Mort--you just wiped it out on the first line of the
function.

Work with the debugger, Steve. Set some break points, and look at the state
of the variables, follow the logic flow. You'll find you can solve problems
like this more quickly if you understand what's happening in your code.

Cordially,

Kerry Thompson
___
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 Kerry Thompson
Steve Abaffy wrote:


> 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.
>

It's likely that Mort hasn't had time to instantiate. Either that, or Mort,
being a local variable, isn't there if you leave the function and call it
again. For example:

public function doMort(add:Boolean):void
{

  var Mort:MovieClip;
  if (add == true)
  {
Mort = new Mort();
addChild(Mort);
  }
  else
  {
removeChild(Mort);
  }
}

Mort only survives while the function is running. He's still on the display
list, but the function doesn't know who Mort is when you call him with
false.

Or, it could be something as simple as using an upper-case Var instead of
var.

Have you looked in the debugger, or with trace statements, to be sure Mort
is being created? If instantiation fails, it won't be a valid MC.

Cordially,

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


Re: [Flashcoders] constructor interpreted?

2011-04-05 Thread Kerry Thompson
Glen Pike wrote:

>    I am not sure about the "interpreted" bit - I can't remember to well, but
> Colin Moock's AS3 book mentioned not putting too much code in a constructor
> because of some constraint on the system - instead you should farm out
> initialization to another function, e.g.
>
> public class MyClass {
>    public function MyClass() {
>        _init();
>    }
>
>    private function _init():void {
>        trace("doing lots of setup");
>        //...
>        trace("finished setup...");
>    }
> }

Putting the initialization code in the init() function has a lot of
advantages, like you can instantiate something, do an addChild(), then
call init() when you're ready. As was noted a week or so ago, that
allows you to listen for events in other objects via bubbling.

I have another approach that is similar to yours, but keeps the call
stack smaller:

public function MyClass()
{
   addEventListener(Event.ADDED, init, false, 0, true);
}

private function init(e:Event):void
{
  removeEventListener(Event.ADDED, init);
   ... other init code
}

Cordially,

Kerry Thompson

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


Re: [Flashcoders] constructor interpreted?

2011-04-05 Thread Kerry Thompson
Juan Pablo Califano wrote:

> I think Kevin is referring to JIT (Just In Time) compilation. While it's
> true that actionscript source code is always compiled to
> platform-independent bytecode, this bytecode still has to be converted into
> native code before being run. That's what JIT (basically a compiler embedded
> into the virtual machine) does, at runtime.
>
> Last I
> heard, the AVM JIT compiles and caches all the native code, except for code
> in the constructors (I don't know whether this is up to date, or why are
> constructors exceptions to what seems to be the general rule).

Thanks, Juan Pablo. I wasn't thinking of the JIT compiler. Maybe I
shouldn't be working and answering posts at 2 a.m.

The JIT compiler is new with AS3, I believe. Traditionally, the
bytecode is never converted to machine language. I think the original
tokenized language was UCSD Pascal, back in the '70s, and that model
was followed for decades.

In those bytecode/token languages, each token was read by the virtual
machine (VM), and the appropriate machine-language library code was
called. This allowed cross-platform code, and the model is still
followed by a lot of languages--Director's Lingo, for example.

Cordially,

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


Re: [Flashcoders] constructor interpreted?

2011-04-04 Thread Kerry Thompson
Kevin Newman wrote:

> A long while ago I read that the constructor is interpreted, unlike the rest
> of the class methods, which are compiled. Is that still true?

It depends on what you mean by compiled. All your ActionScript
compiles down to bytecode, or tokens, that are interpreted at run
time. The native classes and all their methods (e.g. MovieClip) are
actually compiled to machine code, which can run many times faster
than bytecode.

I don't think anything, including a constructor, is actually
interpreted a character at a time like old-time interpreters (e.g.
Applesoft Basic in the late '70s). I'm not sure if a constructor is
handled any differently than the rest of the code, but I don't know
everything that happens under the hood. Somebody will correct me if
I'm wrong.

Cordially,

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


Re: [SPAM?] Re: [Flashcoders] Trouble with é

2011-04-04 Thread Kerry Thompson
Gerry Creighton wrote:

> I got it working but thanks for the help.

So, what was the issue? How did you get it to work?

Cordially,

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


Re: [SPAM?] Re: [Flashcoders] Trouble with é

2011-04-04 Thread Kerry Thompson
Ok, a couple more things to consider. Are the fonts Unicode? They should be.

Are ArialReg and ArialBold the actual name of the embedded version of
the font? Do you have ArialReg and ArialBold on your system?

Cordially,

Kerry Thompson

On Mon, Apr 4, 2011 at 1:01 PM, Creighton, Gerry
 wrote:
> Font is DEF embedded...ArialReg and ArialBold are the names...I didn't embed
> the entire font so that I don't bloat my application. I selected upper,
> lower, numbers and punctuation and included:".$()_-=+ é™℠"
>
> System: Mac - CS5
>
> Thanks,
>
> -Gerry
>
> On 4/4/11 12:43 PM, "Kerry Thompson"  wrote:
>
>> Gerry Creighton wrote:
>>
>>> Yes, font is embedded and I even included the offending characters as well
>>> as a couple others.
>>
>> Are you sure you're using the embedded font? If a font by the same
>> name is on the system, it will use that. I always put an asterisk in
>> font of my embedded font names, e.g. *Arial, so it will show up first
>> in the font list.
>>
>> What system are you developing on, and what font are you using? The ĂŠ
>> looks like it may be expecting an ANSI character, and getting a
>> Unicode character instead. Also, there are some funny characters in
>> the body of your e-mail--I'm is coming through as Išm.
>>
>> There's something system-related, or font-related, going on here.
>>
>> Cordially,
>>
>> Kerry Thompson
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

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


Re: [SPAM?] Re: [Flashcoders] Trouble with é

2011-04-04 Thread Kerry Thompson
Gerry Creighton wrote:

> Yes, font is embedded and I even included the offending characters as well
> as a couple others.

Are you sure you're using the embedded font? If a font by the same
name is on the system, it will use that. I always put an asterisk in
font of my embedded font names, e.g. *Arial, so it will show up first
in the font list.

What system are you developing on, and what font are you using? The ĂŠ
looks like it may be expecting an ANSI character, and getting a
Unicode character instead. Also, there are some funny characters in
the body of your e-mail--I'm is coming through as Išm.

There's something system-related, or font-related, going on here.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] Thought some one would like this online book

2011-02-26 Thread Kerry Thompson
Nice. I had to search "Flash AS3 Programming" once I got to the
site--the link redirected me to their home page.

Once I got to the book, though, it looks nice.

On Sat, Feb 26, 2011 at 9:17 PM, spyder spyders  wrote:
> ww.scribd.com/Flash-As3-Programming/d/19382007
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Anybody Want to Work in Dubai?

2011-02-17 Thread Kerry Thompson
Cor wrote:

> WHAT!
> No kissing AND no drinking...
> I am gone

Aw, Cor, you're so Dutch. No, you can't smoke _that_ in Dubai either.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-08 Thread Kerry Thompson
Paul Andrews wrote:

> Hi Guys - I go out for the afternoon to chat with the client and the list is
> alive with info about pianos!
>
> This is a low budget thing and not an attempt at emulating a Steinway.

I know. We know. But you know how we are--we get a bone between our
teeth and we can't let go :-)

Cordially,

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


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-08 Thread Kerry Thompson
Henrik Andersson wrote:

>> ... and volume controls wouldn't be able to emulate different attacks.
>
> Yes they could. Who is to say that you can't make the control change based
> on the frequency?

Of course you could base the volume control based on the frequency.
You could emulate louder notes, but I'm not talking about a
good-enough sound. I'm talking about a realistic piano sound.

There is much more that goes into the attack than volume, though.
There are overtones; noise (the hammer hitting the strings, for
example); the speed of the rise and fall, which vary by note, and
affect the harmonics differently; and other factors.

The attack, sustain, and decay are much too complex to be accurately
reproduced by simple volume control.

Henrick, I respect your coding ability, but take into account that I
am an active symphony performer with a master's in music and years of
experience with synthesizing sound. My remarks are based on acoustical
physics, not a casual knowledge of music.

Cordially,

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


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-08 Thread Kerry Thompson
Jason Merrill wrote:

> I wonder how much of that you could realistically control using volume 
> settings in Actionscript on the sound?  Not realistic enough?
-

Probably realistic enough for the OP. He said he didn't need the
realism. 88 keys is 7+ octaves--I'm betting one sample from each
octave would be realistic enough. I would go with .wav or .aiff,
though, rather than mp3, because it starts much more quickly.

It wouldn't be enough for a realistic piano sound, though. A note
typically has 3 parts: the attack, the sustain, and the decay. High
notes have a much shorter attack and delay then low notes, as well as
different overtones. Loud notes have a very distinctive attack, and
volume controls wouldn't be able to emulate different attacks.

I think the wave-form generators mentioned are well worth looking
into--they're probably just reverse Fourier transforms. It involves a
bit more coding, but you can get a pretty realistic piano sound using
them.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-08 Thread Kerry Thompson
Jason Merrill wrote:


> I was going to say something similar to what Kerry said - taking samples from 
> the real world as separate MP3 files.  It would seem to be pretty easy 
> (albeit somewhat time consuming) to do that if you had a moderately OK mic 
> (even one from Best Buy) and access to a piano or even a synthesizer. Then 
> you'd have a library to work from.  You could preload all possible notes  - 
> being they would be quite small files individually, wouldn't be too bad.  
> Heck, you could sell the library online for some small bucks and make money.
--

You could go further than recording all 88 notes. A soft note has a
different timbre, attack, and decay from a loud note. For such a
library to be really valuable, you would need to have different
attacks at different volume levels.

At least you don't have to worry about legato, since a piano can't
play true legato like a violin or French Horn. A non-accented attack
would do well for legato.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-07 Thread Kerry Thompson
Paul Andrews wrote:

> Thanks guys.
>
> This doesn't have to be a particularly accurate thing - I just want it to
> sound something like a piano.

I would use midi, then. Midi capabilities are pretty much universal
these days, and you'll need a lot smaller download. Plus, mp3's have a
lag on startup--not bad, but it gets annoying pretty quickly. Midi
won't have that problem.

Cordially,

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


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-07 Thread Kerry Thompson
Henrik Andersson wrote:


> I'd try the classical software synth approach. Pianos are pretty close to
> sine waves with an envelope filter controlling the amplitude and some reverb
> I've read.

It depends on how accurate Paul wants to be. The higher you go on the
piano keyboard, the closer you get to a pure sin wave. The mid-range
and lower notes are very rich in overtones.

Plus, there are three strings for each note through most of the
register, and a good piano tuner will put one string slightly out of
tune to give a richer sound. It's the same effect as with a violin
section. 28 violins don't sound like a violin 28x louder. The slight
differences in intonation, even in the world's best symphonies, is
what gives the section a richer sound.

I actually am a musician--I play principal French Horn for the Boston
Civic Symphony, and have a master's in music from a pretty good
university (Michigan).

There is a good online music notation program that does anice job of
simulating the piano sound in code, and it's written in AS3 (Flex, I
believe). Check out <http://www.noteflight.com/login>. I don't know
how willing they would be to share trade secrets, but Joe Berkovitz
might be willing to point you in the right direction.

Cordially,

Kerry Thompson

Cordially,

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


Re: [Flashcoders] OTish MP3 files for a piano scale

2011-02-07 Thread Kerry Thompson
Paul Andrews wrote:

> I'd like to make a piano keyboard, but trying to find a set of notes in MP3
> format is leading to website link hell. Anyone know of any downloads for the
> individual notes?

I don't know of any, Paul. I did a similar project, and we took
samples of all 88 keys. The timbre varies so much from octave to
octave, we had to use all 88 samples.

Maybe one of the musical geniuses on the list knows. In the meantime,
I'll ask some of my musician/computer friends.

Cordially,

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


Re: [Flashcoders] current consensus of available Flash 3D engines?

2011-02-03 Thread Kerry Thompson
Dave Watts wrote:

> Hi, I'm the list admin.
>
> If you do this again, yes, this will be your last post. Please don't
> do this again.

Bravo. Thank you, Dave.

And now, back to our regular programming.

Cordially,

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


Re: [Flashcoders] current consensus of available Flash 3D engines?

2011-02-03 Thread Kerry Thompson
Jason Merrill wrote:

> If you like, I'll call you at home tonight and spend an hour reading the 
> Wikipedia page entries on Area codes to you.


He'll do it in a flash, too :-^|
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] current consensus of available Flash 3D engines?

2011-02-03 Thread Kerry Thompson
Jason Merrill wrote:

> What's funny is how you're marketing this product off of mTropolis, an 
> EXTREMELY obscure, EXTREMELY long dead software product which disappeared 
> from the market over 10 years ago, and hardly anyone even purchased and used.
---

When I was working for Disney in the mid-90s, we evaluated mTropolis.
It looked cool, but I had seen so many multimedia authoring systems
come and go (remember IconAuthor? iTribe?) I recommended against using
it until it had established a track record. I recommended a pretty
cool product instead--Director.

AFAIK, Disney never used mTropolis. They did use Director quite a bit,
though--at least up until 2005 or so.

Agreed--it's spam. This is a Flash/Flex list. Steve, please find
someplace else to peddle your wares. The response you've gotten so far
is mild compared to the flamethrowers we have stashed for just such an
occasion.

Cordially,

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


Re: [Flashcoders] test

2011-01-11 Thread Kerry Thompson
John R. Sweeney Jr wrote:


> I didn't Direct-L was functioning anymore.
>
It's still there, for masochists and nostalgia buffs :-^|

Cordially,

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


Re: [Flashcoders] test

2011-01-11 Thread Kerry Thompson
Michael Mendelsohn wrote:

Until this thread, I've gotten a grand total of 2 emails since the new year.
>  That's even quieter than Direct-L.
>
That's because we don't have "Flash is dead" threads.

Cordially,

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


Re: [Flashcoders] test

2011-01-11 Thread Kerry Thompson
Michael Mendelsohn wrote:

> Test: is the list alive?
>
Nope. I didn't get this e-mail :-^|

Cordially,

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


Re: [Flashcoders] RE: Poptropica

2010-12-21 Thread Kerry Thompson
AFAIK, none of the Poptropica programmers is on this, or any other, list. They 
have brought in new people since I left, though, so I can't say for sure. There 
are good reasons for their not being on the lists, but I don't think I can talk 
about specifics (NDA, you know).

Cordially,

Kerry Thompson

Sent from my iPad, which doesn't support Flash!

On Dec 20, 2010, at 12:38 PM, "Merrill, Jason" 
 wrote:

> Irony of ironies would be if that developer introduced that bug into the game 
> because of something you suggested to him in response to a question here. :) 
> 
> 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 Gregory 
> Boudreaux
> Sent: Monday, December 20, 2010 12:07 PM
> To: Flash Coders List
> Subject: [Flashcoders] Poptropica
> 
> Isn't there a Poptropica programmer on the list?
> 
> My daughter is addicted... but she needs help.  She said she lost her her 
> ship on Earth and cannot locate it.  Is there a way she can easily find it?
> 
> Sorry for the slightly off topic question... but I am in crisis mode here.
> 
> gregb
> 
> ___
> 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


Re: [Flashcoders] Poptropica

2010-12-21 Thread Kerry Thompson
I worked on Poptropica for 4-5 months, about a year ago. It's a nice site for 
kids, but a difficult programming task. 

Your daughter likely hit an undiscovered bug. Their customer service is top 
drawer, though. I would contact them. They may have had others report the same 
problem, and may know a workaround.

Cordially,
Kerry Thompson

Sent from my iPad, which doesn't support Flash!

On Dec 20, 2010, at 12:06 PM, "Gregory Boudreaux"  wrote:

> Isn't there a Poptropica programmer on the list?
> 
> My daughter is addicted... but she needs help.  She said she lost her
> her ship on Earth and cannot locate it.  Is there a way she can easily
> find it?
> 
> Sorry for the slightly off topic question... but I am in crisis mode
> here.
> 
> gregb
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] My first code.

2010-12-16 Thread Kerry Thompson
spyder spyders wrote:


> To be honest I am a music producer that is interested in video game sound
> design.  I needed to make a webpage for myself and found out how Flash is in
> many ways like the music software I use. I love that I can learn coding.
> It is kind of a hobby.


There are a fair number of musicians on the list--people like me who code by
day and play in a band (or a symphony, in my case) by night.

Welcome aboard.

Cordially,

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


Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Kerry Thompson
Adrian Zając wrote:


>trace (0.27 + 0.03);   // output --> 0.30004
>
> Can anyone tell me why I get this weird result in output window?


As people have said, it's a problem with decimals. It's not a problem with
Flash--it's a problem with binary numbers.

Integers are accurate because all integers are a multiple of 1, and binary
does just fine with combining 0's and 1's, the only possibile values of a
digit in the binary system.

If you think of decimals as fractions, maybe it will help you understand the
issue. In binary, a digit can only be a multiple of 2: 1/2, 1/4, 1/8/ 1/16,
1/32, and so on. You can create numbers that aren't multiples of two by
adding multiple digits. For example, 1/4 + 1/8 = 3/8, or .375.

This works pretty well, until you get numbers with a lot of decimal places.
At some point, you will find a decimal that is impossible to make using
powers of 2.

Cordially,

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


Re: [Flashcoders] Components With Pure ActionScript

2010-12-13 Thread Kerry Thompson
Jason Merrill wrote:

 Yes.


Ok, a follow-up question. You can use Flash components in a Flex AS3
project, can't you?

Cordially,

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


Re: [Flashcoders] Calling a Static Function

2010-11-15 Thread Kerry Thompson
Hi Ktu,

I'm afraid I got pulled off that project on short notice--I'm doing a game
for Shell with a short fuse, and had to set that aside for a couple of
weeks. I'll report back as soon as I have a definitive answer.

Cordially,

Kerry Thompson

On Mon, Nov 15, 2010 at 3:33 PM, Ktu wrote:

> I'm curious if you solved the problem Kerry. Also, if the describeType
> helped you at all, and what your solution was. I'm doing a lot of swf
> loading nowadays and I will undoubtedly run into this same issue you are
> having/had.
>
> thanks
> Ktu
>
> On Wed, Nov 10, 2010 at 9:00 PM, Ktu  >wrote:
>
> >
> >
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html#describeType%28%29
> >
> > "If the value parameter is an instance of a type, the returned XML object
> > includes all the instance properties of that type, but does not include
> any
> > static properties"
> >
> > "The instance properties are nested inside a tag named  to
> > distinguish them from the static properties." - So Static properties live
> > outside it ;)
> >
> > Just learning this myself. Maybe that was the issue. My suggestion of
> > .content property is an instance of the class. Try using your var
> > AssetLibrary:Class; as the parameter for describeType().
> >
> > If it still doesn't show up, you should seriously question whether the
> > method was compiled. First though, try workarounds to call the method
> such
> > as Keith's or Juan's suggestion or casting the content as a dynamic
> object
> > and calling the method.
> >
> > var AssetLibrary:Object LoaderInfo(pEvent.target).content;
> >
> >     try {
> > AssetLibrary.initAssets(); //<--the error is here
> > } catch (e:ArgumentError) {
> > trace (e);
> > }
> >
> > just more thoughts. hope it helps...
> >
> >
> > On Wed, Nov 10, 2010 at 3:17 PM, Kerry Thompson  >wrote:
> >
> >> Ktu wrote:
> >>
> >> try using describeType() to find out whats in the class and if the
> method
> >> > has been compiled
> >> >
> >> > pEvent.target is a ContentLoaderInfo object right? You are using a
> >> Loader
> >> > object to load the swf right?
> >> >
> >>
> >> Yes, pEvent.target is a ContentLoaderInfo object. I'm downloading the
> swf
> >> with this:
> >>
> >>private function loadSwf():void
> >>{
> >>var urlRequest:URLRequest = new URLRequest(url);
> >>loader = new Loader();
> >>loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> >> handleLoadComplete);
> >>loader.load(urlRequest);
> >>}
> >>
> >> and, in the handleLoadComplete handler, I'm getting the class with this:
> >>
> >> pEvent.target.applicationDomain.getDefinition("AssetLibrary") as Class;
> >>
> >> describeType() gives me some XML, but I don't see any of my public vars
> or
> >> functions in it.
> >>
> >> Now I'm really confused, because I can see all my public vars in the
> >> debugger, but not the public function. In the XML produced by
> >> describeType(), I don't see much of anything I'm expecting. The only
> >> methods
> >> it lists are the inherited public events.
> >>
> >> Cordially,
> >>
> >> Kerry Thompson
> >> ___
> >> 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.
> >
>
>
>
> --
> 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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Kerry Thompson
Ktu wrote:

try using describeType() to find out whats in the class and if the method
> has been compiled
>
> pEvent.target is a ContentLoaderInfo object right? You are using a Loader
> object to load the swf right?
>

Yes, pEvent.target is a ContentLoaderInfo object. I'm downloading the swf
with this:

private function loadSwf():void
{
var urlRequest:URLRequest = new URLRequest(url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
handleLoadComplete);
loader.load(urlRequest);
}

and, in the handleLoadComplete handler, I'm getting the class with this:

pEvent.target.applicationDomain.getDefinition("AssetLibrary") as Class;

describeType() gives me some XML, but I don't see any of my public vars or
functions in it.

Now I'm really confused, because I can see all my public vars in the
debugger, but not the public function. In the XML produced by
describeType(), I don't see much of anything I'm expecting. The only methods
it lists are the inherited public events.

Cordially,

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


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Kerry Thompson
Keith Reinfeld wrote:


> Have you tried calling the static function indirectly?
>
> // In the swf you are loading
> public function callInitAssets():void{
>trace("\nLoadee:: callInitAssets() called");
>initAssets();
> }
>
> // In the swf you are loading into
> private function handleLoadComplete(e:Event):void{
>_assetLib = e.target.loader.contentLoaderInfo.content as MovieClip;
>trace("_assetLib =",_assetLib);
>_assetLib.callInitAssets();
> }


Thanks, Keith. I'll try that.

And thanks, Juan and John. I'll try some things, but at the moment I'm
leaning towards John's suggestion that the method isn't being compiled into
the class. I've looked at the class in the debugger, and I can see all the
public vars, but not the function. Juan, I'm assuming this is equivalent to
using describe as you suggested.

I'll try adding a call to the method in the class's constructor and see what
happens. I'll let you know what I find out.

Cordially,

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


Re: [Flashcoders] Calling a Static Function

2010-11-09 Thread Kerry Thompson
Deepanjan Das wrote:

Hi Kerry,
> The problem is in these lines:
> var AssetLibrary:Class;
>
> AssetLibrary=pEvent.target.applicationDomain.getDefinition("AssetLibrary")
> as Class;
> You are calling a stattic function; so this is correct
> AssetLibrary.initAssets();
> But why are you defining the same class variable ahead, thats wrong.
> Static methods mean you can directly call those APIs without creating an
> instance.
>
> So just call AssetLibrary.initAssets() provided you have a AssetLibrary.as
> imported.
>

That makes sense, except I may not have the .as file. I need to be able to
download an asset swf written by another developer. That's why I'm getting
the class from the downloaded swf.

I tried adding an import statement, pointing to the location of the swf, and
got an error that it couldn't be found.

Maybe I need to have the other developer make it an RSL, because I need to
share it among different swf's. I don't understand why I can't call the
function, though. There are a number of public static vars in the downloaded
swf, and I can see them in the debugger. I can't see the public static
function, though, and the assets are not being initialized.

Cordially,

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


[Flashcoders] Calling a Static Function

2010-11-09 Thread Kerry Thompson
AS3, Flex 4.

I have an asset swf I'm downloading. It has a public static function I want
to call to initialize some stuff. FlashBuilder 4 is giving me an error,
though, and an odd one--"Incorrect number of arguments. Expecting one."

The function I'm trying to call is declared with no arguments:

public static function initAssets(): void

and I'm calling it when the load is complete:

private function handleLoadComplete(pEvent:Event):void
{
 var AssetLibrary:Class;

 AssetLibrary=
pEvent.target.applicationDomain.getDefinition("AssetLibrary") as Class;
 try
 {
 AssetLibrary.initAssets(); //<--the error is here
 }
 catch (e:ArgumentError)
 {
 trace (e);
 }
}

They are separate projects in Flex. What am I missing? Do they both need to
be in the same package? At the moment I don't have a package named. Or do
they need to be part of the same working set, perhaps?

Cordially,

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


Re: [Flashcoders] Actionscript 4?

2010-11-09 Thread Kerry Thompson
I think we have at least one ECMA Script committee member on the list,
Kenneth Kawamoto (I think he works for Adobe). Maybe he'll chime in
and tell us what he's allowed to say :-)

Cordially,

Kerry Thompson


> Thanks Kerry - yeah, I have seen that Moock article, but I'm looking for 
> something more recent.
>
>  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 Kerry Thompson
> Sent: Tuesday, November 09, 2010 11:47 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Actionscript 4?
>
> Jason Merrill wrote:
>
>> Anyone heard or know anything about Actionscript 4?  I know I can look at 
>> the latest ECMA specs to get an idea of what may be coming, but I'm curious 
>> about what Adobe's doing and when.
> --
>
> Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit dated, but 
> there are some tantalizing tidbits:
> <http://moock.org/lectures/newInECMAScript4/>
>
> Or, if you want it straight from the horse's mouth, here's a 40-page pdf, 
> also a couple of years old:
> <http://www.ecmascript.org/es4/spec/overview.pdf>
>
> 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
>

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


Re: [Flashcoders] Actionscript 4?

2010-11-09 Thread Kerry Thompson
Jason Merrill wrote:

> Anyone heard or know anything about Actionscript 4?  I know I can look at the 
> latest ECMA specs to get an idea of what may be coming, but I'm curious about 
> what Adobe's doing and when.
--

Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit dated,
but there are some tantalizing tidbits:
<http://moock.org/lectures/newInECMAScript4/>

Or, if you want it straight from the horse's mouth, here's a 40-page
pdf, also a couple of years old:
<http://www.ecmascript.org/es4/spec/overview.pdf>

Cordially,

Kerry Thompson

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


Re: [Flashcoders] web developers forum

2010-10-20 Thread Kerry Thompson
Gustavo Duenas wrote:

> does anyone of you knows a wed developers forums?


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


Re: [Flashcoders] Ray casting collision detection for Circles

2010-10-07 Thread Kerry Thompson
Kevin Newman wrote:

> I wrote 4 paragraphs lol
>
> I wonder what happened to it...

The Yahoos ate them.

According to Jonathan Swift, the Yahoos are "vile and savage
creatures, filthy and with unpleasant habits, resembling human beings
far too closelyprimitive creatures obsessed with 'pretty stones'
they find by digging in mud."

Hmmm....

Cordially,

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


Re: [Flashcoders] Ray casting collision detection for Circles

2010-10-07 Thread Kerry Thompson
Jason Merrill wrote:

> You don't say.

You're right. He didn't.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Embedded fonts Bug

2010-09-24 Thread Kerry Thompson
Keith Reinfeld wrote:

> Have you specified a fontWeight and a fontStyle?
>
> [Embed(
>        source='../fonts/Garamond3/GaramThrBolItaOsF.ttf',
>        fontName='Garam3BoldItalicEmbedded',
>        fontWeight='bold',
>        fontStyle = 'italic',
>        embedAsCFF='false'
> )]

Yes, I have, and it didn't seem to make a difference.

I'm wondering, though, if I'm getting these new asset swfs. IE and
Firefox both cache swfs, especially RSL's. I'm not building the asset
swf as an RSL, but I've started clearing the cache manually for every
test. It makes me wonder if some of the tests I've run were valid.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] Embedded fonts Bug

2010-09-24 Thread Kerry Thompson
Keith Reinfeld wrote:

> I suggest that you try doing the Font.registerFont(Garam3BoldItalicEmbedded)
> in your 'embedded font swf'. Load the swf into your 'downloader' then simply
> use it in your showText().

Thanks, Keith. That's actually one of the many things I have tried,
and I end up with empty text boxes.

I've also tried making the registerFont() method in my EmbeddedFonts
class available by declaring it public static, but I don't see it when
I look at the swf in the debugger. I see all the fonts, which are also
public static var, but not the method. The variable that holds the
downloaded swf is declared type Class.

Cordially,

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


[Flashcoders] Embedded fonts Bug

2010-09-24 Thread Kerry Thompson
Hello all,

I thought I was finished with my embedded fonts project last night.
Tested it on Firefox, and it worked beautifully, so I shipped it to
the client.

As I have been testing it this morning, I have been getting an
intermittent error. It doesn't seem to be tied to the browser or Flash
Player version. When I try to register the first downloaded font. I'm
getting "Error 1508: The value specified for argument font is
invalid."

Summary of the project: in Flex, using code only, create a swf with
embedded fonts. Then download that swf, extract the fonts, and put
some text on screen with that font.

Relevant code from the embedded font swf:

public class EmbeddedFonts extends Sprite
{
public function EmbeddedFonts()
{
Security.allowDomain("*");
}

[Embed(
source='../fonts/Garamond3/GaramThrBolItaOsF.ttf',
fontName='Garam3BoldItalicEmbedded',
embedAsCFF='false'
)]
public static var Garam3BoldItalicEmbedded: Class;

Relevant code from the downloader:

private function loadSwf():void
{
var urlRequest:URLRequest = new URLRequest(url);
loader = new Loader();

loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
handleLoadComplete);
loader.load(urlRequest);
}

private function handleLoadComplete(pEvent:Event):void
{
var FontLibrary:Class;

FontLibrary =
pEvent.target.applicationDomain.getDefinition("EmbeddedFonts") as
Class;
registerFonts(FontLibrary);
showText(); 
}

private function registerFonts(pFontLibrary:Class):void
{
var fontLib:Class;

fontLib = pFontLibrary;
Font.registerFont(fontLib.Garam3BoldItalicEmbedded); 
<-- Crashes
here with error 1508
}

In the debugger, I see these values:

fontLib = EmbeddedFonts$(@b131f99)
Garam3BoldItalicEmbedded = EmbeddedFonts_Garam3BoldItalicEmbedded (@bc57e1)

Any idea what's going on? It was working last night, I swear! (Yes,
I've rebooted Windows :-)

Cordially,

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


Re: [Flashcoders] Downloading a .swc library

2010-09-23 Thread Kerry Thompson
Henrik Andersson wrote:

> SWC files are zip files with swf files inside them (and some other misc
> stuff). The flash player does not know how to deal with them.
>
> Or you could just load a swf like everyone else...

Fair enough.

Here's the issue with loading the .swf. It's all code and no assets.
I'm embedding fonts from external files on the fly. For example:

[Embed(
source='../fonts/Garamond3/GaramThrBolItaOsF.ttf',
fontName='Garam3BoldItalicEmbedded',
embedAsCFF='false'
)]
private static var Garam3BoldItalicEmbedded: Class;

If I had these embedded in a .fla, I could export them to AS and have
it working pretty quickly. The client wants an all-code Flex app,
though.

How do I access the fonts when they're not exported to AS? Make the
private static vars public? If so, how would I use the font?
textFormat.font = "className.fontName"; ?

Cordially,

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


[Flashcoders] Downloading a .swc library

2010-09-23 Thread Kerry Thompson
I posted this to another list a couple hours ago, and didn't get any
takers, so I'll try here.

My client wants something a little different. His specs call for a
Flex program that, in code, embeds fonts from an external folder. He
then wants to download that and use the fonts in another .swf.

I'm thinking a .swc library is the way to go. I'm a little new to
using libraries that way, though. Can I create the font .swc in a
library project, and download it as I would a .swf or other asset?

I know that's not the way a library is usually used. I would usually
put the fonts in a .fla, export them to AS, and download the swf, but
the client would prefer it all be done in code, and not using Flash.

I have the file with the embedded fonts--all 16 of them. They
work--Ihave 16 text fields on screen, also created at run time, each
displaying text in the appropriate font. Can I just convert the
embedding part to a .swc, download it, register the fonts, and use
them? Would I use urlLoader?

Another possibility--is it possible to export the embedded fonts to
ActionScript, with code? I've done that plenty of times with embedded
assets, but not assets generated at runtime.

Cordially,

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


Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Juan Pablo Califano wrote:

> I hear you. The way flash handles fonts is a royal mess.

It must be. I went back to an earlier version that hadn't worked, and
now it's working.

Go figure. I rebooted Windows. Maybe that's all it needed.

But IT'S DONE! Yay!

Thanks for all the help, guys. If you're interested, here's what I
ended up with that works:

package
{
import flash.display.Sprite;
import flash.text.AntiAliasType;
import flash.text.Font;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
import flash.text.TextFormat;
import flash.utils.getQualifiedClassName;

public class FontEmbedding extends Sprite
{
public function FontEmbedding()
{
registerFonts();
showText();
}

/**
 * Embeds the plain Garamond 3 font - letters, numbers and 
selected
unicode characters and punctuation.
 */ 
[Embed(
source='../fonts/GaramThrSC.ttf',

unicodeRange='U+0020-U+007E,U+00D7,U+00F7,U+03B1,U+0096,U+0096,U+2212',
fontName='GaramondTheeEmbedded',
mimeType='application/x-font',
advancedAntiAliasing='true',
embedAsCFF='false'
)]

private static var GaramondTheeEmbedded: Class;



private function showText():void
{
var textFormat:TextFormat;
var textField:TextField;

textFormat = new TextFormat();
textFormat.color = 0x00;
textFormat.font = "GaramondTheeEmbedded";

textField = new TextField();
textField.defaultTextFormat = textFormat;
textField.border = (true);
textField.embedFonts = true;
textField.text = "Hello Client!";   

textField.width = 100;
textField.height = 30;

addChild(textField);
textField.x = 100;
textField.y = 60;
}

/**
 * If you are loading a font from another .swf,this method 
needs to
be called once
 * after the class library has been loaded into memory.
 * It registers the embedded fonts and makes them available for
styling text in the application.
 *
 */ 
public static function registerFonts(): void
{
Font.registerFont(GaramondTheeEmbedded);
}
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Juan Pablo Califano wrote:

> var font:Font = new Garamond3Embedded() as Font;
> textFormat.font = font.fontName;

Well, I tried that too, and still no luck. Just in case it was a path
problem, I moved the font into the same folder as my .as file,
adjusted the source accordingly, and still no luck.

Dang, this shouldn't be this hard. I've used embedded fonts in the
past, and they've worked. I've just never tried to do it all in one
demo file.

Cordially,

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


Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Karl DeSaulniers wrote:

> I think Chris's suggestion may be the trick.
> I know I had that headache too and placing the format on after the text
> loaded did the trick.

That looked promising, but I'm getting the same result--I can see the
text field outline on screen, but no text.

> But I know with embedding the font, mine wouldnt work unless everything was
> "Arial" with a cap A cause my font name was Arial.ttf.

I'm pretty certain that's not it. Mark Jonkman showed me how to embed
a font, and I'm looking at his code (which I know works), and he named
a font something like 'SegoeBlackEmbedded', while the file name is
just SegoeBlk.ttf. That font shows up in Windows Font Viewer as Segoe
Black.

> go fig. only other thing I would say is are you declaring the var for the
> font name in your class appropriately?
>
> Best,
> Karl
>

I think that's what Juan Pablo was suggesting. I'll try it and see if
it makes a difference.

Cordially,

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


  1   2   3   4   >