[Flashcoders] Problem with Windows Projector, Fullscreen and Video

2008-12-17 Thread Daniel Soares
Hello,

This is my first e-mail to the list and I have a problem:

I have made a video player using FLVPlayback component and loading an
external flv file (on2 VP6 codec).
The file output is a Windows Project, with the full screen enabled.
It's working very well, but in one of the PC's I have tested (in the others,
it works fine) the video does not display. Everything works (sound, controls
and close button) but the video.
If I exit the full screen mode, the video displays.

The player's version is 9, the Flash IDE version is CS3, the action script
version is AS3 and I've already used the "fullScreenTakeOver" set as false.

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


Re: [Flashcoders] Loader bytesTotal equals to 0

2008-12-04 Thread Daniel Boey
Hi,

If you have 20 items that needs to be loaded, all 20 items have to have
started loading before bytesTotal can be determined. Otherwise it'll remain
at 0.

This best explains it and an alternative provided as well:
http://code.google.com/p/bulk-loader/wiki/ReportingLoadingProgress

HTH

Thanks & Best regards,
Daniel Boey


On Fri, Dec 5, 2008 at 10:40 AM, Steven Sacks <[EMAIL PROTECTED]>wrote:

> Just for clarification, it was 4 bytes (the size of an empty MovieClip in
> AS2).   I don't know if it's the same in AS3 (don't care enough to look into
> it).
>
> I don't think that's the issue he's having.  I think he's saying the
> bytesLoaded is returning correctly, but the bytesTotal is 0 the entire load.
>
> Unfortunately, I don't have a solution.
>
>
>
>
> Glen Pike wrote:
>
>> Hi,
>>
>>   Are you waiting until the totalBytes > 7 (or some other small value)
>>  First time round on some preloaders I have noticed that totalBytes was 0,
>> so put in a catch for this:
>>
>>   if(lb == tb && tb > 7) {
>>  loaded = true;
>>   }
>>
>> Christian Giordano wrote:
>>
>>> I've a strange bug which seems on the Flash Player. Basically on
>>> Windows / IE when the page is reloaded, the preloader logs the
>>> progress of the bytesLoaded correctly, but the totalBytes are
>>> incredibily 0. I tried both to check the ProgressEvent or the
>>> loader.contentLoaderInfo itself, the result doesn't change.
>>>
>>> I am wondering if anyone have ever encountered in this absurd issue (I
>>> couldn't find anything on the web).
>>>
>>>
>>> Thanks, chr
>>> ___
>>> 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] binary-coded image

2008-12-03 Thread Daniel Boey
Hi,

BitmapData class has a threshold method that does what Ashim mentioned which
if you were to go to the extreme 0 and 255 of a pixel value you'd ultimately
obtain a black and white image anyway. Main use of thresholding however is
for image processing purposes which I will not go in depth here and not
really to help save size because you won't be able to get your image back
unless you save the pixel values of the original.

I'm guessing you might mean using the ByteArray class which can be used to
store binary data and has a built-in compress method to boot.

HTH

Thanks & Best regards,
Daniel Boey


On Thu, Dec 4, 2008 at 8:00 AM, Ashim D'Silva <[EMAIL PROTECTED]>wrote:

> If you're just after the look the TweenFilterLite library has a great
> inbuilt filter. But if you actually want to convert it, I imagine you'd
> just
> run through every pixel and if the value (calculated however you'd like) is
> greater than your decided threshold, make it white, else black. I'm not
> sure
> what it will save you within flash however.
> Ashim
>
> 2008/12/4 Ian Thomas <[EMAIL PROTECTED]>
>
> > Really? Wow. Must be new additions - excellent.
> >
> > Ian
> >
> > On 12/3/08, David Hershberger <[EMAIL PROTECTED]> wrote:
> > > Also Flex supports PNG and JPEG:
> > >  mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder.
> > >
> > >  Dave
> > >
> > >
> > >  On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote:
> > >  >
> > >  > If you mean 'how do I encode a bitmap into an image format' e.g. PNG
> > >  > or JPEG, check out this library:
> > >  > http://code.google.com/p/as3corelib/wiki/Main
> > >  >
> > >  > which has code for both PNG and JPEG.
> > >  >
> > >  > HTH,
> > >  >
> > >  >Ian
> > >  >
> > >  >
> > >  > On 12/3/08, laurent <[EMAIL PROTECTED]> wrote:
> > >  > > Hi,
> > >  > >
> > >  > >  How could I convert a bitmap to a binary-coded bitmap ... or
> > anything
> > >  > else
> > >  > > that will represent a binary-coded image ?
> > >  > >
> > >  > >  Thanks
> > >  > >  L
> > >  > >  ___
> > >  > >  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
> >
>
>
>
> --
> The Random Lines
> My online portfolio
> www.therandomlines.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] "hover" event for links in HTML textfields - possible?

2008-12-02 Thread Daniel Boey
Hi,

In addition to what Glen said, I suggest that you refer to this post here:
http://troyworks.com/blog/2008/03/14/flash-textfield-actionscript-hyperlink-in-as30/

It's mentioned there that rollovers can be detected using
TextField.getCharIndexAtPoint(x:Number, y:Number).
Although you can use CSS to change links during "hover" it doesn't dispatch
an event for you listen to.

HTH

Thanks & Best regards,
Daniel Boey


On Tue, Dec 2, 2008 at 5:07 PM, Glen Pike <[EMAIL PROTECTED]> wrote:

> Hi,
>
>   You can use  tags in HTML textfields an you can also have these call
> ActionScript functions using "asfunction:funcname" or similar.  This would
> work nicely for text with only a few words that you want to highlight.  You
> can even use css to style your links.
>
>   If you want every word to do this, it would possibly better to write your
> own class to work out what word your cursor is over and highlight / tooltip
> for that.
>
>   Glen
>
>
> [EMAIL PROTECTED] wrote:
>
>> Hello List,
>>
>> Is there something like a "hover" event for links in HTML textfields? For
>> example, imagine an HTML textfield which displays the poem Jabberwocky. If
>> the user hovers over any of Lewis Carroll's nonsense words, a definition
>> appears in something like a tool-tip. Is such a thing possible?
>>
>> Cheers,
>> CB.
>> ___
>> 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] FLVPlayback goes blank on fullscreen

2008-11-27 Thread Daniel Boey
Hi List,

I'm hoping someone has encountered this issue and solved it.

I've got a SWF with a FLVPlayback component in it that streams a FLV video.
It's all fine and dandy when I launch the SWF directly into a Standalone
Flash Player.
Maximising it or resizing the window is fine. However, when I make the
window go fullscreen (ie: CTRL+F) the FLVPlayback disappears.
When I exit fullscreen, I get it back and I can see that the video is just
progressing on it's own without stopping.

After surfing around for clues, I found another person who has the same
issue but there was no solution either:
http://www.afcomponents.com/forum/viewtopic.php?t=2936

Any idea people?

Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] targeting an event listner to a button inside a movieclip?

2008-11-13 Thread Daniel Boey
Michael,

(It slipped my mind, this)

OR - you could use ADDED_TO_STAGE EventListener in that frame, and have a
function wrap around your button listener code. Should do the trick.

- Daniel -

On Fri, Nov 14, 2008 at 10:16 AM, Daniel Boey <[EMAIL PROTECTED]> wrote:

> Michael,
>
> Fix 1 (more like Issue 1) is probably the issue you're facing:
>
> http://curtismorley.com/2007/08/15/flash-cs3-flex-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/
>
> I've made similar tests that scripts just don't work because the objects
> are not there yet even though you're supposed to be on that frame already.
> There might be better fixes, but you could "try" a  gotoAndPlay instead to
> "mainoffice" and add a stop() to the next frame and have your EventListener
> code there.
>
> - Daniel -
>
>
> On Thu, Nov 13, 2008 at 11:52 PM, Michael Knauf <[EMAIL PROTECTED]>wrote:
>
>> First time posting on this list, hope y'all can help with this one, it
>> should be easy, but having gone through what seems to be every possible
>> permutation, I can't get it right.
>>
>> in the main movie, there's a button named "upperoffice", and the event
>> listner correctly triggers the displayinfobox function to send the movieclip
>> infoboxmc to a named frame... the code in frame 1 of the main movie:
>>
>>upperoffice.addEventListener(MouseEvent.CLICK, displayinfobox);
>>function displayinfobox(event:MouseEvent):void
>>{
>>infoboxmc.gotoAndStop("mainoffice");
>>}
>>
>> That works as expected. Now, there's a button in the infoboxmc movieclip
>> that I'd like to have send the movieclip to another named frame, I expect
>> that I need to have the event listener point to the button in the movieclip,
>> some thing like
>>
>>infoboxmc.closethat.addEventListener(MouseEvent.CLICK,
>> closeinfobox);
>>function closeinfobox(event:MouseEvent):void
>>{
>>infoboxmc.gotoAndStop("blank");
>>}
>>
>> but that does not work
>>
>> I get something like: "TypeError: Error #1009: Cannot access a property or
>> method of a null object reference.
>>at interactivecampmap1_fla::MainTimeline/frame1() "
>>
>> this should be pretty simple, but I can't come up with a path that
>> correctly targets the button inside the movieclip, can anyone point me in
>> the correct direction?
>>
>> Michael
>>
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
>
> --
> Thanks & Best regards,
> Daniel Boey
>



-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] targeting an event listner to a button inside a movieclip?

2008-11-13 Thread Daniel Boey
Michael,

Fix 1 (more like Issue 1) is probably the issue you're facing:
http://curtismorley.com/2007/08/15/flash-cs3-flex-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/

I've made similar tests that scripts just don't work because the objects are
not there yet even though you're supposed to be on that frame already. There
might be better fixes, but you could "try" a  gotoAndPlay instead to
"mainoffice" and add a stop() to the next frame and have your EventListener
code there.

- Daniel -

On Thu, Nov 13, 2008 at 11:52 PM, Michael Knauf <[EMAIL PROTECTED]>wrote:

> First time posting on this list, hope y'all can help with this one, it
> should be easy, but having gone through what seems to be every possible
> permutation, I can't get it right.
>
> in the main movie, there's a button named "upperoffice", and the event
> listner correctly triggers the displayinfobox function to send the movieclip
> infoboxmc to a named frame... the code in frame 1 of the main movie:
>
>upperoffice.addEventListener(MouseEvent.CLICK, displayinfobox);
>function displayinfobox(event:MouseEvent):void
>{
>infoboxmc.gotoAndStop("mainoffice");
>}
>
> That works as expected. Now, there's a button in the infoboxmc movieclip
> that I'd like to have send the movieclip to another named frame, I expect
> that I need to have the event listener point to the button in the movieclip,
> some thing like
>
>infoboxmc.closethat.addEventListener(MouseEvent.CLICK,
> closeinfobox);
>function closeinfobox(event:MouseEvent):void
>{
>infoboxmc.gotoAndStop("blank");
>}
>
> but that does not work
>
> I get something like: "TypeError: Error #1009: Cannot access a property or
> method of a null object reference.
>at interactivecampmap1_fla::MainTimeline/frame1() "
>
> this should be pretty simple, but I can't come up with a path that
> correctly targets the button inside the movieclip, can anyone point me in
> the correct direction?
>
> Michael
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FocusManager in External SWF

2008-10-29 Thread Daniel Boey
Hey people,

Light please?

-- Forwarded message --
From: Daniel Boey <[EMAIL PROTECTED]>
Date: Wed, Oct 29, 2008 at 11:30 PM
Subject: FocusManager in External SWF
To: flashcoders@chattyfig.figleaf.com


Hi people,

I was able to get FocusManager to work properly in let's call it, SWF B.
But when I load SWF B into SWF A, I get an error,

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at fl.managers::FocusManager/activate()
at fl.managers::FocusManager()
at class::SWF_A()

This is baffling me, apparently it's dying out at the constructor of SWF B
itself right after I instantiate with

focusManager:FocusManager = new FocusManager(this);

Works just splendid in SWF B on its own, allowing me to go to
NextFocusManagerComponent and all. I don't get it, can anybody shed some
light on this?

-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FocusManager in External SWF

2008-10-29 Thread Daniel Boey
Hi people,

I was able to get FocusManager to work properly in let's call it, SWF B.
But when I load SWF B into SWF A, I get an error,

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at fl.managers::FocusManager/activate()
at fl.managers::FocusManager()
at class::SWF_A()

This is baffling me, apparently it's dying out at the constructor of SWF B
itself right after I instantiate with

focusManager:FocusManager = new FocusManager(this);

Works just splendid in SWF B on its own, allowing me to go to
NextFocusManagerComponent and all. I don't get it, can anybody shed some
light on this?

-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Daniel Boey
Ian / Eric,

Has there been any of such implementations carried out that I can take a
look at, even snippets of codes or any of that sort?
Unfortunately I don't have experience in this although as a programmer I can
understand the gist of what you're both telling me so far and able to
conceptualized (as much as I can) what is required. Hopefully there will be
information available that would help me get on with my way.

Kevin,

Yeah, Director did cross my mind and as you've mentioned it has laid dormant
for too long and although Adobe claims to be improving it for a next
release, I've decided to follow something that has (and most probably will
compared to Director) to continue being worked and stabilized further.

Thanks again for the replies.


On Fri, Aug 22, 2008 at 12:09 AM, Kevin Mcfarland <[EMAIL PROTECTED]>wrote:

> Daniel - have you thought about using Director? One of the few things its
> still useful for (kiosks / communication with external devices).
>
> OTOH the current version has so many problems and Director in general seems
> on its way out, so that I can't blame you for wanting to go the Flash route,
> probably safer in the long run if you can get it working.
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Daniel Boey
Hi Ian,

Thanks for the reply.

I failed to mention that I be deploying the kiosk with Adobe AIR and because
of that wrappers wouldn't be able to support it as per Adobe's licensing for
the runtime, unless I'm mistaken which I hope I am.

- Daniel -

On Thu, Aug 21, 2008 at 3:48 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:

> Hi Daniel,
>   A number of Flash wrappers (i.e. programs to turn Flash movies into
> .exe files) can handle extensions (.dlls) written in native code. So
> you could write or buy extensions to interface with almost anything at
> a system level - without additional dialogs etc.
>
>  Northcode's SWFStudio does it: http://www.northcode.com/swfstudio.php
>
>  SWHX also does it: http://www.haxe.org/com/libs/swhx
>
>  And I know Zinc (much as I despise it's instability and bugginess)
> does it: http://www.multidmedia.com/software/zinc/
>
>  HTH,
>   Ian
>
> On Thu, Aug 21, 2008 at 7:18 AM, Daniel Boey <[EMAIL PROTECTED]> wrote:
> > Hi people,
> >
> > I've got a project that requires hardware communication between a Flash
> > kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint
> > reader, smart card reader).
> > What is required is that all this are to be operated seamlessly without
> any
> > other application dialogs popping up over the Flash interface.
> > After days and weeks of scouring the net, I wasn't able to even stumble
> upon
> > any clue on this.
> >
> > Is this even possible at all? If yes, can Flash handle all the
> communication
> > between APIs natively or what other ways is required to go about it?
> >
> > I do hope there'd reply in spite of how busy you all may be.
> >
> > --
> > Thanks & Best regards,
> > Daniel Boey
> > ___
> > 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
>



-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-20 Thread Daniel Boey
Hi people,

I've got a project that requires hardware communication between a Flash
kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint
reader, smart card reader).
What is required is that all this are to be operated seamlessly without any
other application dialogs popping up over the Flash interface.
After days and weeks of scouring the net, I wasn't able to even stumble upon
any clue on this.

Is this even possible at all? If yes, can Flash handle all the communication
between APIs natively or what other ways is required to go about it?

I do hope there'd reply in spite of how busy you all may be.

-- 
Thanks & Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] bitmap icons embedded with AS3 become blurry

2008-06-04 Thread Daniel Goldman
If it's the same problems we ran into, the smoothing isn't turned on is the
AS3 code (or the flag on the asset import).

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Bitm
ap.html

When we can we set our apps to use "best" quality (which slows it down --
but looks nicer)
http://thebackbutton.com/blog/13/speed-up-flash-with-stage-quality/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory N
Sent: Tuesday, June 03, 2008 9:24 AM
To: Flash Coders List
Subject: Re: [Flashcoders] bitmap icons embedded with AS3 become blurry

SOLVED

By using gif-only symbols in flash 8 FLA and embedding them as BitmapAsset
rather than Sprite (as I tried before)

Thanks to all who read my message :-)


On Tue, Jun 3, 2008 at 7:22 PM, allandt bik-elliott <[EMAIL PROTECTED]>
wrote:

> has it been rotated at all?
>
> On Tue, Jun 3, 2008 at 3:41 PM, Gregory N <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > Here's my problem.
> > I'm using some stuff (icons drawn by designer) from flash 8  swf in my
> AS3
> > project.
> > Embed tags work great, except the following:
> > if an icon is a gif/png image enclosed in mc (in original flash 8 file),
> it
> > becomes blurry  when embedded in my AS3 file.
> > But if I create an empty flash 8 file  and drag this icon into it's
> > library,
> > it looks crisp
> >
> > What the matter? And how can I deal with it?
> >
> > I'd like to avoid re-creating all icons in vectors...
> >
> >
> > Thanks in advance.
> >
> >
> > --
> > --
> > Best regards,
> > GregoryN
> > 
> > http://GOusable.com
> > Flash components development.
> > Usability services.
> > ___
> > 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
>



-- 
-- 
Best regards,
GregoryN

http://GOusable.com
Flash components development.
Usability services.
___
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 and parsng binary file formats

2008-04-17 Thread Daniel Goldman
Rich,
are you trying to build something in Flash to compare binary files?
Or just compare them on your desktop?
AIR on via the Net?

On Wed, Apr 16, 2008 at 11:25 AM, Stuart (FunkDaWeb)
<[EMAIL PROTECTED]> wrote:
> Im not sure fi this will work but try WinMerge www.winmerge.org
>
>
>   - Original Message -
>   From: Rich Shupe
>   To: FlashCoders
>   Sent: Wednesday, April 16, 2008 7:16 PM
>   Subject: [Flashcoders] Reading and parsng binary file formats
>
>
>   Can anyone definitely tell me that this isn't possible, or point me to
>   additional information?
>
>   I want to compare two files, but they are binary. The nearest example I can
>   think of is an encoded text file. That is, no audio, video, sound, etc. but
>   something like Word vs. ASCII or Quicken vs. QIF, etc.
>
>   The idea is to compare two files to see how they differ. For this reason,
>   read-only is fine. I know the ByteArray can be used for similar things, but
>   I don't know the limits of such an attempt.
>
>   Rich
>   http://www.LearningActionScript3.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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FMS 3.0 - Dropping application (record/_definst_) message. Clients not allowed to broadcast message.

2008-04-16 Thread Daniel Goldman
I have a simple app which records a live webcam stream – works fine on
my local FMS3 – with a hosted solution I get the:

-à FMS 3.0 - Dropping application (record/_definst_) message. Clients
not allowed to broadcast message.



Error message.  Has anyone encountered this before?





/*

* application.onConnect:

*   Implementation of the onConnect interface
function (optional).

*  it is invoked whenever a client connection request connection. Live
app uses this

*  function to authenticate the domain of connection and authorizes only

*  for a subscriber request.

*/





application.onConnect = function( p_client, p_autoSenseBW )

{

  // Check if pageUrl is from a domain we know.

  // Check pageurl





  // A request from Flash Media Encoder is not checked for authentication

  if(p_client.agent.indexOf("FME")==-1)

  {



// Authenticating HTML file's domain for the request :

// Don't call validate() when the request is from localhost

// or HTML Domains Authentication is off.

if ((p_client.ip != "127.0.0.1") && application.HTMLDomainsAuth

&&  !this.validate( p_client.pageUrl,
this.allowedHTMLDomains ) )

{

  trace("unknown pageurl " + p_client.pageUrl + ",
rejecting connection");

  return false;

}



// Authenticating the SWF file's domain for the request :

// Don't call validate() when the request is from localhost

// or SWF Domains Authentication is off.

if ((p_client.ip != "127.0.0.1") && application.SWFDomainsAuth

&&  !this.validate( p_client.referrer,
this.allowedSWFDomains ) )

{

  trace("unknown referrer " + p_client.referrer + ",
rejecting connection");

  return false;

}



  }





  // As default, all clients are disabled to access raw audio and
video and data bytes in a stream

  // through the use of BitmapData.draw() and
SoundMixer.computeSpectrum()., Please refer

  // Stream Data Access doccumentations to know flash player
version requirement to support this restriction

  // Access permissions can be allowed for all by uncommenting the
following statements



  //p_client.audioSampleAccess = "/";

  //p_client.videoSampleAccess = "/";







  this.acceptConnection(p_client);

  trace("Accepted a connection from IP:"+ p_client.ip);



  // A connection from Flash 8 & 9 FLV Playback component based client

  // requires the following code.



  if (p_autoSenseBW)

p_client.checkBandwidth();

  else

p_client.call("onBWDone");





}

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


Re: [Flashcoders] Your new list server

2007-10-20 Thread Daniel Arcé

same problem.
sorry.

Chris Ivey wrote:
Somehow, in setting up your new list server, you re-activated all the 
e-mail addresses that had been previously UNSUBSCRIBED from the list, 
(3 in my case).


Now that's annoying - especially if you have multiple mailboxes 
filling up with messages.


I can't unsubscribe, because your password reminder button doesn't 
seem to work.


Can you please unsubscribe me?

Chris Ivey
___
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] FMS2 Installation Failure

2007-09-04 Thread Daniel Calderón
Hello to everyone
 
I have installed FMS2, Flash 8; Flash Player and plug in as said as 
installation guide. 
 
After installation, I ran an example showns in Examples found in Adobe, posted 
to practice for developers. I cant run the examples, and shows an error 
"NetConnection.connect.failure". I believe that I installed in the correct 
way the FMS2 software, and I cant find why is that error. 
 
PD: I have been installed the software FMS2 in other PC and ran perfectly, but 
in my personal PC shows the failure. Another thing in that I desactivate the 
windows firewall.
 
Could anyone help me in this matter? I want to try this software but I cant run 
properly!!
 
Thanks for your time
 
Daniel C.
_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Class to loop sound objects in order

2007-08-16 Thread Daniel Glue
Muzak, thanks so much for that :) Alain I have been using your classes you
kindly posted and they are working great, I've customised them a little to
my needs so I can start and stop them and set the volume and they do exactly
what I want.Thanks again everyone,
Dan


On 16/08/07, Muzak <[EMAIL PROTECTED]> wrote:
>
> function play():Void {
> currSound.onSoundComplete = Delegate.create(this,
> this.soundCompleteHandler);
> }
>
> function soundCompleteHandler():Void {
> // code
> }
>
> regards,
> Muzak
>
> - Original Message -
> From: "Daniel Glue" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, August 15, 2007 3:38 PM
> Subject: Re: [Flashcoders] Class to loop sound objects in order
>
>
> > Hey Muzak, thanks for yr response, I'm not sure of the syntax to use
> > Delegate in this instance, I tried this:
> > currSound.onSoundComplete = function() {
> > trace("mp3c:"+mp3C+"  length:"+snds_ar.length)
> > //if there are more sound objects to play iterate thru array and
> retrigger
> > play()
> > if (mp3C > mp3Count++;
> > //this bit isn't working!
> > Delegate.create(this, play); //  play();
> > } else {
> > if (loopForever) {
> > mp3Count = 0;
> > this.play();
> > } else {
> > //all sound objects have played and play() is not retriggered
> > mp3Count = 0;
> > }
> > }
> > };
> >
> >
> > but it won't work and I can't find an event to tie this to. If you could
> > spell it out for me I would be very grateful.
> > Thanks!,
> > Dan
> >
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Class to loop sound objects in order

2007-08-15 Thread Daniel Glue
Hey Muzak, thanks for yr response, I'm not sure of the syntax to use
Delegate in this instance, I tried this:
currSound.onSoundComplete = function() {
trace("mp3c:"+mp3C+"  length:"+snds_ar.length)
//if there are more sound objects to play iterate thru array and retrigger
play()
if (mp3C wrote:
>
> get rid of the nested function and use Delegate.
>
> regards,
> Muzak
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, August 15, 2007 12:45 PM
> Subject: [Flashcoders] Class to loop sound objects in order
>
>
> > Hi there, thanks for checking my post. I am trying to create a class
> that will play a number of mp3 loops each a specified number
> > of times and in the specified order. I have tried to find an existing
> class but cant find one anywhere.
> >
> > My solution (which may not be that efficient), is to create all of the
> sound objects in the fla then load the mp3s into them. When
> > they are all loaded each sound object is added to a new object that
> holds it as well as a 'loops' property that says how many
> > times the sound object must play. These objects are then put into an
> array in the order they are to be heard. This array is passed
> > to my LoopSound class that controls the playback. I can also pass a
> 'loopForever' property that will make the series repeat
> > indefinitely.
> >
> > The problem I am having is re-triggering the play() function from within
> my LoopSound Class to move onto the next sound in the
> > array. I am sure that there will be a much neater way of achieving what
> I want, and maybe even a pre-written class!
> >
> > Any direction / suggestions / encouragement much appreciated :)
> >
> > Thanks!
> > Danny
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] FLV issues on Mac & PC

2007-08-07 Thread Holth, Daniel C.

Hello,

We're creating a training CD-Rom that uses multiple swfs and FLVs.  One
of the requirements is that the CD-Rom work both on a Mac and PC.  We're
having some difficulties getting the FLVs to play on the Mac.

The problem seems to stem from differences in how the Mac (Safari?) pull
FLVs.  If I have the FLV on the root directory of the CD-Rom with the
main_application.swf file, it plays fine, but if I have the course
directories structured how I would like (explained below) it wont play
on the Mac.  It continues to play on the PC.

I would like to have all my swfs organized in volume->chapter folder
structure, and all the FLV videos in a separate Videos folder at the
root level.  Since the main_application.swf loads in other SWFs, the
loaded swfs are treated as if they too are on the root level (instead of
e:\volume\chapter\loaded_swf.swf).  This would seem to work fine,
because then I could still point al the swfs to look for the flv in the
videos directory at the root, but like I said, unless I have the FLVs on
the root level they won't load.

Unfortunately, I can't seem to get this system to work on the Mac.  If I
put all the flvs at the root level it will work, but we're looking at
some 50+ flvs, and that would be really cluttered and un-organized.
We'd also like to avoid using projectors, since this will eventually be
moved to the internet.

Thoughts or suggestions much appreciated.  Let me know if you need
further clarifications.

Thanks!

-Dan


This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] [Solved] getURL with doc doesn't work in IE

2007-07-26 Thread Holth, Daniel C.

Removed "_blank" from the getURL and its working now.


Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Holth,
Daniel C.
Sent: Thursday, July 26, 2007 6:18 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] getURL with doc doesn't work in IE


Hello,

I have the following code in an onRelease event of a button:

getURL("systems_breakdown_notes.doc","_blank");

In FireFox the document opens fine, but in IE it gives a page error:
"Action canceled : Internet Explorer was unable to link to the Web page
you requested. The page might be temporarily unavailable. ..."

If I focus into the address bar and hit enter (not changing anything) it
will open the document.  There is a comment in livedocs about this
problem in IE 6, but no solutions.  We can't upgrade IE, or distribute
FireFox (devs have it for testing, but not the rest of employees).

Anyone encountered this before, and have a solution?

Thanks

Daniel Holth
I.S. Programmer
x5217   ||  J401



This e-mail and its attachments are intended only for the use of the
addressee(s) and may contain privileged, confidential or proprietary
information. If you are not the intended recipient, or the employee or
agent responsible for delivering the message to the intended recipient,
you are hereby notified that any dissemination, distribution,
displaying, copying, or use of this information is strictly prohibited.
If you have received this communication in error, please inform the
sender immediately and delete and destroy any record of this message.
Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] getURL with doc doesn't work in IE

2007-07-26 Thread Holth, Daniel C.

Hello,

I have the following code in an onRelease event of a button:

getURL("systems_breakdown_notes.doc","_blank");

In FireFox the document opens fine, but in IE it gives a page error:
"Action canceled : Internet Explorer was unable to link to the Web page
you requested. The page might be temporarily unavailable. ..."

If I focus into the address bar and hit enter (not changing anything) it
will open the document.  There is a comment in livedocs about this
problem in IE 6, but no solutions.  We can't upgrade IE, or distribute
FireFox (devs have it for testing, but not the rest of employees).

Anyone encountered this before, and have a solution?

Thanks

Daniel Holth
I.S. Programmer
x5217   ||  J401



This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Drawing API

2007-07-25 Thread Holth, Daniel C.

They don't give code, but you may want to check out:

http://www.adobe.com/designcenter/gallery/swf/index.html#u_sContent=odop
od


Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karim
Beyrouti
Sent: Wednesday, July 25, 2007 2:51 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Drawing API

Hi There,

Just on the off chance any of you can help -

Does anyone have any resources, or knows a good example online to
simulate
slightly blotchy ink using the drawing API?


Regards



Karim

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.17/915 - Release Date:
24/07/2007
13:50


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] How to determine when an externally loaded swf hasended playing.

2007-07-24 Thread Holth, Daniel C.

Are these timeline based swfs, or single frame, or movieclips within
movieclips?  Or won't you know?

You could create an onEnterFrame event that continually checks the swf's
_currentframe compared to _totalframes.  When they are equal, it has
reached the end. 

If it's a single frame or MovieClips within MovieClips situation, it
becomes more difficult...

DC Holth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christopher Whiteford
Sent: Monday, July 23, 2007 3:54 PM
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] How to determine when an externally loaded swf
hasended playing.

I have a situation where I don't have control of the external swf files
that
my prog is using.

I have created a movieClip that uses a movieClipLoader and loads an
external
swf into it, I am trying to detect when the end of that external swf has
been reached.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] ComboBoxV2 & Preloader problem

2007-07-24 Thread Holth, Daniel C.

Perfect!  Solved my problem!   Thanks.


Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans
Wichman
Sent: Tuesday, July 24, 2007 4:02 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] ComboBoxV2 & Preloader problem

Hi,
this was recently discussed on the list, search for :
  Andy Herrman <[EMAIL PROTECTED]>to Flashcoders
*[Flashcoders] Strange ComboBox issues when loaded in a child SWF*

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] ComboBoxV2 & Preloader problem

2007-07-23 Thread Holth, Daniel C.

Hello,

We have a main_preloader.swf that loads our main_app.swf.  The
main_app.swf has a ComboBox V2 component.  When main_app.swf is run by
itself, it works beautifully, but when its loaded into the
main_preloader.swf the ComboBox is broken.  It highlights when clicked,
but won't open or do anything else.

When I drop the combo box in the main_preloader.swf, it works fine, but
that jumps the size of the main_preloader.swf to 58kb - much too big to
be a good preloader.  Anyone have thoughts on how to solve this?

Thanks!

Daniel Holth
I.S. Programmer
x5217   ||  J401



This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Actionscript Optimization!

2007-07-14 Thread daniel

Hey,

Since you folks were so incredibly helpful last time I threw out a silly
question, I thought I'd toss out another... =)

The other replies to my previous thread (+Inifinite Loop -Dignity) triggered
a couple AS optimization hints, which I will be using! So I was wondering if
the kind mister Kremens was correct in stating that shorter variable names
aid in speeding up AS code. Fine, fine, he said he was joking, but I do
remember a reading document about optimizing C++ programs saying the same
thing.

Is there a good resource I can go to for reading up on AS code optimization?
Do practices from lower-level languages like C++ even apply in a language
like ActionScript? Am I smoking something I shouldn't be?

I love you all.

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

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


[Flashcoders] RE: +Infinite Loop -Dignity

2007-07-11 Thread daniel

Thanks everyone for the input! It works now. I'm simplifying my architecture
at the moment, as I do understand that function calls are quite costly in
the world of ActionScript.

Danny's suggestion was mostly correct, however an Animation instance is
unaware of a Scene, so an Animation's update function couldn't have been
calling a Scene's update function over again. (This is intended behavior.)

It had to do with the fact that an animation was capable of having another
animation added unto itself. This wasn't correct, and was supposed to have
been removed from my implementation. It wasn't, so that's what created the
infinite loop.

The reason I'm jumping through so many hoops, as David puts it, is that the
Game class is responsible for managing a Scene, which in turn is responsible
for updating in-game graphical Elements. The reason Game doesn't do this by
itself is that it should not be aware, or even care, about the Elements
currently loaded. It should concern itself with game-level mechanics only,
such as managing the difficulty and score.

Sorry if it sounds like I'm ranting. Clear sometimes not me, often that.

Thanks everyone!

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

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


[Flashcoders] +Infinite Loop -Dignity

2007-07-10 Thread daniel

I feel really stupid right now. No, not that stupid. I mean  really stupid.
Take the highest level of stupid you can imagine and double that. Yes, now
you've got it!

I have a class named Game.

Game.start() calls setInterval(this, "update", 1000).

Game.update() calls _gameScene.update().

_gameScene.update() has the following loop inside of it:

for (var i:Number = 0; i != elements.length; i++) {
elements[i].animation.update();
}

That FOR loop puts my humble PC into a coma. The variable 'elements' is not
undefined, and when I call trace(elements.length) I get '2'. I tried
clearing ASO cache (whatever that's worth right now) as a silly precaution.

Excuse me whilst I hang myself.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Excel Exponentiation (caret) Notation

2007-07-10 Thread Daniel Cascais

Thanks Gregg!

On 7/9/07, g. wygonik <[EMAIL PROTECTED]> wrote:

hey daniel

i think that means that you have three arrays of the B1:B7 Math.pow()
series, with each array being a different value in the curly-bracketed list.

That is:

B1:B7^{1,2,3} becomes

var myArray1 = [ Math.pow(B1,1),...,Math.pow(B7,1)];
var myArray2 = [Math.pow(B1,2),...,Math.pow(B7,2)];
var myArray3 = [Math.pow(B1,3),...,Math.pow(B7,3)];

B1:B7^{5,10} becomes

var myArray1 = [Math.pow(B1,5),...,Math.pow (B7,5)];
var myArray2 = [Math.pow(B1,10),...,Math.pow(B7,10)];

and so on

hth
g.





On 7/1/07, Daniel Cascais <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Hi, I've stumbled upon this function call in Excel:
> =LINEST(A1:A7,B1:B7^{1,2,3})
>
> And I'm having issues with this last bit:
> "B1:B7^{1,2,3}"
>
>
> Let's say B1:B7 is an array from 1 to 7 considering this Excel notation:
> "B1:B7"
>
> It would look like this in ActionScript:
>
> var n1:Number = 1;
> var n2:Number = 2;
> var n3:Number = 3;
> var n4:Number = 4;
> var n5:Number = 5;
> var n6:Number = 6;
> var n7:Number = 7;
>
> var myArray:Array = [n1, n2, n3, n4, n5, n6, n7];
>
>
> Now, if I change this, considering the following Excel notation:
> "B1:B7^2"
>
> It would look like this ActionScript:
>
> var n1:Number = Math.pow(1, 2);
> var n2:Number = Math.pow(2, 2);
> var n3:Number = Math.pow(3, 2);
> var n4:Number = Math.pow(4, 2);
> var n5:Number = Math.pow(5, 2);
> var n6:Number = Math.pow(6, 2);
> var n7:Number = Math.pow(7, 2);
>
> var myArray:Array = [n1, n2, n3, n4, n5, n6, n7];
>
>
> But what on earth happens to the array with this Excel notation???
> "B1:B7^{1,2,3}"
>
> --Daniel
>

--
weblog: broadcast.artificialcolors.com
blazePDF: www.blazepdf.com
band: www.cutratebox.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


RE: [Flashcoders] least to greatest

2007-07-06 Thread Holth, Daniel C.

The array class in Flash has a sort numeric (least to greatest) feature:

var myArray:Array = new Array();

myArray.push(5);
myArray.push(1);
myArray.push(65);
myArray.push(3);
myArray.push(56);
myArray.push(9);
myArray.push(-2);
myArray.push(44);
myArray.push(7);
myArray.push(8);
myArray.push(10);

trace("myArray: " + myArray); // myArray: 5,1,65,3,56,9,-2,44,7,8,10

myArray.sort(Array.NUMERIC );

trace("myArray: " + myArray);  // myArray: -2,1,3,5,7,8,9,10,44,56,65

Would this work, or do you need to have the numbers pushed onto the
array in a specific order to begin with?

Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corban
Baxter
Sent: Friday, July 06, 2007 8:50 AM
To: Flashcoders mailing list
Subject: [Flashcoders] least to greatest

Hey all I have a list of 10 numbers that I need to push into and array
from
least to greatest fairly often. What would be the fastest way to get
this
accomplished? Or maybe just anyway to get this done would be a great
help
thanks.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] scrollpane woes

2007-07-02 Thread Holth, Daniel C.

This seems to be working fine for me, unless I'm missing something... I
copied your code into its own layer on frame one.  I then dropped the
ScrollPane component into my library.  Created a new MovieClip, exported
it for ActionScript and gave it an identifier of mcEventText.

When I run the swf, it creates the scrollpane, adds the mcEventText
MovieClip and resizes its self to the desired dimensions.  If the
mcEventText clip is larger than 292x180 the pane scrolls correctly.  I
added a TextArea component and a TextInput component to the mcEventText
clip and it still seems to work fine... 

The TextArea will have *its own* scroll bars within mcEventText, and
won't run off the pScrollPane scroller  - so you would have nested
scrollpanels.  Are you trying to get the scrollbars of the textfield to
use the ones from psScrollPane?


DC Holth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [p e r c
e p t i c o n]
Sent: Sunday, July 01, 2007 12:13 PM
To: flashcoders
Subject: [Flashcoders] scrollpane woes

hi experts,
i'm trying to stick a movieclip with a textfield nested inside it into a
scroll pane (component)...even though the text is in the pane the
scrollbars
are not adjusting themselvs nor does the pane scroll...here;s the
code...

pScrollPane = this.attachMovie("ScrollPane", "sPane", 0);
pScrollPane.setStyle('borderStyle', 'none');
pScrollPane.tabChildren = false;
pScrollPane.tabEnabled = false;
pScrollPane.__hScrollPolicy = "auto";
pScrollPane.__vScrollPolicy = "auto";
pScrollPane.contentPath = 'mcEventText';

pScrollPane.setSize(292, 180);
pScrollPane._x = mcEventText._x;
pScrollPane._y = mcEventText._y;

any ideas?

thanks

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Excel Exponentiation (caret) Notation

2007-07-01 Thread Daniel Cascais

Hi,

Hi, I've stumbled upon this function call in Excel:
=LINEST(A1:A7,B1:B7^{1,2,3})

And I'm having issues with this last bit:
"B1:B7^{1,2,3}"


Let's say B1:B7 is an array from 1 to 7 considering this Excel notation:
"B1:B7"

It would look like this in ActionScript:

var n1:Number = 1;
var n2:Number = 2;
var n3:Number = 3;
var n4:Number = 4;
var n5:Number = 5;
var n6:Number = 6;
var n7:Number = 7;

var myArray:Array = [n1, n2, n3, n4, n5, n6, n7];


Now, if I change this, considering the following Excel notation:
"B1:B7^2"

It would look like this ActionScript:

var n1:Number = Math.pow(1, 2);
var n2:Number = Math.pow(2, 2);
var n3:Number = Math.pow(3, 2);
var n4:Number = Math.pow(4, 2);
var n5:Number = Math.pow(5, 2);
var n6:Number = Math.pow(6, 2);
var n7:Number = Math.pow(7, 2);

var myArray:Array = [n1, n2, n3, n4, n5, n6, n7];


But what on earth happens to the array with this Excel notation???
"B1:B7^{1,2,3}"

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

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


RE: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Daniel Thompson
 
> You should always use the new "as" operator.

I disagree. If you want the TypeError thrown, because you're going to catch
it, then it can be handy. I use both methods of casting and I like the
choice. (I do agree that I wish it were (LiquidObject)child instead of
LiquidObject(child)... but I'm not going to stop using it because I don't
like the syntax.)

-DT


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

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


RE: [Flashcoders] AS3.0 and C++

2007-06-04 Thread Holth, Daniel C.
You may want to explore Apollo.  It allows for RIAs to be developed for
the desktop.
http://labs.adobe.com/technologies/apollo/ 

Another option would be asking around on flexcoders.
http://tech.groups.yahoo.com/group/flexcoders/


~D.C. Holth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bharat
Varma
Sent: Monday, June 04, 2007 10:08 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AS3.0 and C++

Hi,

I am developing an application where I would like to use Flex to talk to
some dlls / exe installed on the local machine, through a browser.

The DLLs (and or) EXE will be installed using an installer.

The workflow I would like working on the client machine is the swf
(created
by Flex) getting loaded in the browser and communicating with the dlls
installed on the machine.

I guess one way would be to use External Interface and do a

Action Script <-> Java Script <-> ActiveX  (for IE) / np dll (for
FF)

I would like to avoid installing any new activex control for my
application.
I do not need any GUI for my application either.

Is there another way to directly communicate with the dlls and
completely
avoid activex (or equivalent in FF) ?

Also, material on ExternalInterface to Win32 C++ dlls communication
seems
really sparse. Can some one point me in the right direction ?

Regards,
Bharat Varma

-- 
There are 2 kinds of people in this world -
1. Those who don't need closure.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Setting up loadVars onLoad handler within custom class

2007-06-04 Thread Daniel Glue

Thanks everyone, I've been reading through the article on scope and
using the Delegate Class that Alain reccomended which was very useful
and had just come round to code a very similar solution as written out
by Fernando, thanks everyone!
Danny

On 04/06/07, Fernando Castillo <[EMAIL PROTECTED]> wrote:

Hi Daniel,

Just something like this.



import mx.utils.Delegate;
class VersionChecker{
private var my_lv:LoadVars;
private var xmlAdd:String;
private var browserType:String;
private var ipAddress:String;

public function VersionChecker(xmlAddy:String) {
my_lv = new LoadVars();
my_lv.onLoad = Delegate.create(this, onXMLLoad);
xmlAdd = xmlAddy;
startCheck();
}

private function startCheck() {
trace("version checker starting to check:"+xmlAdd);
my_lv.load(xmlAdd);
}

private function onXMLLoad(success:Boolean):Void {
if(success){
trace("OK");
}else{
trace("ERROR");
}
}
}





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel Glue
Sent: lunes, 04 de junio de 2007 16:21
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Setting up loadVars onLoad handler within custom
class

Hey there, I am creating a custom class with a loadVars object that
gets data from a web page. My problem is I can't get my loadVars
object to load! I think I am setting the onLoad handler in the wrong
place. Might anyone have any ideas how I set this inside my custom
class?

Thanks in advance guys!
Danny


Here is my code:

Class VersionChecker{
private var my_lv:LoadVars;
   private var xmlAdd:String;
  private var browserType:String;
  private var ipAddress:String;


//receives url to connect to sets onLoad handler
 public function VersionCheck(xmlAddy:String {
xmlAdd = xmlAddy;
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace("loaded");
browserType = this.browser;
ipAddress = this.ip;
} else {
trace("load failed");
}
};
startCheck();
}

  private function startCheck() {
trace("version checker starting to check:"+xmlAdd);
my_lv.load(xmlAdd);
}
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

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


[Flashcoders] External font loading - No shared libraries

2007-06-04 Thread Daniel Gregório

Does anybody has an ideia of how to load external fonts in ttf? or something
else instead of shared libraries?

thank you very much,


--
Daniel Gregório
Adobe Certified Professional
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Setting up loadVars onLoad handler within custom class

2007-06-04 Thread Daniel Portilla Heras
Hi Daniel, Don't you have this line in your code

my_lv = new LoadVars();

?

If you don't have this, your loadvars will not work.

Bye

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

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


[Flashcoders] Setting up loadVars onLoad handler within custom class

2007-06-04 Thread Daniel Glue

Hey there, I am creating a custom class with a loadVars object that
gets data from a web page. My problem is I can't get my loadVars
object to load! I think I am setting the onLoad handler in the wrong
place. Might anyone have any ideas how I set this inside my custom
class?

Thanks in advance guys!
Danny


Here is my code:

Class VersionChecker{
private var my_lv:LoadVars;
   private var xmlAdd:String;
 private var browserType:String;
 private var ipAddress:String;


//receives url to connect to sets onLoad handler
public function VersionCheck(xmlAddy:String {
xmlAdd = xmlAddy;
my_lv.onLoad = function(success:Boolean) {
if (success) {
   trace("loaded");
browserType = this.browser;
ipAddress = this.ip;
} else {
trace("load failed");
}
};
startCheck();
}

 private function startCheck() {
trace("version checker starting to check:"+xmlAdd);
my_lv.load(xmlAdd);
}
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread Daniel Portilla Heras
Hi Sebastián, why don't you put the window target in the getURL???

getURL("javascript:urchinTracker('"+__newURL.parameters.myURL+"')", "_self")

This works fine for me.

Bye

Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

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

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


[Flashcoders] Re: E4X not for external XML docs? (Yay!)

2007-05-30 Thread daniel

Thanks you Arul and Muzak for your help. The problem was the namespace
issue, and some of it had to do with simple scope problems.
Woo! I love everyone!

--


Hey everyone!

I'm using an URLLoader to load a XML configuration file. I try to read the
XML file using some E4X syntax ([EMAIL PROTECTED]), but I get
nothing but an empty string when I trace it out.

However when I do the same to a local variable with some hard-coded XML as
its value, the E4X expressions work as expected. Can I use E4X and the XML
data type for external XML content? I double-checked if the URLLoader is
loading the content successfully by simply tracing it out. That works. Any
ideas?

Excuse me if this has been asked before.

Quick idea of what I'm doing...

function urlLoaderCompleteHandler>(eventObj:Event):void {
// ...
var xmlData:XML = new XML(eventObj.target.data);
}

// ...
trace(xmlData.myElement); // Zip!


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

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


RE: [Flashcoders] Crossdomain problems

2007-05-30 Thread Daniel Portilla Heras
Hi Gert, two things about your crossdomain.xml, if you put secure="true" you 
gives access to files from another httpS://www.mydomain.com but NO from 
http://www.mydomain.com (If I'm not confused). 

And the other thing it's that I didn´t be able to give access to a localhost 
domain, I had to put my files in a test server (with a internet's domain)

I hope it solve your problem.

Bye

Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

 

-Mensaje original-
De: Gert-Jan van der Wel [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 30 de mayo de 2007 16:51
Para: flashcoders@chattyfig.figleaf.com
Asunto: [Flashcoders] Crossdomain problems

Hi list!

I'm a developer on the Floorplanner team (check www.floorplanner.com) and I
ran into some crossdomain issues.

All the furniture elements are separate swf's which are loaded in one by
one. For the sake of scalability we are thinking about moving all the
furniture swf's to the Amazon S3 service. So I've uploaded all the swf's to
Amazon S3 and I made a little test app to see how things worked. To be
short, it didn't. You can load swf's, but no moving, scaling, changing color
etc.

So I made a new test app using another server of our own:
www.floorplanner.nl (because I've more control over this one). Every
furniture swf has an movieclip with the name "color". When you select a
color in the Floorplanner, the color of this movieclip is changed. My test
app checks if it can access that color movieclip. When I run it inside the
Flash IDE there is no problem, but run it anywhere else and it will fail.

Here is my little test app:
http://www.floorplanner.com/assets/lab/crossdomaintest.swf
http://www.floorplanner.com/assets/lab/crossdomaintest.fla

I've set my crossdomain files to allow everything (for now):
http://www.floorplanner.nl/crossdomain.xml
http://www.floorplanner.com/crossdomain.xml

Can anybody help me and tell me what I'm doing wrong?

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

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

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


RE: [Flashcoders] dynamic text not wrapping

2007-05-30 Thread Daniel Portilla Heras
HI nik again, sorry but these code are of the help and I don't read it so much. 
These options are for a single-line textfield, that grows "infinitely". If you 
want to use multiline you must to set to "true"

With the autosize you have to take care because, they are a lot of bugs about 
this property of the TextFields.

I have to make my own function to autoadjust my textfield. It gets the width of 
the textfield, then It makes the autosize to "none", it sets the width, and 
sets the autosize to the param ("left" or "right") and it aligns the textfield 
again.

// Begin code
function autoadjustTXT(field:TextField, algnText:String){
var wtext:Number;
wtext = field._width;
field.autoSize = "none";
field._width = wtext
field.autoSize = algnText;
field.align = algnText;
}
// End code

Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

 

-Mensaje original-
De: nik crosina [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 30 de mayo de 2007 16:48
Para: flashcoders@chattyfig.figleaf.com
Asunto: Re: [Flashcoders] dynamic text not wrapping

HI,

Danny, no I didn't set the wrap property explicitly in actionScript,
but only selected multiline (NOT 'multiline no wrap') in the
properties. I should mention that it is a dynamic textfield.

Daniel, why do I have to create it multiline and wrap = false, only to
set these properties to tru later on?

Will do some tests,

Thanks,
Nik

On 5/30/07, Daniel Portilla Heras <[EMAIL PROTECTED]> wrote:
> Hi Nik, you must to use dynamic texts build on the fly with actionscript.
>
> // Begin Code
> createTextField("my_txt", 1, 0, 0, 200, 20);
> with (my_txt) {
>   border = true;
>   borderColor = 0x00;
>   multiline = false;
>   wordWrap = false;
>   autoSize = "none";
>   text = "this is my first text created dynamically, it's too large and don't 
> wrap with my textfield";
> }
> // End Code
>
> After this, if you can to set the width to 100px, you have to make it 
> multiline and wordWrapped, You'll have to set the height according to the 
> number of lines of scroll you have.
>
> This is only an idea, I supose that anyone can give you "another hand".
>
> Bye
>
>
> Daniel Portilla Heras
> Dpto. Desarrollo
> Virtual Training
> TELECOR
> Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
> [EMAIL PROTECTED]
>
>
>
> -Mensaje original-
> De: nik crosina [mailto:[EMAIL PROTECTED]
> Enviado el: miércoles, 30 de mayo de 2007 13:29
> Para: Flashcoders mailing list
> Asunto: [Flashcoders] dynamic text not wrapping
>
> HI guys,
>
> an easy one - I can't get a dynamic text filed to wrapp text around
> that I am asigning to it with:
>
> ' messBox_txt.text = "display this really looong sentence ..."; '
>
> Using Flash mx 2004 professional.
>
> Thanks!
>
> Nik
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


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

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

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


RE: [Flashcoders] dynamic text not wrapping

2007-05-30 Thread Daniel Portilla Heras
Hi Nik, you must to use dynamic texts build on the fly with actionscript.

// Begin Code
createTextField("my_txt", 1, 0, 0, 200, 20);
with (my_txt) {
  border = true;
  borderColor = 0x00;
  multiline = false;
  wordWrap = false;
  autoSize = "none";
  text = "this is my first text created dynamically, it's too large and don't 
wrap with my textfield";
}
// End Code

After this, if you can to set the width to 100px, you have to make it multiline 
and wordWrapped, You'll have to set the height according to the number of lines 
of scroll you have.

This is only an idea, I supose that anyone can give you "another hand".

Bye


Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

 

-Mensaje original-
De: nik crosina [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 30 de mayo de 2007 13:29
Para: Flashcoders mailing list
Asunto: [Flashcoders] dynamic text not wrapping

HI guys,

an easy one - I can't get a dynamic text filed to wrapp text around
that I am asigning to it with:

' messBox_txt.text = "display this really looong sentence ..."; '

Using Flash mx 2004 professional.

Thanks!

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

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

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


RE: [Flashcoders] Reading GPS data into Flash on a Pocket PC?

2007-05-30 Thread Daniel Portilla Heras
Hi Phil, can you write files in your Pocket with .NET?? 
I think that you can read then with flash. 

Another idea it's to make some .NET webform that replys with the GPS data, 
Flash can make an getURL command that reads from the .NET web page in you 
Pocket, but I don´t know how you have to configure the pocket to works with an 
Internet Server. 

Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

 

-Mensaje original-
De: Phil Bailey [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 29 de mayo de 2007 21:39
Para: flashcoders@chattyfig.figleaf.com
Asunto: [Flashcoders] Reading GPS data into Flash on a Pocket PC?

Hello All --

I am desperately trying to figure out how to read GPS data into Flash on a 
Pocket PC. I have a bluetooth GPS unit and a Pocket PC running Windows Mobile 
5.0. Here is what I've tried:

1. Found a couple of .NET Compact Framework .dlls for Windows Mobile. These 
have methods for connecting to GPS devices and reading location data. I 
installed .NET CF on the Pocket PC and I tried using Zinc 2.5 to connect to the 
.dlls but with no luck. Later I found out that Zinc for Pocket PC supports 
Windows Mobile 2003, but not later versions such as 5.0.

2. There is an article on the Adobe Flash developer's site about a GPS/Pocket 
PC project called "Invisible Ideas". The project was done by writing a C++ 
application that would read the GPS data from the serial port. It would 
communicate with Flash via an XMLSocket connection. Unfortunately, the article 
provides no information about the C++ side of things (not that it would help 
much as I am not a C++ or .NET developer).

I am now trying to think of other methods for accomplishing my goal. Any ideas? 
Does anybody know of someone who has succesfully accomplished the same thing?


Best Regards,


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

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

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


[Flashcoders] E4X not for external XML docs?

2007-05-29 Thread daniel

Hey everyone!

I'm using an URLLoader to load a XML configuration file. I try to read the
XML file using some E4X syntax ([EMAIL PROTECTED]), but I get
nothing but an empty string when I trace it out.

However when I do the same to a local variable with some hard-coded XML as
its value, the E4X expressions work as expected. Can I use E4X and the XML
data type for external XML content? I double-checked if the URLLoader is
loading the content successfully by simply tracing it out. That works. Any
ideas?

Excuse me if this has been asked before.

Quick idea of what I'm doing...

function urlLoaderCompleteHandler(eventObj:Event):void {
// ...
var xmlData:XML = new XML(eventObj.target.data);
}

// ...
trace(xmlData.myElement); // Zip!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] IE7/Flash Player Problem

2007-05-29 Thread Daniel Portilla Heras
Hi Jason and everyone, I'm from Spain and I'm new in FlashCoders (sorry
my bad english).

Have you seen the XML with the IE7 when you had the error?

I say that because if the XML is dynamically generated, you can have
problems with the encoding Type or special characters. Flash is very
strict with the format of the files.



Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

 

-Mensaje original-
De: Jason Saelhof [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 29 de mayo de 2007 1:31
Para: flashcoders@chattyfig.figleaf.com
Asunto: [Flashcoders] IE7/Flash Player Problem

Hi everyone,

 

I'm currently experiencing a weird bug that only occurs on IE7 (I've
tried flash player 8 and all revisions of 9). I'm using
XML.sendAndLoad() to send XML to a server retrieve xml back as a
response. This is code which has been running in production for years
without problem until earlier this month. The problem occurs on the XML
object's "onLoad" handler which gets a "success" parameter from the
player indicating if the message succeeded or not. Periodically, the
flash player reports the message failed (success is false) but my web
debugger shows the message was retrieved successfully (I use Charles web
debugger). This can happen on any message but generally happens quite
randomly. 50 messages may work fine and then one will exhibit this
"false negative" behavior from the flash player. 

 

Has anyone else experienced this kind of thing with IE7? If so, do you
have any further information?

 

Jason 

 

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

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

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


RE: [Flashcoders] Q:Dynamically change blend mode

2007-05-23 Thread Holth, Daniel C.


movieClip.blendMode = "[mode]"

blendMode (MovieClip.blendMode property)
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp
.htm?context=LiveDocs_Parts&file=00002444.html



Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2007 2:53 PM
To: flashcoders
Subject: [Flashcoders] Q:Dynamically change blend mode


This has come up fairly often and I haven't found a solution.
Is there a way to change the blend mode on a Movieclip that is created
at runtime?


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

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders]

2007-05-22 Thread Daniel Calderón
Hello..
 
The present Email is for asking help about a source code I have downloaded from 
http://www.adobe.com/devnet/flash/articles/video_player.html
 
I have been trying to add some ".flv" I converted from some of my movies, and I 
cant find the way in the very all chances I tried, that the code makes 
automatically the thumb. I have tried with different movie formats (.mov,  
.avi, .wmp, .mpeg, etc converted by Riva encoder) and some works successfully. 
but others not.
 
I have anyone used this source code and guide me with good practices in how 
could I import flv movies and asure that thumb is gonna be created?
 
Thanks in advance
 
Daniel C.
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] splitting the list?

2007-05-16 Thread Holth, Daniel C.

This topic, or at least one very similar, was just brought up earlier
this week. See subject: [Flashcoders] Motion to combine coders and
newbies.

I personally think many of the questions being posted here probably
belong in FlashNewbies, and not enough people know about that list.  I
know I'm guilty of posting newbie questions here because I didn't even
know about the other list until this week.

I'd like to see the list stay as is, but would like to see more
revealing subject lines instead of the many "Problem!"  "Help!"  "Is
this an error?" type lines that don't give any idea of what the actual
problem is and make it difficult to search the list to reference
solutions for your own problems (thus not requiring a repost if its
already been covered).

Another idea that I support was the use of additional tags in the
subject line such as [XML] or [server] so people can use their own
filtering.

Just my two cents.

Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nimrod
Huberman
Sent: Wednesday, May 16, 2007 11:11 AM
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] splitting the list?

This list include very interesting and helpful subjects, but for me its
large amount of posts each day make it less useable.

Maybe is the time to split it to some lists by subject?  i.e.
flashcoders-XML and data, flashcoders-server communication, as3
specific,
video, oo-architect.

 ???

Nimrod

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] rotating a movie clip around another movie clip...

2007-05-16 Thread Holth, Daniel C.

Give this a shot.  Planet_mc is the movieclip to be rotated around,
satalite_mc is the one to orbit it.

var _angle:Number = 0;
var _radius:Number = 100;
var _rotationSpeed:Number = 5;

onEnterFrame = function () {
_angle += _rotationSpeed;
var xPos:Number =
(planet_mc_x+Math.cos((_angle*Math.PI)/180)*_radius);
var yPos:Number =
(planet_mc._y+Math.sin((_angle*Math.PI)/180)*_radius);
satalite_mc._x = xPos;
satalite_mc._y = yPos;
};




Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jay
Carlson
Sent: Wednesday, May 16, 2007 10:06 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] rotating a movie clip around another movie
clip...

so I'm fairly new to using actionscript for everything in my
flash 
and I was wondering if there was a way to rotate a movie clip around 
another movie clip that is already rotating.  here's the scenario...I 
have a "crystal ball" that is floating in a circle thanks to 
actionscript.  this ball has 2 "light squares" on it to give the 
impression of glass/lights/etc...I also have a separate shadow 
movieclip on the ground below the ball that I am changing the size 
and alpha according to the y position of the ball movieclip (via 
actionscript, of course).  I want to do the same thing with these 
light squares.  I'd like to give the effect of when the ball floats 
down, the light squares rotate/move up on the ball and vise versa.  
this would give the effect that this is just a glass ball floating in 
space with overhead lights that are stationary.  so that's what I 
want to do and maybe it's way too far over my head for now, but I 
guess I gotta learn somehow!  so...is there a way to rotate/move this 
light square movieclip according to the x & y axis of the ball 
movieclip?  any help would be appreciated...right now, I've been just 
copying and pasting code in there and seeing what happens.  I'm a 
designer and not a math wiz, but I'm slowly learning.  thanks!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] AS3 KeyboardEvent Oddity [cross-post alert]

2007-05-15 Thread Holth, Daniel C.

Just curious, what operating system are you on? 

WASD are so often used as 'direction' keys, I'm wondering if there could
be something in the accessibility options of the OS that is making it
react this way...  Just a thought.

Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Marsden
Sent: Tuesday, May 15, 2007 11:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders] AS3 KeyboardEvent Oddity [cross-post alert]

Hey all,

Having a bit of a mare with a 2 player game using WASD for player 1 and
cursor keys (UP, DOWN, LEFT, RIGHT) for player 2. It seems that the
keyboard will only trigger either RIGHT or D, not both together :(

If I change player 1's controls to SZXC (or ESDF) it works fine.

Has anyone come across this, or know if it's possible to hack the
Keyboard class to make RIGHT and D work at the same time?

Thanks!

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] A request

2007-05-14 Thread Daniel Calderón

My name is Daniel, and Im requesting for someone who could develop a simple 
project for a web portal that Im creating, in which I would like to ad a 
solution of "live support two ways" (Video, text, smileys, phone ring) with 
FMS. Also I would like to post some videos as streaming offline from some 
people to be watched, so I would like to ad this develop into the project. Im 
using linux, php and MySql.I know that probably many of you people are really 
great developers in this area of Flash Media Server, this is why Im here asking 
for help and I hope to hear some answers about who could help me in my advances 
and the solution I want. I have seen some examples of what I want in the 
following 
links:www.influxis.comwww.develooping.com/site/chat/index.phphttp://www.123flashchat.comhttp://www.flashcoms.com/products/community_video_chat/PD:
 Sorry if my English lacks of being fluid and rich. If this is not the channel 
of posting this request, please fell free of telling me and I will post more 
specifically issues.If anyone is interested in giving me support, please 
contact me through this Emails:[EMAIL PROTECTED]@cantv.net

[EMAIL PROTECTED] for your timeDaniel CalderónThanks againgDaniel C.
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Motion to combine coders and newbies.

2007-05-14 Thread Holth, Daniel C.

I wasn't even aware of Flash Newbies before finding FlashCoders.  I'm
sure I posted a few questions here that were better suited for Flash
Newbies.  I think it's a publicity problem more than anything - when I
did a Google search to find flash help, I don't think I ever got an
archived version of a FlashNewbies in the response, but quite a few from
FlashCoders.

I've just subscribed to flash newbies, so hopefully I'll be able to help
out.  I think encouraging flashcoders to also subscribe to flash newbies
would be the best solution.

Daniel Holth
I.S. Programmer
x5217   ||  J401



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, May 14, 2007 9:16 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Motion to combine coders and newbies.

I appreciate the arguments and kind words, but I vote to keep them
separate.  Here's why:

1) Flashnewbies does have some rather advanced topics from time to time,
but we need to help those people graduate to flashcoders, or if they
don't get an answer, encourage them to ask on Flashcoders. 
2) Flashnewbies is low-traffic (but not REAL low, I still see a dozen or
more messages a day), but that's a good thing in some ways. 
3) Flashnewbies is a good place to ask non-coding Flash questions, like
questions about the IDE or general strategy.
4) Flashbnewbies is (sorry to say), so much more polite, personal, and
friendly than Flashcoders.  Mixing the two, we'd lose that.  Flashcoders
is a huge 2000-unit townhome development in the city.  Flashnewbies is a
small 10 home neighborhood in the country.
5) People who don't get the help they need on Flashnewbies should ask on
Flashcoders anyway.
6) Flashcoders don't want to see a bunch of newbie questions on this
list, especially when the same questions get asked over and over. It
will add traffic they don't want to have to sort or mentally ignore.
7) More Flashcoders should consider subscribing to Flashnewbies just to
help people out.  Think of it as community service.  You might even
learn some things (I do). :)
8) If this proposal  requires further consideration, we should at least
open the same thread on Flashnewbies to get input from people over
there. 

Anyway, nice ideas, but personally, I don't think it would be the best
thing to combine the lists, no offense.

Jason Merrill
Bank of America 
GT&O Learning & Leadership Development
eTools & Multimedia Team




>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Count Schemula
>>Sent: Sunday, May 13, 2007 8:54 PM
>>To: flashcoders list
>>Subject: [Flashcoders] Motion to combine coders and newbies.
>>
>>Hear me out before freaking out.
>>
>>1. Half of the posts in Coders are more or less Newbie posts anyhow.
>>
>>2. There is just not a lot of traffic in Newbies. So, it's
>>hard to pick Coders brains and honestly, most Newbie
>>questions can be answered by a Coder in less than a minute. I
>>post in Newbies, but answers can take days. Seems like Jason
>>Merrill is one of the few Coders dedicated to helping out
>>those less fortunate.
>>
>>3. Making Newbies stronger benefits all. After a while, a
>>typical dedicated Newbie will be able to field a lot of the
>>other Newbie questions and the situation will level out.
>>
>>4. But oh, the increased traffic! Please. I have a dedicated
>>gmail account for this list. It threads the posts together
>>and has practically unlimited storage and very good search.
>>
>>5. Pound home the idea that Newbies need to title their posts as such
>>"No0b: How do I make a movie clip?" Coders don't have to do anything.
>>
>>6. What's good for Flash developers is good for  the Flash Platform.
>>Getting more Newbies to an intermediate level benefits the
>>Flash Platform as a whole with better apps, better people in
>>jobs to lobby for Flash, etc, etc.
>>
>>Ok, now you can freak out.
>>
>>--
>>count_schemula
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com http://training.figleaf.com
>>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
ht

[Flashcoders] Animating Character Movement

2007-05-04 Thread Holth, Daniel C.

Hello,

I'm working on an project where the user uses the arrows keys to move a
guy in a kayak left and right across the screen.  I have 6 total
animations set up: Paddling Left, Idle Facing Left, Turning Left to
Right, Paddling Right, Idle Facing Right, and Turning Right To Left.

I've never programmed a moving character before, so I'm looking for some
tips on the best way to program this sort of thing.  I started to create
a pseudo-state pattern using a 6 switch statement to figure out what
state the character is currently in and responding accordingly when the
user presses a key.  This seems rather tedious though, and I figured
there must be a better way of doing this.

I think the part I'm having the most trouble with is the 'turning
states'. 

Any feedback greatly appreciated!  I can post some of my current code if
it helps, but I really haven't gotten anywhere productive with it yet.

Thanks!

Daniel Holth
I.S. Programmer



This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Blur effect via action scripting

2007-05-03 Thread Holth, Daniel C.

Xian,

Both of these classes support blurring.

My EasyTween class:
http://blog.dcholth.com/?p=23

Or

Jack Doyle's TweenFilterLite:
http://www.greensock.com/ActionScript/TweenFilterLite

Hope that helps!

~DC


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Prince
Zain
Sent: Thursday, May 03, 2007 9:48 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Blur effect via action scripting

OOoops!!! I am sorry. It is not "blue" but "blur".



I have three good quality image in my application. Initially I want all
three look blur but when user roll over to it then it will gradually
become
clear image & when roll out it would be again blur.



I can use two images (like one blur & one clear) & using fade in & out
can
achieve the same. But I wanted to know, can I achieve the same using
action
scripting using a single clear image.



Any help is greatly appreciated.



Thanks to you all.

Xian









-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Andy Herrman
Sent: Thursday, May 03, 2007 6:35 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Blue effect via scripting



Can you give more specific information on what you're trying to do?

What do you mean by "blue effect"?



  -Andy



On 5/3/07, Prince Xian <[EMAIL PROTECTED]> wrote:

> Hi,

>

> Do anybody know how to generate blue effect on mouse roll over on
movie
clip

> have bitmap image in it via action scripting. I don't want to use one
more

> blue prototype to show this.

>

> Waiting for ur reply.

>

> Cheers,

> Xian

> ___

> Flashcoders@chattyfig.figleaf.com

> To change your subscription options or search the archive:

> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

>

> Brought to you by Fig Leaf Software

> Premier Authorized Adobe Consulting and Training

> http://www.figleaf.com

> http://training.figleaf.com

>

___

Flashcoders@chattyfig.figleaf.com

To change your subscription options or search the archive:

http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



Brought to you by Fig Leaf Software

Premier Authorized Adobe Consulting and Training

http://www.figleaf.com

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Blue effect via scripting

2007-05-03 Thread Holth, Daniel C.

Xian,

I'm assuming you want to tint a movie clip to blue or cause a blue glow?

You could try my EasyTween class which supports filters and color
tinting.
http://blog.dcholth.com/?p=23

Or

Jack Doyle has also posted his TweenFilterLite class to the list as
well.
http://www.greensock.com/ActionScript/TweenFilterLite


Hope that helps!

~DC


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Prince
Zain
Sent: Thursday, May 03, 2007 5:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Blue effect via scripting

Hi,

Do anybody know how to generate blue effect on mouse roll over on movie
clip
have bitmap image in it via action scripting. I don't want to use one
more
blue prototype to show this.

Waiting for ur reply.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] MouseEvent.MOUSE_WHEEL event not working for me.

2007-04-24 Thread Daniel Freeman
I can't get mouse wheel events to work.

stage.addEventListener(MouseEvent.MOUSE_WHEEL,mousewheel);
trace('mousewheel event set');

function mousewheel(ev:MouseEvent):void {
trace('localX='+ev.localX+' localY='+ev.localY');
trace('stageX='+ev.stageX+'
stageY='+ev.stageY);
}

When I run this simple test, and move two fingers over
my trackpad (Apple mousewheel) - nothing happens. 
Why?


Send instant messages to your online friends http://au.messenger.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Holth, Daniel C.

Andreas,

Are you testing on a webserver or locally?  I rarely get errors from
using ExternalInterface or getURL calls when testing online... 

Flash security is horrible to work with locally (hard-drive, CD-ROM,
etc) and it can be a real nuisance to have to always upload your files
to the webserver in order to test, but once online it goes pretty
smooth.
  
Daniel Holth
I.S. Programmer


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
R
Sent: Tuesday, April 24, 2007 11:14 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] browser security aggrevations (rant alert)

basic banner. you click on something, a url opens. However, this process

has to go through a delegate. User clicks, releases; bam,
"Adobe flash player has stopped a potentially unsafe operation"

Banner has a search bar, enter key, when this inputfield has focus,
calls getURL. Nuh uh.
"Adobe flash player has stopped a potentially unsafe operation"

anything using externalinterface
"Adobe flash player has stopped a potentially unsafe operation"

getURL calls through event bubbling or event chains
"Adobe flash player has stopped a potentially unsafe operation"

getURL calls through onPress (bear with me)
"Adobe flash player has stopped a potentially unsafe operation"

The amount of shit we have to go through to make stuff work in browsers
is one thing (such as raping our own script to the point of hilarity),
but why, oh dear sweet baby jesus why, is Adobe forcing endusers to use
their ridiculous fucking security manager page?!

I have rarely seen a more user unfriendly piece of garbage. Nothing is
clear, descriptions are vague, and somehow the whole tone seems directed

at.. developers?

Either i'm doing something fundamentally wrong, and by fundamentally i'm

talking triangular wheels type shit, or someone needs to explain to me
the thought process behind putting users through such a meat grinder of
a security control panel, because the way i see it right now, we're up
shit creek if we want to deliver content with a semblance of proper
usability and avoid users getting smushed into that security alert again

and again.

My mom would have *no idea whatsoever* why that thing showed up, nor
what the security manager site even does.

To remain objective:
Here's my problem. X number of buttons in a class where button presses
broadcast click events that do a number of things, including opening a
url.
Also, the search bar problem described above. In an ideal world all
these cals would go through javascript with externalinterface (it's a
somewhat complex banner and i'd like the client to be able to alter
where URLs point for instance), but that's a surefire way of forcing
endusers to go through the grinder if they haven't already, degrading
the whole application to the power of max.

I have a hell of a time figuring out how to do this, and it's beginning
to royally anger me.

So please, smarter people than i; How do you facilitate user
interactions with the browser without crashing into this lunatic
security management solution? What are the rules of thumb?

*sigh*

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash Simulation freezing Problem

2007-04-23 Thread Holth, Daniel C.

Ritesh,

Its difficult to debug without any code samples.  If you can provide
some, it may help.

>From my understanding there are multiple buttons in the shell, and ALL
of them cause the application to freeze when clicked.  Is this correct?
If it is a specific button, what is it supposed to do?

Also, the fact that it is just one machine that is causing the problem,
would lead me to believe it is more of a problem with that specific
machine than with your application.  Have you tried closing down all
other applications and tasks on that machine and seeing if the problem
persists?

Thanks

Daniel Holth
I.S. Programmer


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
Desale
Sent: Monday, April 23, 2007 5:46 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash Simulation freezing Problem

Hi,



I have created a simulation based e-learning course having following
technical features:

1. High-end software simulations are developed with screen
shots.

2. Audio

3. Shared library is being used for all the components

4. Most of data is loaded & placed dynamically



I am facing the simulation freezing problem in the main course player
(shell) file.



When the course is launched from the LMS server (ASPEN), in one of the
simulation on clicking a button the screen is getting freeze. This
problem is pertaining to only one of the XP machines. When the same file
is played from the local machine is work fine. Our client is also facing
the same problem in different instances.



I have debugged the coding and found that flash default nextFrame() and
gotoAndStop() methods are not working as required on specific machine.



We have tried following methods to resolve the issue:



1.  We have checked this issue with Flash Player like 6,7,8,9
version. But the problem still persists.

2.  Code modification were done but flash default nextFrame() and
gotoAndStop() methods are not working as required.

3.  Course tested on different browsers like IE 6.0, Opera, Firefox
Mozila. But the problem still persists.

4.  Changed all IE advanced setting, Privacy setting, security
setting to make same as working machine.  But the problem still
persists.

5.  Checked all the machine settings and configuration in my
computer properties but they are same for the both (working and not
working) machines.



After going through lots of testing phases I am unable to get some
concrete solution on this.  Can you please help me to get this problem
resolved?



As this is a very crucial phase of the project (Gold version), I would
like to get this problem resolved as early possible.



I thank you in advance for all your support and help. 





Regards

Ritesh

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Little OT - USB drive autorun?

2007-04-13 Thread Holth, Daniel C.

Despite the fact I haven't been entirely happy with software, I was
going to suggest using AutoRun Typhoon III, but it doesn't look like it
would necessarily solve your problem.

Does AutoRun work with USB drives?
http://www.typhoonsoftware.com/forum/topic.asp?TOPIC_ID=17


Basically it says you will need to either install software before hand,
or buy special 'autorun' enabled USB drives.

-DCH


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Mennenoh
Sent: Friday, April 13, 2007 8:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Little OT - USB drive autorun?

>>Does this help?

No. Like I said - I was looking for something that did not require first

installing software on the target machine. Anybody else, or I guess the
answer is just 'no'.


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

___
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash and needed computer specs

2007-04-10 Thread Holth, Daniel C.

I use a PC here at work and a Mac at home.  I'm very partial to Macs,
although I'd have to recommend you wait until Flash CS3 is released.
Despite my love of Macs, I'll admit that I find working in Flash almost
painfully slow on my Intel Mac because its still running in Rosetta.
(Running Flex Builder 2 on the Intel is beautiful though, and I expect
similar experiences when CS3 is released).

If Mac & upgrading to CS3 isn't an option, I'd just recommend getting as
powerful a PC as possible... But still hold on to some of your old ones
for testing purposes because Flash will probably fly and run beautifully
on your new machine, but may not perform as nicely on some client's
older machines.

Not sure if I gave you anything useful there... Just my 10 cents (the
first two cents are free).

Peace.
Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis -
I Sioux
Sent: Tuesday, April 10, 2007 10:18 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash and needed computer specs

A bit weird to ask such a lame question...
But my co-worker has to order some working stations for more flash
(game) developers.. and was wondering what are handy computer specs for
such.

Especially what reduces large compiling time (besides using flasc and
handy file seperation and such).

Does anyone have an opinion.. or if it's an old subject.. a link?

With kind regards,


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] would this bother you?

2007-04-09 Thread Holth, Daniel C.

If you want to free up memory you need to 'delete' all the references,
not just removeMovieClip.  I grabbed this from the livedocs:

Usage 4: The following example shows the behavior of delete on object
references:

-
var ref1:Object = new Object();
ref1.name = "Jody";
// copy the reference variable into a new variable
// and delete ref1
ref2 = ref1;
delete ref1;
trace("ref1.name "+ref1.name); //output: ref1.name undefined
trace("ref2.name "+ref2.name); //output: ref2.name Jody

If ref1 had not been copied into ref2, the object would have been
deleted when ref1 was deleted because there would be no references to
it. If you delete ref2, there are no references to the object; it is
destroyed, and the memory it used becomes available.
--

If only have one reference to the object, like in your code, then the
delete should do just fine to free the memory.  If you have copied it a
few times, then you will need to keep track of those copies in order to
free the memory.

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: Monday, April 09, 2007 1:17 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] would this bother you?

AFAIK, any instances will remain in memory if there is a reference to it
anywhere. Even if you call the remove methods, they just remove them
from
the Stage/screen but not from the memory stack. You will have to remove
any
references in any instances in order to garbage collect them properly.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of geng
wang
Sent: Monday, April 09, 2007 10:51 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] would this bother you?

hello flashcoders,

i have two fundamental questions. they somewhat keep bothering me:

1. what are the datatypes of a MovieClip instance and a Textfield
instance after calling "removeMovieClip()"/"removeTextField()" on that
MovieClip/Textfield instance?

2. do they remain in the memory after
"removeMovieClip()"/"removeTextField()"? do i need to "delete" the
references to them in order to have them "garbage collected"?

pls see below:

var tn:MovieClip = this.createEmptyMovieClip("tn", 0);
var tn_nested:MovieClip = tn.createEmptyMovieClip("tnNested", 0);
var tf_nested:TextField = tn.createTextField("tf", 1, 0, 100, 100, 100);
tf_nested.text = "hello world!";
tn.loadMovie("http://assets0.twitter.com/images/twitter.png?1175908827";)
;

destroy_btn.onRelease = function(){
tf_nested.removeTextField();

tn.removeMovieClip();

trace("is tn instanceof MovieClip after removeMovieClip: "+(tn
instanceof MovieClip));//false
trace("is tn instanceof Object after removeMovieClip: "+(tn
instanceof Object));//false
trace("tn type after removeMovieClip: "+ typeof(tn));//movieclip
trace("is tf_nested instanceof Object after removeMovieClip:
"+(tf_nested instanceof Object));//false
trace("tf_nested type after removeMovieClip:
"+(typeof(tf_nested)));//movieclip
trace("tn is "+tn+"; tf_nested is "+tf_nested);//tn is ;
tf_nested
is

delete tf_nested;
delete tn;

trace(newline+"delete tn");
trace("tn after destroy: "+(tn instanceof MovieClip));
trace("tn after destroy: "+(tn instanceof Object));
trace("tn type after destroy: "+ typeof(tn));
trace("tf_nested type after destroy: "+(typeof(tf_nested)));
}
___

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] basic flash games development issues

2007-04-09 Thread Holth, Daniel C.

True, but the trust files are designed to be used by executable
installer programs.  The applications we have developed (and I'm
guessing the original authors as well) needed to be run totally from the
CD-ROM/DVD and thus no installing.

Anyone know of a way to getting the trust files on the users machine
with something as simple as "This application needs to install a Flash
player trust file: Allow, Deny?"  dialog box?

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Monday, April 09, 2007 12:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] basic flash games development issues

You can install a file on the client that will make your CD/DVD app
trusted and the user no longer needs to configure anything
online.
(in fact that's exactly what the security manager does -> writes a text
file to disk)

http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html
Read the "FlashPlayerTrust configuration files" part.

regards,
Muzak

- Original Message -
From: "Holth, Daniel C." <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 09, 2007 3:17 PM
Subject: RE: [Flashcoders] basic flash games development issues



We've built some applications for CD, and have run into 'security
sandbox' issues.  They were very frustrating.  The DVD will be
considered 'local content', and you can read about the issues here:
http://www.adobe.com/products/flashplayer/articles/localcontent/

When you begin testing your applications, make sure you are doing so
with 'default' security settings in Flash.  I'm guessing most of us have
turned them to 'always allow' because we got security errors once and
just turned them off, but you can't expect your clients to have that
set, or want to change them.  Without installing something on the users
machine, changing the security settings requires access to the internet,
(which is very silly IMO) but you may need to take internet-less users
who won't be able to change their settings into account as well.

As far as SharedObjects go, the user may be able to change them, and
clearing their internet caches may delete the SharedObjects (and thus
their scores).

-Dan


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] basic flash games development issues

2007-04-09 Thread Holth, Daniel C.

We've built some applications for CD, and have run into 'security
sandbox' issues.  They were very frustrating.  The DVD will be
considered 'local content', and you can read about the issues here:
http://www.adobe.com/products/flashplayer/articles/localcontent/

When you begin testing your applications, make sure you are doing so
with 'default' security settings in Flash.  I'm guessing most of us have
turned them to 'always allow' because we got security errors once and
just turned them off, but you can't expect your clients to have that
set, or want to change them.  Without installing something on the users
machine, changing the security settings requires access to the internet,
(which is very silly IMO) but you may need to take internet-less users
who won't be able to change their settings into account as well.

As far as SharedObjects go, the user may be able to change them, and
clearing their internet caches may delete the SharedObjects (and thus
their scores).

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nik
crosina
Sent: Sunday, April 08, 2007 4:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] basic flash games development issues

Hi,

I am putting together a quote for a client who needs to have a number
of games developed for a DVD. I am new to games dev and running Flash
from disks so my questions are now:

Are there any special issues relating to putting (existing) games onto
disks? How would we keep high scores, etc. Can Flash write to disks
when run from a DVD?

I am planning to use Zinc to run the swf in, which raises some
questions regarding the needed compatibility: The interface of the
thing will need to display also PDF files, something I never had to do
in Flash. Is this possible and can they be displayed inside4 Flash or
only opened externally with existing / installed Acrobats (or Acr.
Readers)?

Are there any viable alternatives to Zinc?

All the above *needs* to run on Win 98, XP and Vista, and the client
would be in 7th heaven if we can get it to work on Mac and Linux OSs.
Are there any issues we could encounter or reasons why this would not
work/ I am thinking along the lines of players not being available for
any of the above platforms, or implementing things differently on
different platforms.

Is there a ball park guide line how long the development of a simple
'point and shoot/avoidance' game would take under the above
restrictions?

I hope this is not too OT, thanks for any responses.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] re: createTextField

2007-04-06 Thread Holth, Daniel C.

TextFields don't have onRollOver events, but MovieClips do.  So you'll
need to first create a MovieClip (like in your first question) and then
create the textField in it.  Heres some example code:

var myMovieClip:MovieClip = this.createEmptyMovieClip("myMovieClip_mc",
this.getNextHighestDepth());
trace("myMovieClip: " + myMovieClip);

var myTextField:TextField =
myMovieClip.createTextField("myTextField_txt",
myMovieClip.getNextHighestDepth(), 100, 100, 300, 100);
trace("myTextField: " +myTextField);

myTextField.text ="test";

myMovieClip.onRollOver = function(){
myTextField.text = "NEW TEXT";
}

In the code above 'this' would be your _root layer.  Coding to _root is
generally considered a bad practice.

Hope that helps!

-Dan




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of edward
Sent: Thursday, April 05, 2007 2:53 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] re: createTextField

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

well, I have simplified everything. My only two little issues now
are:

1. my mouseover does not work to change the text's color.

2. i imported silkscreen bitmap font size 8 linkage for first
frame, and linked for actionscript. i named it mysilkscreen.
however, when i execute the movie, no errors but the font is just a
generic serif font now, any ideas? its tough when flash gives me no
errors.


here is the code:


_root.myRed = 0xFF;
_root.myLightGray = 0x99;
_root.myDarkGray = 0x353535;

_root.createTextField("mytext",1,100,100,300,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = false;

menuFonts_Fmt = new TextFormat();
with(menuFonts_Fmt) {
color = myLightGray;
bullet = false;
underline = false;
font="mysilkscreen";
size = 8;
}

mytext.text = "Writing";
mytext.setTextFormat(menuFonts_Fmt);

//

_root.mytext.onRollOver = function() {
_root.mytext.textColor = myDarkGray;
}
-BEGIN PGP SIGNATURE-
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wpwEAQECAAYFAkYVUz8ACgkQnK42HzOJXBc6SgP/WvdRkiCt743MiFk0LaHo5WZtYaaS
FUU7Kw6PDtMghjL2gHkfN1wjU4tLYKS3af8G0fuzj+IwoEzjWs7RN0T9yT52f7+aDaWZ
eztH6YtosIKbijf0yNUT1SP10OcLoHfw2CbLcTq0ZAo7kLI8Lbltve6M0pAGDZ4fRW5N
Oole38w=
=w8ob
-END PGP SIGNATURE-

--
Click for free info on online doctorate degrees and make $250k/ year
http://tagline.hushmail.com/fc/CAaCXv1ZYZ9Qs1mam0nqgyWB4wpiriIq/


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] AS3 InteractiveObject.focusRect property.

2007-04-03 Thread Daniel Freeman
How do I use the InteractiveObject.focusRect property?
 The documentation is sketchy.  I can see that I
assign (or get) an Object from it.  Setting it to null
defaults to the Stage.stageFocusRect setting.

But how else can I use focusRect?

Send instant messages to your online friends http://au.messenger.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] JSFL - Saving FLAs

2007-04-02 Thread Holth, Daniel C.

If you check the Preferences in Flash 8, there is a 'Warnings' section
and you can turn on "Warn on save for Macromedia Flash MX 2004
compatibility"

Is that what your looking for?

-DC

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ChrisRM
Sent: Monday, April 02, 2007 9:01 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] JSFL - Saving FLAs

Hey Everyone,

I'm in the unfortunate position of developing in an environment where
not
everyone has the same version of Flash and remembering to "Save As" gets
overlooked. Some have Studio 8, others have MX 2004. Is there a way to
check the version of the FLA? I know there is fl.version, but that's
only
for the IDE.

If I can determine the version the least I'd like to do it pop up an
alert
saying that the file needs to be saved as MX 2004 for compatibility with
others. FL Object has the function saveDocumentAs() but I don't see a
way
to specify the version (in the Document object).

Ideas?

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] SWF Only Loads Once

2007-03-30 Thread Daniel Thompson
Thanks guys. I added a cache-busting param to the request, but it didn't fix
the issue. Here's my method:

protected function invoke(resource:String, variables:URLVariables, 
successHandler:Function,
errorHandler:Function = null):void {
  variables.api_key = KEY;

  var request:URLRequest = new URLRequest();
  request.method = "GET";
  request.url = _server + FORMAT + resource;
  variables["no-cache"] = Math.round(new Date().time).toString();
  request.data = variables;

  if (errorHandler == null) {
errorHandler = onIOError;
  }

  var loader:URLLoader = new URLLoader();
  loader.dataFormat = "xml";
  loader.addEventListener(Event.COMPLETE, successHandler);
  loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);

  try {
loader.load(request);
  } catch (error:Error) {
throw new Error("Unable to connect");
  }
}



It just seems odd that if I clear my cache, everything works again.


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

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


[Flashcoders] SWF Only Loads Once

2007-03-29 Thread Daniel Thompson
Hi all,

If you check out http://tinyurl.com/2yctf9 in Internet Explorer on a PC
(using at least 9r16), and click on a listen button, everything works fine--
the first time. If you close the pop-up player, then the next time, the SWF
will not draw, which is a combination of my bad error handling and IE
munging the XML (I think). Clear your cache, and you've got another free
render.

I'm wondering if anyone has seen this happen in IE before (and more
importantly, knows the fix). Our cache header is set to Cache-Control:
max-age=259200.

Thanks,
-DT



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

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


RE: [Flashcoders] Flash controling "Z" with div layers

2007-03-28 Thread Holth, Daniel C.

Just FYI, be careful when messing with Flash's wmode. My understanding is that 
if you switch it from its default, the Flash Player no longer does the 
rendering, and is instead done by the browser. This can lead to some 
unpredictable results and performance on various browsers and operating 
systems.  I've always been advised to not switch wmodes unless absolutely 
necessary (which has thus far been never).

- DC

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila
Sent: Tuesday, March 27, 2007 7:40 PM
To: Patrick Lemiuex
Subject: Re: [Flashcoders] Flash controling "Z" with div layers


PL> Is it possible to make a flash.swf file appear behind other div
PL> layers I create.  In firefox, i have no problem however, in IE my 
PL> flash is popping in front of my DIV LAYER.

Use value "opaque" for the wmode parameter at the embedding.

  Attila

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Determining the final URL of a resource

2007-03-26 Thread Daniel Thompson
I am attempting to determine the final URL of a resource on the web (an
MP3). When the URLRequest is provided to the Sound object, it handles
(transparently) the redirects (301, 302). I need access to those server
messages.

I have tried creating a socket in order to do simple HEAD requests... but
the crossdomain policy requirement is stopping this path short.

How can I determine the final location of a file in ActionScript 3?

Thanks,
-DT


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

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


RE: [Flashcoders] Tile a vector Graphic symbol across stagehorizontally?

2007-03-24 Thread Holth, Daniel C.

This may not be the best solution, but it'll get the job done:

// originalTile is a MovieClip on your stage you want to tile.

// Reference the stage
var r = this;

// Number of tiles so far
var i:Number = 0;

// So while they are still on the stage
while(i * originalTile_mc._width < Stage.width){
//Duplicate your original tile
var newTile:MovieClip =
originalTile_mc.duplicateMovieClip("newTile" + i + "_mc",
r.getNextHighestDepth());
// Move it into position
newTile._x = i * originalTile_mc._width;
// Increment i
i++;
}

Hope that helps!

-DC


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Micky
Hulse
Sent: Friday, March 23, 2007 4:12 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Tile a vector Graphic symbol across
stagehorizontally?

FP8: What would be the best way to tile a vector graphic symbol
horizontally across the stage using AS?

I have used beginBitmapFill() for a bitmap, and that works well... but
what would be the best way to programatically tile a graphic symbol?

Any tips/rtfm's/links would be great!

Thanks,
Cheers,
Micky

--
Wishlists: 
Switch: 
  BCC?: 
My: 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Video in Flash

2007-03-23 Thread Daniel Hart

Hi there - I use Sony Vegas, have a 16:9 HDD camcorder that imports mpeg2
video, and want the same results to run really smooth on a website. I
realise there are a few stages that need to be done right from origin. I
have edited a 2 minute sequence that will be my first step to getting it
right. The thing that really confuss me is the fact that it starts at (PAL)
720x576 - project properties are 16:9 which is just how I want the true
pixel output to be once it is run through the mill.

I need a little advice on rendering the original, then what to do with
Sorenson - so that I can show it at, say, 450x253 nicely within a website.

There are a few issues like ratio that are confusing me, and I would really
appreciate a little assistance. It may be best if you contact me off-list
because I will need a little step-by-step guidance I think. I have got the
main principles, its just a matter of figuring how exactly to do it. This
has taken me all week thus far...!

Thanks so much,

Daniel Hart (email on website)
www.djh-graphics.com

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

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


[Flashcoders] Flash VIDEO

2007-03-22 Thread Daniel Hart
Hi there - I use Sony Vegas, have a 16:9 HDD camcorder that imports mpeg2 
video, and want the same results to run really smooth on a website. I 
realise there are a few stages that need to be done right from origin. I 
have edited a 2 minute sequence that will be my first step to getting it 
right. The thing that really confuss me is the fact that it starts at (PAL) 
720x576 - project properties are 16:9 which is just how I want the true 
pixel output to be once it is run through the mill.


I need a little advice on rendering the original, then what to do with 
Sorenson - so that I can show it at, say, 450x253 nicely within a website.


There are a few issues like ratio that are confusing me, and I would really 
appreciate a little assistance. It may be best if you contact me off-list 
because I will need a little step-by-step guidance I think. I have got the 
main principles, its just a matter of figuring how exactly to do it. This 
has taken me all week thus far...!


Thanks so much,

Daniel Hart (email on website)
www.djh-graphics.com 


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

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


RE: [Flashcoders] Help: test EventDispatcher speed please

2007-03-21 Thread Holth, Daniel C.

Regarding the test, I think it would be more useful to have people
specify whether or not they are on an Intel or an original Mac.  I have
definitely noticed performance improvements since upgrading to my Intel,
but I'm not sure if its only because of the faster processor, if the
Flash Player handles the code differently on an Intel, or even if its
still runs in Rosetta?

As far as site checks and requests, I have to agree with Jason on this.
If you are compiling testing statistics, requesting to have them sent
off list and then posting a summary after you have completed your tests
seems more appropriate.  I for one would be interested in the results,
but again, they aren't very useful for me if I have to filter through
all the posts to figure out what the results were.

Just my two cents.

-DC Holth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Wednesday, March 21, 2007 11:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Help: test EventDispatcher speed please

>>I think ppl should be interested by these results mac vs
>>pc/linux, don't you think ? :)

I know what you're saying but as I see it, it is a site test, "Help:
test EventDispatcher speed please".  You're askng for a test, sending
them to your site. Regardless, I think *maybe* maybe on a summary basis,
but not from 20-30 e-mails where half the list sends in their results.
Perhaps they can send you their test results offlist and you can compile
an post your summary result later.

Jason Merrill
Bank of America 
Global Technology & Operations
Learning & Leadership Development
eTools & Multimedia Team



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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Skewing MovieClip??

2007-02-28 Thread Holth, Daniel C.

As far as I can figure, "skewing" isn't available in flash right now...

Adjusting the yScale will change the dimensions of a movieclip, for
example
(Hope my ASCII drawings work!)
 ___
|   |
|___|
Becomes
 _
| |
|_|
When you reduce the _yScale.

Skewing horizontally would be adjusting the x coordinates on the top of
the movieclip but leaving the ones on the bottom.  Skewing a square to
the right would result in this:
 ___
|   |
|___|
Becomes
   
  /   /
 /___/

Which I don't believe you would be able to do with a MovieClip.  You may
be able to achieve these results with drawing simple shapes or maybe
using some of the bitmap functionality, but that is way over my head.

-Dan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar
Fouad
Sent: Wednesday, February 28, 2007 11:21 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Skewing MovieClip??

i'll try it

On 2/28/07, iashido <[EMAIL PROTECTED]> wrote:
>
> True.
> > _yscale = -100
>
>
>
>
>
>
>
>
> itseveryday.ro
> iashido.com
>
>
>
> On Feb 28, 2007, at 11:55 AM, dr.ache wrote:
>
> > Duplicate your MovieClip and try _yscale = -100 ?
> > Or do i get you wrong?
> >
> >
> > Omar Fouad schrieb:
> >
> >> i have a movieClip on my Stage and i need to skew it orizontally
> >> by using
> >> AS, as in i need to create a reflection effect and i need the
> >> movieClip to
> >> be mirrored.
> >>
> >> Any Ideas?
> >>
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and
is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Subscription problems

2007-02-28 Thread Holth, Daniel C.

As a temporary solution, why don't you just set up a rule/filter/smart
folder that moves anything with the word [Flashcoders] in the subject
line directly into the trash or another folder? 

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chanda
Dharap
Sent: Wednesday, February 28, 2007 10:37 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Subscription problems

Hate to add to the spam, but please, I've been doing nothing but
deleting my inbox since last night. I don't want to tweak my spam
filter, but really this is getting to be an issue for me.

Maybe be worthwhile for you folk to pause the list for the week, send a
message to all and just fix it in isolation without all of us hassling
you about it.

I am sure you don't need the additional stress!

Good luck. Please pause my subscription until this is fixed.

-chanda

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Kristal Dale
> Sent: Wednesday, February 28, 2007 8:21 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Subscription problems
>
> Again, I too have tried to unsubscribe (5+ times), no
> confirmation email is sent.
>
> This is a helpful list, but getting every email in my
> inbox is a real annoyance.  Until the unsubscribe is
> fixed on this list, please honor the unsubscribe
> requests from email.
>
> Unsubscribe [EMAIL PROTECTED]
>
> Thanks.
>
> --- Joe <[EMAIL PROTECTED]> wrote:
>
> >
> > Sorry to jump on the bandwagon but since nothing is
> > being done, I would like
> > to point out that my subscription has been altered
> > from web-only to
> > individual emails. I have tried to unsubscribe on a
> > few occasions and no
> > confirmation email has been sent despite figleaf
> > saying it has.
> >
> > I apologise for the annoyance to regular people on
> > this board, but none of
> > us have a choice since nobody seems to be listening
> > to our requests.
> >
> > So this is a call for help... Please, admin,
> > unsubscribe me - since I don't
> > seem to be able to through your website!
> >
> > Thanks...
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the
> > archive:
> >
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] ColorMatrix

2007-02-28 Thread Holth, Daniel C.

Hi Misa,

My EasyTween class has functionality to tween color tints the way you're
wanting.

A description of use is found here:
http://blog.dcholth.com/2007/02/23/easytween-explained/

And you can download the EasyTween.as file here:
http://blog.dcholth.com/downloads/

The only problem with tweening colors, is you may notice it tweens
through what looks like random colors before it gets to the one you
want.  This will depend on which color your tweening to and from because
its actually tweening the individual hex values of the color.  Tweening
from the original tint (which is none) of the MovieClip shouldn't have
this problem and should go right to the color you want.

If you end up using it, please let me know your thoughts on it, as
you'll probably be the first person to use it besides me :)

Hope it helps!
-DC

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of misa
Sent: Tuesday, February 27, 2007 8:54 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] ColorMatrix

Hello flash coders,

I need some help with color transformations. I want to change dynamicly
the hue of a MC with a transition/tween, something like fading from one
image to another with different colors. I tried both G. Skinner's and M.

Klingman's colorMatrix class, but the tweening they use is bound to some

object. In G.S's demo there's a scroll bar, and in M.K's he uses two
images. I want to use one of their classes but be able to transform the
color of one MC just with a function: onSomeEvent ... { tweenHue for
myMC from thisHUE to newHUE }.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] MovieClipLoader woes

2007-02-27 Thread Holth, Daniel C.

Have you tried listening for the onLoadError event in the MCL class to
see if any errors are output?

Also, is it that specific swf, or does it not load the third swf every
time, regardless of the swf?  (does order matter?)

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Monday, February 26, 2007 3:16 AM
To: Flashcoders mailing list
Subject: [Flashcoders] MovieClipLoader woes

Hi all,
  Has anyone ever come across a situation where MovieClipLoader just
refuses to fire any events whatsoever?

  The situation:

- Flash 8, running in IDE or as local projector (on Win XP)
- A whole pile of successful MovieClipLoader calls have been made
(probably 50 or so by this stage), _including_ the very same bit of
code which later fails.
- Nothing else is loading/streaming at the same time.
- Three calls (in rapid succession) are made to a function which does
the following:

  - creates a new MovieClipLoader
  - creates a new MovieClip (at a new depth)
  - assigns a new listener for the MovieClipLoader
  - starts loading a .swf into the clip.

The first two times, it works perfectly. The third time, no events are
fired and the clip apparently doesn't load.

On each occasion, we wait for the previous load to successfully
complete first (onLoadInit) before we call the function again.

Completely repeatable each time.

The loaded .swf isn't doing anything odd (it contains no code
whatsoever).

*sigh*

Any ideas? Or robust alternatives to MovieClipLoader? (Bokel's
LoaderClass is a little heavyweight for what I want to do, but I might
take a look at it).

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] What don't I understand about the display list?

2007-02-25 Thread Daniel Thompson
Why will the following error be thrown? Shouldn't the displayObject be null?


  try {
removeChild(getChildByName("background"));
  } catch (typeError:TypeError) { 
// do nothing
  }

  var displayObject:DisplayObject = getChildByName("background");
  if (displayObject) {
throw new Error("Why!?!");
  }


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

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


RE: [Flashcoders] [AS3] Timers behaving erratically

2007-02-23 Thread Daniel Thompson
> classes. The second time this class is instantiated, the 
> timers don't fire. Any reason why this is happening?

Actually, nowhere in the application they aren't firing.
Here's the code that disables the application:



public static function disable(message:String):void {
  with (_instance) {
var snapshot:Bitmap = takeSnapshot();

destroyForm();

_container.addChildAt(snapshot, 0);
_container.addChildAt(drawCurtains(), 1);
_container.stage.addEventListener(MouseEvent.CLICK,
mouseClickHandler);

showAlert(message);

_container.stage.invalidate();

_enabled = false;
  }
}


private function destroyForm():void {
  _container.removeChild(_container.getChildByName("form"));
  _form = null;
}


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

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


RE: [Flashcoders] [AS3] Timers behaving erratically

2007-02-23 Thread Daniel Thompson
> I recreate all classes.

To be very clear, I recreate an instance... the classes are the same ;o)


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

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


[Flashcoders] [AS3] Timers behaving erratically

2007-02-23 Thread Daniel Thompson
I have a class that I instantiate. At some point in the running of my
application, I destroy almost every display list object (to "disable" the
application). Later, the user can enable the application, and I recreate all
classes. The second time this class is instantiated, the timers don't fire.
Any reason why this is happening?

Thanks,
-DT


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

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


RE: [Flashcoders]problem with embeded fonts

2007-02-19 Thread Holth, Daniel C.

Are you using bold or italic text?  Using bold and italics with embedded
font can make the text not visible if it changes. 

I believe it can be done, but I haven't spent the time researching it...
Just been easier to not use bold.

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Esther
Fuldauer
Sent: Monday, February 19, 2007 11:20 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders]problem with embeded fonts

Hi,

I'm using Flash 8 Proffessional.
I have created dynamic text with the authoring tool, embeded the font
outlines I want to use and created a font symbol in the library (with
all
the options I need). The dynamic text then uses this font.
At runtime the text is not displayed when my function gives value to my
dynamic text like this:

mytext.text='string';

I have set some static text in the dynamic text box to test if this only
happens at runtime with the generated values. I see the text then, which
means font outlines are being embeded, only I can't see the text
generated
by my code, which also is there, as the code works correctly with device
fonts, and which I can see doing a trace like trace(mytext.text)

I can't figure out what is wrong. Any clues?

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Events for custom classes?

2007-02-16 Thread Holth, Daniel C.

I think Matthew has what you are looking for.  Alain's solution should
do what you want too.

If you want to write two classes with lower cohesion so they aren't
referencing each other, you could write a third control class which
would have code similar to the following.  This way objA and objB don't
need to know about each other.  If another class needs to start
listening for results of the webservices, you add it in here, rather
than making changes to your other classes.

Class controller {
Var objA = new ClassA();
Var objB = new ClassB();

this.eventComboBoxChanged = function(){
// execute functions on B
}

this.eventWebserviceResultsRecieved = function(){
// execute fuctions on B
}

this.eventDataRequested = function(){
// execute functions on A
}

objA.addEventListener("eventComboBoxChanged", this);
objA.addEventListener("eventWebserviceResultsRecieved", this);

objB.addEventListener("eventDataRequested", this);
}

Again, I haven't tested this code, but the basic idea should work as
long as objA and objB are dispatching the events when the changes occur.

~Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Ganz
Sent: Friday, February 16, 2007 1:48 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Events for custom classes?

do you have a reference to the class that is broadcasting the event in
the
class that's listening for the event?

meaning, when you write your addEventListener in your Receiving class,
you
should have:

referenceToBroadcastingClass.addEventListener("myEvent",myHandler);
- Original Message -
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, February 16, 2007 2:35 PM
Subject: RE: [Flashcoders] Events for custom classes?


> Daniel, try as I may, I can't get your code to work.  I have one
class,
> which has a combobox.  I can get the event to fire when the combobox
> changes just fine, but I can't get it to "hear" the firing of the data
> capture from the webservice in the other class.
>
> So basically, in pseudocode, I need to do this:
>
> class A{
> make comboBox
> make datagrid
> when comboBox changes, use Class B
> to get data from webservice
> when webservice result received,
>update datagrid with new data
>
> }
>
> class B{
> connect to webservice
> when requested, return data to requesting class
> }
>
> Reason I want these two classes to be separate is because I want other
> classes to call Class B to get data as well.  So, I can do all of
those
> things just fine, they are all working, except for the last part,
"when
> requested, return data to requesting class" - I figure since the
> webservice is asynchronous, I need to capture the received event,
which
> is fine, I can do, that works.  But I need to tell Class A to update
the
> datagrid with the new data when it gets it from Class B - so an event
> model is required.
>
> in your code, you have a var r in both the "Class A" and "Class B" -
I'm
> confused about that.  Thanks for any help.
>
>
> Jason Merrill
> Bank of America
> Learning & Organizational Effectiveness
>
>
>
>
>
>
>
>>>-Original Message-
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED] On Behalf
>>>Of Holth, Daniel C.
>>>Sent: Friday, February 16, 2007 10:36 AM
>>>To: Flashcoders mailing list
>>>Subject: RE: [Flashcoders] Events for custom classes?
>>>
>>>
>>>Here is your code modified to use the EventDispatcher:
>>>
>>>import mx.events.EventDispatcher; // import the event dispatcher
>>>
>>>class com.boa.projects.iqrcgenerator.components.AdminData{
>>> public var addEventListener:Function; // Set the functions
>>> public var removeEventListener:Function; // Set the functions
>>> private var dispatchEvent:Function; // Set the functions
>>>
>>> private var userData:Object;
>>>
>>> // I'm sure you have a different constructor, but you need
>>> // to add that line to it if you want to use the eventdispatcher
>>> public function AdminData(){
>>> mx.events.EventDispatcher.initialize(this); //
>>>add this to constructor
>>> }
>>>
>>> public function wsUserDataByLOB(lobDbId:Number):Void{
>>> var getUserListResult:Object = new Object();
>>> getUserListResult =
>>>generatorWebService.GetUserList(lobDbId);
>>>
>>> var r = thi

RE: [Flashcoders] (no subject)

2007-02-16 Thread Holth, Daniel C.

You need to keep track of the previous x value and compare that to the
new x value. The simplest way to achieve this is an onEnterFrame
function (although note this is the least efficient way).

For example try putting a movie clip called "ball_mc" on your stage and
add this code to the first frame, run it and try dragging the movie clip
around.

var oldX:Number = ball_mc._x;

onEnterFrame = function(){
if(ball_mc._x > oldX){
trace("is moving right");
} else if (ball_mc._x < oldX){
trace("is moving left");
} else {
trace("not moving along x axis");
}
oldX = ball_mc._x;
}


ball_mc.onPress = startDrag;
ball_mc.onRelease = stopDrag;

Hope that helps!
-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Friday, February 16, 2007 11:42 AM
To: Flashcoders mailing list
Subject: [Flashcoders] (no subject)

hi, I'm doing something pretty simple, I have a movie clipo which 
starts drag, I'd like to move this in the x axis, but I don't know 
how to program this to launch an event if the x axis is positive and 
other is the x axis is negative,
or simpler how can I trigger an event is the movie clip is moving 
right and trigger other event is the movieClip is moving left
any ideas?


so far I'm using this.


var xright = this._x+1;
var xleft = this._x-1;

if (this._x==xright){
launching
}
if(this._x==xleft){
launching2
}





Gustavo Duenas

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Events for custom classes?

2007-02-16 Thread Holth, Daniel C.

Here is your code modified to use the EventDispatcher:

import mx.events.EventDispatcher; // import the event dispatcher

class com.boa.projects.iqrcgenerator.components.AdminData{
public var addEventListener:Function; // Set the functions
public var removeEventListener:Function; // Set the functions
private var dispatchEvent:Function; // Set the functions

private var userData:Object;

// I'm sure you have a different constructor, but you need
// to add that line to it if you want to use the eventdispatcher
public function AdminData(){
mx.events.EventDispatcher.initialize(this); // add this
to constructor
}

public function wsUserDataByLOB(lobDbId:Number):Void{
var getUserListResult:Object = new Object();
getUserListResult =
generatorWebService.GetUserList(lobDbId);

var r = this;  // To get this in onResult
getUserListResult.onResult = function(oUser){

r.dispatchEvent({type:"eventOnResult",
user:oUser}); // Dispatch the event

}
}

// I may just take this function out all together since the
event can
// autommatically send them the data.
public function getUserData():Object{
return userData;
}
}


Then in your other class you can do something like:

//myAdminData is an instance of the class above

var r = this;
r.eventOnResult= function(evtObj:Object){
trace("user: " + evtObj.user);  // Should return the oUser
object
}
// addEventListener takes the event name, and who you want to listen
myAdminData.addEventListener("eventOnResult", r);



Does that help?  I obviously can't test the code, but I think everything
is right...  I have trouble with scope, which is why I use a lot of 'r'
values instead of 'this'... Just easier for me... Probably not a good
coding standard :)

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, February 16, 2007 9:03 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Events for custom classes?

OK, I'm pretty good at Actionscript 2.0, but something I never really
understood and now need to.

Core question:  How do I make an event in a custom class, and how do I
make a listener in another class listen for the event? 

EventBroadcaster in the help docs seems to only show how to use it with
Adobe classes and components. Docs on listener are the same.  I know how
to set up listeners for other events, like keypresses and mouse
rollovers.  Easy enough.  But my problem is this (see comments in code
below):

class com.boa.projects.iqrcgenerator.components.AdminData{

private var userData:Object;

public function wsUserDataByLOB(lobDbId:Number):Void{
var getUserListResult:Object = new Object();
getUserListResult =
generatorWebService.GetUserList(lobDbId);
getUserListResult.onResult = function(oUser){
//this works fine,
//I can capture this event result here,
//but how do I notify another class?
//also what about scope here?
//how to set userData as oUser result?
//can I fire an event in my AdminData
//class from here?
}
}

public function getUserData():Object{
//can't let user get this data
//until Webserive event is done.
return userData;
}
}

Thanks,


Jason Merrill
Bank of America
Learning & Organizational Effectiveness


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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

RE: [Flashcoders] AS2 Question

2007-02-15 Thread Holth, Daniel C.

Where you declare a variable will determine the scope of the variable,
that is, how long that variable stays in memory for use and from where
it can be accessed.

In your first class, the variables declared above the function can be
accessed in other parts of the class.

In your second class the myName variable is a parameter to the function,
and is only available and in memory while in the function.  Once
trace("myName") is executed and the function is complete, the myName
variable is gone and can not be accessed by any other part of the class.

In your third class, you have declared the variable within the function.
Similar to your second class, the myName variable will be gone when the
function is finished executing and can not be accessed from elsewhere in
the class.

If you think other functions or parts of the class will need to know
about a variable then its best to declare it outside of the function (as
a coding standard this is usually done above the other functions and
constructor) like you have done in your first example.

Hope that helps!

~D.C. Holth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar
Fouad
Sent: Thursday, February 15, 2007 4:50 AM
To: Flashcoders mailing list
Subject: [Flashcoders] AS2 Question

Hi list i am new to AS2 and in writing classes and there is a question
that
i would like to do:

assume i have the following class

Class myClass {

var myName:String;
var myAge:Number:
var myJob:String;

   function setName(name) {
 name = myName;
   }
}
here i declared the myName variable at the beginning

in this class than:

Class myClass {

   function setName(myName:String) {

 trace("myName");
   }
}
and in this other class:

 Class myClass {

   function setName(name) {
 var myName:String;
 name = myName;
   }
}
now the question is (even if it maight seen silly but i don't get the
concept yet), what is the difference between declaring the variables
before
methods (after the class declaration) and declaring them inside the
method
itself, or even in the method parameters???

Thanks in advance

--
Omar Fouad - Digital Emotions...
-
Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and
is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] fs overlay

2007-02-15 Thread Daniel Snoddas

does the flash 9 fullscreen make use o the overlay feature on many gfxcards?
ie like wmp/videolan etc, a movie in a browser pops up fullscreen on the TV
(theatremode).
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Re: Anyone hate flash 9 already?

2007-02-14 Thread Daniel Freeman
Apologies to the moderators for this OT reply to set
the records straight.

So you guys think you're using Flash 9??

I think Adobe is doing a great job with showcasing
upcoming technologies and ideas on Adobe labs.  I
applaud the effort they put into keeping developers in
the loop, and listening to our feedback.

On our part, we should not get confused, when we catch
a glimpse of things (or parts of things) early in the
development cycle.  Nor is it appropriate to be overly
critical.  "hate flash 9 already?" - when we haven't
even seen it yet!?

Send instant messages to your online friends http://au.messenger.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Re: Anyone hate flash 9 already?

2007-02-13 Thread Daniel Freeman
WHERE DID YOU GET IT!?

You can't believe how much excitement and
disappointment this thread has caused me.  I assumed
that the flash 9 prototype had been released on Adobe
labs.  I couldn't connect to labs yesterday, which
sent my excitement through the roof!  I assumed that
everyone was downloading the public beta, and that's
why I couldn't connect.

Today, I connected to Adobe labs - but no flash 9.

Are you all on the prerelease program?  Or is there a
beta of Flash 9 that I don't know about?

I'm dying to get my hands on the Flash 9 IDE

Send instant messages to your online friends http://au.messenger.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread Daniel Grace
The biggest complaint that I have seen is the issue of speed. If you do
"var foo: String = obj.theLetterA" you expect that to be a hash
lookup/dereference/something fast. If you do "var foo: String =
obj.getSomething()" and you are thinking about speed, you go and look at
what getSomething() is doing. This makes sense to me, while the other
arguments I've heard against get/set make no sense to me.

For the record though I've never used get/set functions because I don't
see the point in making the syntax stranger compared to the other
languages I've used which either don't have or didn't provide me a good
reason to use get/set. Can someone tell me any benefit at all?

Daniel

Pete Miller wrote:
> Just to fuel your query, how does it affect the user to know whether
> they are 'get'-ing from a variable or a function call, encapsulation
> considered?
>
> P.
>
>   
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>>> [EMAIL PROTECTED] On Behalf Of Holth, Daniel C.
>>> Sent: Tuesday, February 13, 2007 3:32 PM
>>> To: Flashcoders@chattyfig.figleaf.com
>>> Subject: [Flashcoders] Coding Standards: Use of Get/Set
>>>
>>>
>>> I was wondering what people's thoughts were on the use of "get" and
>>> "set" functions.  I personally have felt that creating functions such
>>> as:
>>>
>>> public function get theLetterA(){
>>> return "a";
>>> }
>>>
>>> so the user can simply call someObject.theLetterA are confusing
>>>   
> because
>   
>>> the user doesn't know if they are doing a function call or accessing
>>>   
> a
>   
>>> public variable.  I prefer writing functions such as:
>>>
>>> public function getTheLetterA(){
>>> return "a";
>>> }
>>>
>>> So the user needs to explicitly call the function
>>> someObject.getTheLetterA().
>>>
>>> Are there advantages to using "get" and "set" that I'm not seeing?
>>>
>>>
>>> I ask because I was always use getVariable() functions and started
>>> reading ActionScript 3 with Design Patterns and the authors (as well
>>>   
> as
>   
>>> many others I've read) are using "get" and "set" functions.
>>>
>>>
>>> Daniel Holth
>>> I.S. Programmer
>>>
>>>
>>>
>>> This e-mail and its attachments are intended only for the use of the
>>> addressee(s) and may contain privileged, confidential or proprietary
>>> information. If you are not the intended recipient, or the employee
>>>   
> or
>   
>>> agent responsible for delivering the message to the intended
>>>   
> recipient,
>   
>>> you are hereby notified that any dissemination, distribution,
>>>   
> displaying,
>   
>>> copying, or use of this information is strictly prohibited. If you
>>>   
> have
>   
>>> received this communication in error, please inform the sender
>>> immediately and delete and destroy any record of this message. Thank
>>>   
> you.
>   
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com
>>>   
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>   

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

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


[Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread Holth, Daniel C.

I was wondering what people's thoughts were on the use of "get" and
"set" functions.  I personally have felt that creating functions such
as:

public function get theLetterA(){
return "a";
}

so the user can simply call someObject.theLetterA are confusing because
the user doesn't know if they are doing a function call or accessing a
public variable.  I prefer writing functions such as:

public function getTheLetterA(){
return "a";
}

So the user needs to explicitly call the function
someObject.getTheLetterA().

Are there advantages to using "get" and "set" that I'm not seeing? 

I ask because I was always use getVariable() functions and started
reading ActionScript 3 with Design Patterns and the authors (as well as
many others I've read) are using "get" and "set" functions.

Daniel Holth
I.S. Programmer



This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Anyone hate flash 9 already?

2007-02-13 Thread Daniel Riemslag
an interesting post ;)

http://positionrelative.wordpress.com/2007/01/23/craigs-pissed/


>.. looking for coders..dont have enough money to hire ppl yet..



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

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


RE: [Flashcoders] Trace: level of details?

2007-02-12 Thread Holth, Daniel C.

If you are using the MovieClipLoader class you could call an onLoadError
event.  It seems to work well, but you still get the "Error opening
URL..." message under your custom error message.

__mclListener = new Object();
__mcl = new MovieClipLoader();

__mclListener.onLoadError = function(target_mc:MovieClip,
errorCode:String, httpStatus:Number) {
trace(">> mclListener.onLoadError()");
trace(">> ==");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
}

__mcl.addListener(__mclListener);
__mcl.loadClip("long_url_of_jpg", holder_mc);


Traces out:

>> mclListener.onLoadError()
>> ==
>> errorCode: URLNotFound
>> httpStatus: 0
Error opening URL "Error opening URL file:///.long_url_of_jpg"


I tried putting it in a try-catch loop with no better results.  One
could possibly write a custom class that would throw errors though.

Hope that helps!
-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
N
Sent: Sunday, February 11, 2007 7:42 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Trace: level of details?

Hi all,

I'm curious, is there a way to set level of details for trace()?

In the project I'm working on, there's a lot of images loading. Some of
them
are missing, so I'm getting a 4-line message:
"Error opening URL
file:///.long_url_of_jpg"
I'd like to get rid of this trash in output to be able to read my own
messages in convenience :-).

Any ideas?


--
--
Best regards,
GregoryN

http://GOusable.com
Flash components development.
Usability services.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash 9, XMLSocket.onClose

2007-02-08 Thread Daniel Grace
Daniel Grace wrote:
[snip]
> I'm connecting to a custom message bus using an XMLSocket. When the
> remote end closes the connection (when we have to restart the message
> bus, as it's also beta quality) the Flash 8 plugin calls my onClose
> handler. The flash 9 plugin however brings down the entire browser.
> Backtraces have a call to EnforceLocalSecurity in common.
>
> Has anyone seen this? Does anyone have a workaround or further question
> to help me track this down? I haven't seen anything in the results of a
> google query and I have confirmed this behavior in the latest Flash
> plugin (at least for the Mac).
>   
[snip]

I have found the solution, and wanted to put this in the archives for
anyone else. Here is the code that was causing the crash:

private function onClose(): Void {
...
this.connect();
}

In the Flash 8 plugin, this would gladly do what I wanted it to:
immediately try to reconnect. Note that this wasn't causing an infinite
loop, as this.connect() was smarter than that and would back off.

In Flash 9 (and according to one report, Flash 7 sometimes, but not
always) this would cause a crash. This is the fix:

private function onClose(): Void {
...
var p = this;
var q;
q = setInterval(function() { p.connect(); clearInterval(q); }, 10);
}

Apparently a slight delay (or getting out of this thread) and it works
in all versions of the plugin.

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

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

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


Re: [Flashcoders] How does YouTube convert all video formats to Flash format?

2007-02-08 Thread Daniel Snoddas

Dunno how you tube does it but Sorenson Squeeze can be set up to watch a
folder and convert stuff that gets dropped in it. If you are running on a
foreign OS you could always map a network drive and do it that way.




2007/2/8, Paul Steven <[EMAIL PROTECTED]>:


I am working on a Flash project that requires the user to upload a video
clip. Ideally they should not be restricted to a particular video format
so
I was hoping for some advice on how to convert different video formats
online to flash format.

I have seen this done on the YouTube website but have no idea what they
are
using - anyone know what they are using?

Any advice much appreciated!

Thanks

Paul

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

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


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

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


Re: [Flashcoders] syntax highlighting

2007-02-07 Thread Daniel Grace
Jon Bradley wrote:
>
> On Feb 7, 2007, at 2:50 PM, Iv wrote:
>
>> For example in our field Adobe declaration of AS code html-formatting
>> standard is enougth for start support this standard by big number
>> of developers.
>
> Problem 1 is that the tool is re-writing the HTML content of the page,
> which I don't particularly like. It's a great thought, but Flash
> projects that take text input and parse and display it with a
> user-customizable color space are already out there.
>
> Problem 2) there are no standards. I don't like the Adobe highlighting
> standard. Friends of mine that are colorblind have their own issues to
> deal with when it comes to syntax highlighting.
Count me among the list, I am color-blind. My preferred method would be
something actually not Flash (sorry). I would like there to be standard
class names for various parts of code and let the end-user override the
stylesheet with user stylesheets. Then even if the default isn't
color-blind friendly all of us can change it ourselves. The problem with
that is that it needs to be an effective standard and people need to use it.

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

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


[Flashcoders] Flash 9, XMLSocket.onClose

2007-02-07 Thread Daniel Grace
I am currently building a large-scale Flash application. I had been
testing with the v8.something plugin. During beta customers were
complaining about crashes and I've finally tracked it down.

I'm connecting to a custom message bus using an XMLSocket. When the
remote end closes the connection (when we have to restart the message
bus, as it's also beta quality) the Flash 8 plugin calls my onClose
handler. The flash 9 plugin however brings down the entire browser.
Backtraces have a call to EnforceLocalSecurity in common.

Has anyone seen this? Does anyone have a workaround or further question
to help me track this down? I haven't seen anything in the results of a
google query and I have confirmed this behavior in the latest Flash
plugin (at least for the Mac).

Thanks in advance, I'm a new subscriber but these archives have come in
handy several times when they came up in google queries. You guys seem
to be the  most intelligent group of flash developers in a single spot.

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

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


  1   2   >