Re: [Flashcoders] How do you manage your classes?

2006-09-25 Thread mario

Hi,

the current setup we use in our company is that we have a core library  
that holds all of our core-code we reuse all the time, this core is  
stored and maintained in SVN. This library is imported as a linked  
library in Eclipse (e.g. its more like an alias/shortcut to the core).  
Other project specific code gets developed on project level on their  
respective package level.


If for some reason we need to enhance some of the core-code we do this  
on the project level (your settings should _ALWAYS_ first look in your  
local project before looking in the core). This way you can test the  
enhancements against other older projects or unittests you might have  
written before committing them back into the core.


The last important step we take is to make a copy of the core into the  
project folder when we complete developement, this is to make sure  
that when the core gets updated later on we have a working copy of the  
core just in case (backward compatibility breaking in an upgrade).


Hope this helps.

cheers,
mario











Quoting Dan Rogers <[EMAIL PROTECTED]>:


Flashcoders,

I've been wondering how other flash developers deal with AS2/AS3 class
management on both a project-based and common library level, while
addressing the need to package up source code for a given project to
deliver to a team member or client.

I've used version control before, as well as doing the common classpath
thing for shared classes... but when it's time to deliver the source
code to someone, I would have to go in and hunt for all the classes I
used on a project and copy them to the FLA directory (and recreate the
com.package... structure as well).  Sometimes it seems faster to simply
create the AS files along with the FLA (in a single package), and copy
over utility files as needed.  But then you get into duplicate classes
scattered over multiple projects.

Can anyone provide any insight to a system that works well for them?
For example, does anyone run custom shell scripts (such as rsync) that
sync the current project with the main classpath directory?

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

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




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

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


Re: [Flashcoders] How do you manage your classes?

2006-09-25 Thread Ray Chuan

Hi,

On 9/26/06, greg h <[EMAIL PROTECTED]> wrote:

Dan,

I can not answer your specifc questions, so I hope that others will jump in
and add their voices along with details about how they manage the problems
you described.

I just want to comment generally that Subversion is the successor to CVS.
You can find full documentation here:
http://svnbook.red-bean.com/

If you are going to use open source version control, I will hazard to say
that Subversion can not be beat.

For automation, I believe that Subversion integrates well with Ant.


It does not. There are no built in svn tasks.

http://ant.apache.org/manual/tasksoverview.html#scm

But you can of course write commands to do it.


hth,

g

On 9/25/06, Dan Rogers <[EMAIL PROTECTED]> wrote:
>
> I'm not very familiar with subversion-  can it handle shared modules
> (or recursive modules I guess)?
> I am curious how one would handle utility classes that get included
> in multiple projects...
>
>
> On Sep 25, 2006, at 5:03 PM, eric dolecki wrote:
>
> > Using SVN, etc. make a repository on a shared server somewhere.
> > Include
> > classes from there in your projects. Just make sure you update &
> > you're all
> > good to go.
> >
> > On 9/25/06, Dan Rogers <[EMAIL PROTECTED]> wrote:
> >>
> >> Flashcoders,
> >>
> >> I've been wondering how other flash developers deal with AS2/AS3
> >> class management on both a project-based and common library level,
> >> while addressing the need to package up source code for a given
> >> project to deliver to a team member or client.
> >>
> >> I've used version control before, as well as doing the common
> >> classpath thing for shared classes... but when it's time to deliver
> >> the source code to someone, I would have to go in and hunt for all
> >> the classes I used on a project and copy them to the FLA directory
> >> (and recreate the com.package... structure as well).  Sometimes it
> >> seems faster to simply create the AS files along with the FLA (in a
> >> single package), and copy over utility files as needed.  But then you
> >> get into duplicate classes scattered over multiple projects.
> >>
> >> Can anyone provide any insight to a system that works well for them?
> >> For example, does anyone run custom shell scripts (such as rsync)
> >> that sync the current project with the main classpath directory?
> >>
> >> Thanks,
> >> -Danro
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


Re: [Flashcoders] Movieclip To BitmapData won't work with .flv

2006-09-25 Thread John Grden

it won't work at all with an flv streaming over RTMP - you can't use
bitmapData with it at all.

Yeah I know, it sucks.

On 9/26/06, John VanHorn <[EMAIL PROTECTED]> wrote:


first thing that comes to mind is a cross domain issue. are you loading
the
flv from another domain? if so, bitmapdata.draw will not work.

On 9/25/06, Martin Baltzer Hennelund <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm using the BitmapData Object to take a "snapshot" of the pages in my
> flash app and it works fine on movieclips without a flv video player
inside.
> But on of the pages has an movieclip inside it which is playing
> (streaming) a flv file and when I try to take a snapshot of this page
> movieclip the bitmap objects returns empty (It is created but is blank).
> When I remove the movieplayer mc the bitmapdata is created correctly!
>
> What am I doing wrong or is this flash bug?
>
> Cheers Martin
>
> Heres my code
>
> //--
> public function toBitmapData(mContent:MovieClip):BitmapData{
>
>   var width:Number  = Math.min( Math.ceil(mContent._width), 2880);
>   var height:Number = Math.min(Math.ceil(mContent._height), 2880);
>
>   var oBmp:BitmapData = new BitmapData(width,height, true, 0x55ff);
>
>   oBmp.draw( mContent );
>
>   //debugging
>   var m:MovieClip = _level0.createEmptyMovieClip("mcTest", 9);
>   m.attachBitmap(oBmp, 1);
>
>   return oBmp;
> }
> //--
>
> -Oprindelig meddelelse-
> Fra: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] På vegne af Josh Santangelo
> Sendt: 25. september 2006 11:09
> Til: Flashcoders mailing list
> Emne: Re: [Flashcoders] Mute Flash Application, mac.
>
> There is a bug which you could potentially exploit for this.
>
> http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?
> catid=184&threadid=1000550&enterthread=y
>
> Note the last post. If MIDI is not set to 44.1, Flash can't output
> any audio.
>
> -josh
>
> On Sep 22, 2006, at 10:27a, aaron smith wrote:
>
> > Does anyone know of an application that can mute flash or browsers
> > for a
> > mac?
> >
> > or maybe a way to do it through the terminal?
> >
> > thanks.
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
John Van Horn
[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





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ::dk:: issues with external data and external swf

2006-09-25 Thread Bjorn Schultheiss
 
What error is it throwing?

Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, 26 September 2006 1:53 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] ::dk:: issues with external data and external swf

Bjorn Schultheiss wrote:
> Dk,
>
> Is your swf loaded from within the same domain?
> Are the required remoting classes compiled into your swf?
>
>
> Regards,
>  
> Bjorn Schultheiss
> Senior Flash Developer
> QDC Technologies
>
>   
They are in the same domain, and I created a crossdomain.xml to cover
various hostnames (just in case). The required remoting classes are compiled
in as when the movie is not loaded into another, it runs as it should. The
issue is only when it is loaded into another movie.

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

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

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


Re: [Flashcoders] How do you manage your classes?

2006-09-25 Thread greg h

Dan,

I can not answer your specifc questions, so I hope that others will jump in
and add their voices along with details about how they manage the problems
you described.

I just want to comment generally that Subversion is the successor to CVS.
You can find full documentation here:
http://svnbook.red-bean.com/

If you are going to use open source version control, I will hazard to say
that Subversion can not be beat.

For automation, I believe that Subversion integrates well with Ant.

hth,

g

On 9/25/06, Dan Rogers <[EMAIL PROTECTED]> wrote:


I'm not very familiar with subversion-  can it handle shared modules
(or recursive modules I guess)?
I am curious how one would handle utility classes that get included
in multiple projects...


On Sep 25, 2006, at 5:03 PM, eric dolecki wrote:

> Using SVN, etc. make a repository on a shared server somewhere.
> Include
> classes from there in your projects. Just make sure you update &
> you're all
> good to go.
>
> On 9/25/06, Dan Rogers <[EMAIL PROTECTED]> wrote:
>>
>> Flashcoders,
>>
>> I've been wondering how other flash developers deal with AS2/AS3
>> class management on both a project-based and common library level,
>> while addressing the need to package up source code for a given
>> project to deliver to a team member or client.
>>
>> I've used version control before, as well as doing the common
>> classpath thing for shared classes... but when it's time to deliver
>> the source code to someone, I would have to go in and hunt for all
>> the classes I used on a project and copy them to the FLA directory
>> (and recreate the com.package... structure as well).  Sometimes it
>> seems faster to simply create the AS files along with the FLA (in a
>> single package), and copy over utility files as needed.  But then you
>> get into duplicate classes scattered over multiple projects.
>>
>> Can anyone provide any insight to a system that works well for them?
>> For example, does anyone run custom shell scripts (such as rsync)
>> that sync the current project with the main classpath directory?
>>
>> Thanks,
>> -Danro


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Movieclip To BitmapData won't work with .flv

2006-09-25 Thread John VanHorn

first thing that comes to mind is a cross domain issue. are you loading the
flv from another domain? if so, bitmapdata.draw will not work.

On 9/25/06, Martin Baltzer Hennelund <[EMAIL PROTECTED]> wrote:


Hi all,

I'm using the BitmapData Object to take a "snapshot" of the pages in my
flash app and it works fine on movieclips without a flv video player inside.
But on of the pages has an movieclip inside it which is playing
(streaming) a flv file and when I try to take a snapshot of this page
movieclip the bitmap objects returns empty (It is created but is blank).
When I remove the movieplayer mc the bitmapdata is created correctly!

What am I doing wrong or is this flash bug?

Cheers Martin

Heres my code

//--
public function toBitmapData(mContent:MovieClip):BitmapData{

  var width:Number  = Math.min( Math.ceil(mContent._width), 2880);
  var height:Number = Math.min(Math.ceil(mContent._height), 2880);

  var oBmp:BitmapData = new BitmapData(width,height, true, 0x55ff);

  oBmp.draw( mContent );

  //debugging
  var m:MovieClip = _level0.createEmptyMovieClip("mcTest", 9);
  m.attachBitmap(oBmp, 1);

  return oBmp;
}
//--

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] På vegne af Josh Santangelo
Sendt: 25. september 2006 11:09
Til: Flashcoders mailing list
Emne: Re: [Flashcoders] Mute Flash Application, mac.

There is a bug which you could potentially exploit for this.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?
catid=184&threadid=1000550&enterthread=y

Note the last post. If MIDI is not set to 44.1, Flash can't output
any audio.

-josh

On Sep 22, 2006, at 10:27a, aaron smith wrote:

> Does anyone know of an application that can mute flash or browsers
> for a
> mac?
>
> or maybe a way to do it through the terminal?
>
> thanks.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

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

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

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





--
John Van Horn
[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


Re: [Flashcoders] ::dk:: issues with external data and external swf

2006-09-25 Thread dnk

Bjorn Schultheiss wrote:

Dk,

Is your swf loaded from within the same domain?
Are the required remoting classes compiled into your swf?


Regards,
 
Bjorn Schultheiss

Senior Flash Developer
QDC Technologies

  
They are in the same domain, and I created a crossdomain.xml to cover 
various hostnames (just in case). The required remoting classes are 
compiled in as when the movie is not loaded into another, it runs as it 
should. The issue is only when it is loaded into another movie.


Dustin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ::dk:: issues with external data and external swf

2006-09-25 Thread Bjorn Schultheiss
Dk,

Is your swf loaded from within the same domain?
Are the required remoting classes compiled into your swf?


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, 26 September 2006 1:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] ::dk:: issues with external data and external swf

Hi there - I have a movie in which I use remoting to load images and data.
When run on it's own, it functions perfect. When it is loaded into another
movie, some data does not load. I have used "service capture" 
and my data is in fact returned. Now I am pretty confident with the code
since it runs on it's own perfect. I thought at first that it might be a
scope issue or an issue with the _root time line - but I have ruled that out
as I only use a relative path as opposed to an absolute path.

IS this a known bug? I have been googling for a few hours already.


Thanks in advance!



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

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

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


Re: [Flashcoders] How do you manage your classes?

2006-09-25 Thread Dan Rogers
I'm not very familiar with subversion-  can it handle shared modules  
(or recursive modules I guess)?
I am curious how one would handle utility classes that get included  
in multiple projects...



On Sep 25, 2006, at 5:03 PM, eric dolecki wrote:

Using SVN, etc. make a repository on a shared server somewhere.  
Include
classes from there in your projects. Just make sure you update &  
you're all

good to go.

On 9/25/06, Dan Rogers <[EMAIL PROTECTED]> wrote:


Flashcoders,

I've been wondering how other flash developers deal with AS2/AS3
class management on both a project-based and common library level,
while addressing the need to package up source code for a given
project to deliver to a team member or client.

I've used version control before, as well as doing the common
classpath thing for shared classes... but when it's time to deliver
the source code to someone, I would have to go in and hunt for all
the classes I used on a project and copy them to the FLA directory
(and recreate the com.package... structure as well).  Sometimes it
seems faster to simply create the AS files along with the FLA (in a
single package), and copy over utility files as needed.  But then you
get into duplicate classes scattered over multiple projects.

Can anyone provide any insight to a system that works well for them?
For example, does anyone run custom shell scripts (such as rsync)
that sync the current project with the main classpath directory?

Thanks,
-Danro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ::dk:: issues with external data and external swf

2006-09-25 Thread dnk
Hi there - I have a movie in which I use remoting to load images and 
data. When run on it's own, it functions perfect. When it is loaded into 
another movie, some data does not load. I have used "service capture" 
and my data is in fact returned. Now I am pretty confident with the code 
since it runs on it's own perfect. I thought at first that it might be a 
scope issue or an issue with the _root time line - but I have ruled that 
out as I only use a relative path as opposed to an absolute path.


IS this a known bug? I have been googling for a few hours already.


Thanks in advance!



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

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


Re: [Flashcoders] Prevent loaded clip from calling Stage.addListener?

2006-09-25 Thread Ray Chuan

Hi,
Stage.scaleMode = "noScale"

On 9/26/06, Alan Queen <[EMAIL PROTECTED]> wrote:

I'm loading an external swf at runtime from a different domain,
and the loaded swf is doing some resizing when the Stage is resized..

I'm trying to prevent the loaded swf from doing this... is there a way?

--
- Alan Queen
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


Re: [Flashcoders] combobox label not displaying any text

2006-09-25 Thread Rich Rodecker

i also notice if i set the DG's editable property to true, i cant enter any
tex into the input field...wtf?


On 9/25/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:


also, all the items in the combobox's dropdown display fine...its just the
TextInput that shows the cb's selected item.

On 9/25/06, Rich Rodecker < [EMAIL PROTECTED]> wrote:
>
> i am embedding the font through a dynamic textfiled on the main
> timeline, since adding a font symbol takes up way more space.
>
>
> On 9/25/06, Andrei Thomaz <[EMAIL PROTECTED]> wrote:
> >
> > the font must be available as a symbol font in the library. And, in
> > some
> > cases, the font must be in the library of the main movie, in the case
> > of
> > combobox being in a movie loaded by another one. This is because Flash
> > creates the combobox list in _level0. Sometime I created a combobox
> > inside a
> > movie that was rotationed, and the list appeared straight on the
> > screen,
> > without the inclination of the "main" movie (the main movie of the
> > list was,
> > actually, the _root).
> >
> > []'s
> > andrei
> >
> >
> > On 9/25/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
> > >
> > > I have a combobox that I am using in a CellRenderer for a
> > datagrid.  For
> > > some reason the text for the selected item in the comboobox wont
> > display.
> > > If i trace out the value of the text, it shows the right value, so I
> > know
> > > its being set. I am setting embedFonts to true for the TextInput and
> > > ComboBox components in the _global styles.
> > >
> > > anyone have any ideas as to why the selected text isnt displaying?
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/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] combobox label not displaying any text

2006-09-25 Thread Rich Rodecker

also, all the items in the combobox's dropdown display fine...its just the
TextInput that shows the cb's selected item.

On 9/25/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:


i am embedding the font through a dynamic textfiled on the main timeline,
since adding a font symbol takes up way more space.


On 9/25/06, Andrei Thomaz <[EMAIL PROTECTED]> wrote:
>
> the font must be available as a symbol font in the library. And, in some
>
> cases, the font must be in the library of the main movie, in the case of
> combobox being in a movie loaded by another one. This is because Flash
> creates the combobox list in _level0. Sometime I created a combobox
> inside a
> movie that was rotationed, and the list appeared straight on the screen,
> without the inclination of the "main" movie (the main movie of the list
> was,
> actually, the _root).
>
> []'s
> andrei
>
>
> On 9/25/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
> >
> > I have a combobox that I am using in a CellRenderer for a
> datagrid.  For
> > some reason the text for the selected item in the comboobox wont
> display.
> > If i trace out the value of the text, it shows the right value, so I
> know
> > its being set. I am setting embedFonts to true for the TextInput and
> > ComboBox components in the _global styles.
> >
> > anyone have any ideas as to why the selected text isnt displaying?
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] combobox label not displaying any text

2006-09-25 Thread Rich Rodecker

i am embedding the font through a dynamic textfiled on the main timeline,
since adding a font symbol takes up way more space.


On 9/25/06, Andrei Thomaz <[EMAIL PROTECTED]> wrote:


the font must be available as a symbol font in the library. And, in some
cases, the font must be in the library of the main movie, in the case of
combobox being in a movie loaded by another one. This is because Flash
creates the combobox list in _level0. Sometime I created a combobox inside
a
movie that was rotationed, and the list appeared straight on the screen,
without the inclination of the "main" movie (the main movie of the list
was,
actually, the _root).

[]'s
andrei


On 9/25/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
>
> I have a combobox that I am using in a CellRenderer for a datagrid.  For
> some reason the text for the selected item in the comboobox wont
display.
> If i trace out the value of the text, it shows the right value, so I
know
> its being set. I am setting embedFonts to true for the TextInput and
> ComboBox components in the _global styles.
>
> anyone have any ideas as to why the selected text isnt displaying?
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] combobox label not displaying any text

2006-09-25 Thread Andrei Thomaz

the font must be available as a symbol font in the library. And, in some
cases, the font must be in the library of the main movie, in the case of
combobox being in a movie loaded by another one. This is because Flash
creates the combobox list in _level0. Sometime I created a combobox inside a
movie that was rotationed, and the list appeared straight on the screen,
without the inclination of the "main" movie (the main movie of the list was,
actually, the _root).

[]'s
andrei


On 9/25/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:


I have a combobox that I am using in a CellRenderer for a datagrid.  For
some reason the text for the selected item in the comboobox wont display.
If i trace out the value of the text, it shows the right value, so I know
its being set. I am setting embedFonts to true for the TextInput and
ComboBox components in the _global styles.

anyone have any ideas as to why the selected text isnt displaying?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] combobox label not displaying any text

2006-09-25 Thread Rich Rodecker

I have a combobox that I am using in a CellRenderer for a datagrid.  For
some reason the text for the selected item in the comboobox wont display.
If i trace out the value of the text, it shows the right value, so I know
its being set. I am setting embedFonts to true for the TextInput and
ComboBox components in the _global styles.

anyone have any ideas as to why the selected text isnt displaying?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] swf to svg

2006-09-25 Thread David Rorex

I believe most vector drawing tools will let you export/save as SVG. For
example, http://www.inkscape.org/ is a free vector editing tool. Another
popular tool is Adobe's Illustrator.

If you really want to use flash to make SVG, another option is to save as
something besides SWF.
For example, Flash can export DXF as well as EPS files, perhaps those would
be easier to convert to SVG.

-David R

On 9/25/06, Matthew Ganz <[EMAIL PROTECTED]> wrote:


hi.

the only tool i've found that converts SWF to SVG seems to no longer be
working:

http://www.eprg.org/~sgp/swf2svg.html

anyone know of another tool? i cringe at writing the svg from scratch.

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

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


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

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


Re: [Flashcoders] How do you manage your classes?

2006-09-25 Thread eric dolecki

Using SVN, etc. make a repository on a shared server somewhere. Include
classes from there in your projects. Just make sure you update & you're all
good to go.

On 9/25/06, Dan Rogers <[EMAIL PROTECTED]> wrote:


Flashcoders,

I've been wondering how other flash developers deal with AS2/AS3
class management on both a project-based and common library level,
while addressing the need to package up source code for a given
project to deliver to a team member or client.

I've used version control before, as well as doing the common
classpath thing for shared classes... but when it's time to deliver
the source code to someone, I would have to go in and hunt for all
the classes I used on a project and copy them to the FLA directory
(and recreate the com.package... structure as well).  Sometimes it
seems faster to simply create the AS files along with the FLA (in a
single package), and copy over utility files as needed.  But then you
get into duplicate classes scattered over multiple projects.

Can anyone provide any insight to a system that works well for them?
For example, does anyone run custom shell scripts (such as rsync)
that sync the current project with the main classpath directory?

Thanks,
-Danro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How do you manage your classes?

2006-09-25 Thread Dan Rogers

Flashcoders,

I've been wondering how other flash developers deal with AS2/AS3  
class management on both a project-based and common library level,  
while addressing the need to package up source code for a given  
project to deliver to a team member or client.


I've used version control before, as well as doing the common  
classpath thing for shared classes... but when it's time to deliver  
the source code to someone, I would have to go in and hunt for all  
the classes I used on a project and copy them to the FLA directory  
(and recreate the com.package... structure as well).  Sometimes it  
seems faster to simply create the AS files along with the FLA (in a  
single package), and copy over utility files as needed.  But then you  
get into duplicate classes scattered over multiple projects.


Can anyone provide any insight to a system that works well for them?   
For example, does anyone run custom shell scripts (such as rsync)  
that sync the current project with the main classpath directory?


Thanks,
-Danro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Video chat

2006-09-25 Thread greg h

Mike,

Another book that I might suggest is Programming Flash Communication
Serverby
Lesser, Guilizzoni, Reinhardt, Lott and Watkins.

If you are working with FlashCom or Flash Media Server, this book remains a
great resource.  It was published in 2005 so I believe it is updated for MX
2004 and AS2.  Chapter 13:  Building Communication Components, goes through
building a "Video Conference and Video Window".

You might try posting your question on
http://www.flashcomguru.com/flashmedialist/  Folks who know alot more than
me are on that list.

btw ... if you know AS2 I think you will be able to work your way through
sample applications written in AS1.  (Did you know AS2 code actually
compiles down to the same bytecode as AS1?  Now AS3 is something that takes
a bit of 
retooling:-)

I just checked my bookshelf, and other than the book above, I am not finding
any more recent titles with Video Chat examples.  Most excitement around
Video Chat in Flash found its outlet when Flash Communications Server was
first released.  So most sample apps are of the MX, AS1 vintage.  And the
V1  Communication Components provided by Macromedia have never been
updated.  There are now some examples around Flex 2, but those are AS3.

hth,

g


On 9/24/06, greg h <[EMAIL PROTECTED]> wrote:


Mike,

I believe a server is required for video chat with Flash.  Either Flash
Media Server or Red5.

The sample apps for Flash Media Server include a "Video Conference" app,
which is essentially video chat.  You can download the sample apps here:
http://www.adobe.com/devnet/flashmediaserver/sample_apps.html

Most books on Flash Media Server (and it's predecessor Flash
Communications Server) include examples.

For example, Chapter 14 of the book "Macromedia MX: Building Rich Internet
Applications" by Robert Reinhardt and Simon Allardice details "Creating a
Video Instant Messenger" and the included CD has all the code.  Used copies
are inexpensive at Amazon.

http://www.amazon.com/Macromedia-MX-Building-Internet-Applications/dp/0321158814/

There are also prebuilt components you can buy, and even hosted Flash
video chat services that you can add to your site.

If details on any of these other options would be helpful, please post
back on this thread regarding what you would like more details on.

hth,

g


On 9/23/06, Batista Mihai <[EMAIL PROTECTED]> wrote:
>
> Hello! Where can I find a tutorial about how to make a video chat using
> Flash?
> Thank you very much! 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] xcode swf launch and logging

2006-09-25 Thread Alisdair Mills

Hi,

For anyone who uses XCode for ActionScript development... I have  
built an application that can be used as an Executable to launch  
a .swf (or html) after a successful MTASC or MXMLC build and log  
messages from the flash player to the XCode run console. if you're  
interested I've put a more information and downloads at...


http://blog.alisdairmills.com/2006/09/ 
swflaunch_xcode_executable_for.html


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

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


Re: [Flashcoders] Q:Change publish path dynamically

2006-09-25 Thread Aaron Buchanan
You could write a jsfl to loop all open FLAs, or perhaps all FLAs in a
project if you're using the project panel. The latter I haven't done yet,
but should be possible.


On 9/25/06 1:29 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> Hi
> Does anyone know if there is a way to change the publish path dynamically?
> 
> This would be really useful if working with the same FLA in different test
> environments instead of manually having to change the publish settings...time
> consuming with projects involving lots of fla's.
> 
> Thanks
> Jim Bachalo 
> 
> 
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
>  - Bruce Mau,'LifeStyle'
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

-- 
Aaron Buchanan | Flash Developer, Lab-Media | T 909 702 1368


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tree component onLoad select leaf

2006-09-25 Thread Glen Pike

This will select the first node in a Tree.

mTree.selectedNode = mTree.getTreeNodeAt(0);

Dave Geurts wrote:

Does anybody know how to set the default selected node in a tree
component.  Not only set it to open but get it to visually appear
selected.


-Dave

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:Change publish path dynamically

2006-09-25 Thread bitstreams
Hi
Does anyone know if there is a way to change the publish path dynamically?

This would be really useful if working with the same FLA in different test 
environments instead of manually having to change the publish settings...time 
consuming with projects involving lots of fla's.

Thanks
Jim Bachalo 


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

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

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


[Flashcoders] Tree component onLoad select leaf

2006-09-25 Thread Dave Geurts
Does anybody know how to set the default selected node in a tree
component.  Not only set it to open but get it to visually appear
selected.


-Dave

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

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


[Flashcoders] swf to svg

2006-09-25 Thread Matthew Ganz
hi. 

the only tool i've found that converts SWF to SVG seems to no longer be working:

http://www.eprg.org/~sgp/swf2svg.html

anyone know of another tool? i cringe at writing the svg from scratch. 

thanks. -- matt.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread John Grden

also, finding that textfield was a complete nightmare until I got a hold of
gSearch ;)  I was able to bring up all dynamic textfields, click to each of
them through the list and find it within a couple of minutes ;)

I had meant to include this in the last post, just didn't know if I had
permission to say anything ;)  gSearch is in limited beta right now and
they're (Gskinner and the gang) trying to get it out.  I've used it on
serveral occasions with very large projects like the one mentioned and it
was an absolute God send.

On 9/25/06, John Grden <[EMAIL PROTECTED]> wrote:


Yes, that's right, that'll make it big ;)  I've just given you a recipe to
get the fonts embedded for dynamic HTML work.  *how* you implement from
there is another matter.  But no matter what you do, Chinese character sets
can add alot.  I did a conversion of a site to Chinese about 3 months ago,
and someone on translation team embedded "all" on a single dynamic textbox
which caused the resulting swf to be 15mb ;)

On 9/25/06, vic <[EMAIL PROTECTED]> wrote:
>
> But if ido this wont i have to embed fonts for all fonts (Chineese,
> arabic, english, etc.)?  Doesnt that make the movie huge?
>
>
>
> -- Original Message --
> From: "John Grden" < [EMAIL PROTECTED]>
> Reply-To: Flashcoders mailing list 
> Date:  Mon, 25 Sep 2006 14:27:47 -0400
>
> >also, depending on the what sytles you apply to your html (IE: ),
> >you'll have to embed that part of the font as well.
> >
> >to do this,
> >
> >1.  create a dynamic textfield on stage and select the font you want to
> use
> >2.  Click the "render text as HTML" button in the property inspector
> >3.  Double click to enter text
> >4.  type:  r b i bi
> >5.  select the "b", click the "bold" button.  Select the "i", click the
>
> >"italic" button, select "bi" and click the "bold" then "italic" button.
> >6.  what you should have is something that looks like this:  r b  i bi
> >7.  Click the "embed..." button - select Uppercase, Lowercase,
> Numerals,
> >Punctuation - click ok to close
> >
> >put this textbox off stage somewhere and hide it.  It's only job is to
> >include the normal, italic, bold and bold/italic font outlines.  Create
> >another dynamic text box that will recieve your HTML formatted data and
> you
> >should be good.
> >
> >hth vic!
> >
> >Jpg
> >
> >PS> welcome to the crack habbit of FlashCoders ;)
> >
> >
> >On 9/25/06, Mendelsohn, Michael < [EMAIL PROTECTED]>
> wrote:
> >>
> >> Make sure you also have this line:
> >> myText.html = true;
> >>
> >>
> >> > Does anyone have the solution...it could be myText.htmlText = 'foo'
> >> but I am not sure.
> >>
> >> ___
> >> Flashcoders@chattyfig.figleaf.com
> >> To change your subscription options or search the archive:
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >> Brought to you by Fig Leaf Software
> >> Premier Authorized Adobe Consulting and Training
> >> http://www.figleaf.com
> >> http://training.figleaf.com
> >>
> >
> >
> >
> >--
> >[  JPG  ]
> >___
> >Flashcoders@chattyfig.figleaf.com
> >To change your subscription options or search the archive:
> >http://chattyfig.figleaf.com/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
>



--
[  JPG  ]





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread John Grden

Yes, that's right, that'll make it big ;)  I've just given you a recipe to
get the fonts embedded for dynamic HTML work.  *how* you implement from
there is another matter.  But no matter what you do, Chinese character sets
can add alot.  I did a conversion of a site to Chinese about 3 months ago,
and someone on translation team embedded "all" on a single dynamic textbox
which caused the resulting swf to be 15mb ;)

On 9/25/06, vic <[EMAIL PROTECTED]> wrote:


But if ido this wont i have to embed fonts for all fonts (Chineese,
arabic, english, etc.)?  Doesnt that make the movie huge?



-- Original Message --
From: "John Grden" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Mon, 25 Sep 2006 14:27:47 -0400

>also, depending on the what sytles you apply to your html (IE: ),
>you'll have to embed that part of the font as well.
>
>to do this,
>
>1.  create a dynamic textfield on stage and select the font you want to
use
>2.  Click the "render text as HTML" button in the property inspector
>3.  Double click to enter text
>4.  type:  r b i bi
>5.  select the "b", click the "bold" button.  Select the "i", click the
>"italic" button, select "bi" and click the "bold" then "italic" button.
>6.  what you should have is something that looks like this:  r b  i bi
>7.  Click the "embed..." button - select Uppercase, Lowercase, Numerals,
>Punctuation - click ok to close
>
>put this textbox off stage somewhere and hide it.  It's only job is to
>include the normal, italic, bold and bold/italic font outlines.  Create
>another dynamic text box that will recieve your HTML formatted data and
you
>should be good.
>
>hth vic!
>
>Jpg
>
>PS> welcome to the crack habbit of FlashCoders ;)
>
>
>On 9/25/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:
>>
>> Make sure you also have this line:
>> myText.html = true;
>>
>>
>> > Does anyone have the solution...it could be myText.htmlText = 'foo'
>> but I am not sure.
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
>
>
>
>--
>[  JPG  ]
>___
>Flashcoders@chattyfig.figleaf.com
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/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





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Prevent loaded clip from calling Stage.addListener?

2006-09-25 Thread Alan Queen

I'm loading an external swf at runtime from a different domain,
and the loaded swf is doing some resizing when the Stage is resized..

I'm trying to prevent the loaded swf from doing this... is there a way?

--
- Alan Queen
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread vic
But if ido this wont i have to embed fonts for all fonts (Chineese, arabic, 
english, etc.)?  Doesnt that make the movie huge?



-- Original Message --
From: "John Grden" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Mon, 25 Sep 2006 14:27:47 -0400

>also, depending on the what sytles you apply to your html (IE: ),
>you'll have to embed that part of the font as well.
>
>to do this,
>
>1.  create a dynamic textfield on stage and select the font you want to use
>2.  Click the "render text as HTML" button in the property inspector
>3.  Double click to enter text
>4.  type:  r b i bi
>5.  select the "b", click the "bold" button.  Select the "i", click the
>"italic" button, select "bi" and click the "bold" then "italic" button.
>6.  what you should have is something that looks like this:  r b  i bi
>7.  Click the "embed..." button - select Uppercase, Lowercase, Numerals,
>Punctuation - click ok to close
>
>put this textbox off stage somewhere and hide it.  It's only job is to
>include the normal, italic, bold and bold/italic font outlines.  Create
>another dynamic text box that will recieve your HTML formatted data and you
>should be good.
>
>hth vic!
>
>Jpg
>
>PS> welcome to the crack habbit of FlashCoders ;)
>
>
>On 9/25/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:
>>
>> Make sure you also have this line:
>> myText.html = true;
>>
>>
>> > Does anyone have the solution...it could be myText.htmlText = 'foo'
>> but I am not sure.
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
>
>
>
>-- 
>[  JPG  ]
>___
>Flashcoders@chattyfig.figleaf.com
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread John Grden

also, depending on the what sytles you apply to your html (IE: ),
you'll have to embed that part of the font as well.

to do this,

1.  create a dynamic textfield on stage and select the font you want to use
2.  Click the "render text as HTML" button in the property inspector
3.  Double click to enter text
4.  type:  r b i bi
5.  select the "b", click the "bold" button.  Select the "i", click the
"italic" button, select "bi" and click the "bold" then "italic" button.
6.  what you should have is something that looks like this:  r b  i bi
7.  Click the "embed..." button - select Uppercase, Lowercase, Numerals,
Punctuation - click ok to close

put this textbox off stage somewhere and hide it.  It's only job is to
include the normal, italic, bold and bold/italic font outlines.  Create
another dynamic text box that will recieve your HTML formatted data and you
should be good.

hth vic!

Jpg

PS> welcome to the crack habbit of FlashCoders ;)


On 9/25/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


Make sure you also have this line:
myText.html = true;


> Does anyone have the solution...it could be myText.htmlText = 'foo'
but I am not sure.

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

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





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread Mendelsohn, Michael
Make sure you also have this line:
myText.html = true;


> Does anyone have the solution...it could be myText.htmlText = 'foo'
but I am not sure. 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: SPAM-LOW: Re: [Flashcoders] embedded font not displaying

2006-09-25 Thread eric dolecki

It wasn't on to begin with :/

On 9/25/06, Nick Gerig <[EMAIL PROTECTED]> wrote:


tried turning auto-kern off?


eric dolecki wrote:

> Hmm - weird. All other fonts are working for me at the moment except for
> basic Arial. This indeed seems quite random.
>
> - e.
>
> On 9/25/06, slangeberg <[EMAIL PROTECTED]> wrote:
>
>>
>> Just happened to me, with Arial bold. Totally random so far (I've
>> embedded
>> arial successfully before), and no idea what.
>>
>> -Scott
>>
>> On 9/25/06, eric dolecki <[EMAIL PROTECTED]> wrote:
>> >
>> > Has anyone had a dynamic text field with text set to embedded not
>> display?
>> > the field is nested within some mcs, but there is no masking, no
bold,
>> no
>> > italic, etc. And its simple Arial. When embedded (even if I set the
>> string
>> > in the IDE) - nothing displays. Is this a bug with FP8?
>> >
>> > - e.
>> > ___
>> > Flashcoders@chattyfig.figleaf.com
>> > To change your subscription options or search the archive:
>> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> >
>> > Brought to you by Fig Leaf Software
>> > Premier Authorized Adobe Consulting and Training
>> > http://www.figleaf.com
>> > http://training.figleaf.com
>> >
>>
>>
>>
>> --
>>
>> : : ) Scott
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread vic
I have been having font issues with Flash for the longest time.  First, I want 
to say hello to you all, I am brand new here and really impressed by the level 
of programming.  I came from actionscript.org where I almost always help people 
out but I dont think that is going to be the case for me here for some time.  

Anyway, I was working on this international site that had to display different 
languages depending upon an HTML querystring.  The copy is pulled from XML.  So 
what I needed to do was to use actionscript to embed the font but when I did 
that I could not format it as HTML.  Does anyone have the solution...it could 
be myText.htmlText = 'foo' but I am not sure. 

Thanks, 

Victor Gaudioso 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Doug Coning
Yes please.  I use extensive use of the XPath class and would appreciate
it.  Thanks,

Doug Coning

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, September 25, 2006 12:20 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] DECODE XML Encoded Characters?

That "decodeEntities" function is actually taken from a class I wrote to
overcome some annoyances with xfactorstudios Xpath implementation.  So
in part of the class I just use that private function as needed in a
getString function I wrote which returns a string (also works with
CDATA):

public function getString(path:String, CDATA:Boolean):String{
var returnValue:String;
if(CDATA){
returnValue = XMLNode(XPath.selectNodes(this.XMLObj,
path+"/text()")[0]).nodeValue;
}else{
returnValue = String(XPath.selectNodes(this.XMLObj,
path)[0]);
}
return decodeEntities(returnValue);
};

I can send you the class offlist if you like.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Doug Coning
>>Sent: Monday, September 25, 2006 12:12 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] DECODE XML Encoded Characters?
>>
>>Thanks Jason,
>>
>>Yes, this does parse it correctly not so much because of the parseXML
>>step, but because of the nodeValue.  I've been using the XPath class
to
>>return my XML by using the selectNodes method.  Apparently, this
doesn't
>>parse the xml in the same manner as the nodeValue function does.
>>
>>I wonder if there is a way to get the XPath class to return the XML in
>>the decoded manner like the nodeValue method does?
>>
>>Thanks again!
>>
>>Doug Coning
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: Monday, September 25, 2006 11:23 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] DECODE XML Encoded Characters?
>>
>>If this is related at all, or helps any, this is what I use to decode
>>entities from an XML string - someone on this list suggested using
>>XML.parseXML()
>>
>>  private function decodeEntities(entityString:String):String {
>>  var x:XML = new XML(""+entityString+"");
>>  x.parseXML();
>>  return x.firstChild.firstChild.nodeValue;
>>  };
>>
>>
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Doug Coning
Sent: Monday, September 25, 2006 11:16 AM
To: Flashcoders mailing list
Subject: [Flashcoders] DECODE XML Encoded Characters?

Alright, what am I doing wrong?  I have tried over and over to
decode
>>an
XML string, but Flash won't decode it.  The XML is returning special
Characters (&'><) encoded.  I have tried to use escape, unescape,
encode, decode and I can't get anything to convert the encoded text
to
its character representation.

Here is the node:

Special Characters - &  "  '  <
>>>

var str:String = String(XPath.selectNodes(MyXML_cs.getResults(),
"//ConfigParamValue/text()")[0]);

I've tried:
trace("A: " + escape(str));// > Special Character - &
"
'  <  >
trace("B: " + unescape(str));  // > Special Character - &
"
'  <  >
trace("C: " + decode(str));// >
Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%
>>3B
%20
%20%26lt%3B%20%20%26gt%3B%20%20
trace("D: " + encode(str));// > Special Character - &
"
'  <  >

I'd greatly appreciate if someone could let me know how to decode
this
text!  Thank you!

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]

This e-mail and any attachment(s) are intended for the specified
>>recipient(s) only
and are legally protected.  If you have received this communication
in
>>error,
please "reply to" sender's e-mail address with notification of the
>>error and then
destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Auth

RE: [Flashcoders] embedded font not displaying

2006-09-25 Thread Mendelsohn, Michael
I have that issue with MS Arial Unicode -- specifically the Unicode
version.  I was wondering about it myself, but didn't investigate
further.

- MM


> Hmm - weird. All other fonts are working for me at the moment except
for
basic Arial. This indeed seems quite random.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Implicit Setters: Is validation considered a goodor bad OOP practice ?

2006-09-25 Thread Mike Keesey
This is generally the route I take. The only thing is that it may halt
application flow in unforeseen circumstances, so 1) unit test and beta
test really well and 2) try as much as possible to catch errors in code
that sets the property.
―
Mike Keesey

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of slangeberg
> Sent: Monday, September 25, 2006 8:46 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Implicit Setters: Is validation considered
a
> goodor bad OOP practice ?
> 
> >so if it's a bad input, it cannot tell the object
> that is modifying the setter property that something went wrong.
> 
> Not sure if it's the best practice, but if someone passes in a bad
input
> to
> your setter, in AS3 you can throw errors, such as:
> 
> public function set volume( val:Number ) {
>if ( val == bad_news ) {
>  throw new Error( "Volume Class - set volume(): Bad value passed
in ["
> +
> val+ "]" );
>}
> }
> Scott
> 
> On 9/25/06, Nicolas Cannasse <[EMAIL PROTECTED]> wrote:
> >
> > > 3) Validate the value and it it's an undesired value,
> > > throw an error ? Here, the component prevents the user
> > > from assigning and undesired value like NaN or
> > > undefined and the user is alerted of the failure at
> > > runtime provided that he used a try catch statement.
> > >
> > > What do you guys think ?
> >
> > (3) definitly.
> >
> > It's called "defensive programming". Try to have your API as much
> > checked (type-wise and logical-wise) as possible. This will enforce
your
> > internal logic constraints and prevent faultly programs.
> >
> > For instance any other component of your application (an UI for
example)
> > will except your volume to be positive and not NaN so you cannot
allow
> > such values to be set.
> >
> > And you shouldn't ignore this error also since silently ignoring
errors
> > will make you and others lose hours of debugging when something goes
> wrong
> >
> > "damn ! why this f... volume does not get set"
> > answer : because it's NaN
> >
> > Nicolas
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> 
> 
> 
> --
> 
> : : ) Scott
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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: SPAM-LOW: Re: [Flashcoders] embedded font not displaying

2006-09-25 Thread Nick Gerig

tried turning auto-kern off?


eric dolecki wrote:


Hmm - weird. All other fonts are working for me at the moment except for
basic Arial. This indeed seems quite random.

- e.

On 9/25/06, slangeberg <[EMAIL PROTECTED]> wrote:



Just happened to me, with Arial bold. Totally random so far (I've 
embedded

arial successfully before), and no idea what.

-Scott

On 9/25/06, eric dolecki <[EMAIL PROTECTED]> wrote:
>
> Has anyone had a dynamic text field with text set to embedded not
display?
> the field is nested within some mcs, but there is no masking, no bold,
no
> italic, etc. And its simple Arial. When embedded (even if I set the
string
> in the IDE) - nothing displays. Is this a bug with FP8?
>
> - e.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Terry May

Just I would mention this too:

import mx.utils.XMLString;

var myXMLString = XMLString.escape("some  that is misbehaving &
breaking my xml");
trace(myXMLString); //some  that is misbehaving & breaking
my xml
trace(XMLString.unescape(myXMLString)); //some  that is misbehaving
& breaking my xml

Terry May
Flash Engineer
__
ePrize
One ePrize Drive
Pleasant Ridge, MI 48069

Ph.: 248.543.6595
Fax: 248.543.3777
[EMAIL PROTECTED]

The Interactive Promotion Agency
www.eprize.com


On 9/25/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


That "decodeEntities" function is actually taken from a class I wrote to
overcome some annoyances with xfactorstudios Xpath implementation.  So
in part of the class I just use that private function as needed in a
getString function I wrote which returns a string (also works with
CDATA):

public function getString(path:String, CDATA:Boolean):String{
var returnValue:String;
if(CDATA){
returnValue = XMLNode(XPath.selectNodes(this.XMLObj,
path+"/text()")[0]).nodeValue;
}else{
returnValue = String(XPath.selectNodes(this.XMLObj,
path)[0]);
}
return decodeEntities(returnValue);
};

I can send you the class offlist if you like.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Doug Coning
>>Sent: Monday, September 25, 2006 12:12 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] DECODE XML Encoded Characters?
>>
>>Thanks Jason,
>>
>>Yes, this does parse it correctly not so much because of the parseXML
>>step, but because of the nodeValue.  I've been using the XPath class
to
>>return my XML by using the selectNodes method.  Apparently, this
doesn't
>>parse the xml in the same manner as the nodeValue function does.
>>
>>I wonder if there is a way to get the XPath class to return the XML in
>>the decoded manner like the nodeValue method does?
>>
>>Thanks again!
>>
>>Doug Coning
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: Monday, September 25, 2006 11:23 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] DECODE XML Encoded Characters?
>>
>>If this is related at all, or helps any, this is what I use to decode
>>entities from an XML string - someone on this list suggested using
>>XML.parseXML()
>>
>>  private function decodeEntities(entityString:String):String {
>>  var x:XML = new XML(""+entityString+"");
>>  x.parseXML();
>>  return x.firstChild.firstChild.nodeValue;
>>  };
>>
>>
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Doug Coning
Sent: Monday, September 25, 2006 11:16 AM
To: Flashcoders mailing list
Subject: [Flashcoders] DECODE XML Encoded Characters?

Alright, what am I doing wrong?  I have tried over and over to
decode
>>an
XML string, but Flash won't decode it.  The XML is returning special
Characters (&'><) encoded.  I have tried to use escape, unescape,
encode, decode and I can't get anything to convert the encoded text
to
its character representation.

Here is the node:

Special Characters - &  "  '  <
>>>

var str:String = String(XPath.selectNodes(MyXML_cs.getResults(),
"//ConfigParamValue/text()")[0]);

I've tried:
trace("A: " + escape(str));// > Special Character - &
"
'  <  >
trace("B: " + unescape(str));  // > Special Character - &
"
'  <  >
trace("C: " + decode(str));// >
Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%
>>3B
%20
%20%26lt%3B%20%20%26gt%3B%20%20
trace("D: " + encode(str));// > Special Character - &
"
'  <  >

I'd greatly appreciate if someone could let me know how to decode
this
text!  Thank you!

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]

This e-mail and any attachment(s) are intended for the specified
>>recipient(s) only
and are legally protected.  If you have received this communication
in
>>error,
please "reply to" sender's e-mail address with notification of the
>>error and then
destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Merrill, Jason
That "decodeEntities" function is actually taken from a class I wrote to
overcome some annoyances with xfactorstudios Xpath implementation.  So
in part of the class I just use that private function as needed in a
getString function I wrote which returns a string (also works with
CDATA):

public function getString(path:String, CDATA:Boolean):String{
var returnValue:String;
if(CDATA){
returnValue = XMLNode(XPath.selectNodes(this.XMLObj,
path+"/text()")[0]).nodeValue;
}else{
returnValue = String(XPath.selectNodes(this.XMLObj,
path)[0]);
}
return decodeEntities(returnValue);
};

I can send you the class offlist if you like.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Doug Coning
>>Sent: Monday, September 25, 2006 12:12 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] DECODE XML Encoded Characters?
>>
>>Thanks Jason,
>>
>>Yes, this does parse it correctly not so much because of the parseXML
>>step, but because of the nodeValue.  I've been using the XPath class
to
>>return my XML by using the selectNodes method.  Apparently, this
doesn't
>>parse the xml in the same manner as the nodeValue function does.
>>
>>I wonder if there is a way to get the XPath class to return the XML in
>>the decoded manner like the nodeValue method does?
>>
>>Thanks again!
>>
>>Doug Coning
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: Monday, September 25, 2006 11:23 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] DECODE XML Encoded Characters?
>>
>>If this is related at all, or helps any, this is what I use to decode
>>entities from an XML string - someone on this list suggested using
>>XML.parseXML()
>>
>>  private function decodeEntities(entityString:String):String {
>>  var x:XML = new XML(""+entityString+"");
>>  x.parseXML();
>>  return x.firstChild.firstChild.nodeValue;
>>  };
>>
>>
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Doug Coning
Sent: Monday, September 25, 2006 11:16 AM
To: Flashcoders mailing list
Subject: [Flashcoders] DECODE XML Encoded Characters?

Alright, what am I doing wrong?  I have tried over and over to
decode
>>an
XML string, but Flash won't decode it.  The XML is returning special
Characters (&'><) encoded.  I have tried to use escape, unescape,
encode, decode and I can't get anything to convert the encoded text
to
its character representation.

Here is the node:

Special Characters - &  "  '  <
>>>

var str:String = String(XPath.selectNodes(MyXML_cs.getResults(),
"//ConfigParamValue/text()")[0]);

I've tried:
trace("A: " + escape(str));// > Special Character - &
"
'  <  >
trace("B: " + unescape(str));  // > Special Character - &
"
'  <  >
trace("C: " + decode(str));// >
Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%
>>3B
%20
%20%26lt%3B%20%20%26gt%3B%20%20
trace("D: " + encode(str));// > Special Character - &
"
'  <  >

I'd greatly appreciate if someone could let me know how to decode
this
text!  Thank you!

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]

This e-mail and any attachment(s) are intended for the specified
>>recipient(s) only
and are legally protected.  If you have received this communication
in
>>error,
please "reply to" sender's e-mail address with notification of the
>>error and then
destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
>>
>>This e-mail and any attachment(s) are intended for the specified
recipient(s) only
>>and are legally protected.  If you have received this communication in
error,
>>please "reply to" sender's e-mail address with notification of the
error 

[Flashcoders] OT: Project for a Flash Developer

2006-09-25 Thread Payton Morris

Please contact me off list for the information on the project.

*Serious inquires only
*Submit URL of portfolio and resume.

Thanks

- Pay
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Implicit Setters: Is validation considered a good or bad OOP practice ?

2006-09-25 Thread Jim Kremens

"Not sure if it's the best practice, but if someone passes in a bad input to
your setter, in AS3 you can throw errors, such as:"

You can do the same thing in AS2, of course...

Jim Kremens


On 9/25/06, slangeberg <[EMAIL PROTECTED]> wrote:


>so if it's a bad input, it cannot tell the object
that is modifying the setter property that something went wrong.

Not sure if it's the best practice, but if someone passes in a bad input
to
your setter, in AS3 you can throw errors, such as:

public function set volume( val:Number ) {
  if ( val == bad_news ) {
throw new Error( "Volume Class - set volume(): Bad value passed in ["
+
val+ "]" );
  }
}
Scott

On 9/25/06, Nicolas Cannasse <[EMAIL PROTECTED]> wrote:
>
> > 3) Validate the value and it it's an undesired value,
> > throw an error ? Here, the component prevents the user
> > from assigning and undesired value like NaN or
> > undefined and the user is alerted of the failure at
> > runtime provided that he used a try catch statement.
> >
> > What do you guys think ?
>
> (3) definitly.
>
> It's called "defensive programming". Try to have your API as much
> checked (type-wise and logical-wise) as possible. This will enforce your
> internal logic constraints and prevent faultly programs.
>
> For instance any other component of your application (an UI for example)
> will except your volume to be positive and not NaN so you cannot allow
> such values to be set.
>
> And you shouldn't ignore this error also since silently ignoring errors
> will make you and others lose hours of debugging when something goes
wrong
>
> "damn ! why this f... volume does not get set"
> answer : because it's NaN
>
> Nicolas
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--

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

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





--
Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Doug Coning
Thanks Jason,

Yes, this does parse it correctly not so much because of the parseXML
step, but because of the nodeValue.  I've been using the XPath class to
return my XML by using the selectNodes method.  Apparently, this doesn't
parse the xml in the same manner as the nodeValue function does.  

I wonder if there is a way to get the XPath class to return the XML in
the decoded manner like the nodeValue method does?

Thanks again!

Doug Coning

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, September 25, 2006 11:23 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] DECODE XML Encoded Characters?

If this is related at all, or helps any, this is what I use to decode
entities from an XML string - someone on this list suggested using
XML.parseXML()

private function decodeEntities(entityString:String):String {
var x:XML = new XML(""+entityString+""); 
x.parseXML();
return x.firstChild.firstChild.nodeValue;
};




Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Doug Coning
>>Sent: Monday, September 25, 2006 11:16 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] DECODE XML Encoded Characters?
>>
>>Alright, what am I doing wrong?  I have tried over and over to decode
an
>>XML string, but Flash won't decode it.  The XML is returning special
>>Characters (&'><) encoded.  I have tried to use escape, unescape,
>>encode, decode and I can't get anything to convert the encoded text to
>>its character representation.
>>
>>Here is the node:
>>
>>Special Characters - &  "  '  <
>
>>
>>var str:String = String(XPath.selectNodes(MyXML_cs.getResults(),
>>"//ConfigParamValue/text()")[0]);
>>
>>I've tried:
>>trace("A: " + escape(str));// > Special Character - &  "
>>'  <  >
>>trace("B: " + unescape(str));  // > Special Character - &  "
>>'  <  >
>>trace("C: " + decode(str));// >
>>Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B
>>%20
>>%20%26lt%3B%20%20%26gt%3B%20%20
>>trace("D: " + encode(str));// > Special Character - &  "
>>'  <  >
>>
>>I'd greatly appreciate if someone could let me know how to decode this
>>text!  Thank you!
>>
>>Doug Coning
>>Senior Web Development Programmer
>>FORUM Solutions
>>[EMAIL PROTECTED]
>>
>>This e-mail and any attachment(s) are intended for the specified
recipient(s) only
>>and are legally protected.  If you have received this communication in
error,
>>please "reply to" sender's e-mail address with notification of the
error and then
>>destroy this message in all electronic and physical forms.
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please "reply to" sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Implicit Setters: Is validation considered a good or bad OOP practice ?

2006-09-25 Thread slangeberg

so if it's a bad input, it cannot tell the object

that is modifying the setter property that something went wrong.

Not sure if it's the best practice, but if someone passes in a bad input to
your setter, in AS3 you can throw errors, such as:

public function set volume( val:Number ) {
  if ( val == bad_news ) {
throw new Error( "Volume Class - set volume(): Bad value passed in [" +
val+ "]" );
  }
}
Scott

On 9/25/06, Nicolas Cannasse <[EMAIL PROTECTED]> wrote:


> 3) Validate the value and it it's an undesired value,
> throw an error ? Here, the component prevents the user
> from assigning and undesired value like NaN or
> undefined and the user is alerted of the failure at
> runtime provided that he used a try catch statement.
>
> What do you guys think ?

(3) definitly.

It's called "defensive programming". Try to have your API as much
checked (type-wise and logical-wise) as possible. This will enforce your
internal logic constraints and prevent faultly programs.

For instance any other component of your application (an UI for example)
will except your volume to be positive and not NaN so you cannot allow
such values to be set.

And you shouldn't ignore this error also since silently ignoring errors
will make you and others lose hours of debugging when something goes wrong

"damn ! why this f... volume does not get set"
answer : because it's NaN

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

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





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Giles Taylor
Those are html encodings. If you put them into an HTML textField "as is"
they will work fine (if that is what you are after).

Escape and unescape deal with URL encoding which is a different thing.

If you want the html encoding to turn into the actual characters then I
don't think flash can do it without you writing your own parser.

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug
Coning
Sent: 25 September 2006 16:16
To: Flashcoders mailing list
Subject: [Flashcoders] DECODE XML Encoded Characters?

Alright, what am I doing wrong?  I have tried over and over to decode an
XML string, but Flash won't decode it.  The XML is returning special
Characters (&'><) encoded.  I have tried to use escape, unescape,
encode, decode and I can't get anything to convert the encoded text to
its character representation.

Here is the node:

Special Characters - &  "  '  <  >
 var str:String =
String(XPath.selectNodes(MyXML_cs.getResults(),
"//ConfigParamValue/text()")[0]);

I've tried:
trace("A: " + escape(str));// > Special Character - &  "
'  <  >
trace("B: " + unescape(str));  // > Special Character - &  "
'  <  >  
trace("C: " + decode(str));// >
Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B%20
%20%26lt%3B%20%20%26gt%3B%20%20
trace("D: " + encode(str));// > Special Character - &  "
'  <  >  

I'd greatly appreciate if someone could let me know how to decode this
text!  Thank you!

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]
 
This e-mail and any attachment(s) are intended for the specified
recipient(s) only and are legally protected.  If you have received this
communication in error, please "reply to" sender's e-mail address with
notification of the error and then destroy this message in all
electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Mute Flash Application, mac.

2006-09-25 Thread aaron smith

yeah detour is not in development, and doesn't run on an intel mac..

Hijack is the way to go. it works perfectly


smith



On 9/25/06, Jake Prime <[EMAIL PROTECTED]> wrote:


Hi Aaron

Detour provides individual sound control for each app running on Mac OS.

http://www.versiontracker.com/dyn/moreinfo/macosx/20128

I'm not a Mac user, so I can't vouch for it. Good luck.

Jake



On 22/09/06, aaron smith <[EMAIL PROTECTED]> wrote:
> Does anyone know of an application that can mute flash or browsers for a
> mac?
>
> or maybe a way to do it through the terminal?
>
> thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] Implicit Setters: Is validation considered a good or bad OOP practice ?

2006-09-25 Thread Nicolas Cannasse
> 3) Validate the value and it it's an undesired value,
> throw an error ? Here, the component prevents the user
> from assigning and undesired value like NaN or
> undefined and the user is alerted of the failure at
> runtime provided that he used a try catch statement.
> 
> What do you guys think ?

(3) definitly.

It's called "defensive programming". Try to have your API as much
checked (type-wise and logical-wise) as possible. This will enforce your
internal logic constraints and prevent faultly programs.

For instance any other component of your application (an UI for example)
will except your volume to be positive and not NaN so you cannot allow
such values to be set.

And you shouldn't ignore this error also since silently ignoring errors
will make you and others lose hours of debugging when something goes wrong

"damn ! why this f... volume does not get set"
answer : because it's NaN

Nicolas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread eric dolecki

Hmm - weird. All other fonts are working for me at the moment except for
basic Arial. This indeed seems quite random.

- e.

On 9/25/06, slangeberg <[EMAIL PROTECTED]> wrote:


Just happened to me, with Arial bold. Totally random so far (I've embedded
arial successfully before), and no idea what.

-Scott

On 9/25/06, eric dolecki <[EMAIL PROTECTED]> wrote:
>
> Has anyone had a dynamic text field with text set to embedded not
display?
> the field is nested within some mcs, but there is no masking, no bold,
no
> italic, etc. And its simple Arial. When embedded (even if I set the
string
> in the IDE) - nothing displays. Is this a bug with FP8?
>
> - e.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread slangeberg

Just happened to me, with Arial bold. Totally random so far (I've embedded
arial successfully before), and no idea what.

-Scott

On 9/25/06, eric dolecki <[EMAIL PROTECTED]> wrote:


Has anyone had a dynamic text field with text set to embedded not display?
the field is nested within some mcs, but there is no masking, no bold, no
italic, etc. And its simple Arial. When embedded (even if I set the string
in the IDE) - nothing displays. Is this a bug with FP8?

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

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





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Merrill, Jason
If this is related at all, or helps any, this is what I use to decode
entities from an XML string - someone on this list suggested using
XML.parseXML()

private function decodeEntities(entityString:String):String {
var x:XML = new XML(""+entityString+""); 
x.parseXML();
return x.firstChild.firstChild.nodeValue;
};




Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Doug Coning
>>Sent: Monday, September 25, 2006 11:16 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] DECODE XML Encoded Characters?
>>
>>Alright, what am I doing wrong?  I have tried over and over to decode
an
>>XML string, but Flash won't decode it.  The XML is returning special
>>Characters (&'><) encoded.  I have tried to use escape, unescape,
>>encode, decode and I can't get anything to convert the encoded text to
>>its character representation.
>>
>>Here is the node:
>>
>>Special Characters - &  "  '  <
>
>>
>>var str:String = String(XPath.selectNodes(MyXML_cs.getResults(),
>>"//ConfigParamValue/text()")[0]);
>>
>>I've tried:
>>trace("A: " + escape(str));// > Special Character - &  "
>>'  <  >
>>trace("B: " + unescape(str));  // > Special Character - &  "
>>'  <  >
>>trace("C: " + decode(str));// >
>>Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B
>>%20
>>%20%26lt%3B%20%20%26gt%3B%20%20
>>trace("D: " + encode(str));// > Special Character - &  "
>>'  <  >
>>
>>I'd greatly appreciate if someone could let me know how to decode this
>>text!  Thank you!
>>
>>Doug Coning
>>Senior Web Development Programmer
>>FORUM Solutions
>>[EMAIL PROTECTED]
>>
>>This e-mail and any attachment(s) are intended for the specified
recipient(s) only
>>and are legally protected.  If you have received this communication in
error,
>>please "reply to" sender's e-mail address with notification of the
error and then
>>destroy this message in all electronic and physical forms.
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] embedded font not displaying

2006-09-25 Thread eric dolecki

Has anyone had a dynamic text field with text set to embedded not display?
the field is nested within some mcs, but there is no masking, no bold, no
italic, etc. And its simple Arial. When embedded (even if I set the string
in the IDE) - nothing displays. Is this a bug with FP8?

- e.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DECODE XML Encoded Characters?

2006-09-25 Thread Doug Coning
Alright, what am I doing wrong?  I have tried over and over to decode an
XML string, but Flash won't decode it.  The XML is returning special
Characters (&'><) encoded.  I have tried to use escape, unescape,
encode, decode and I can't get anything to convert the encoded text to
its character representation.

Here is the node:

Special Characters - &  "  '  <  >

var str:String = String(XPath.selectNodes(MyXML_cs.getResults(),
"//ConfigParamValue/text()")[0]);

I've tried:
trace("A: " + escape(str));// > Special Character - &  "
'  <  >  
trace("B: " + unescape(str));  // > Special Character - &  "
'  <  >  
trace("C: " + decode(str));// >
Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B%20
%20%26lt%3B%20%20%26gt%3B%20%20
trace("D: " + encode(str));// > Special Character - &  "
'  <  >  

I'd greatly appreciate if someone could let me know how to decode this
text!  Thank you!

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please "reply to" sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Help debug a webservice issue

2006-09-25 Thread Merrill, Jason
Thanks for the ideas Pete.  Just my luck it's hard to test this morning
because it's working fine now - but still makes me uncomfortable on
Friday it was only working 50% of the time, and no change in sourcecode
since then.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Pete Miller
>>Sent: Monday, September 25, 2006 10:43 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Help debug a webservice issue
>>
>>Try putting a saveResultObj.onFault() handler in your code to see if
>>you're getting a failure response.  Note that if your server responds
>>with a 505 HTTP header, your fault handler won't see it, as the Flash
>>player filters these out.  You need a TCP snoop utility to monitor the
>>messages passed between your client and server to see if this is the
>>case or whether the response is intermittently failing to be sent or
>>intermittently failing to be processed.
>>
>>P.
>>
 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Merrill, Jason
 Sent: Monday, September 25, 2006 7:19 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Help debug a webservice issue

 Even if someone just wants to take a guess that would be fine.
>>Thanks!

 >>-Original Message-
 >>From: [EMAIL PROTECTED]
>>[mailto:flashcoders-
 >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
 >>Sent: Friday, September 22, 2006 4:01 PM
 >>To: Flashcoders mailing list
 >>Subject: RE: [Flashcoders] Help debug a webservice issue
 >>
 >>Nobody?
 >>
 >>
 -Original Message-
 From: [EMAIL PROTECTED]
>>[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Merrill, Jason
 Sent: Friday, September 22, 2006 11:17 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Help debug a webservice issue
 
 I've got a webservice which is acting up and I'm trying to
figure
 out
 >>if
 it's a .NET server issue, a c# script issue, a Flash Webservice
 component issue, or something else.
 
 The problem is the onResult listener gets fired sometimes,
>>sometimes
 not.  It had been working fine until yesterday.  My
Actionscript
 (snippet) is as follows:
 
 ("theObject" is an object I format in Flash - it remains
>>unchanged
 in
 tests)
 
 saveResultObj = new Object();
 saveResultObj  = myWS.SaveProject(theObject);
 saveResultObj.targetMC = someMovieClip_mc;
 saveResultObj.onResult = function(result){
    //this function only gets fired intermittently!
    trace("result received");
    this.targetMC.doSomething();
 }
 
 The SaveProject()method in c# takes an object as it's
parameter.
 The
 object and its properties/values are unchanged every time I
test,
>>so
 I
 don't see how it could be the c# script.  The onResult event
fire
 intermittently - and on the occasions it doesn't fire, the
 >>SaveProject()
 method still ran just fine (one of the things SaveProject does
is
 >>create
 XML, and I see the XML gets updated correctly), but the result
 doesn't
 get fired back all the time.
 
 I can't seem to find any correlation, so it seems to be some
kind
>>of
 connection issue with the webservice?  Or could it be some kind
>>of
 bug
 with the Webservice component's onResult event?  If it's a .NET
 server
 issue, what could it be?
 
 Ideas?  Thanks
 
 Jason Merrill
 Bank of America
 Learning & Organization Effectiveness - Technology Solutions
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 Author

RE: [Flashcoders] Label --> null

2006-09-25 Thread Pete Miller
I think you probably want parenthesis around your typecast, as

var label:Label = (Label)(owner.attachMovie(Label.symbolName,
instanceName, depth, initObj));

P.


>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Lieven Cardoen
>> Sent: Monday, September 25, 2006 8:53 AM
>> To: Flashcoders mailing list
>> Cc: Bert Vandamme; Christophe Herreman
>> Subject: [Flashcoders] Label --> null
>> 
>> import mx.controls.Label;
>> 
>> 
>> 
>> 
>> 
>> public function createLabel(owner:MovieClip, instanceName:String,
>> depth:Number, initObj:Object):Label{
>> 
>>   var label = owner.attachMovie(Label.symbolName, instanceName,
>> depth, initObj);
>> 
>>   logger.debug("label : " + label);
>> 
>>   label.autoSize = "left";
>> 
>>   applyStyle(label);
>> 
>>   return label;
>> 
>> }
>> 
>> 
>> 
>> --> logs a Label ...view0.view1.component12
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> If I type the label :
>> 
>> 
>> 
>> public function createLabel(owner:MovieClip, instanceName:String,
>> depth:Number, initObj:Object):Label{
>> 
>>   var label:Label = Label(owner.attachMovie(Label.symbolName,
>> instanceName, depth, initObj));
>> 
>>   logger.debug("label : " + label);
>> 
>>   label.autoSize = "left";
>> 
>>   applyStyle(label);
>> 
>>   return label;
>> 
>> }
>> 
>> 
>> 
>> --> logs 'null'
>> 
>> 
>> 
>> 
>> 
>> Why the f**k is this???
>> 
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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] Help debug a webservice issue

2006-09-25 Thread Pete Miller
Try putting a saveResultObj.onFault() handler in your code to see if
you're getting a failure response.  Note that if your server responds
with a 505 HTTP header, your fault handler won't see it, as the Flash
player filters these out.  You need a TCP snoop utility to monitor the
messages passed between your client and server to see if this is the
case or whether the response is intermittently failing to be sent or
intermittently failing to be processed.

P.

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Merrill, Jason
>> Sent: Monday, September 25, 2006 7:19 AM
>> To: Flashcoders mailing list
>> Subject: RE: [Flashcoders] Help debug a webservice issue
>> 
>> Even if someone just wants to take a guess that would be fine.
Thanks!
>> 
>> >>-Original Message-
>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>> >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>> >>Sent: Friday, September 22, 2006 4:01 PM
>> >>To: Flashcoders mailing list
>> >>Subject: RE: [Flashcoders] Help debug a webservice issue
>> >>
>> >>Nobody?
>> >>
>> >>
>> -Original Message-
>> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Merrill, Jason
>> Sent: Friday, September 22, 2006 11:17 AM
>> To: Flashcoders mailing list
>> Subject: [Flashcoders] Help debug a webservice issue
>> 
>> I've got a webservice which is acting up and I'm trying to figure
>> out
>> >>if
>> it's a .NET server issue, a c# script issue, a Flash Webservice
>> component issue, or something else.
>> 
>> The problem is the onResult listener gets fired sometimes,
sometimes
>> not.  It had been working fine until yesterday.  My Actionscript
>> (snippet) is as follows:
>> 
>> ("theObject" is an object I format in Flash - it remains
unchanged
>> in
>> tests)
>> 
>> saveResultObj = new Object();
>> saveResultObj  = myWS.SaveProject(theObject);
>> saveResultObj.targetMC = someMovieClip_mc;
>> saveResultObj.onResult = function(result){
>>  //this function only gets fired intermittently!
>>  trace("result received");
>>  this.targetMC.doSomething();
>> }
>> 
>> The SaveProject()method in c# takes an object as it's parameter.
>> The
>> object and its properties/values are unchanged every time I test,
so
>> I
>> don't see how it could be the c# script.  The onResult event fire
>> intermittently - and on the occasions it doesn't fire, the
>> >>SaveProject()
>> method still ran just fine (one of the things SaveProject does is
>> >>create
>> XML, and I see the XML gets updated correctly), but the result
>> doesn't
>> get fired back all the time.
>> 
>> I can't seem to find any correlation, so it seems to be some kind
of
>> connection issue with the webservice?  Or could it be some kind
of
>> bug
>> with the Webservice component's onResult event?  If it's a .NET
>> server
>> issue, what could it be?
>> 
>> Ideas?  Thanks
>> 
>> Jason Merrill
>> Bank of America
>> Learning & Organization Effectiveness - Technology Solutions
>> 
>> 
>> 
>> 
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/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] Implicit Setters: Is validation considered a good orbad OOP practice ?

2006-09-25 Thread Mark Lapasa
The OO motivation behind using setter (and getters) is that it enforces the
notion that nobody should be able to manipulate the state of the object
except the object itself. If you follow this design principal as well as a
handful of others, you will keep your code low-coupled, less likely to be
spaghetti-like.

Today, your code compiles and looks great. However tommorow in the distant
future, under circumstances where you would work in teams or your code gets
in the hands of someone else, you cannot be certain they have the same
mentality as you did when you coded it out.

"Is it a good or bad practice to validate the value passed to the implicit
setter method" ? Sure, why not. However setter methods, if I can remember,
don't allow for a return so if it's a bad input, it cannot tell the object
that is modifying the setter property that something went wrong.

The 3 options you are presenting is a matter of unit testing. Can you
anticipate that other programmers can break your code under certain
circumstances by inputing certain kinds of parameters? If you have a set of
test cases that will fulfil your requirements, then you will have to
bulletproof your code to meet the degree of detail required to pass those
tests.

It's very easy to imagine how many ways something goes wrong but the real
enemy for most programmers is time. Do you have the time to write validation
code for every setter in every class? It's really your discretion.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of David
Bellerive
Sent: Monday, September 25, 2006 10:19 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Implicit Setters: Is validation considered a good
orbad OOP practice ?


I've been reading and learning about OO design &
analysis for the past few months and I've just
recently started applying what I've learned in my
Flash projects ?

Learning a new language (like AS3) is no biggie but
learning how to code differently (from procedural to
OOP) is the real challenge for me !

So here's my first OOP question :

When using implicit setter methods (using the set
modifier), is it considered a good or bad practice to
validate the value passed to the implicit setter
method ?

For exemple, let's say I'm building a Flash Video
Player component and I decide that, amongst others, it
must have a volume component parameter which is a
Number.

In the implicit setter method for the volume, should I
validate the value that is passed to this method and
make sure it isn't null or undefined, it isn't NaN and
that it isn't lower than 0 or higher than 100 ?

Which of the following options is best :

1) Do not validate the value and let the user of my
component set the volume to undesired values like
null, undefined, NaN, -20, 973, etc. Here, the
assignment will work as expected whatever the value is
(unless it's of another datatype) but the component
might fail at runtime since a volume obviously can
never be NaN or null for exemple.

2) Validate the value and, if it is null, undefined or
NaN, do nothing. If it is lower than 0, set it to 0.
If it is higher than 100, set it to 100 ? Here, the
assignment might not work as expected if the valus is
undesired (like null or NaN for exemple) so this will
prevent the component from failing at runtime but the
user won't know that his assignment wasn't succesfull.

3) Validate the value and it it's an undesired value,
throw an error ? Here, the component prevents the user
from assigning and undesired value like NaN or
undefined and the user is alerted of the failure at
runtime provided that he used a try catch statement.

What do you guys think ?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Implicit Setters: Is validation considered a good or bad OOP practice ?

2006-09-25 Thread David Bellerive
I've been reading and learning about OO design &
analysis for the past few months and I've just
recently started applying what I've learned in my
Flash projects ?

Learning a new language (like AS3) is no biggie but
learning how to code differently (from procedural to
OOP) is the real challenge for me !

So here's my first OOP question :

When using implicit setter methods (using the set
modifier), is it considered a good or bad practice to
validate the value passed to the implicit setter
method ?

For exemple, let's say I'm building a Flash Video
Player component and I decide that, amongst others, it
must have a volume component parameter which is a
Number.

In the implicit setter method for the volume, should I
validate the value that is passed to this method and
make sure it isn't null or undefined, it isn't NaN and
that it isn't lower than 0 or higher than 100 ?

Which of the following options is best :

1) Do not validate the value and let the user of my
component set the volume to undesired values like
null, undefined, NaN, -20, 973, etc. Here, the
assignment will work as expected whatever the value is
(unless it's of another datatype) but the component
might fail at runtime since a volume obviously can
never be NaN or null for exemple.

2) Validate the value and, if it is null, undefined or
NaN, do nothing. If it is lower than 0, set it to 0.
If it is higher than 100, set it to 100 ? Here, the
assignment might not work as expected if the valus is
undesired (like null or NaN for exemple) so this will
prevent the component from failing at runtime but the
user won't know that his assignment wasn't succesfull.

3) Validate the value and it it's an undesired value,
throw an error ? Here, the component prevents the user
from assigning and undesired value like NaN or
undefined and the user is alerted of the failure at
runtime provided that he used a try catch statement.

What do you guys think ?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Code review, please

2006-09-25 Thread Anggie Bratadinata

1. Comment your code!


Ah, yes, of course. Sorry about that. I'll comment it right away.


2. Are you using the MVC pattern? It's not really clear from the
code, but it looks somewhat like it


nope, I don't use pattern. I just want to make the HistoryList and
HistoryItem 'talk' to each other. I don't know anything about pattern
(I've just started reading Headfirst DP book).


3. What's "hl.as"? It's an ill chosen file/class name.


Oops, my bad ... It shouldn't be there! It's the external .as that I
included in the first (procedural) version of my app.

Thanks,
--
Anggie Bratadinata
Web|Graphic|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
http://design.ibshastautama.com



Per Bolmstedt wrote:


Anggie Bratadinata wrote:


This is the simple app I created a few days ago, about which I'd
like to have your expert advice on how to improve it or maybe how
to code it in a much better way.


1. Comment your code! It looks structured enough, so adding comments
 should be easy. If you use FDT, using Javadoc is straightforward: 
http://java.sun.com/j2se/javadoc/writingdoccomments/


2. Are you using the MVC pattern? It's not really clear from the
code, but it looks somewhat like it. If you aren't you should; if you
are, maybe you could make it more clear, by changing class names,
adding an interface or two, or adding comments.

3. What's "hl.as"? It's an ill chosen file/class name.

-- Per


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] >> Simplify

2006-09-25 Thread Gustavo Teider - Adobe Flash Developer

Laurent CUCHET escreveu:

How can I simplify this ?

Thak you

function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
d_mc._xscale=aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xscale=idf
_mc._xscale=han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscale=100;
//
al_mc._yscale =
lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._yscale=r
ho_mc._yscale=pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._yscale=mi
d_mc._yscale=aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._yscale=idf
_mc._yscale=han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscale=100;
//
al_mc._alpha = 
lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=rho_mc

._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc._alph
a=aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alpha=han_
mc._alpha=ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
//
al_mc.enabled =
lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.enabled=r
ho_mc.enabled=pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enabled=mi
d_mc.enabled=aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabled=idf
_mc.enabled=han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enabled=fals
e;
//
mc._yscale = 300;
mc._xscale = 300;
mc._alpha = 100;
//mc.enabled = true;
mc._x = (550-mc._x)/2;
mc._y = 0;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

  


function getScale(mc:MovieClip) {

  var mcs:Array = [al_mc, lor_mc, frc_mc, cha_mc, npc_mc, pic_mc, rho_mc, 
pro_mc, bou_mc, lan_mc, auv_mc, mid_mc, aqu_mc , lim_mc, poi_mc, cen_mc, 
idf_mc, han_mc, ban_mc, pad_mc, bre_mc];

  for(var i:Number = 0; i < mcs.length; i++) { 


mcs[i]._xscale = 100;
mcs[i]._yscale = 100;
mcs[i]._alpha  = 0;
mcs[i].enabled = false;

  }

   //
   mc._yscale = 300;
   mc._xscale = 300;
   mc._alpha = 100;
   //mc.enabled = true;
   mc._x = (550-mc._x)/2;
   mc._y = 0;
}



--
Gustavo Teider ( gugateider )
www.gugateider.com
Curitiba - PR

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] >> Simplify

2006-09-25 Thread JOR
If your getScale function is called many times a second you should keep 
it the way it is.  The way you currently have it is the most efficient 
way of doing it and will yield higher FPS.


However, if speed isn't and issue and you are not calling this function 
very often and want to simplify it purely from a readability standpoint 
then Martin's setPropInGroup() function is a good way to do that.



James O'Reilly
http://www.jamesor.com



Laurent CUCHET wrote:

How can I simplify this ?

Thak you

function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
d_mc._xscale=aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xscale=idf
_mc._xscale=han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscale=100;
//
al_mc._yscale =
lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._yscale=r
ho_mc._yscale=pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._yscale=mi
d_mc._yscale=aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._yscale=idf
_mc._yscale=han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscale=100;
//
al_mc._alpha = 
lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=rho_mc

._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc._alph
a=aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alpha=han_
mc._alpha=ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
//
al_mc.enabled =
lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.enabled=r
ho_mc.enabled=pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enabled=mi
d_mc.enabled=aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabled=idf
_mc.enabled=han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enabled=fals
e;
//
mc._yscale = 300;
mc._xscale = 300;
mc._alpha = 100;
//mc.enabled = true;
mc._x = (550-mc._x)/2;
mc._y = 0;
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Label --> null

2006-09-25 Thread Lieven Cardoen
import mx.controls.Label;

 

 

public function createLabel(owner:MovieClip, instanceName:String,
depth:Number, initObj:Object):Label{

  var label = owner.attachMovie(Label.symbolName, instanceName,
depth, initObj);

  logger.debug("label : " + label);

  label.autoSize = "left";

  applyStyle(label);

  return label;

}

 

--> logs a Label ...view0.view1.component12

 

 

 

If I type the label : 

 

public function createLabel(owner:MovieClip, instanceName:String,
depth:Number, initObj:Object):Label{

  var label:Label = Label(owner.attachMovie(Label.symbolName,
instanceName, depth, initObj));

  logger.debug("label : " + label);

  label.autoSize = "left";

  applyStyle(label);

  return label;

}

 

--> logs 'null'

 

 

Why the f**k is this???

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Mute Flash Application, mac.

2006-09-25 Thread Jake Prime

Hi Aaron

Detour provides individual sound control for each app running on Mac OS.

http://www.versiontracker.com/dyn/moreinfo/macosx/20128

I'm not a Mac user, so I can't vouch for it. Good luck.

Jake



On 22/09/06, aaron smith <[EMAIL PROTECTED]> wrote:

Does anyone know of an application that can mute flash or browsers for a
mac?

or maybe a way to do it through the terminal?

thanks.

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

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


Re: [Flashcoders] >> Simplify

2006-09-25 Thread Martin Weiser
group mc in some array or object, set valu viafunction to all memebers 
in group


var group1=[al_mc,lor_mc,frc_mc,cha_mc,npc_mc,pic_mc]
var group2=[ho_mc, pro_mc, bou_mc, lan_mc, auv_mc]
var group3=[d_mc, aqu_mc, lim_mc, poi_mc, cen_mc]
var group4=[_mc, han_mc, ban_mc, pad_mc, bre_mc]
function setPropInGroup (group,prop,val){
  
   for (var i in group){
  
   group[i][prop]=val

   }
  
  
  
}

function getScale(mc:MovieClip) {
   setPropInGroup(group1,"_xscale",r)
   //al_mc._xscale = 
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r;

   setPropInGroup(group2,"_xscale",mi)
  
   //ho_mc._xscale = 
pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi;
  
  
   setPropInGroup(group3,"_xscale",idf)
   //d_mc._xscale = 
aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xscale=idf;
  
   setPropInGroup(group4,"_xscale",100)
   //_mc._xscale = 
han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscale=100;
  
  
   //...etc
  
  
   al_mc._yscale = 
lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._yscale=r;
   ho_mc._yscale = 
pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._yscale=mi;
   d_mc._yscale = 
aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._yscale=idf;
   _mc._yscale = 
han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscale=100;

   //
   al_mc._alpha = 
lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=rho_mc._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc._alph;
   a = 
aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alpha=han_;

   mc._alpha = ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
   //
   al_mc.enabled = 
lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.enabled=r;
   ho_mc.enabled = 
pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enabled=mi;
   d_mc.enabled = 
aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabled=idf;
   _mc.enabled = 
han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enabled=fals;

   e;
   //
   mc._yscale = 300;
   mc._xscale = 300;
   mc._alpha = 100;
   //mc.enabled = true;
   mc._x = (550-mc._x)/2;
   mc._y = 0;
}


Laurent CUCHET wrote:

How can I simplify this ?

Thak you

function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
d_mc._xscale=aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xscale=idf
_mc._xscale=han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscale=100;
//
al_mc._yscale =
lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._yscale=r
ho_mc._yscale=pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._yscale=mi
d_mc._yscale=aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._yscale=idf
_mc._yscale=han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscale=100;
//
al_mc._alpha = 
lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=rho_mc

._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc._alph
a=aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alpha=han_
mc._alpha=ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
//
al_mc.enabled =
lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.enabled=r
ho_mc.enabled=pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enabled=mi
d_mc.enabled=aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabled=idf
_mc.enabled=han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enabled=fals
e;
//
mc._yscale = 300;
mc._xscale = 300;
mc._alpha = 100;
//mc.enabled = true;
mc._x = (550-mc._x)/2;
mc._y = 0;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] >> Simplify

2006-09-25 Thread Merrill, Jason
Keep an array of your movie clips and then loop through the array to set
the properties.  Also, keep the setting of specific movie clip
properties (lor_mc ._xscale= frc_mc._xscale) separate from the setting
of generic movie clips (mc._xscale = 300;).  Those should be two
separate functions. 

Also, why is it called getScale if it doesn't "get" anything?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Laurent CUCHET
>>Sent: Monday, September 25, 2006 8:13 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] >> Simplify
>>
>>How can I simplify this ?
>>
>>Thak you
>>
>>function getScale(mc:MovieClip) {
>>al_mc._xscale =
>>lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xs
cale
>>=r
>>ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xsc
ale
>>=mi
>>d_mc._xscale=aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xsca
le=i
>>df
>>_mc._xscale=han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscal
e=1
>>00;
>>//
>>al_mc._yscale =
>>lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._ys
cale
>>=r
>>ho_mc._yscale=pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._ysc
ale
>>=mi
>>d_mc._yscale=aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._ysca
le=i
>>df
>>_mc._yscale=han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscal
e=1
>>00;
>>//
>>al_mc._alpha =
>>lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=
rho
>>_mc
>>._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc
.
>>_alph
>>a=aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alph
a=
>>han_
>>mc._alpha=ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
>>//
>>al_mc.enabled =
>>lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.ena
bl
>>ed=r
>>ho_mc.enabled=pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enab
l
>>ed=mi
>>d_mc.enabled=aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabl
e
>>d=idf
>>_mc.enabled=han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enable
>>d=fals
>>e;
>>//
>>mc._yscale = 300;
>>mc._xscale = 300;
>>mc._alpha = 100;
>>//mc.enabled = true;
>>mc._x = (550-mc._x)/2;
>>mc._y = 0;
>>}
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] >> Simplify

2006-09-25 Thread Laurent CUCHET
How can I simplify this ?

Thak you

function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
d_mc._xscale=aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xscale=idf
_mc._xscale=han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscale=100;
//
al_mc._yscale =
lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._yscale=r
ho_mc._yscale=pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._yscale=mi
d_mc._yscale=aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._yscale=idf
_mc._yscale=han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscale=100;
//
al_mc._alpha = 
lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=rho_mc
._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc._alph
a=aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alpha=han_
mc._alpha=ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
//
al_mc.enabled =
lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.enabled=r
ho_mc.enabled=pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enabled=mi
d_mc.enabled=aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabled=idf
_mc.enabled=han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enabled=fals
e;
//
mc._yscale = 300;
mc._xscale = 300;
mc._alpha = 100;
//mc.enabled = true;
mc._x = (550-mc._x)/2;
mc._y = 0;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Help debug a webservice issue

2006-09-25 Thread Merrill, Jason
Even if someone just wants to take a guess that would be fine.  Thanks!

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Friday, September 22, 2006 4:01 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Help debug a webservice issue
>>
>>Nobody?
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, September 22, 2006 11:17 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Help debug a webservice issue

I've got a webservice which is acting up and I'm trying to figure
out
>>if
it's a .NET server issue, a c# script issue, a Flash Webservice
component issue, or something else.

The problem is the onResult listener gets fired sometimes, sometimes
not.  It had been working fine until yesterday.  My Actionscript
(snippet) is as follows:

("theObject" is an object I format in Flash - it remains unchanged
in
tests)

saveResultObj = new Object();
saveResultObj  = myWS.SaveProject(theObject);
saveResultObj.targetMC = someMovieClip_mc;
saveResultObj.onResult = function(result){
//this function only gets fired intermittently!
trace("result received");
this.targetMC.doSomething();
}

The SaveProject()method in c# takes an object as it's parameter.
The
object and its properties/values are unchanged every time I test, so
I
don't see how it could be the c# script.  The onResult event fire
intermittently - and on the occasions it doesn't fire, the
>>SaveProject()
method still ran just fine (one of the things SaveProject does is
>>create
XML, and I see the XML gets updated correctly), but the result
doesn't
get fired back all the time.

I can't seem to find any correlation, so it seems to be some kind of
connection issue with the webservice?  Or could it be some kind of
bug
with the Webservice component's onResult event?  If it's a .NET
server
issue, what could it be?

Ideas?  Thanks

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] >> Datagrid

2006-09-25 Thread Nick Weekes
Check out the CellRenderer API in the Flash docs.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Laurent
CUCHET
Sent: 25 September 2006 11:09
To: Flashcoders mailing list
Subject: [Flashcoders] >> Datagrid

I try to put a button in a row of a datagrid for each line of it.

How can I do ??

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

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


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

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


[Flashcoders] >> Datagrid

2006-09-25 Thread Laurent CUCHET
I try to put a button in a row of a datagrid for each line of it.

How can I do ??

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

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


[Flashcoders] Movieclip To BitmapData won't work with .flv

2006-09-25 Thread Martin Baltzer Hennelund
Hi all,

I'm using the BitmapData Object to take a "snapshot" of the pages in my flash 
app and it works fine on movieclips without a flv video player inside. 
But on of the pages has an movieclip inside it which is playing (streaming) a 
flv file and when I try to take a snapshot of this page movieclip the bitmap 
objects returns empty (It is created but is blank). When I remove the 
movieplayer mc the bitmapdata is created correctly!

What am I doing wrong or is this flash bug?

Cheers Martin

Heres my code

//--
public function toBitmapData(mContent:MovieClip):BitmapData{

  var width:Number  = Math.min( Math.ceil(mContent._width), 2880);
  var height:Number = Math.min(Math.ceil(mContent._height), 2880);

  var oBmp:BitmapData = new BitmapData(width,height, true, 0x55ff);
 
  oBmp.draw( mContent ); 
  
  //debugging   
  var m:MovieClip = _level0.createEmptyMovieClip("mcTest", 9);
  m.attachBitmap(oBmp, 1);
  
  return oBmp;
}
//--

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Josh Santangelo
Sendt: 25. september 2006 11:09
Til: Flashcoders mailing list
Emne: Re: [Flashcoders] Mute Flash Application, mac.

There is a bug which you could potentially exploit for this.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm? 
catid=184&threadid=1000550&enterthread=y

Note the last post. If MIDI is not set to 44.1, Flash can't output  
any audio.

-josh

On Sep 22, 2006, at 10:27a, aaron smith wrote:

> Does anyone know of an application that can mute flash or browsers  
> for a
> mac?
>
> or maybe a way to do it through the terminal?
>
> thanks.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

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

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

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


Re: [Flashcoders] FLVPlayback and SMIL

2006-09-25 Thread Josh Santangelo
FLVPlayback only supports a subset of SMIL, which bits I'm not sure.  
I've asked on the wishlist for a proper SMIL renderer, but who knows  
if that will ever happen.


The release notes for the FLVPlayback updater include some info about  
fixes to SMIL bugs, though.


http://www.adobe.com/support/flash/downloads.html#flash8

-josh

On Sep 19, 2006, at 9:05a, Ryan Potter wrote:


Hello List.

I have been racking my brain trying to get the FLVPlayback  
component to

work with a smil file.  I really can't find any good documentation on
this and the Adobe docs are conflicting on how they describe how to do
this.  Does anyone have an example of this working (email offlist
please)?

Does anyone know of a good tutorial?

I have been working on this for days.


Here is the smil file that I am using:
















Here is the connection error that I am getting:

1005: Invalid xml: URL: "smil.xml" No root node found; if file is  
an flv

it must have .flv extension


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Mute Flash Application, mac.

2006-09-25 Thread Josh Santangelo

There is a bug which you could potentially exploit for this.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm? 
catid=184&threadid=1000550&enterthread=y


Note the last post. If MIDI is not set to 44.1, Flash can't output  
any audio.


-josh

On Sep 22, 2006, at 10:27a, aaron smith wrote:

Does anyone know of an application that can mute flash or browsers  
for a

mac?

or maybe a way to do it through the terminal?

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

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



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

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


Re: [Flashcoders] Code review, please

2006-09-25 Thread Alias™

Hear hear.

Patterns are no magic bullet.

Alias

On 25/09/06, Andreas Rønning <[EMAIL PROTECTED]> wrote:


"If you aren't you should"

Knee jerk reaction:
Nobody "should" use any pattern. They CAN use patterns if it benefits
the project, benefits their mental health and provides for a better
product. I probably read too much into it but pattern worship is
useless, crippling and annoying.

- A


Per Bolmstedt wrote:
>
> Anggie Bratadinata wrote:
>
>> This is the simple app I created a few days ago, about which I'd like
to
>> have your expert advice on how to improve it or maybe how to code it in
>> a much better way.
>
>
> 1. Comment your code! It looks structured enough, so adding comments
> should be easy. If you use FDT, using Javadoc is straightforward:
> http://java.sun.com/j2se/javadoc/writingdoccomments/
>
> 2. Are you using the MVC pattern? It's not really clear from the code,
> but it looks somewhat like it. If you aren't you should; if you are,
> maybe you could make it more clear, by changing class names, adding an
> interface or two, or adding comments.
>
> 3. What's "hl.as"? It's an ill chosen file/class name.
>
> -- Per
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Code review, please

2006-09-25 Thread Andreas Rønning

"If you aren't you should"

Knee jerk reaction:
Nobody "should" use any pattern. They CAN use patterns if it benefits 
the project, benefits their mental health and provides for a better 
product. I probably read too much into it but pattern worship is 
useless, crippling and annoying.


- A


Per Bolmstedt wrote:


Anggie Bratadinata wrote:


This is the simple app I created a few days ago, about which I'd like to
have your expert advice on how to improve it or maybe how to code it in
a much better way.



1. Comment your code! It looks structured enough, so adding comments 
should be easy. If you use FDT, using Javadoc is straightforward: 
http://java.sun.com/j2se/javadoc/writingdoccomments/


2. Are you using the MVC pattern? It's not really clear from the code, 
but it looks somewhat like it. If you aren't you should; if you are, 
maybe you could make it more clear, by changing class names, adding an 
interface or two, or adding comments.


3. What's "hl.as"? It's an ill chosen file/class name.

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

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


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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