[Flashcoders] Zinc, NSIS, how to uninstall created folders

2006-03-27 Thread Martin Weiser


Hello,

i'm developping applications with Zinc, and making install packages with 
Nullsoft scriptable install system, how to remove dynamicaly created 
folders?
Folders that are created by the application, with names made up of user 
codes, so unpredictable for the nsis script?


RMDir $INSTDIR\_data\savedData\*.*
or
RMDir $INSTDIR\_data\savedData\*

dosn't help


(the folders are under saveData)

thanks much
cheers

Martin 


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

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


Re: [Flashcoders] AS equation trouble making my own scrollbar

2006-03-27 Thread sixbras
Hello,

I think the trouble is that the _root.slider._x of your slider
represent the center of your slider mc.

Check the way you limit the slider movement.

If you mask have a width of 200, and your slider of 50, then the value
of _root.slider._x vary from 25 to 175, not 0 to 200.








On 3/24/06, f a r i d | s i l v a | a b o i d [EMAIL PROTECTED] wrote:
 Hi list, in my poor english i will try to explain my need

 I made a scroll MC behind a mask, which is controlled horizontally by
 another MC (such as scrollbar) it works but not so fine, because the
 scrolling MC don't fit with de slider MC

 you can see it at

 http://www.e-foco.com.ar/prestigio/sucursales.php by clicking on Nuevas suc.


 Actually I have:

 scrollSize = big MC width
 maskSize = mask width
 sliderSize = slider width = maskSize/scrollSize*100;

 for the movements are defined by:

 function updateScroll() {
var ratio = (scrollSize/maskSize *sliderSize /100);
_root.sucContainer._x = -_root.slider._x*ratio;
 }

 The issue is that when the slider reach it's right limit, the
 bigMC(sucContainer) still have a portion to show. I understand that my
 equation is not working fairly accurately but I couldn't see my error.

 Any idea will be appreciated

 Thanks a lot


 --
 SalU2


 f a r i d | s i l v a | a b o i d
 www.e-foco.com
 tel: +54 11 4115-0773
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] draws and regions

2006-03-27 Thread sixbras
to check if a point is in a region or outside :



- take a point that is outside your region (a very far one for
exemple) , let's call it pointA

- check if the line from your point to pointA cross each line of your region.

if the number a line crossed is odd, your point is out of the region,
if it's even , your point is in the region.













On 3/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have a big (for me) problem,

 i have a grpah made of a series of point (of one pixel).
 I need taht the user can draw a series of line on this graph to make a
 shape or region.
 This is the first problem: how to permit to the user to draw...

 The second is this one :

 there is a way to check if a point is inside the refion or outside?


 Thanks,Riccardo
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Multiuser A/V Chat Server ? Something .net ?

2006-03-27 Thread Yehia Shouman
Thank you list,

My Problem
I have checked UserPlane and red5, but ultimately I would need a dotnet
based server, preferrably .net I hope. There are a few servers out there,
however, they are java-based. Unfortunately and to my grief, my company is a
MS partner.

Alternative Solutions
And even if I thought of getting a plan from media temple or userPlane (both
of which are using Flash Media Server), they are still very expensive. As
you all know Flash Media Server itself is licensed for $4,500 (that figure
makes me cry)

Best Scenario Solution
Need a .net A/V Relay server that is opensource,
OR help with RTMP protocol (the protocol that Flash M Server uses) and how
we can implement that using C#, furthermore, more information about how the
stream is sent , is it binary ? in what format whatsoever ? All info is
really appreciated, I might end up building a server myself.

Thank you again, for whatever contribution you come up with

Many Thanks in Advance

Yehia Shouman


On 3/27/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 its not a server per se, but maybe you can check out some of the
 solutions over at userplane.com

 On 3/26/06, Julien Vignali [EMAIL PROTECTED] wrote:
  You may try the open source Red 5 stream server :
  Red5 is a server that not only streams content to the Flash plugin, but
  it can push calls and information to the Flash client! It can also
  receive video/audio/data from a flash client and either save or
  rebroadcast that content.
 
  http://osflash.org/red5
 
  Be careful, AFAIK it's still in alpha stage ...
 
 
  Yehia Shouman a écrit :
   Dear Coders,
  
   I have to create an Audio/Video Flash multiuser Chat, with text
 messaging.
  
   What are my options as for the server ? I don't want to use any of
   Macromedia's Servers. I would love to hear there is an open source
   dotNet server as well. Are there any ?
  
   Please advice me on which way to go
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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


[Flashcoders] 8.5 player and javascript

2006-03-27 Thread dc

Can anyone pointg me at some documentation regarding the interaction of the
Flash Player 8.5 and web page javascript.



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

2006-03-27 Thread dc
To be abit more precise I am wondering about the reliability of the fscommand()
function in legacy code when the function migrates to flash.system.fscommand().

Am I right in thinking that publishing 8.5 in 8.5 player would be fine but
publishing 8.5+ might fail?

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

2006-03-27 Thread franto
Hello,

I'd like to know if it is needed something in system installed (problem is
in Linux) to run webServices
i got Flash example with webServices which works on Windows, Linux with many
stuff installed, but on some Linux with few things installed, it doesnt
work.
Sorry, i'm not LinuxMan ;) ii can't tell you more, but it's seems, that
there must be something (library or what) to got webServices functional.

We have dumped connection to server with webService, and it connect to
webService, even something was returned, but in Flash no responce was
received.

Does anyone know something concerning this?

Thank you

-
Franto

http://blog.franto.com
http://www.flashcoders.sk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Beware of depth 9876

2006-03-27 Thread Eskil Janson
That is right, and you could add that he problem will disappear in AS3 
with the new depth managing system.
I still think it might be good to know that a Component Class occupies 
and erases clips in a specific depth in root.


Thanks anyway

/Eskil

Michael Bedar skrev:
In general it is a good idea not to work on the root level for 
anything making movieclips...  much better to create a container clip 
first on root and play in that.



On Mar 24, 2006, at 2:53 PM, Eskil Janson wrote:


I suppose this has been discussed a few times already, but if not:

When you use the Tween class, an Instance of the Class 
mx.transitions.OnEnterFrameBeacon is

created if not already existing.

In that Class the following line is executed:

var mc = _root.createEmptyMovieClip (__OnEnterFrameBeacon, 9876);

which means that if you have anything at that depth (9876) already, 
it will disappear.
You can confirm this by  a simple test like pasting the following 
code in the first frame of your movie:

(change the depth to 9875 or 9877 and see the difference..)
---
import mx.transitions.Tween;
this.createEmptyMovieClip(square_mc, 9876);
square_mc.beginFill(0xFF);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
var myTween:Tween = new Tween(square_mc, _x, 
mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);
 



So if you are in a large dynamic project swapping depths a lot and 
using Tweens, and been experiencing strange problems,

this may be worth to know...

All cred to Robert Penner (obviously the genius behind the Tween 
Class), but I think this detail could have been improved on before 
shipping with Flash 8.


Sorry if this has been discussed already...

Regards

/Eskil


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

2006-03-27 Thread peterblaze
Hello Gene and everyone,

We identified an issue which caused this behavior on certain XP and 2000 
systems.
Minor changes have now been implemented to prevent the possibility of this 
issue arising again.
The latest 2.5.0.12 build includes these minor changes and will prevent this 
issue from occurring.

Registered users can download most recent builds from software update page:
http://www.multidmedia.com/support/update/

kind regards,
Peter Blazejewicz
MDM Support Team

http://www.mdmforum.com/
http://www.multidmedia.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] AS equation trouble making my own scrollbar

2006-03-27 Thread f a r i d | s i l v a | a b o i d
Thanks sixbras, your sugestion works in fine tunning, I'd solved it
using another equation

//original that doesn't works
function updateScroll() {
   var ratio = (scrollSize/maskSize *sliderSize /100);
   _root.sucContainer._x = -_root.slider._x*ratio;
}

//this one works
function updateScroll() {

var ratio = (scrollSize-maskSize )/(maskSize -sliderSize);
_root.sucContainer._x = -_root.slider._x*ratio+sliderSize/2;

}
--
SalU2


f a r i d | s i l v a | a b o i d
www.e-foco.com.ar
tel: +54 11 4115-0773
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] trouble with alert component

2006-03-27 Thread Matthew Simpson
We run into that problem here too and eliminate it by adding \n to our
messages...

HTH

Matthew

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, March 27, 2006 12:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] trouble with alert component

Hi there,

When I send a alert message to the v2 alert component it dose not show
the last couple of lines of the message. The wired thing is that on some
computers all characters of the message are displayed. It length of the
message dose not really make a difference though. Regardless if I want
to display two or twenty lines the last line is always missing.

This is driving me mad - any ideas?

Cheers

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

2006-03-27 Thread Christian
I am definitely interested in this, because this will be the second 
change of how to execute JS calls, with getURL no longer working, I'm 
going to be busy writing multiple versions of our tracking classes, 
based on the version of publish.


Can't they just pick one, kill the others, and go from there.  DAMN YOU!

[EMAIL PROTECTED] wrote:

To be abit more precise I am wondering about the reliability of the fscommand()
function in legacy code when the function migrates to flash.system.fscommand().

Am I right in thinking that publishing 8.5 in 8.5 player would be fine but
publishing 8.5+ might fail?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Multiuser A/V Chat ? Which Server?

2006-03-27 Thread John Grden
yep sorry ;(  me no ready either.

ignoreList.push(Red5);

lol gotcha.

On 3/27/06, Julien Vignali [EMAIL PROTECTED] wrote:

 Hmm sorry, it's monday morning, I hadn't read yet your next coding-style
 posts ( serverName != red5)... so ignore my previous post ;-)


 Yehia Shouman a écrit :
  Dear Coders,
 
  I have to create an Audio/Video Flash multiuser Chat, with text
 messaging.
 
  What are my options as for the server ? I don't want to use any of
  Macromedia's Servers. I would love to hear there is an open source
  dotNet server as well. Are there any ?
 
  Please advice me on which way to go
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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 Grden - Blitz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2 freelance work in London

2006-03-27 Thread Aaron Haines
 
Atticmedia requires a good Actionscript 2 developer for cutting edge work on
new BBC projects.

Atticmedia is one of the leading new media suppliers to the BBC and has a
number of large, high profile interactive BBC projects in progress. You will
be working on cutting edge multimedia alongside some of the best programmers
and designers in the industry. Your portfolio will never look the same
again! And you'll be working in a friendly, exciting, team-centred and
challenging environment. We like to think we're one of the best agencies to
work for and this is borne out by the fact employees hang around or come
back after leaving.

We are looking for someone who has a minimum of 3 years Actionscripting
experience and can hit the ground running.

The successful candidate will be solid in the following areas: 

- In-depth knowledge of Actionscript 2

- Object oriented code (OOP)

- Server interaction via XML


If you think this sounds an exciting opportunity then contact
[EMAIL PROTECTED] (with FREELANCERS.NET in the subject
line) with examples of your work and a full CV. Applications will not be
considered without examples of your work. 

Contract status: Permanent or contract position. 

Location: London - near Angel tube station. Must work on site.

Salary: Generous and negotiable depending on experience.

No agencies should respond. 

Atticmedia is an Equal Opportunity Employer.

Please reply to [EMAIL PROTECTED] (with FLASHCODERS in
the subject line).

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

2006-03-27 Thread MetaArt
Is possible to change dynamically the var of a dynamic textfield?
So, i.e., I can have different buttons that set this value to 'txt1',
'txt2', 'txt3'... and, the same textfield, within has been loaded a .txt
file with the different text block, like:
txt1=Bla bla bla one
txt2=Bla bla bla two
txt3=Bla bla bla three
will show, on demand, the different texts.
Can be done? And how?

 Enrico Tomaselli
  + web designer +
  [EMAIL PROTECTED]
http://www.metatad.it

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

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


[Flashcoders] Actionscript 2 - suitable for designers?

2006-03-27 Thread Kevin Cannon
Hi,

I hope this isn't off-topic but I've been struggling to find the answer, and
this list has been a great help to me over the years.

I'm a designer, but often code in Flash. I'm not building huge RIAs, usually
just adding small little bits of interactivity to sites, and building some
multimedia interfaces and gathering data from XML etc...  Nothing hardcore,
but a bit more that just tinkering with AS.

Up until now I've always used AS1, and though I've bought Colin Moock's AS2
book, it seems like a bit leap to make, and from what I've read it seems like
many of the advantages of AS2 are in having proper OO, and more manageable
code for large projects. 

I'm wondering if AS2 offers any advantages to me, or if sticking with AS1
would be better. Is AS2 (and now 3) the natural progression of Flash coding,
is there even a future for AS1, all the useful libraries seem to be AS2 only
these days too, perhaps that alone is a reason to switch. I'm unsure as to
what path I'm supposed to be on.

Any advice you could give me would be appreciated,

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

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


Re: [Flashcoders] 8.5 player and javascript

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

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

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


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

2006-03-27 Thread Ian Thomas
I'd go for AS2.

Mostly because that OOP flavour is the direction that almost all the
commonly-used languages are heading in; the whole idea of objects and
methods now pretty much applies to:
- Javascript
- Java
- C++
- C#
- Coding using XML
- AS2
- Lingo
- .NET
- PHP
And will apply to the XML scripting for Vista and almost certainly
many other things out there.

There's been a sort of convergent evolution thing going on for the
last few years. Granted, OOP is not _required_ in some of those
languages, but their code libraries are all evolving that way and each
new release of the language seems to be firming up their OOP model. If
you can get at least one OOP language under your belt it'll get you
halfway towards learning any of those other languages - it's gaining
the 'how it works' mental model that can apply to most high-level
modern programming or scripting.

So go for AS2.

HTH,
  Ian

On 3/27/06, Kevin Cannon [EMAIL PROTECTED] wrote:
 Hi,

 I hope this isn't off-topic but I've been struggling to find the answer, and
 this list has been a great help to me over the years.

 I'm a designer, but often code in Flash. I'm not building huge RIAs, usually
 just adding small little bits of interactivity to sites, and building some
 multimedia interfaces and gathering data from XML etc...  Nothing hardcore,
 but a bit more that just tinkering with AS.

 Up until now I've always used AS1, and though I've bought Colin Moock's AS2
 book, it seems like a bit leap to make, and from what I've read it seems like
 many of the advantages of AS2 are in having proper OO, and more manageable
 code for large projects.

 I'm wondering if AS2 offers any advantages to me, or if sticking with AS1
 would be better. Is AS2 (and now 3) the natural progression of Flash coding,
 is there even a future for AS1, all the useful libraries seem to be AS2 only
 these days too, perhaps that alone is a reason to switch. I'm unsure as to
 what path I'm supposed to be on.

 Any advice you could give me would be appreciated,

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

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


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

2006-03-27 Thread Zeh Fernando

I'm wondering if AS2 offers any advantages to me, or if sticking with AS1
would be better. Is AS2 (and now 3) the natural progression of Flash 
coding,
is there even a future for AS1, all the useful libraries seem to be AS2 
only

these days too, perhaps that alone is a reason to switch. I'm unsure as to
what path I'm supposed to be on.
Any advice you could give me would be appreciated,


Ok, here's my 'designer who codes' or 'coder who designs' (jack of all 
trades, master of none) point of view:


AS2 is the right way to go. However, knowing when to apply each different 
approach (doing everything on classes, doing everything inside the flash 
movie, and all between) is the real issue.


If I want to create something quick, I usually create a movieclip with the 
functionality I desire. It kind of mimics a class, or a component, but it's 
neither; it's just a movieclip where I can quickly change something on the 
code or on the graphics. Like a smartclip (heh). It's on this case that 
some of the best OOP features (such as design patterns) also comes to help. 
I treat like movieclip as a 'black box' (like a class..) so they do some 
minimum talk to each other, trying to be standalone on what they do.


However, under AS2, the 'right' alternative would be create a new class and 
attach it to the movieclip. But I've grown tired of that approach, since I 
have to keep creating a lot of classes just to modify the functionality of, 
say, one menu. And I'm not building apps; I'm building 'designer' websites 
(see samples at zeh.com.br). This doesn't mean I build them like crap, or 
that they have 'loosy' requirements when compared to an app; but it means I 
build them quickly (taking around one month) and intelligently (or at least 
I like to believe), not over-designing and making sure everything's on a 
class and properly commented with javadocs and with UML diagrams and 
whatnot. It also means I almost never reuse code between websites; each new 
menu is a new menu, because it works in a much different way than the 
previous menu I built. That's why I can't just create generic classes for 
everything and extend from there; I'd have way too many classes.


I do, however, use classes for all kinds of semi-generic functionality I 
need; reading XMLs, tweening, localization, trigonometry - it's all done on 
classes. When it comes down to real-life work, obviously there's no point in 
reinventing the wheel, so I try to build these generic tools that then I can 
apply on my work. But that's the limit. The rest is too specific to be 
reused.


I know this approach will be not be seen lightly on the eyes of more purist 
coders. However, I like to believe my line of work requires a different set 
of development skills - yes, I do try to make my code and design as 
maintainable as possible and as easy to understand as possible (ie, full of 
comments, not using spaghetti code, etc), but breaking eveything into tiny 
classes just won't work, it'll be too much effort for too little advantages. 
Like I said, I believe finding the correct balance between the two 
approaches is the best answer - and there's no easy way to do it, it depends 
a lot on the kind of work you're trying to do, how long do you want it to 
live, how maintainable you want it to be, etc.


IMO.

- Zeh 


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

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


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

2006-03-27 Thread Merrill, Jason
I agree with what's already been said - and just wanted to say that one
of the big advantages you may find with AS 2 is the debugging features
you get by typecasting, and also the re-usability of classes.  Once you
really get into it and start creating your own libraries, your
efficiency level has a greater chance to gain momentum that if you had
stuck with AS1.  However, many people, depending on the types of
projects they work on, can stick with AS1 and be perfectly happy and
productive.  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Zeh Fernando
Sent: Monday, March 27, 2006 10:28 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Actionscript 2 - suitable for designers?

 I'm wondering if AS2 offers any advantages to me, or if sticking
with AS1
 would be better. Is AS2 (and now 3) the natural progression of Flash
 coding,
 is there even a future for AS1, all the useful libraries seem to be
AS2
 only
 these days too, perhaps that alone is a reason to switch. I'm unsure
as to
 what path I'm supposed to be on.
 Any advice you could give me would be appreciated,

Ok, here's my 'designer who codes' or 'coder who designs' (jack of
all
trades, master of none) point of view:

AS2 is the right way to go. However, knowing when to apply each
different
approach (doing everything on classes, doing everything inside the
flash
movie, and all between) is the real issue.

If I want to create something quick, I usually create a movieclip with
the
functionality I desire. It kind of mimics a class, or a component, but
it's
neither; it's just a movieclip where I can quickly change something on
the
code or on the graphics. Like a smartclip (heh). It's on this case
that
some of the best OOP features (such as design patterns) also comes to
help.
I treat like movieclip as a 'black box' (like a class..) so they do
some
minimum talk to each other, trying to be standalone on what they do.

However, under AS2, the 'right' alternative would be create a new
class and
attach it to the movieclip. But I've grown tired of that approach,
since I
have to keep creating a lot of classes just to modify the
functionality of,
say, one menu. And I'm not building apps; I'm building 'designer'
websites
(see samples at zeh.com.br). This doesn't mean I build them like crap,
or
that they have 'loosy' requirements when compared to an app; but it
means I
build them quickly (taking around one month) and intelligently (or at
least
I like to believe), not over-designing and making sure everything's on
a
class and properly commented with javadocs and with UML diagrams and
whatnot. It also means I almost never reuse code between websites;
each new
menu is a new menu, because it works in a much different way than the
previous menu I built. That's why I can't just create generic classes
for
everything and extend from there; I'd have way too many classes.

I do, however, use classes for all kinds of semi-generic functionality
I
need; reading XMLs, tweening, localization, trigonometry - it's all
done on
classes. When it comes down to real-life work, obviously there's no
point in
reinventing the wheel, so I try to build these generic tools that then
I can
apply on my work. But that's the limit. The rest is too specific to be
reused.

I know this approach will be not be seen lightly on the eyes of more
purist
coders. However, I like to believe my line of work requires a
different set
of development skills - yes, I do try to make my code and design as
maintainable as possible and as easy to understand as possible (ie,
full of
comments, not using spaghetti code, etc), but breaking eveything into
tiny
classes just won't work, it'll be too much effort for too little
advantages.
Like I said, I believe finding the correct balance between the two
approaches is the best answer - and there's no easy way to do it, it
depends
a lot on the kind of work you're trying to do, how long do you want it
to
live, how maintainable you want it to be, etc.

IMO.

- Zeh

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

2006-03-27 Thread Weldon MacDonald
I prefer to do most everything in code, but like you the sights I've
done aren't RIAs or even close. For that reason I stuck with  AS1,
until recently. When I look back at the sites and how they were
constructed, I'm astounded at how much cleaner my sites would be, how
much time, effort, and debugging could have been saved, by using AS2
features. Once you know how to write classes for the things you do
often and how to use the classes developed by others, you'll find that
even if  you don't need the all of the oop features (inheritance,
interfaces, polymorphism, etc...), using classes is worth the trip to
AS2.

On 3/27/06, Kevin Cannon [EMAIL PROTECTED] wrote:
 Hi,

 I hope this isn't off-topic but I've been struggling to find the answer, and
 this list has been a great help to me over the years.

 I'm a designer, but often code in Flash. I'm not building huge RIAs, usually
 just adding small little bits of interactivity to sites, and building some
 multimedia interfaces and gathering data from XML etc...  Nothing hardcore,
 but a bit more that just tinkering with AS.

 Up until now I've always used AS1, and though I've bought Colin Moock's AS2
 book, it seems like a bit leap to make, and from what I've read it seems like
 many of the advantages of AS2 are in having proper OO, and more manageable
 code for large projects.

 I'm wondering if AS2 offers any advantages to me, or if sticking with AS1
 would be better. Is AS2 (and now 3) the natural progression of Flash coding,
 is there even a future for AS1, all the useful libraries seem to be AS2 only
 these days too, perhaps that alone is a reason to switch. I'm unsure as to
 what path I'm supposed to be on.

 Any advice you could give me would be appreciated,

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

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



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

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


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

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

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

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


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

2006-03-27 Thread Zeh Fernando

I agree with what's already been said - and just wanted to say that one
of the big advantages you may find with AS 2 is the debugging features
you get by typecasting, and also the re-usability of classes.  Once you
really get into it and start creating your own libraries, your
efficiency level has a greater chance to gain momentum that if you had
stuck with AS1.  However, many people, depending on the types of
projects they work on, can stick with AS1 and be perfectly happy and
productive.


Oh yes - good point, I forgot that. Having type casting and stronger 
debugging when compiling is one of the best advantage of AS2 -- it's sad not 
all of it applies to timeline code (ie, accessing stuff that doesn't exist), 
even when using AS2. I do use AS2 syntax all the time when writing code for 
my movieclips inside flash, but mostly because I'm used to it.


Coming to think of it, the best approach I could expect of Flash 9+ would be 
of almost totally killing timeline code, but giving a way of automatically 
attaching a class to a movieclip without actually having to create any 
external .AS file and without having to load the class on a given frame and 
whatnot - like editing inside of a movieclip while you are in fact editing 
its class, not its timeline code. That'd be cool.



- Zeh 


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

2006-03-27 Thread Derek Vadneau
Hey Peter,

Why does MDM release new builds without incrementing the build number? 
Doesn't that cause confusion for users? How would a user know if they have 
the latest build or not? How do you go about supporting them? It sounds a 
little odd to keep the build number the same for a new build, especially 
with critical fixes (like the one mentioned here) and additions (like the 
newest release of the Flash player). It may be a minor change on MDM's 
side, but for the developer, and end-user, it's a very big difference.


Derek Vadneau

- Original Message - 
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 6:38 AM
Subject: SPAM-LOW: [Flashcoders] FATAL Zinc issue


Hello Gene and everyone,

We identified an issue which caused this behavior on certain XP and 2000 
systems.
Minor changes have now been implemented to prevent the possibility of this 
issue arising again.
The latest 2.5.0.12 build includes these minor changes and will prevent 
this issue from occurring.

Registered users can download most recent builds from software update 
page:
http://www.multidmedia.com/support/update/

kind regards,
Peter Blazejewicz
MDM Support Team


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

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


RE: [Flashcoders] FATAL Zinc issue

2006-03-27 Thread Lee McColl-Sylvester
They do up the build... Now it's 2.5.0.12 whereas before it was 2.5.0.11

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek
Vadneau
Sent: 27 March 2006 17:09
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] FATAL Zinc issue

Hey Peter,

Why does MDM release new builds without incrementing the build number? 
Doesn't that cause confusion for users? How would a user know if they
have 
the latest build or not? How do you go about supporting them? It sounds
a 
little odd to keep the build number the same for a new build, especially

with critical fixes (like the one mentioned here) and additions (like
the 
newest release of the Flash player). It may be a minor change on MDM's 
side, but for the developer, and end-user, it's a very big difference.


Derek Vadneau

- Original Message - 
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 6:38 AM
Subject: SPAM-LOW: [Flashcoders] FATAL Zinc issue


Hello Gene and everyone,

We identified an issue which caused this behavior on certain XP and 2000

systems.
Minor changes have now been implemented to prevent the possibility of
this 
issue arising again.
The latest 2.5.0.12 build includes these minor changes and will prevent 
this issue from occurring.

Registered users can download most recent builds from software update 
page:
http://www.multidmedia.com/support/update/

kind regards,
Peter Blazejewicz
MDM Support Team


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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FATAL Zinc issue

2006-03-27 Thread Derek Vadneau
Actually they don't always:
http://www.mdmforum.com/forum/index.php?showtopic=14984hl=

This will, apparently, be the third release of 2.5.0.12.

Thus my question.


Derek Vadneau


- Original Message - 
From: Lee McColl-Sylvester [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 11:22 AM
Subject: SPAM-LOW: RE: [Flashcoders] FATAL Zinc issue


They do up the build... Now it's 2.5.0.12 whereas before it was 2.5.0.11

Lee


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

2006-03-27 Thread Lee McColl-Sylvester
Oh, ok Erm, my bad.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek
Vadneau
Sent: 27 March 2006 17:24
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] FATAL Zinc issue

Actually they don't always:
http://www.mdmforum.com/forum/index.php?showtopic=14984hl=

This will, apparently, be the third release of 2.5.0.12.

Thus my question.


Derek Vadneau


- Original Message - 
From: Lee McColl-Sylvester [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 11:22 AM
Subject: SPAM-LOW: RE: [Flashcoders] FATAL Zinc issue


They do up the build... Now it's 2.5.0.12 whereas before it was 2.5.0.11

Lee


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

2006-03-27 Thread John Hattan
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Derek Vadneau
 Sent: Monday, March 27, 2006 10:24 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] FATAL Zinc issue
 
 Actually they don't always:
 http://www.mdmforum.com/forum/index.php?showtopic=14984hl=
 
 This will, apparently, be the third release of 2.5.0.12.

Speaking as a registered user, Zinc is currently suffering from some serious
quality problems. Version 2.5 was rushed out the door, and they haven't done
a good job staying on top of things since then.

IIRC, 2.5.0.11 was released a couple of times. Seems like every time they
make a new release, the discover an hour later that they broke something
important and they have to release again.

---
John Hattan
The Code Zone - Sweet Software for a Saturnine World
www.thecodezone.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] FATAL Zinc issue

2006-03-27 Thread Ian Thomas
On 3/27/06, John Hattan [EMAIL PROTECTED] wrote:

 Speaking as a registered user, Zinc is currently suffering from some serious
 quality problems. Version 2.5 was rushed out the door, and they haven't done
 a good job staying on top of things since then.

Yes - I've had exactly the same problem. For example, a key bit of
functionality (for me) broke in a new version. I raised it as an issue
- it was acknowledged and assigned a bug id - and reverted to an older
version. No announcement of the functionality being fixed was ever
made. A couple of months later I downloaded a newer version and, lo
and behold, it was fixed, but that fix wasn't mentioned in any release
note. And something else was broken.

Bit of a quality issue going on there...

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

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


Re: [Flashcoders] 8.5 player and javascript

2006-03-27 Thread Christian
Yeah, external interface works great, but it's not backward compatible 
to 6 or even 7 which is what we need to support.


It'll be interesting to see how fast things move.



Mike Britton wrote:

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

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

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

  



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

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


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

2006-03-27 Thread Michael Bedar
If you are comfortable writing AS1 code on the timeline, switching to  
AS2 should be painless.  On the timeline, the only differences will  
be case sensitivity and type strictness, both of which can only make  
your code easier to debug and maintain.


Then, if at some point you want to learn how to use classes in AS2,  
you will at least be familiar with these requirements.





On Mar 27, 2006, at 10:49 AM, Zeh Fernando wrote:

I agree with what's already been said - and just wanted to say  
that one
of the big advantages you may find with AS 2 is the debugging  
features
you get by typecasting, and also the re-usability of classes.   
Once you

really get into it and start creating your own libraries, your
efficiency level has a greater chance to gain momentum that if you  
had

stuck with AS1.  However, many people, depending on the types of
projects they work on, can stick with AS1 and be perfectly happy and
productive.


Oh yes - good point, I forgot that. Having type casting and  
stronger debugging when compiling is one of the best advantage of  
AS2 -- it's sad not all of it applies to timeline code (ie,  
accessing stuff that doesn't exist), even when using AS2. I do use  
AS2 syntax all the time when writing code for my movieclips inside  
flash, but mostly because I'm used to it.


Coming to think of it, the best approach I could expect of Flash 9+  
would be of almost totally killing timeline code, but giving a way  
of automatically attaching a class to a movieclip without actually  
having to create any external .AS file and without having to load  
the class on a given frame and whatnot - like editing inside of a  
movieclip while you are in fact editing its class, not its timeline  
code. That'd be cool.



- Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] creating an exe shell - library items

2006-03-27 Thread Jason C Reynolds
Hi,

I'm trying to create a shell, only purpose is to read in some xml, and then 
load some swf's based on that. What I'm not getting at all, is if I have (lets 
say navigation.swf) all ready to go, and I load this into an empty movieclip... 
why do the library items used in navigation.swf need to be in the shell's 
library for anything to show up? Navigation.swf runs fine all by itself, so I 
just can't get over that everything should already be in there and ready to go.

I have tried using the 'export for runtime sharing', but all the documentation 
I'm seeing on this tells me to put in url's where it will be posted. I will be 
running this off a CD initially... and when it does go on the web, everything 
is relative to the shell.exe anyway.

My last project, I just broke down and copied everything into the main shell's 
library... but I'd really like to do it this way this time (Just have a shell 
that has next to nothing in it)

Any suggestions where I can start over getting this to work the way I want it, 
or can I even do this?

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

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


[Flashcoders] Private Static -static

2006-03-27 Thread CK

Hi,

In the following code: I'm getting the following static from the  
ouput window:
**Error** /Users/user/Desktop/code/oop_review/BOX/Box.as: Line 34:  
Instance variables cannot be accessed in static functions.

return width*height;

Total ActionScript Errors: 1 Reported Errors: 1

How could I access these instance variables from within this private  
static method? Is it advisable using Private Static? Would I have to  
create an instance of the class then access the properties?




//AS
class Box {
//accessing a static property through a method.
//The box class, with methods to set and retreive the
//value of the class property, numSides.
//
//The class property numSides
private static var numSides:Number = 4;
//
private var width:Number;
private var height:Number;
private var area:Number;
//
//all CAPS denotes constants, values that never change.
private static var DEFAULT_WIDTH:Number = 30;
private static var DEFAULT_HEIGHT:Number = 20;
//
public static var maxWidth = 250;
public static var maxHeight = 250;
//
//The constructor function.
public function Box(w:Number, h:Number) {
if (w == undefined) {
w = DEFAULT_WIDTH;
}
if (h == undefined) {
h = DEFAULT_HEIGHT;
}
width = w;
height = h;
//initialize area. This is perfectly legal within a constructor
//area = width*height;
}
private static function getArea():Number {
return width*height;
}
//Method for setting numSides.
public function setNumSides(newNumSides:Number):Void {
numSides = newNumSides;
}
//Method for getting numSides.
public function getNumSides():Number {
return numSides;
}
//Accessor to retreive width
public function getWidth():Number {
return width;
}
//Accessor to assign width
public function setWidth(w:Number):Void {
width = w;
}
//Accessor to retreive height
public function getHeight():Number {
return height;
}
//Accessor to set height
public function setHeight(h:Number):Void {
height = h;
}
//reset the dimensions
public function resetDimensions():Void {
height = 1;
width = 1;
trace(Dimensions reset !);
}
public function onMouseDown():Void {
resetDimensions();
}
public function enableReset():Void {
Mouse.addListener(this);
}
public function disableReset():Void {
Mouse.removeListener(this);
}
//this gurantees a safe means of deleting its instances.
public function die():Void {
disableReset();
//Unregister the object so the Mouse class
//deletes the reference to it.  
}
}
//End AS
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Makin a Game

2006-03-27 Thread Varun Dixit
Hi,
 
I am making a Drag and Drop game in Flash, but at the end of it when
user has put all the pieces of game together I need to take him to a
next screen where they can see the entire *product* they created.
 
I need to know, how to go about it? (Do I need to assign some variables
to different pieces in the game, and call them at the end of it???)
 
Any help would be appreciated?
 
Thanks
Varun Dixit

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.1/292 - Release Date: 3/24/2006
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] createEmptyMovieClip for individual MovieClip-class

2006-03-27 Thread Robert Clochard

Hello everyone,

I've searched a while for the following problem but didn't get an answer.

I'd like to create a movieclip with my individual mc-class, that is to
say, a createEmptyMovieClip() function but with getting my individal MC
- createEmptyMyIndividualMC().

I tried the following, but like you guess, myIndMC is a MovieClip so I
get type-problems..

Is there a way to get this working, to register a Class to a MC
(registerClass() hasn't done it, too) and maybe call its constructor?

private function createEmptyMyIndividualMC():MyIndividualMC

  var myIndMC:MovieClip =
this.createEmptyMovieClip(example_mc,4);

  myIndMC.__proto__ = MyIndividualMC.prototype;

  return myIndMC;
}

class MyIndividualMC extends MovieClip
{

}


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

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


Re: [Flashcoders] createEmptyMovieClip for individual MovieClip-class

2006-03-27 Thread Ian Thomas
Hi Robert,
  The following FAQ entry should answer your question:
http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library

HTH,
  Ian

On 3/27/06, Robert Clochard [EMAIL PROTECTED] wrote:
 Hello everyone,

 I've searched a while for the following problem but didn't get an answer.

 I'd like to create a movieclip with my individual mc-class, that is to
 say, a createEmptyMovieClip() function but with getting my individal MC
 - createEmptyMyIndividualMC().

 I tried the following, but like you guess, myIndMC is a MovieClip so I
 get type-problems..

 Is there a way to get this working, to register a Class to a MC
 (registerClass() hasn't done it, too) and maybe call its constructor?

 private function createEmptyMyIndividualMC():MyIndividualMC

var myIndMC:MovieClip =
  this.createEmptyMovieClip(example_mc,4);

myIndMC.__proto__ = MyIndividualMC.prototype;

return myIndMC;
 }

 class MyIndividualMC extends MovieClip
 {

 }


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

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


[Flashcoders] How soon is movieClip data available ?

2006-03-27 Thread Manuel Saint-Victor
I asked a variation of this a few days ago and have since tried to do some
research about it.  Hopefully someone can help me out if I phrase the
question differently because I have not had much luck finding the answer.

If I a creating a debugger component- within the v2 component architecture.
Is it possible for it to get data into my other elements on the stage before
they are inited.  I am trying to set a debug variable to true -which would
change the way the application behaves.  Is it not possible without placing
some code in the timeline?  I'm thinking that since the components
constructores are called by the timeline that I might have some trouble
getting my component's constructor to beat the calls from other items on
stage.  If I'm chasing something that I'm not going to be able to do can
someone let me know or point me to anything with advice on setting an
application debug mode without having to manually code it into the
timeline?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 soon is movieClip data available ?

2006-03-27 Thread eric dolecki
sounds like you need a pre-processor in your build process...

On 3/27/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 I asked a variation of this a few days ago and have since tried to do some
 research about it.  Hopefully someone can help me out if I phrase the
 question differently because I have not had much luck finding the answer.

 If I a creating a debugger component- within the v2 component
 architecture.
 Is it possible for it to get data into my other elements on the stage
 before
 they are inited.  I am trying to set a debug variable to true -which would
 change the way the application behaves.  Is it not possible without
 placing
 some code in the timeline?  I'm thinking that since the components
 constructores are called by the timeline that I might have some trouble
 getting my component's constructor to beat the calls from other items on
 stage.  If I'm chasing something that I'm not going to be able to do can
 someone let me know or point me to anything with advice on setting an
 application debug mode without having to manually code it into the
 timeline?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] createEmptyMovieClip for individual MovieClip-class

2006-03-27 Thread Martin Weiser

how about this one:

function makeClassInstance(mc:Object, _class:Function, args:Array):Void {
 //trace(Making Subclass Instance mc +mc+  _class  +_class);
 mc.__proto__ = _class.prototype;
 mc.__constructor__ = _class;
 mc.constructor = _class.prototype.constructor;
 mc[__constructor__].apply(mc, args);
}

cheers

Martin





- Original Message - 
From: Robert Clochard [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, March 27, 2006 9:11 PM
Subject: [Flashcoders] createEmptyMovieClip for individual MovieClip-class



Hello everyone,

I've searched a while for the following problem but didn't get an answer.

I'd like to create a movieclip with my individual mc-class, that is to
say, a createEmptyMovieClip() function but with getting my individal MC
- createEmptyMyIndividualMC().

I tried the following, but like you guess, myIndMC is a MovieClip so I
get type-problems..

Is there a way to get this working, to register a Class to a MC
(registerClass() hasn't done it, too) and maybe call its constructor?

private function createEmptyMyIndividualMC():MyIndividualMC

  var myIndMC:MovieClip =
this.createEmptyMovieClip(example_mc,4);

  myIndMC.__proto__ = MyIndividualMC.prototype;

  return myIndMC;
}

class MyIndividualMC extends MovieClip
{

}


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

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


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

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


[Flashcoders] Flash to pdf

2006-03-27 Thread Laurent CUCHET
Hi

Im searching a way to convert a clip from a swf to a PDF

Anyone got a tips to fo flash 8 ?

No flashto go or blaze to pdf

Thank you



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

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


Re: [Flashcoders] How soon is movieClip data available ?

2006-03-27 Thread Manuel Saint-Victor
Errsounds like I need a tutorial on what a preprocessor is.  I
think it's somethingI have not yet had a need for but I'm about to Google
right now.
Thanks,
Mani


On 3/27/06, eric dolecki [EMAIL PROTECTED] wrote:

 sounds like you need a pre-processor in your build process...

 On 3/27/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 
  I asked a variation of this a few days ago and have since tried to do
 some
  research about it.  Hopefully someone can help me out if I phrase the
  question differently because I have not had much luck finding the
 answer.
 
  If I a creating a debugger component- within the v2 component
  architecture.
  Is it possible for it to get data into my other elements on the stage
  before
  they are inited.  I am trying to set a debug variable to true -which
 would
  change the way the application behaves.  Is it not possible without
  placing
  some code in the timeline?  I'm thinking that since the components
  constructores are called by the timeline that I might have some trouble
  getting my component's constructor to beat the calls from other items on
  stage.  If I'm chasing something that I'm not going to be able to do can
  someone let me know or point me to anything with advice on setting an
  application debug mode without having to manually code it into the
  timeline?
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Cut and paste to textarea from MS Word

2006-03-27 Thread Wade Arnold
I have been working on allowing users to cut and past from word into a
textarea. For html/php based applications I have always used tidy on the
server to clean up the clipboard from everything that MS Word puts in it's
text. Here is an example.

paste: 
This isn¹t stuff ³this is neat² Œbut wrong¹
 
Comes out as:
 
This isn?t the write stuff ?this is neat? ?but nothing?
 

Does anyone have a class for cleaning up the input text?

Thanks! 

Wade



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

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


[Flashcoders] tabIndex within scrollpane component

2006-03-27 Thread Randy Tinfow
I'm populating a ScrollPane component w/ a MovieClip that loads many
TextInput components.  This is done in a for loop.  After they are
loaded, I assign the tabIndex of each TextInput component.  I can trace
the value of the tabIndex out, but the tabbing does not work.  I have
tried scrollPane.tabEnabled = false and scrollPane.tabChildren = true,
but this does not work.  Does anyone know how I can tab through
components that are embedded within a ScrollPane?

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

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


Followup- nonvisual movieClip dataRe: [Flashcoders] How soon is movieClip data available ?

2006-03-27 Thread Manuel Saint-Victor
I've been toying around with this  a bit.  if I have nonvisual elements in a
component-like an array of content- that can be retrieved immediately by
another calling class-is that correct?

I'm finding that I can get values out of a component on Stage- in which case
I could use that as a flag for being in debug mode.

Mani

On 3/27/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 Errsounds like I need a tutorial on what a preprocessor is.  I
 think it's somethingI have not yet had a need for but I'm about to Google
 right now.
 Thanks,
 Mani



 On 3/27/06, eric dolecki [EMAIL PROTECTED] wrote:
 
  sounds like you need a pre-processor in your build process...
 
  On 3/27/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
  
   I asked a variation of this a few days ago and have since tried to do
  some
   research about it.  Hopefully someone can help me out if I phrase the
   question differently because I have not had much luck finding the
  answer.
  
   If I a creating a debugger component- within the v2 component
   architecture.
   Is it possible for it to get data into my other elements on the stage
   before
   they are inited.  I am trying to set a debug variable to true -which
  would
   change the way the application behaves.  Is it not possible without
   placing
   some code in the timeline?  I'm thinking that since the components
   constructores are called by the timeline that I might have some
  trouble
   getting my component's constructor to beat the calls from other items
  on
   stage.  If I'm chasing something that I'm not going to be able to do
  can
   someone let me know or point me to anything with advice on setting an
   application debug mode without having to manually code it into the
   timeline?
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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] Cut and paste to textarea from MS Word

2006-03-27 Thread Merrill, Jason
I don't know if this would help you or not, something to look at - looks like 
he uses it for blog entries:

http://www.muhajabah.com/islamicblog/mt-tips/archives/plugins/clean_up_troublesome_characters_from_copynpaste.php


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Wade Arnold
Sent: Monday, March 27, 2006 3:56 PM
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Cut and paste to textarea from MS Word

I have been working on allowing users to cut and past from word into a
textarea. For html/php based applications I have always used tidy on the
server to clean up the clipboard from everything that MS Word puts in it's
text. Here is an example.

paste:
This isn¹t stuff ³this is neat² Œbut wrong¹

Comes out as:

This isn?t the write stuff ?this is neat? ?but nothing?


Does anyone have a class for cleaning up the input text?

Thanks!

Wade



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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cut and paste to textarea from MS Word

2006-03-27 Thread Merrill, Jason
Wait - except you are looking for an Actionscript only class, right?  Maybe 
that link wouldn't help, sorry.  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Monday, March 27, 2006 4:16 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Cut and paste to textarea from MS Word

I don't know if this would help you or not, something to look at - looks like 
he
uses it for blog entries:

http://www.muhajabah.com/islamicblog/mt-
tips/archives/plugins/clean_up_troublesome_characters_from_copynpaste.php


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Wade Arnold
Sent: Monday, March 27, 2006 3:56 PM
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Cut and paste to textarea from MS Word

I have been working on allowing users to cut and past from word into a
textarea. For html/php based applications I have always used tidy on the
server to clean up the clipboard from everything that MS Word puts in it's
text. Here is an example.

paste:
This isn¹t stuff ³this is neat² Œbut wrong¹

Comes out as:

This isn?t the write stuff ?this is neat? ?but nothing?


Does anyone have a class for cleaning up the input text?

Thanks!

Wade



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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged 
or
confidential information. If you have received it in error, please notify the 
sender
immediately and delete the original. Any other use of this e-mail by you is
prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cut and paste to textarea from MS Word

2006-03-27 Thread Wade Arnold
Actually here are the regular expressions that I was looking for.

# html character entity replacements
$s =~ s/\342\200\231/#8217;/g;
$s =~ s/\342\200\230/#8216;/g;
$s =~ s/\342\200\246/#133;/g;
$s =~ s/\342\200\223/-/g;
$s =~ s/\342\200\224/#8212;/g;
$s =~ s/\342\200\234/#8221;/g;
$s =~ s/\342\200\235/#8222;/g;


# ascii equivalent replacements
$s =~ s/\342\200[\230\231]/'/g;
$s =~ s/\342\200\246/.../g;
$s =~ s/\342\200\223/-/g;
$s =~ s/\342\200\224/--/g;

$s =~ s/\342\200[\234\235]//g;



On 3/27/06 3:41 PM, Merrill, Jason [EMAIL PROTECTED] wrote:

 Wow, who knew.  :)
 
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Wade Arnold
 Sent: Monday, March 27, 2006 4:43 PM
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Cut and paste to textarea from MS Word
 
 Jason,
That is exactly what I am looking for. I am going to write an AS 2.0
 class to do the same thing. Thanks for the help
 
 NaughtyWordsChars detects double-quotes, single-quotes, elipses, em dashes,
 and en dashes. They can be replaced with either ASCII equivalents or html
 character entities. The detection can be toggled on an entry's title, entry
 body, extended entry, keywords, and excerpt.
 
 
 
 
 On 3/27/06 3:15 PM, Merrill, Jason [EMAIL PROTECTED] wrote:
 
 I don't know if this would help you or not, something to look at - looks
 like
 he uses it for blog entries:
 
 http://www.muhajabah.com/islamicblog/mt-
 tips/archives/plugins/clean_up_trouble
 some_characters_from_copynpaste.php
 
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Wade Arnold
 Sent: Monday, March 27, 2006 3:56 PM
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Cut and paste to textarea from MS Word
 
 I have been working on allowing users to cut and past from word into a
 textarea. For html/php based applications I have always used tidy on the
 server to clean up the clipboard from everything that MS Word puts in
 it's
 text. Here is an example.
 
 paste:
 This isn¹t stuff ³this is neat² Œbut wrong¹
 
 Comes out as:
 
 This isn?t the write stuff ?this is neat? ?but nothing?
 
 
 Does anyone have a class for cleaning up the input text?
 
 Thanks!
 
 Wade
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 NOTICE:
 This message is for the designated recipient only and may contain
 privileged
 or confidential information. If you have received it in error, please
 notify
 the sender immediately and delete the original. Any other use of this
 e-mail
 by you is prohibited.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] trouble with alert component

2006-03-27 Thread Robin Burrer

Thanks this works!

Robin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Simpson
Sent: Monday, 27 March 2006 11:17 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] trouble with alert component

We run into that problem here too and eliminate it by adding \n to our
messages...

HTH

Matthew

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, March 27, 2006 12:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] trouble with alert component

Hi there,

When I send a alert message to the v2 alert component it dose not show
the last couple of lines of the message. The wired thing is that on some
computers all characters of the message are displayed. It length of the
message dose not really make a difference though. Regardless if I want
to display two or twenty lines the last line is always missing.

This is driving me mad - any ideas?

Cheers

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

2006-03-27 Thread Weldon MacDonald
Your trying to access the properties width and heigh from a static
function getArea. The problem is a static function is designed to
handle class wide properties and width and height are local to each
insttance of the class. The compiler won't allow it. Remove the static
from the function definition, I don't see why they would be needed
there anyway.

On 3/27/06, CK [EMAIL PROTECTED] wrote:
 Hi,

 In the following code: I'm getting the following static from the
 ouput window:
 **Error** /Users/user/Desktop/code/oop_review/BOX/Box.as: Line 34:
 Instance variables cannot be accessed in static functions.
 return width*height;

 Total ActionScript Errors: 1 Reported Errors: 1

 How could I access these instance variables from within this private
 static method? Is it advisable using Private Static? Would I have to
 create an instance of the class then access the properties?



 //AS
 class Box {
 //accessing a static property through a method.
 //The box class, with methods to set and retreive the
 //value of the class property, numSides.
 //
 //The class property numSides
 private static var numSides:Number = 4;
 //
 private var width:Number;
 private var height:Number;
 private var area:Number;
 //
 //all CAPS denotes constants, values that never change.
 private static var DEFAULT_WIDTH:Number = 30;
 private static var DEFAULT_HEIGHT:Number = 20;
 //
 public static var maxWidth = 250;
 public static var maxHeight = 250;
 //
 //The constructor function.
 public function Box(w:Number, h:Number) {
 if (w == undefined) {
 w = DEFAULT_WIDTH;
 }
 if (h == undefined) {
 h = DEFAULT_HEIGHT;
 }
 width = w;
 height = h;
 //initialize area. This is perfectly legal within a 
 constructor
 //area = width*height;
 }
 private static function getArea():Number {
 return width*height;
 }
 //Method for setting numSides.
 public function setNumSides(newNumSides:Number):Void {
 numSides = newNumSides;
 }
 //Method for getting numSides.
 public function getNumSides():Number {
 return numSides;
 }
 //Accessor to retreive width
 public function getWidth():Number {
 return width;
 }
 //Accessor to assign width
 public function setWidth(w:Number):Void {
 width = w;
 }
 //Accessor to retreive height
 public function getHeight():Number {
 return height;
 }
 //Accessor to set height
 public function setHeight(h:Number):Void {
 height = h;
 }
 //reset the dimensions
 public function resetDimensions():Void {
 height = 1;
 width = 1;
 trace(Dimensions reset !);
 }
 public function onMouseDown():Void {
 resetDimensions();
 }
 public function enableReset():Void {
 Mouse.addListener(this);
 }
 public function disableReset():Void {
 Mouse.removeListener(this);
 }
 //this gurantees a safe means of deleting its instances.
 public function die():Void {
 disableReset();
 //Unregister the object so the Mouse class
 //deletes the reference to it.
 }
 }
 //End AS
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



--
Weldon Mac Donald
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] as2lib best regex class?

2006-03-27 Thread Wade Arnold
What is the best regular expression classes for AS 2.0

I use to use Pavils Jurjans in as 1.0. I was thinking of using as2lib
classes for a new project.

Thanks for any insight. I can't use AS3 it's for an existing project. I know
that this is one of those once a quarter emails. I have been here for
several years. But I don't want to make a bad decision.
 

Wade Arnold


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

2006-03-27 Thread Ramon Miguel M. Tayag
You can simply take not of the x and y of all objects on stage and
place them on again at a later time

On 3/28/06, Varun Dixit [EMAIL PROTECTED] wrote:
 Hi,

 I am making a Drag and Drop game in Flash, but at the end of it when
 user has put all the pieces of game together I need to take him to a
 next screen where they can see the entire *product* they created.

 I need to know, how to go about it? (Do I need to assign some variables
 to different pieces in the game, and call them at the end of it???)

 Any help would be appreciated?

 Thanks
 Varun Dixit

 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.385 / Virus Database: 268.3.1/292 - Release Date: 3/24/2006

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

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



--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] special character weirdness using in XML

2006-03-27 Thread Anastasia McCune
Greetings everyone!

I am reading info in from an XML document and spitting the content out into
a dynamic text box.  Sample content appears as such.



article title=Testing![CDATA[This is a test.]]/article



In what is the article text (the part that says This is a test), if I put in
any of the 'illegal' XML characters of  



'



it spits it all out just fine.



For example,

![CDATA[This is  'a test.]]

comes out just fine.



However, if I put a  the text breaks.  So, say I had



article title=Testing site=Testing siteHref=http://www.microsoft.com;
href=http://www.microsoft.com;![CDATA[This is  a test.]]/article



All I see is 'This is'.



Isn't the CDATA meant to cover all special characters?  I don't know why 
is treated differently.  Is there some kind of escape character to use that
I've missed?


It works just fine if I use lt; instead of , but it's the theory of the
thing that's getting me...

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

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


How (and more specifically) where to promote my groups events (was Re: [Flashcoders] 27th March Sydney Developers study group)

2006-03-27 Thread Chris Velevitch
On 3/22/06, Kevin Mulvihill [EMAIL PROTECTED] wrote:
 Oh, I hate to write an email like this, but I just keep wishing that all the
 emails from this user group would just go away... And they don't. There's
 another one today. Bash on me if you want, but I just don't think this is
 appropriate fodder for an internationally-based coding list. How many of the
 thousands of coders on this list are in Sydney anyway? 3? 5? 10? For the

Kevin, do you have any suggestions?

I recently have new members who only subscribe to this list and they
are finding the group beneficial.

 not another. Even Figleaf, who runs this list AND a number of user groups,
 doesn't post their meeting notices here.

I'd be interested in knowing how they do it.

 I don't mind a new group starting up sending one or two announcement posts
 to the list - there are a lot of coders here and hopefully a new group can
 get an initial influx of members in this way. But the Sydney group is nearly
 a year old, so it seems to me that THIS LIST ought to be able to get back to
 coding issues, of which there are plenty, sometime soon.

The format and location of the group has changed.

 Again, I don't mean to offend anybody, and I really don't like writing
 emails like this. I just think this kind of content belongs elsewhere. And
 if it is somehow appropriate, just let me know and I'll shut up... Thanks
 for listening.

You're not offending me. There are too many places to post about
flash/flex, I wish there was only one place, but it turns out that's
not possible and especially since not everyone is on every list,
forum, newsgroup etc.

What's the answer?


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 3rd April Sydney Developers study group

2006-03-27 Thread Chris Velevitch
Monday 3rd April is the next meeting of the study group. We will be
studying the Flex application framework Caringorm. Please read the
articles prior to the meeting (see
http://www.flashdev.org.au/program). At the meeting, the moderator
will lead discussion and with questions about the topic. The meeting
is on at 6:30pm for 7pm start and finishes around 8:30pm.

There'll be a special Flex prize available to 1 or 2 lucky
participants on the night.

Details about the group, venue and program are available from
http://www.flashdev.org.au. Please note, whilst the meetings and the
use of the club are free, the club does require us to purchase
beverages and/or snacks in exchange.

Please RSVP at http://www.flashdev.org.au/rsvp.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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