Re: [Flashcoders] iTunes-encoded mp3's duration doesn't show up in ID3 from Flash

2007-01-19 Thread Ramon Miguel M. Tayag

Sometimes these encoders don't put the duration - apparently the
duration isn't really something that is dynamically a part of the ID3
tag.  I've had to put duration manually using ID3-Tag it.  Thank
goodness though it has a button that says get duration from file.

On 1/20/07, Marlon Harrison <[EMAIL PROTECTED]> wrote:

I have a small audio player that I need to build, but the duration is not a
property returned in my onID3 handler.  I've tried re-encoding the mp3s
using iTunes v2.3 ID3 tags with no luck. Does anyone know an mp3 encoder,
preferably for OS X, that will add data for Flash to read?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Ramon Miguel M. Tayag
___
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] LoadVars.send() in Flash 9 Player

2007-01-19 Thread greg h

David,

Per the link that follows below, the AS2 LoadVars.send() Method is changed
in AS3 to flash.net.sendToURL()

Source:  ActionScript 2.0 Migration: The following table describes the
differences between ActionScript 2.0 and 3.0.
http://livedocs.macromedia.com/labs/as3preview/langref/migration.html

More:
Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are not used
in ActionScript 3.0. The Loader and URLLoader classes replace them.

Source:  Class Loader in ActionScript 3.0 Language Reference
http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/Loader.html

fyi ... brace yourself, there are quite a few of these "everything is still
the same, but still everything is different" changes.  Just scan that first
link above and you will get a sense.

The good news is that now that ActionScript is tied to a standard
(ECMA-262), I believe Adobe will no longer be making these types of
disruptive changes going forward.

For quick backgrounds on what and why many changes were made with AS3,
following are some good links to articles and presentations by Flash Player
Engineer Gary Grossman:
Devnet Article:
http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html
Connect Recording of Presentation:
https://admin.adobe.acrobat.com/_a227210/p64058844/
PDF of Slides:
http://www.adobe.com/communities/developerweek/2006_devweek_as3.pdf

hth,

g




On 1/19/07, Waller, David <[EMAIL PROTECTED]> wrote:


I am having trouble with a LoadVars send which refuses to send in the
Flash player 9.

The swf works just fine in the 8 version of the player but in 9 it seems
to just pass over the command.

I have tried several different things including:

crossdomain.xml
System.security.allowDomain()

However, nothing seems to work.

Any input would be greatly appreciated.

Dave Waller


___
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: Re[2]: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-19 Thread Patrick Matte | BLITZ
Now that is pretty clever ! Exactly what I need. Thanks !


BLITZ | Patrick Matte - 310-551-0200 x214

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Iv
Sent: Thursday, January 18, 2007 8:28 PM
To: Flashcoders mailing list
Subject: Re[2]: [Flashcoders] Override _xscale and _yscale setter in AS2

Hello Patrick,

PMB> Anybody has any other idea ?

owerriding or watch of properties is impossible.

Don't use extending. Use composition:

class Test1 {

 private var __mc:MovieClip;
 public function Test1(mc:MovieClip){
  this.__mc= mc
 }

 public function get _xscale ():Number {
  return this.__mc._xscale;
 }

 . etc

}



-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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[8]: [Flashcoders] net.FileReference problem

2007-01-19 Thread R�kos Attila

It works for me with one small change: since Flash Player (at least
the browser plugin) doesn't accept crossdomain policy files redirected
to an other domain (from macromedia.com to adobe.com in this case) I
replaced macromedia.com with adobe.com.

  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


Re: Re[6]: [Flashcoders] net.FileReference problem

2007-01-19 Thread natalia Vikhtinskaya

I did example
http://www.natavi.co.uk/test/test_loading.html
it does not work in net and works only if  testing is on my pc.

all from this example

import flash.net.FileReference;
var listener:Object = new Object();
listener.onCancel = function(file:FileReference):Void {
   status.text="onCancel";
}

listener.onOpen = function(file:FileReference):Void {
   status.text="onOpen: "
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
   status.text="onProgress with bytesLoaded: " + bytesLoaded + "
bytesTotal: " + bytesTotal;
}

listener.onComplete = function(file:FileReference):Void {
   status.text="onComplete: " ;
}

listener.onIOError = function(file:FileReference):Void {
   trace("onIOError: " + file.name);
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String  = "
http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";;
if(!fileRef.download(url)) {
status.text="dialog box failed to open.";
}
function cancelDownload(){
fileRef.cancel();
fileRef.removeListener(this);
isDownload=false;
}



2007/1/20, Rákos Attila <[EMAIL PROTECTED]>:



nV>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=2210.html
nV> I tell about this example

This example will work, since in the root of macromedia.com there is a
crossdomain.xml (redirected to adobe.com), which allows unrestricted
access from any domains:

http://www.macromedia.com/crossdomain.xml

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


___
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] AS2 best practice question - attachMovie or static create method

2007-01-19 Thread Matthias Dittgen

@Andy:
Yes, your method is mentioned in the current thread about "Override
_xscale and _yscale setter in AS2 " as follows:
"Don't use extending. Use composition..." :-)
But you have always to write wrappers for the usual MovieClip methods
or you have to offer a reference to the MovieClip you're using in your
composition:

class Something
{
   private var mc:MovieClip; // not shared

   public function attachMovie(...) {
   mc.attachMovie(...); // wrap method
   }

}

or:

class Something
{
   public var mc:MovieClip; // share mc
}

@Ian:
Yes I do prefer the static create method by myself, but I always have
to write the "individual" create method. I thought, I could perhaps
leave this out. But I learned in another thread about FDT that Eclipse
offers class templates. I use ASDT/Flashout, so I'll check, if this
applies to my workflow, too.

Thank you both!
Matthias

2007/1/18, Ian Thomas <[EMAIL PROTECTED]>:

*sigh* The line:

return MyClip(ClipUtils.createCodeClip(" com.mycompany
,MyClip",parent,initObj,depth,inst));

should of course have read:

return MyClip(ClipUtils.createCodeClip("com.mycompany.MyClip
",parent,initObj,depth,inst));

Sorry!
  Ian

On 1/18/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> On 1/17/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote:
>
> >
> > And is there a way to automate the writing of SymbolName,SymbolLinked
> > and create for all my classes which extend MovieClip?
>
>
>
> Personally, I use b) (for clips which aren't in the library). There's no
> way to automate the writing of symbolName etc. (unless you start looking at
> preprocessors), but you can get rid of symbolName etc. completely to make
> life easier. For example:
>
> class com.mycompany.MyClip extends MovieClip
> {
> public static function
> create(parent:MovieClip,initObj:Object,depth:Number,inst:String):MyClip
> {
> return MyClip(ClipUtils.createCodeClip(" com.mycompany
> ,MyClip",parent,initObj,depth,inst));
> }
> }
>
> where ClipUtils looks like this:
>
> class ClipUtils
> {
> public static function
> 
createCodeClip(classPath:String,parent:MovieClip,initObj:Object,depth:Number,inst:String):MovieClip
>
> {
> if (depth===undefined)
> depth=parent.getNextHighestDepth();
> if (inst===undefined)
> inst="inst"+depth;
> var constructor:Function=getConstructorFromPath(classPath);
> Object.registerClass("__Packages."+classPath,constructor);
> return parent.attachMovie
> ("__Packages."+classPath,inst,depth,initObj);
> }
>
> public static function
> getConstructorFromPath(classPath:String):Function
> {
> var arr:Array=classPath.split(".");
> var obj:Object=_global;
> for(var i:Number=0;i {
> obj=obj[arr[i]];
> }
> return Function(obj);
> }
> }
>
>
> In case it's not clear, you can then write:
>
> var clip:MyClip=MyClip.create(parentMovie);
>
> and everything else will default to something appropriate.
>
> Hope that makes sense,
>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


___
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] movement question

2007-01-19 Thread Steven Sacks | BLITZ
Need to clean up that enterFrame once it's finished.  This is about as
compact as it can get.

this.onEnterFrame = function()
{
if (--myClip._rotation == -90) delete this.onEnterFrame;
}

___
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[6]: [Flashcoders] net.FileReference problem

2007-01-19 Thread R�kos Attila

nV> 
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=2210.html
nV> I tell about this example

This example will work, since in the root of macromedia.com there is a
crossdomain.xml (redirected to adobe.com), which allows unrestricted
access from any domains:

http://www.macromedia.com/crossdomain.xml

  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


Re: Re[4]: [Flashcoders] net.FileReference problem

2007-01-19 Thread natalia Vikhtinskaya

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=2210.html
I tell about this example


2007/1/20, Rákos Attila <[EMAIL PROTECTED]>:



nV> It is too difficult for me to create server-side programming.  As I
nV> understand even example from documentation for downloading
nV> http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";
nV> that explain how to use FileReference can not work correctly without
nV> additional server-side programming.

I didn't find any examples on FileReference in the linked pdf.

___
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] Obfuscator

2007-01-19 Thread Burak KALAYCI
Hi Jake,

As far as I'm aware, current version of ASV is able to bypass SWF Encrypt
3.0.12.

Since you have already invested in Amayeta, I'd recommend using it. First of
all, not all decompilers can bypass it. Then, when they release an update,
it will be effective for at least 3-4 months against all decompilers.
(Because even if we can bypass it in a short time, we won't. Generally
speaking, writing an obfuscator is easier than writing a decompiler. An
obfuscators all use is obfuscating, a decompiler is useful for other
purposes too. So, also considering other things, for us [ASV], it doesn't
make sense to bypass an obfuscator as soon as possible. But we do bypass
obfuscations, in time).

I normally recommend using a tool like Genable ASO to rename identifiers,
but obviously it will not help in your case.

HTH.

Best regards,
Burak
www.asvguy.com

Burak KALAYCI, Manitu Group
http://www.buraks.com
http://www.manitugroup.com

- Original Message -
From: "Jake Prime" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, January 19, 2007 1:12 PM
Subject: [Flashcoders] Obfuscator


> Hi all
>
> At this point in time is there any obfuscator that will prevent a SWF
> from being decompiled with ASV (or whatever the current best
> decompiler is)?
>
> I know this has been asked before and the answer was no, but as both
> obfuscators and decompilers are improved over time I was wondering if
> the situation had changed. Our current policy here is to put a URL
> checker in all our games and then obfuscate the SWF with Amayeta SWF
> Encrypt. It's a bit of a pain and if this really is a complete waste
> of time I'd rather stop bothering.
>
> Thanks
> Jake

___
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] advantages of EventDispatcher over AsBroadcaster

2007-01-19 Thread Holth, Daniel C.

Sounds good!  Thanks Steve and Francis!

Daniel Holth
I.S. Programmer


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Steve
Polk
Sent: Friday, January 19, 2007 2:59 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advantages of EventDispatcher over
AsBroadcaster


Just setup your eventListeners to pass the decoupled data to your ready
functions.

dispatchEvent({type:"eventClipShowStatus", target: this, current:
currentMCNumber, total: totalMCNumber});

private function eventClipShowStatus(eventObj:Object):Void{

  clipShowStatus(eventObj.current, eventObj.total);

}

Make sense?

This preserves your function logic and adds a decoupler for all your data
being passed around. You can also error check inside the event function to
be sure proper data was passed before calling clipShowStatus.

Hope this helps,

Steve


On 1/19/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:
>
>
> After your post I spent most of this morning researching and debating
> converting a lot of my code to use the EventDispatcher instead of
> broadcastMessage.  I like a lot of what it has to offer, but have a
> question...
>
> I have a function in one class that displays how many more movieclips the
> user will be viewing and it takes in two variables: currentMCNumber and
> totalMCNumber.  Using broadcastMessage, I can pass those variables in
> directly.  Can I do that with the eventDispatcher as well?
>
> For example, doing:
>
> this.broadcastMessage("clipShowStatus", currentMCNumber, totalMCNumber);
>
> Runs the clipShowStatus function as if I had actually done:
>
> clipShowStatus(currentMCNumber, totalMCNumber);
>
> But if I use the eventDispatcher I would need to do something like:
>
> dispatchEvent({type:"clipShowStatus", target: this, current:
> currentMCNumber, total: totalMCNumber});
>
> And make changes to my clipShowStatus method to take in an event object...
> Is there a way to use the EvenDispatcher with out needing to change all my
> functions to take in eventObjects and instead place the needed variables
> directly into the function?
>
> Thanks!
>
> Daniel Holth
> I.S. Programmer
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of T.
> Michael Keesey
> Sent: Thursday, January 18, 2007 8:11 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] advantages of EventDispatcher over
> AsBroadcaster
>
>
> The two are pretty much the same, except for one big thing:
> EventDispatcher allows you to distinguish between types of events.
> AsBroadcaster just says, "Hey, there's been an update," while
> EventDispatcher gives detailed information (in an Event object) about
> exactly what that event was and only notifies the listeners which are
> listening to that type of event.
>
> Another advantage to using EventDispatcher is that EventDispatcher is
> heavily integrated into ActionScript 3.0, to the point that at least
> half the classes you'll encounter are dispatchers. Every single
> display object (movie clips, buttons, components, etc.) is a
> dispatcher, some with dozens of types of events ("mouseMove", "load",
> "enterFrame", etc.). AsBroadcaster, on the other hand, is deprecated.
>
> On 1/18/07, Reuben Stanton <[EMAIL PROTECTED]> wrote:
> > I have used both extensively and find that AsBroadcaster allows me to
> > do the same thing in fewer lines of code, yet there seems to be a
> > general preference in the flash community to use EventDispatcher.
> >
> > Is there any particular reason to use one or the other?
> >
> >
> > ___
> > 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
> >
>
>
> --
> T. Michael Keesey
> Director of Technology
> Exopolis, Inc.
> 2894 Rowena Avenue Ste. B
> Los Angeles, California 90039
> --
> The Dinosauricon: http://dino.lm.com
> Parry & Carney: http://parryandcarney.com
> ISPN Forum: http://www.phylonames.org/forum/
> ___
> 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 

Re[4]: [Flashcoders] net.FileReference problem

2007-01-19 Thread R�kos Attila

nV> It is too difficult for me to create server-side programming.  As I
nV> understand even example from documentation for downloading
nV> http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";
nV> that explain how to use FileReference can not work correctly without
nV> additional server-side programming.

I didn't find any examples on FileReference in the linked pdf.

___
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] iTunes-encoded mp3's duration doesn't show up in ID3 from Flash

2007-01-19 Thread Marlon Harrison

gave fffmpeg a shot, but it doesn't look like it encodes with any id3 tags.

On 1/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Have you tried ffmpeg?

G

> I have a small audio player that I need to build, but the duration is
not
> a
> property returned in my onID3 handler.  I've tried re-encoding the mp3s
> using iTunes v2.3 ID3 tags with no luck. Does anyone know an mp3
encoder,
> preferably for OS X, that will add data for Flash to read?
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


___
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] advantages of EventDispatcher over AsBroadcaster

2007-01-19 Thread Steve Polk

Just setup your eventListeners to pass the decoupled data to your ready
functions.

dispatchEvent({type:"eventClipShowStatus", target: this, current:
currentMCNumber, total: totalMCNumber});

private function eventClipShowStatus(eventObj:Object):Void{

 clipShowStatus(eventObj.current, eventObj.total);

}

Make sense?

This preserves your function logic and adds a decoupler for all your data
being passed around. You can also error check inside the event function to
be sure proper data was passed before calling clipShowStatus.

Hope this helps,

Steve


On 1/19/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:



After your post I spent most of this morning researching and debating
converting a lot of my code to use the EventDispatcher instead of
broadcastMessage.  I like a lot of what it has to offer, but have a
question...

I have a function in one class that displays how many more movieclips the
user will be viewing and it takes in two variables: currentMCNumber and
totalMCNumber.  Using broadcastMessage, I can pass those variables in
directly.  Can I do that with the eventDispatcher as well?

For example, doing:

this.broadcastMessage("clipShowStatus", currentMCNumber, totalMCNumber);

Runs the clipShowStatus function as if I had actually done:

clipShowStatus(currentMCNumber, totalMCNumber);

But if I use the eventDispatcher I would need to do something like:

dispatchEvent({type:"clipShowStatus", target: this, current:
currentMCNumber, total: totalMCNumber});

And make changes to my clipShowStatus method to take in an event object...
Is there a way to use the EvenDispatcher with out needing to change all my
functions to take in eventObjects and instead place the needed variables
directly into the function?

Thanks!

Daniel Holth
I.S. Programmer

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of T.
Michael Keesey
Sent: Thursday, January 18, 2007 8:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advantages of EventDispatcher over
AsBroadcaster


The two are pretty much the same, except for one big thing:
EventDispatcher allows you to distinguish between types of events.
AsBroadcaster just says, "Hey, there's been an update," while
EventDispatcher gives detailed information (in an Event object) about
exactly what that event was and only notifies the listeners which are
listening to that type of event.

Another advantage to using EventDispatcher is that EventDispatcher is
heavily integrated into ActionScript 3.0, to the point that at least
half the classes you'll encounter are dispatchers. Every single
display object (movie clips, buttons, components, etc.) is a
dispatcher, some with dozens of types of events ("mouseMove", "load",
"enterFrame", etc.). AsBroadcaster, on the other hand, is deprecated.

On 1/18/07, Reuben Stanton <[EMAIL PROTECTED]> wrote:
> I have used both extensively and find that AsBroadcaster allows me to
> do the same thing in fewer lines of code, yet there seems to be a
> general preference in the flash community to use EventDispatcher.
>
> Is there any particular reason to use one or the other?
>
>
> ___
> 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
>


--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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: Re[2]: [Flashcoders] net.FileReference problem

2007-01-19 Thread natalia Vikhtinskaya

It is too difficult for me to create server-side programming.  As I
understand even example from documentation for downloading
http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";
that explain how to use FileReference can not work correctly without
additional server-side programming.


2007/1/19, Rákos Attila <[EMAIL PROTECTED]>:



nV> I have list with urls from different domains for uploading mp3 files.
So I
nV> nothing can do on other servers. Is it possible to use FileReference
for
nV> that situation?
nV> System.security.allowDomain("*"); also does not help.

allowDomain() has nothing to do with this, it is for somewhat
different purpose. If you are not allowed to access the file servers
and place a policy file there, then the only option is flowing the
communication through your own server - so your flash movie sends the
requested URL to your own server, it downloads the file and passes
back to Flash for downloading. It requests some server-side
programming of course.

nV> p.s. I don't know why but I did not see question that I sent in my
list.
nV> So  I sent this question 3 times. Sorry.

Don't take my notice as offensive, but I received each post :) May be
the missing ones are in your junk mail folder?

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


___
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] advantages of EventDispatcher over AsBroadcaster

2007-01-19 Thread Francis Chary

That would be tricky, I think. The reason is that:

type: "clipShowStatus"

in your dispatchEvent call isn't actually referring to the clipShowStatus
function. It's referring to type of the event that will be dispatched,
right? What you can do instead of making changes to the clipShowStatus
method would be to create another method in that class, like:

function handleClipShowStatus(eventObj) {
clipShowStatus(eventObj.currentMCNumber, eventObj.totalMCNumber);
}

This method just listens for the "clipShowStatus" event, and calls the
clipShowStatus function when it hears it.

Does that make sense?

Francis Chary

On 1/19/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:



After your post I spent most of this morning researching and debating
converting a lot of my code to use the EventDispatcher instead of
broadcastMessage.  I like a lot of what it has to offer, but have a
question...

I have a function in one class that displays how many more movieclips the
user will be viewing and it takes in two variables: currentMCNumber and
totalMCNumber.  Using broadcastMessage, I can pass those variables in
directly.  Can I do that with the eventDispatcher as well?

For example, doing:

this.broadcastMessage("clipShowStatus", currentMCNumber, totalMCNumber);

Runs the clipShowStatus function as if I had actually done:

clipShowStatus(currentMCNumber, totalMCNumber);

But if I use the eventDispatcher I would need to do something like:

dispatchEvent({type:"clipShowStatus", target: this, current:
currentMCNumber, total: totalMCNumber});

And make changes to my clipShowStatus method to take in an event object...
Is there a way to use the EvenDispatcher with out needing to change all my
functions to take in eventObjects and instead place the needed variables
directly into the function?

Thanks!

Daniel Holth
I.S. Programmer

-Original Message-
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED] Behalf Of T.
Michael Keesey
Sent: Thursday, January 18, 2007 8:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advantages of EventDispatcher over
AsBroadcaster


The two are pretty much the same, except for one big thing:
EventDispatcher allows you to distinguish between types of events.
AsBroadcaster just says, "Hey, there's been an update," while
EventDispatcher gives detailed information (in an Event object) about
exactly what that event was and only notifies the listeners which are
listening to that type of event.

Another advantage to using EventDispatcher is that EventDispatcher is
heavily integrated into ActionScript 3.0, to the point that at least
half the classes you'll encounter are dispatchers. Every single
display object (movie clips, buttons, components, etc.) is a
dispatcher, some with dozens of types of events ("mouseMove", "load",
"enterFrame", etc.). AsBroadcaster, on the other hand, is deprecated.

On 1/18/07, Reuben Stanton <[EMAIL PROTECTED]> wrote:
> I have used both extensively and find that AsBroadcaster allows me to
> do the same thing in fewer lines of code, yet there seems to be a
> general preference in the flash community to use EventDispatcher.
>
> Is there any particular reason to use one or the other?
>
>
> ___
> 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
>


--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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
htt

Re: [Flashcoders] movement question

2007-01-19 Thread Gustavo Duenas

thanks guys...you are good.


Gus

On Jan 19, 2007, at 3:24 PM, Rost, Andrew wrote:


this.onEnterFrame=function():Void
{
if(myClip._rotation != -90){myClip._rotation--};
}

Quick and simple...

Andrew

-Original Message-
From: Gustavo Duenas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 19, 2007 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] movement question

Hi, I'm not a much a programmer guy. I'm trying to do something, I
have a movie clip which is rotating --, this is supposed to stop
when  the rotation is -90, but it seems hard for me to write this.
Anyone of you guys knows a  way to write when this movie clip has
rotated to -90, and the start a command...


I'll appreciate any help


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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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[2]: [Flashcoders] net.FileReference problem

2007-01-19 Thread R�kos Attila

nV> I have list with urls from different domains for uploading mp3 files. So I
nV> nothing can do on other servers. Is it possible to use FileReference for
nV> that situation?
nV> System.security.allowDomain("*"); also does not help.

allowDomain() has nothing to do with this, it is for somewhat
different purpose. If you are not allowed to access the file servers
and place a policy file there, then the only option is flowing the
communication through your own server - so your flash movie sends the
requested URL to your own server, it downloads the file and passes
back to Flash for downloading. It requests some server-side
programming of course.

nV> p.s. I don't know why but I did not see question that I sent in my list.
nV> So  I sent this question 3 times. Sorry.

Don't take my notice as offensive, but I received each post :) May be
the missing ones are in your junk mail folder?

  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


RE: [Flashcoders] movement question

2007-01-19 Thread Keith Reinfeld
Gustavo, 
 
function rotateMC(mc, increment, targetDegree){ 
mc.onEnterFrame = function(){ 
this._rotation = this._rotation + increment; 
if(this._rotation == targetDegree){ 
delete this.onEnterFrame; 
} 
} 
} 
 
// Clockwise rotation 
rotateMC(someMovieClip, 10, -90); 
 
// Counter-clockwise rotation 
rotateMC(someMovieClip, -10, -90); 
 
HTH 
 
-Keith 
http://keithreinfeld.home.comcast.net
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Friday, January 19, 2007 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] movement question

Hi, I'm not a much a programmer guy. I'm trying to do something, I  
have a movie clip which is rotating --, this is supposed to stop  
when  the rotation is -90, but it seems hard for me to write this.
Anyone of you guys knows a  way to write when this movie clip has  
rotated to -90, and the start a command...


I'll appreciate any help


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

___
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] movement question

2007-01-19 Thread Rost, Andrew
this.onEnterFrame=function():Void
{
if(myClip._rotation != -90){myClip._rotation--};
}

Quick and simple...

Andrew

-Original Message-
From: Gustavo Duenas [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] movement question

Hi, I'm not a much a programmer guy. I'm trying to do something, I  
have a movie clip which is rotating --, this is supposed to stop  
when  the rotation is -90, but it seems hard for me to write this.
Anyone of you guys knows a  way to write when this movie clip has  
rotated to -90, and the start a command...


I'll appreciate any help


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
___
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] movement question

2007-01-19 Thread Holth, Daniel C.

Where someMovieClip__mc is the instance name of the rotating movieClip on the 
stage.

Add this code to the frame you want it to start rotating.

onEnterFrame = function(){
if(someMovieClip__mc._rotation == -90){
delete onEnterFrame;
} else {
someMovieClip__mc._rotation--;
}
}

This will subtract 1 from rotation each frame, and then delete the function 
when its done, thus stopping the rotation at -90.

Hope that helps!

Daniel Holth
I.S. Programmer
x5217   ||   J301


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gustavo
Duenas
Sent: Friday, January 19, 2007 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] movement question


Hi, I'm not a much a programmer guy. I'm trying to do something, I 
have a movie clip which is rotating --, this is supposed to stop 
when  the rotation is -90, but it seems hard for me to write this.
Anyone of you guys knows a  way to write when this movie clip has 
rotated to -90, and the start a command...


I'll appreciate any help


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] advantages of EventDispatcher over AsBroadcaster

2007-01-19 Thread Holth, Daniel C.

After your post I spent most of this morning researching and debating 
converting a lot of my code to use the EventDispatcher instead of 
broadcastMessage.  I like a lot of what it has to offer, but have a question...

I have a function in one class that displays how many more movieclips the user 
will be viewing and it takes in two variables: currentMCNumber and 
totalMCNumber.  Using broadcastMessage, I can pass those variables in directly. 
 Can I do that with the eventDispatcher as well?

For example, doing: 

this.broadcastMessage("clipShowStatus", currentMCNumber, totalMCNumber);

Runs the clipShowStatus function as if I had actually done:

clipShowStatus(currentMCNumber, totalMCNumber); 

But if I use the eventDispatcher I would need to do something like:

dispatchEvent({type:"clipShowStatus", target: this, current: currentMCNumber, 
total: totalMCNumber});

And make changes to my clipShowStatus method to take in an event object... Is 
there a way to use the EvenDispatcher with out needing to change all my 
functions to take in eventObjects and instead place the needed variables 
directly into the function?

Thanks!

Daniel Holth
I.S. Programmer

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of T.
Michael Keesey
Sent: Thursday, January 18, 2007 8:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advantages of EventDispatcher over
AsBroadcaster


The two are pretty much the same, except for one big thing:
EventDispatcher allows you to distinguish between types of events.
AsBroadcaster just says, "Hey, there's been an update," while
EventDispatcher gives detailed information (in an Event object) about
exactly what that event was and only notifies the listeners which are
listening to that type of event.

Another advantage to using EventDispatcher is that EventDispatcher is
heavily integrated into ActionScript 3.0, to the point that at least
half the classes you'll encounter are dispatchers. Every single
display object (movie clips, buttons, components, etc.) is a
dispatcher, some with dozens of types of events ("mouseMove", "load",
"enterFrame", etc.). AsBroadcaster, on the other hand, is deprecated.

On 1/18/07, Reuben Stanton <[EMAIL PROTECTED]> wrote:
> I have used both extensively and find that AsBroadcaster allows me to
> do the same thing in fewer lines of code, yet there seems to be a
> general preference in the flash community to use EventDispatcher.
>
> Is there any particular reason to use one or the other?
>
>
> ___
> 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
>


-- 
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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] IE6 CTRL key problem.

2007-01-19 Thread Rost, Andrew
// first frame of main timeline
this.onEnterFrame = function():Void
{  
   //Ctrl-X
   if(Key.isDown(Key.CONTROL) && Key.isDown(88)){trace("Edit called")};
   //Ctrl-C
   if(Key.isDown(Key.CONTROL) && Key.isDown(67)){trace("Copy called")};
   //Ctrl-V
   if(Key.isDown(Key.CONTROL) && Key.isDown(86)){trace("Paste called")};
   //Delete
   if(Key.isDown(Key.DELETEKEY)){trace("Delete called")};
}

Tested with (and works):
*  IE 5.5, 6 and 7
*  FF 1.5
*  NS 8.1

Hope that helps,
Andrew Rost

-Original Message-
From: Brandon Barkley [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 10:28 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] IE6 CTRL key problem.

Hey everyone,

I am having some problem with the following code in Internet Explorer 
6.0 on Windows 2000 with Flash Player 9. I am trying to write code for a 
hotkey to recognize when both the CTRL key and either X,C, or V is 
pressed in order to do copying and pasting. I will attach a sample of 
the code below. This code works in Firefox with Flash Player 9 just fine 
and I have been told it works in Internet Explorer 7.0

I have a keyListener object set up which contains the following code.

var temp = this;
this.keyListener = new Object();
this.keyListener.onKeyDown = function()
{
 temp.checkHotKeys()
}
Key.addListener(this.keyListener);

In the temp object, I have the function checkHotKeys which is as follows:
function checkHotKeys()
{  
   //Ctrl-X
   if(Key.isDown(Key.CONTROL) && Key.isDown(88))
this.editCut();
   //Ctrl-C
   if(Key.isDown(Key.CONTROL) && Key.isDown(67))
 this.editCopy();
   //Ctrl-V
   if(Key.isDown(Key.CONTROL) && Key.isDown(86))
  this.editPaste();
   //Delete
   if(Key.isDown(Key.DELETEKEY))
  this.editDelete();
}

I added some traces for Key.getCode() in the above function and found 
that when I was holding down the CTRL key and then pressed another key, 
Key.getCode() would still return 17, effectively not recognizning that 
the second key was pressed. Alternatively, if I held down X/C/V first 
and then pressed the CTRL key, it would update correctly.

Also, I replaced all instances of Key.CONTROL with Key.SPACE and it 
worked correctly with space bar.

Does anyone have any idea why this would not work in IE6 and if there 
are any workarounds? Has anyone even seen this error before?

___
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] movement question

2007-01-19 Thread Gustavo Duenas
Hi, I'm not a much a programmer guy. I'm trying to do something, I  
have a movie clip which is rotating --, this is supposed to stop  
when  the rotation is -90, but it seems hard for me to write this.
Anyone of you guys knows a  way to write when this movie clip has  
rotated to -90, and the start a command...



I'll appreciate any help


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


Re: [Flashcoders] net.FileReference problem

2007-01-19 Thread natalia Vikhtinskaya

I have list with urls from different domains for uploading mp3 files. So I
nothing can do on other servers. Is it possible to use FileReference for
that situation?
System.security.allowDomain("*"); also does not help.

p.s. I don't know why but I did not see question that I sent in my list.
So  I sent this question 3 times. Sorry.


2007/1/19, James Dean <[EMAIL PROTECTED]>:


by flooding, i think he meant sending the same question multiple times.
to answer your question in another way. flash has a sandbox that
restricts accessing other servers/domains unless they exlicitly allow
you to hit it via a crossdomain file. you having that cross domain xml
file on your server doesn't do you any good... bc you aren'y trying to
get data from that server that flash is restricting. the xml file
needs to be on the root of the server you are making the call to.
fromthe previously linked help:
"For uploading and downloading operations, a SWF file can access files
only within its own domain, including any domains that are specified
by a cross-domain policy file. If the SWF that is initiating the
upload or download doesn't come from the same domain as the file
server, you must put a policy file on the file server."

that is to say... if it isn't on your server, that server needs to put
a policy file allowing you to access it.

On 1/19/07, natalia Vikhtinskaya <[EMAIL PROTECTED]> wrote:
> Sorry, that my question looks as flooding. I did what livedocs say
> I created xml file *crossdomain.xml*
> 
> 
>   
> 
>
> in index.swf
> I have
> System.security.loadPolicyFile("http://myname.co.uk/et/crossdomain.xml
");
> It seems I did everything that I could understand in documentation but
all
> that does not help.
> Sorry.
>
>
>
>
>
> 2007/1/19, Rákos Attila <[EMAIL PROTECTED]>:
> >
> >
> > I don't think that flooding will solve your problem, but reading docs
> > can help much more:
> >
> > http://livedocs.macromedia.com/flash/8/main/2204.html
> >
> > 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
> >
> ___
> 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


Re: [Flashcoders] iTunes-encoded mp3's duration doesn't show up in ID3 from Flash

2007-01-19 Thread gerry
Have you tried ffmpeg?

G

> I have a small audio player that I need to build, but the duration is not
> a
> property returned in my onID3 handler.  I've tried re-encoding the mp3s
> using iTunes v2.3 ID3 tags with no luck. Does anyone know an mp3 encoder,
> preferably for OS X, that will add data for Flash to read?
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


___
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] net.FileReference problem

2007-01-19 Thread James Dean

by flooding, i think he meant sending the same question multiple times.
to answer your question in another way. flash has a sandbox that
restricts accessing other servers/domains unless they exlicitly allow
you to hit it via a crossdomain file. you having that cross domain xml
file on your server doesn't do you any good... bc you aren'y trying to
get data from that server that flash is restricting. the xml file
needs to be on the root of the server you are making the call to.
fromthe previously linked help:
"For uploading and downloading operations, a SWF file can access files
only within its own domain, including any domains that are specified
by a cross-domain policy file. If the SWF that is initiating the
upload or download doesn't come from the same domain as the file
server, you must put a policy file on the file server."

that is to say... if it isn't on your server, that server needs to put
a policy file allowing you to access it.

On 1/19/07, natalia Vikhtinskaya <[EMAIL PROTECTED]> wrote:

Sorry, that my question looks as flooding. I did what livedocs say
I created xml file *crossdomain.xml*


  


in index.swf
I have
System.security.loadPolicyFile("http://myname.co.uk/et/crossdomain.xml";);
It seems I did everything that I could understand in documentation but all
that does not help.
Sorry.





2007/1/19, Rákos Attila <[EMAIL PROTECTED]>:
>
>
> I don't think that flooding will solve your problem, but reading docs
> can help much more:
>
> http://livedocs.macromedia.com/flash/8/main/2204.html
>
> 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
>
___
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] iTunes-encoded mp3's duration doesn't show up in ID3 from Flash

2007-01-19 Thread Marlon Harrison

I have a small audio player that I need to build, but the duration is not a
property returned in my onID3 handler.  I've tried re-encoding the mp3s
using iTunes v2.3 ID3 tags with no luck. Does anyone know an mp3 encoder,
preferably for OS X, that will add data for Flash to read?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] net.FileReference problem

2007-01-19 Thread natalia Vikhtinskaya

Sorry, that my question looks as flooding. I did what livedocs say
I created xml file *crossdomain.xml*


 


in index.swf
I have
System.security.loadPolicyFile("http://myname.co.uk/et/crossdomain.xml";);
It seems I did everything that I could understand in documentation but all
that does not help.
Sorry.





2007/1/19, Rákos Attila <[EMAIL PROTECTED]>:



I don't think that flooding will solve your problem, but reading docs
can help much more:

http://livedocs.macromedia.com/flash/8/main/2204.html

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


___
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] net.FileReference problem

2007-01-19 Thread R�kos Attila

I don't think that flooding will solve your problem, but reading docs
can help much more:

http://livedocs.macromedia.com/flash/8/main/2204.html

  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


[Flashcoders] Re: IE6 CTRL key problem.

2007-01-19 Thread jason vancleave
Maybe this will work?

http://osflash.org/pipermail/osflash_osflash.org/2005-December/005850.html


___
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] net.FileReference problem

2007-01-19 Thread natalia Vikhtinskaya

Hi to all
Can anybody tell me what is my problem. I am trying to download files

import flash.net.FileReference;
var fileRef:FileReference = new FileReference();
var isDownload=false;

function downloadMP3(myFile,myName){
var listener:Object = new Object();

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
  _parent.status_box.status.htmlText=myName+": "+"Progress with
bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal;
}

fileRef.addListener(listener);
fileRef.download(myFile)
}

When I test on my pc files download well. When I move it to the
server dialog box opens but file does not download and listener does not
have any events. Can I solve this problem if mp3 is not on my server? Or I
must move them all at my server.

Thank you for any help.
___
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] Singleton class inside SWC components?

2007-01-19 Thread Wade Arnold
I tried to recreate my problem in a simple example. Unfortunitly/Fortunitly
the problem only exists in my project and not a simple singleton counter
with EventDispatcher. So time to go back to my code. Thanks for the help. 

Wade


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Friday, January 19, 2007 10:16 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Singleton class inside SWC components?

"Each of the components has a reference to a singleton class that it uses
for passing messages between each other."

Thats exactly what is happening, correct - what you intended. If each
instance component used a different instance of your "singleton" - how would
they communicate to one another?

?
___
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] FLASH REMOTING HELP!!! ([p e r c e p t i c o n])

2007-01-19 Thread [p e r c e p t i c o n]

thanks John,

what i failed to mention was that the method i'm intending to call doesn't
get called, but the doPost method does ???  problem is that the doPost
method returns void so it doesn't push any params back to the client...

utterly confused

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


[Flashcoders] LoadVars.send() in Flash 9 Player

2007-01-19 Thread Waller, David
I am having trouble with a LoadVars send which refuses to send in the
Flash player 9.
 
The swf works just fine in the 8 version of the player but in 9 it seems
to just pass over the command.
 
I have tried several different things including:
 
crossdomain.xml
System.security.allowDomain()
 
However, nothing seems to work.
 
Any input would be greatly appreciated.
 
Dave Waller
___
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] downloading file from another server

2007-01-19 Thread natalia Vikhtinskaya

Hi to all
Can anybody tell me what is wrong. I am trying to download files

import flash.net.FileReference;
var fileRef:FileReference = new FileReference();
var isDownload=false;

function downloadMP3(myFile,myName){
var listener:Object = new Object();

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
  _parent.status_box.status.htmlText=myName+": "+"Progress with
bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal;
}

fileRef.addListener(listener);
fileRef.download(myFile)
}

When I test on my pc files download well. When I move it to the
server dialog box opens but file does not download and listener does not
have any events. Can I solve this problem if mp3 is not on my server? Or I
must move them all at my server.
___
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] Saving out XML direct from Flash?

2007-01-19 Thread Henry Cooke

'lo all

I'm noodling around with a little app that I'd like to be able to write out
some internally generated XML directly to the user's hard disc. Preferably
with a nice FileReference type interface.

But this seems next to impossible. I was hoping it would be possible to hack
FileReference to take file conetent from a variable, rather than a URL, but
that looks like a no-go. My second idea was to write to a SharedObject, then
pass that through FileReference, but I can't find a way of finding out the
path to the SO file within Flash. I've spent the afternoon reading about
MMSave, FSCommand "save" and ASnative(302, 0) and coming to the conclusion
that they're deprecated as hell and useless to me.

So does anyone have any good suggestions? I'm not averse to dirty hacks, but
this is a standalone app, so I can't bounce the file back off a server, and
I really don't want to use one of those weird extended projectors if I can
avoid it.

Cheers,
Henry
___
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] (no subject)

2007-01-19 Thread Gustavo Duenas
does anyone has ideas how I can use the:  new flash.geom.Transform 
(this) ?


I'd like to start doing something from the beginining but it seems  
for me that I don't have any clue how to start using it.


Regards.


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


[Flashcoders] downloading files from another server

2007-01-19 Thread natalia Vikhtinskaya

Hi to all
Can anybody tell me what is wrong. I am trying to download files

import flash.net.FileReference;
var fileRef:FileReference = new FileReference();
var isDownload=false;

function downloadMP3(myFile,myName){
var listener:Object = new Object();

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
  _parent.status_box.status.htmlText=myName+": "+"Progress with
bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal;
}

fileRef.addListener(listener);
fileRef.download(myFile)
}

When I test on my pc files download well. When I move it to the
server dialog box opens but file does not download and listener does not
have any events. Can I solve this problem if mp3 is not on my server? Or I
must move them all at my server.
___
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] Get Properties of a Gradient on Stage

2007-01-19 Thread Michael Bedar
ya, i have it ..but i really want to draw it dynamically, so colors  
are no problem, but the positions of those colors is obscured..



On Jan 19, 2007, at 11:46 AM, Marc Hoffman wrote:

If you have the .fla, you can just use the eyedropper tool to pull  
the gradient info into the color mixer panel, then save it as a  
swatch. Low-tech solution :)


At 08:22 AM 1/19/2007, you wrote:


Is there any JFSL way to get the color and position array data from a
hand draw gradient on the stage at dev time? I am trying to reproduce
a gradient that was given to me that has about 15 color changes in
it, and the best i can do right now is guess at the position of each
color change...

thanks
mike



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

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


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

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


Re: [Flashcoders] button symbol nested in a mc - scoping issue?

2007-01-19 Thread Arindam Dhar
correct, when u use _lockroot=true.

Mike Dunlop <[EMAIL PROTECTED]> wrote:  I thought _root. was used relative to 
the object you are in, e.g. if 
you are in a movieclip _root is the main timeline of that movieclip 
and the only way to address the absolute root timeline from nested 
clips was to use _level0.

Is that not correct?

Thanks - MD


.
Mike Dunlop
// Droplab
[ e ] [EMAIL PROTECTED]


On Jan 15, 2007, at 8:13 PM, Arindam Dhar wrote:

> hi,
>
> Scope wise there should not be any problem as u can address 
> anything on root timeline from any timeline as _root.somevariable 
> or _root.somefunction().
>
> Would u like to post the code?
>
> regrads,
>
> Arindam
>
> Mike Dunlop wrote:
> Hello,
>
> In my button that is nested inside of a mc, i am able to move the
> main timeline to different points but when trying to call a function
> that lives on the root timeline like the following:
>
> _level0.myFunctionName();
>
> Is not working. Is this some type of scoping issue?
>
> .
> Mike Dunlop
> // Droplab
> [ e ] [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
>
>
> 
> -
> Meet your soulmate!
> Yahoo! Asia presents Meetic - where millions of singles gather
> ___
> 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



-
 
 Real people. Real questions. Real answers. Share what you know.
___
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] Get Properties of a Gradient on Stage

2007-01-19 Thread Marc Hoffman
If you have the .fla, you can just use the eyedropper tool to pull 
the gradient info into the color mixer panel, then save it as a 
swatch. Low-tech solution :)


At 08:22 AM 1/19/2007, you wrote:


Is there any JFSL way to get the color and position array data from a
hand draw gradient on the stage at dev time? I am trying to reproduce
a gradient that was given to me that has about 15 color changes in
it, and the best i can do right now is guess at the position of each
color change...

thanks
mike



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

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


[Flashcoders] IE6 CTRL key problem.

2007-01-19 Thread Brandon Barkley

Hey everyone,

I am having some problem with the following code in Internet Explorer 
6.0 on Windows 2000 with Flash Player 9. I am trying to write code for a 
hotkey to recognize when both the CTRL key and either X,C, or V is 
pressed in order to do copying and pasting. I will attach a sample of 
the code below. This code works in Firefox with Flash Player 9 just fine 
and I have been told it works in Internet Explorer 7.0


I have a keyListener object set up which contains the following code.

var temp = this;
this.keyListener = new Object();
this.keyListener.onKeyDown = function()
{
temp.checkHotKeys()
}
Key.addListener(this.keyListener);

In the temp object, I have the function checkHotKeys which is as follows:
function checkHotKeys()
{  
  //Ctrl-X

  if(Key.isDown(Key.CONTROL) && Key.isDown(88))
   this.editCut();
  //Ctrl-C
  if(Key.isDown(Key.CONTROL) && Key.isDown(67))
this.editCopy();
  //Ctrl-V
  if(Key.isDown(Key.CONTROL) && Key.isDown(86))
 this.editPaste();
  //Delete
  if(Key.isDown(Key.DELETEKEY))
 this.editDelete();
}

I added some traces for Key.getCode() in the above function and found 
that when I was holding down the CTRL key and then pressed another key, 
Key.getCode() would still return 17, effectively not recognizning that 
the second key was pressed. Alternatively, if I held down X/C/V first 
and then pressed the CTRL key, it would update correctly.


Also, I replaced all instances of Key.CONTROL with Key.SPACE and it 
worked correctly with space bar.


Does anyone have any idea why this would not work in IE6 and if there 
are any workarounds? Has anyone even seen this error before?


___
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] remoting components / jsp

2007-01-19 Thread soenoe prasetya

On Tue, 16 Jan 2007 15:14:07 -0800
 "[p e r c e p t i c o n]" <[EMAIL PROTECTED]> wrote:

Hi all,

I'm wondering if anyone has experience with the remoting 
components and the
flashgateway.war file that's supposed to be part of the 
install?



here's what i'm trying to do.  first i created a servlet 
that let's me
upload a file to a server. then i use getURL to popup a 
page that calls that
servlet.  what i'd like to have happen is to have that 
servlet send some
info back to the swf i called getURL from...i'm also 
using loadvars to get a

result back...any ideas how to accomplish this?

thanks so much

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


___
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] Get Properties of a Gradient on Stage

2007-01-19 Thread Michael Bedar
Is there any JFSL way to get the color and position array data from a  
hand draw gradient on the stage at dev time? I am trying to reproduce  
a gradient that was given to me that has about 15 color changes in  
it, and the best i can do right now is guess at the position of each  
color change...


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

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


Re: [Flashcoders] Singleton class inside SWC components?

2007-01-19 Thread eric dolecki

"Each of the components has a reference to a singleton class that it uses
for passing messages between each other."

Thats exactly what is happening, correct - what you intended. If each
instance component used a different instance of your "singleton" - how would
they communicate to one another?

?
___
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] Ham in the Fridge (Mpls) seeks Flash Developer

2007-01-19 Thread Bret Hummel
Hello!

Ham in the Fridge, a 14-person interactive agency in Minneapolis, is
agressively seeking Flash developers to work with us full-time, onsite on
projects ranging from Flash microsites for Target to Flash promotional games
for Cartoon Network, Adult Swim and more.

The job description is listed here: http://www.krop.com/jobs/438x/

If you know of anyone that might be interested in relocation to join our
quirky and immensely talented team, please have them contact us at
[EMAIL PROTECTED]

Thanks!

Sincerely,

Bret

--
Bret Hummel
President & Creative Director

Ham in the Fridge
212 3rd Ave N, Suite 485
Minneapolis, MN 55401
612.436.7060 direct
612.436.7070 fax
612.386.0975 cell

612.436.1010 office
www.haminthefridge.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] Singleton class inside SWC components?

2007-01-19 Thread Andy Herrman

I'm confused.

You said:
"However as soon as I compile them into an SWC and add more than one
of the same component onto the stage they all end up using the same instance
of that class."

Isn't that the definition of a Singleton?  Something where only a
single instance ever exists (so they'd all use the same instance).  I
don't really understand what you're trying to do.

  -Andy


On 1/19/07, Wade Arnold <[EMAIL PROTECTED]> wrote:

I am working on a Flash 8 project that has several components. Each of the
components has a reference to a singleton class that it uses for passing
messages between each other. Before I compile the components into SWC files
I can use SingltonClass.getInstance().getMyInformation(). This works great
and I can copy as many instances from the library I want and get the desired
result  However as soon as I compile them into an SWC and add more than one
of the same component onto the stage they all end up using the same instance
of that class. Has anyone seen this? Can anyone explain how I can have my
compiled SWC components work like they do when they are just fla's in the
library? Is there a special way to build swc components other than right
click and export to SWC from the library in order to get this to work
properly amongst several components?



Thanks for your help!



Wade







___
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] (AS3) Regular Expression

2007-01-19 Thread Ray Chuan

var arr:Array = split(str, "\r");
arr.join("");

On 1/19/07, Oliver Müller <[EMAIL PROTECTED]> wrote:

Hi,

I'm looking for a tinier and probably faster solution for my RegExp here:


var pattern:RegExp = /(?!>)(r+)/sg;
var str:String = ">\rjustus\rjustus\rjustus";

function myfunc()
{
if (arguments[3].substr((arguments[2]-1),1) != ">") return "";
return "";
}

trace(str.replace(pattern, myfunc));

// result: >justusjustusjustus


Has anyone a clue ?

--
greets,
Olli
___
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




--
Cheers,
Ray Chuan
___
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) Regular Expression

2007-01-19 Thread Oliver Müller

Hi,

I'm looking for a tinier and probably faster solution for my RegExp here:


var pattern:RegExp = /(?!>)(r+)/sg;
var str:String = ">\rjustus\rjustus\rjustus";

function myfunc()
{
   if (arguments[3].substr((arguments[2]-1),1) != ">") return "";
   return "";
}

trace(str.replace(pattern, myfunc));

// result: >justusjustusjustus


Has anyone a clue ?

--
greets,
Olli
___
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] Obfuscator

2007-01-19 Thread Jake Prime

Hi all

At this point in time is there any obfuscator that will prevent a SWF
from being decompiled with ASV (or whatever the current best
decompiler is)?

I know this has been asked before and the answer was no, but as both
obfuscators and decompilers are improved over time I was wondering if
the situation had changed. Our current policy here is to put a URL
checker in all our games and then obfuscate the SWF with Amayeta SWF
Encrypt. It's a bit of a pain and if this really is a complete waste
of time I'd rather stop bothering.

Thanks
Jake
___
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] PMT calculation problem

2007-01-19 Thread Wade Arnold
I have actually written all of these funtions for AS2 and AS3 that are in
the excel financial section. Let me know if you need any help. 

 

http://www.t8financial.com/

 

Check out the calculators section. 

 

 

 

// Determine the periocic payment it takes to pay off a loan (i.e., amortize
the loan). 

// Or calculate how much money you can withdraw from a retirement annuity.

// Returns the same value as Microsoft Excel's
Insert->Function->Financial->PMT formula,

// except the result is of the opposite sign, the future value (remaining
balance) is 

// assumed to be 0, and the payment is assumed to be made at end of each
period.

// That is, it is equivalent to an Excel command of the form: PMT(Rate, n,
-PV, 0, 0)

// if type is '0' then it means Payment is made at the end of the period

// if type is '1' then it means Payment is made at the beginning of the
period  

 

 

 

public static function PMT (Rate:Number, Nper:Number, PV:Number, FV:Number,
Type:Number):Number { 

  // Rate = periodic interest rate

  // Nper   = number of payment periods

  // PV = initial savings deposit or loan amount (present
value)  

  // Calculate the periodic payment needed to amortize (pay back) a
loan.

 

  var multiplier:Number = Math.pow((1 + Rate), Nper);

 

  //return ((PV * Rate * multiplier)/(multiplier - 1));

 

if(Rate == 0) {

  return(PV/Nper);

}

else {

  return (Rate *((PV * multiplier) + FV)/
(((Rate*Type)+1)*(multiplier - 1)));

 

}

}

 

 

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Klasson
Sent: Friday, January 19, 2007 2:33 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] PMT calculation problem

 

 

Hi Flashcoders,

 

I got a problem which I am in no way to figure out myself,

but someone here probably has a solution.

 

I found this function when I googled:

 

function Pmt(r, np, pv, fv) {

r = r/1200;

pmt = -(r*(fv+Math.pow(1+r, np)*pv)/(-1+Math.pow(1+r, np)))

return(pmt);

}

 

trace( Math.round(Pmt(5, 36, -273168.6, 190300)) );

 

 

BUT, the problem is that this "PMT"-function, which am used in programs 

like Excel, .Net and so on,

also have a fifth paramater in which you can send in 0 or 1.

 

The function above behaves like sending in "0" as the fifth parameter 

-as in as the loan is paid of the last day

in the month. But I need to send in "1", and get the result of when the 

loan is being paid off the first every month.

 

the code above traces out "3277", and that is correct if I wanted it to 

be when the loan is being paid of the last day in

every month, but I really need it to calculate the monthly payment as 

occuring the last day of every month. So I really

want it to be 3263 ;)

 

Do you know how the line of code can be altered so it suits me?

 

Here is a description of the "standard" PMT, how it works:

http://www.techonthenet.com/excel/formulas/pmt.php

 

Thanks, Martin

 

 

 

___

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] Singleton class inside SWC components?

2007-01-19 Thread Wade Arnold
I am working on a Flash 8 project that has several components. Each of the
components has a reference to a singleton class that it uses for passing
messages between each other. Before I compile the components into SWC files
I can use SingltonClass.getInstance().getMyInformation(). This works great
and I can copy as many instances from the library I want and get the desired
result  However as soon as I compile them into an SWC and add more than one
of the same component onto the stage they all end up using the same instance
of that class. Has anyone seen this? Can anyone explain how I can have my
compiled SWC components work like they do when they are just fla's in the
library? Is there a special way to build swc components other than right
click and export to SWC from the library in order to get this to work
properly amongst several components? 

 

Thanks for your help! 

 

Wade

 

 

 

___
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] Override _xscale and _yscale setter in AS2

2007-01-19 Thread Muzak
Since you don't want the default _xscale and _yscale behavior, don't use them 
;-)

As has already been suggested, use/create your own getter/setters and do 
whatever you want.

private var __xscale:Number = 100;
private var __yscale:Number = 100;

private function setScale(){
// perform custom scaling here
}

public function get xscale():Number {
return this.__xscale;
}
public function set xscale(val:Number) {
this.__xscale = num;
this.setScale();
}

public function get yscale():Number {
return this.__yscale;
}
public function set yscale() {
this.__yscale = num;
this.setScale();
}

This is basically the same as what v2 components do with _width, _height, 
_visible (width, height, visible).

regards,
Muzak

- Original Message - 
From: "Patrick Matte | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, January 19, 2007 1:37 AM
Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2


Anybody has any other idea ?

BLITZ | Patrick Matte - 310-551-0200 x214


___
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] >> datagrid import data

2007-01-19 Thread Laurent CUCHET
Hello

Case : 

there is an mc with external data ( php/mysql) working well
There is a dynamic textfield filled with db data,  I get he text and its ok
: ³La vallée de Celles-sur-Plaine²

There is a datagrid filled with same db data and I get ³La vallée de
Celles-sur-Plaine²

Have you got an ideau why ?  Data are the same but the final result are
different ! 

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] Override _xscale and _yscale setter in AS2

2007-01-19 Thread Andrew J Kirkham
I've only skimmed the messages and I don't have any practical experience 
with this issue ( so possibly I am talking rubbish) but I don't think anyone 
so far has mentioned super.


I wonder if this approach is of any use.

public function set _yscale( value:Number ):Void
   {
  super._yscale = Number;
   //your code :)
   }

Andy


- Original Message - 
From: "Patrick Matte | BLITZ" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Friday, January 19, 2007 12:37 AM
Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2


Anybody has any other idea ?

BLITZ | Patrick Matte - 310-551-0200 x214


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Matte | BLITZ
Sent: Thursday, January 18, 2007 4:19 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2

No I've tried that but it doesn't work unfortunately, I've also
overridden the enabled setter before but the _xscale and _yscale setters
seem to be different from the enabled setter.

What I want to do is not scale the movieClip at all and scale redraw a
bitmapData inside of it.

BLITZ | Patrick Matte - 310-551-0200 x214


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent: Thursday, January 18, 2007 3:50 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Override _xscale and _yscale setter in AS2

Hello :)

Yes you can :) Try this code (not tested)


class Test1 extends MovieClip
{

/**
 * Constructor
 */
function Test1()
{

}

   public function get _xscale ():Number
   {
return _xscale_ ;
   }

   public function set _yscale( value:Number ):Void
   {
  __xscale__ = value ;
 // your code :)
   }

   private var _xscale_ = MovieClip.prototype._xscale ;

}

I use this technik in LUnAS the extension of VEGAS my framework
OpenSource
with the "enabled" property... it's possible it's work with the _xscale
property.

NB 1 : Vegas project : http://vegas.riaforge.org/
NB 2 : the AbstractComponent class in LunAS with this hack over the
enabled
property :
http://svn.riaforge.org/vegas/AS2/trunk/src/lunas/display/components/Abs
tractComponent.as



EKA+ :)




2007/1/19, Patrick Matte | BLITZ <[EMAIL PROTECTED]>:


In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?


___
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] PMT calculation problem

2007-01-19 Thread Martin Klasson


Hi Flashcoders,

I got a problem which I am in no way to figure out myself,
but someone here probably has a solution.

I found this function when I googled:

function Pmt(r, np, pv, fv) {
   r = r/1200;
   pmt = -(r*(fv+Math.pow(1+r, np)*pv)/(-1+Math.pow(1+r, np)))
   return(pmt);
}

trace( Math.round(Pmt(5, 36, -273168.6, 190300)) );


BUT, the problem is that this "PMT"-function, which am used in programs 
like Excel, .Net and so on,

also have a fifth paramater in which you can send in 0 or 1.

The function above behaves like sending in "0" as the fifth parameter 
-as in as the loan is paid of the last day
in the month. But I need to send in "1", and get the result of when the 
loan is being paid off the first every month.


the code above traces out "3277", and that is correct if I wanted it to 
be when the loan is being paid of the last day in
every month, but I really need it to calculate the monthly payment as 
occuring the last day of every month. So I really

want it to be 3263 ;)

Do you know how the line of code can be altered so it suits me?

Here is a description of the "standard" PMT, how it works:
http://www.techonthenet.com/excel/formulas/pmt.php

Thanks, Martin



___
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