[Flashcoders] Flash 9 standalone - no fullscreen on Linux

2007-02-15 Thread August Gresens

Hello

We're developing a kiosk that needs to run on Linux full screen.

The gold release of Flash Player 9 does not support this feature on Linux.

Is there  a workaround for this problem -  running the Plugin in a browser
that is in full screen mode?

Thanks,

August

--
-


August Gresens
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

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


Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-02-15 Thread Dani Bacon

Hey Steven / Newsdee. Thx.

Newsdee : i tried deleting cache [FlashDevelop] / ASOs [Flash IDE] before
and it didn't help. I don't see how casting can solve the problem, it looks
like the compiler itself is not acknowledging an inheritance connection, and
i am not using any special drive config.

Steven: you guys seem to be doing great work :). I can refactor into
composition but that would probably be my last resort. especially since
these classes extends MovieClip and the movie clips themselves sit on stage
already [to simplify design issues .. lots of mcs on a world map kinda
thing].

heres more info on my code:

i am trying to compile a flash8 project and the compiler seems to break an
inheritance connection between 2 classes.
movieclips are on stage and their library symbols are linked to the Country
class.
this worked but after making a few minor changes to AbstractMarker [added a
method] the compiler suddenly stopped recognizing the inheritance connection
between BoundedMarker and AbstractMarker.
code :

class marker.AbstractMarker extends RadioButton implements Marker {

   function AbstractMarker() {
   }

   // methods

   public function testMethodBaseClass() {}

}

import org.as2lib.env.reflect.ReflectUtil; // just so you know ReflectUtil
is from as2lib

class marker.BoundedMarker extends AbstractMarker {

   function BoundedMarker() {
   super();

   trace(ReflectUtil.getTypeNameForInstance(this.__proto__));
// traces BoundedMarker [since
movieclips are based on Country]

   trace(ReflectUtil.getTypeNameForInstance(this.__proto__.__proto__));
// traces Object [!! ignores AbstractMarker]

   trace(this.test2);
// traces [type Function]

   trace(this.testMethodBaseClass);
// traces undefined

   // more code of course ...

   }

   public function test2() {}

}

class marker.Country extends BoundedMarker {

   private function Country() {
   }

}

and

trace(mc instanceof Country) is true
trace(mc instanceof BoundedMarker) is true

but

trace(mc instanceof AbstractMarker) is false

im using FlashDevelop and MTASC but compiling via the flash8 env as well.

I have actually made some wierd progress last night. What i did is moved
AbstractMarker out of its package. compiling it using MMC [flash ide]. then
compiling it using MTASC [through FlashDevelop], this time it worked. and
then moving it back into the marker package and recompiling with MMC and
then MTASC and it worked.

so i believe the solution is a combination of the following : a compiler /
a bug /  flashdevelop /  packages /  imports.

anyone any ideas ? how do i even start finding the problem ? is this some
kind of flash bug ?

regards and sorry for the long post
Danix


On 15/02/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 - Refactor to simpler class relationships (worst case but it
 did the trick for me - had to duplicate code, ewww).

You could use Composition instead, which reduces the need for normal
class inheritance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flash 9 standalone - no fullscreen on Linux

2007-02-15 Thread eka

Hello :)

Can you explain the code use to create a fullscreen mode in linux ?

In you web HTML page do you use the property allowFullScreen with the true
value ?

EKA+ :)

2007/2/15, August Gresens [EMAIL PROTECTED]:


Hello

We're developing a kiosk that needs to run on Linux full screen.

The gold release of Flash Player 9 does not support this feature on
Linux.

Is there  a workaround for this problem -  running the Plugin in a browser
that is in full screen mode?

Thanks,

August

--
-


August Gresens
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

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


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

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


[Flashcoders] fs overlay

2007-02-15 Thread Daniel Snoddas

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

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


Re: [Flashcoders] Problem with cascading functions within a class

2007-02-15 Thread Omar Fouad

mmm still don't get the delegate concept

On 2/15/07, Muzak [EMAIL PROTECTED] wrote:


Look into the Delegate class -- mx.utils.Delegate


import mx.utils.Delegate;

class YourClass {
   private var __rawHTML:String;

   public function grabHTML():Void {
   var html_data:LoadVars = new LoadVars();
   html_data.onData = Delegate.create(this, this.htmlDataHandler);
   html_data.load(http://somesite.ca/some.html;);
   }

   private function htmlDataHandler(rawData:String):Void {
   this.__rawHTML = rawData;
   this.doSomething();
   }

   private function doSomething():Void {
   // do something with __rawHTML
   }
}

regards,
Muzak

- Original Message -
From: Andrew Murphy [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 15, 2007 2:48 AM
Subject: [Flashcoders] Problem with cascading functions within a class


Im programming a class which includes something like following methods:


// grab some .html

public function grabHTML():Void {

   // loads the .html

   var html_data:LoadVars = new LoadVars();

   // once the .html is loaded

   html_data.onData = function():Void {

   // run doSomething()

   doSomething();

   };

   html_data.load(http://somesite.ca/some.html;);

};

// does something after the .html has been loaded

public function doSomething():Void {

   trace(doing something);

};











Unfortunately the second function doSomething never happens.  Can anyone
clue me in as to what Im doing wrong..?



Thank you. :)



-[a]-




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.39/686 - Release Date:
14/02/2007
7:54 AM

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

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


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

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





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


لحب صبور دائماً وهو أبداً ليس غيور
الحبّ أَبَداً ليست متبجّح ولا مغرور
وهو أَبَداً ليس وقح أَو أناني
ولا يعاتب
ولايستاء
لحبُّ لا يسعد
بذنوبِ الناسِ الآخرينِ
لكن المسرّاتَ في الحقيقةِ
هو جاهز دائماً للإعْذار،
للإتِمان، للتَمنّي
وللتَحَمُّل
مَهْما يحدث
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

[Flashcoders] edit xml in flash

2007-02-15 Thread natalia Vikhtinskaya

Hi to all
I want to create flash file that edit my xml file on server.  Can anybody
give me  some ideas how it can be done? Flash can read xml file, make/edit
but I have no idea how to write it back. What the simple way is for that?  If
anybody know any examples in net please share.
Thank you for any help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Art oriented uses/examples of Flash

2007-02-15 Thread The Helmsman
All in one place:
http://www.thefwa.com/

Igor Vasiliev

Atidim 2, Tel-Aviv, Israel
phone: +972-36471884
fax: +972-36472722

web: www.mixtv.tv
email: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roy Pardi
Sent: Thursday, February 15, 2007 3:32 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Art oriented uses/examples of Flash

Hi-
Nice to see the links that people are sharing @ best Flash projects. If
it's not too much OT, I'd be very interested in links that folks may have
to specifically art-oriented projects (e.g fine
art/conceptual/performance/installation type stuff).

thanks,

roypardi
-- 
-
Studio Site Updated!
http://www.roypardi.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


__ NOD32 2062 (20070215) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] edit xml in flash

2007-02-15 Thread Omar Fouad

Actually flash cannot do it unless you use some server-side script as
PHP(there are many others but PHP is easier and more powerful). In flash u
can only load the xml in an XML object and edit it only within this object
but you wont get the xml file edited and saved.

On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:


Hi to all
I want to create flash file that edit my xml file on server.  Can anybody
give me  some ideas how it can be done? Flash can read xml file, make/edit
but I have no idea how to write it back. What the simple way is for
that?  If
anybody know any examples in net please share.
Thank you for any help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





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

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

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


Re: [Flashcoders] edit xml in flash

2007-02-15 Thread Omar Fouad

i suggest using fWrite and fOpen commands in php

On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:


Actually flash cannot do it unless you use some server-side script as
PHP(there are many others but PHP is easier and more powerful). In flash u
can only load the xml in an XML object and edit it only within this object
but you wont get the xml file edited and saved.

On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:

 Hi to all
 I want to create flash file that edit my xml file on server.  Can
 anybody
 give me  some ideas how it can be done? Flash can read xml file,
 make/edit
 but I have no idea how to write it back. What the simple way is for
 that?  If
 anybody know any examples in net please share.
 Thank you for any help.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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






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


لحب صبور دائماً وهو أبداً ليس غيور
الحبّ أَبَداً ليست متبجّح ولا مغرور
وهو أَبَداً ليس وقح أَو أناني
ولا يعاتب
ولايستاء
لحبُّ لا يسعد
بذنوبِ الناسِ الآخرينِ
لكن المسرّاتَ في الحقيقةِ
هو جاهز دائماً للإعْذار،
للإتِمان، للتَمنّي
وللتَحَمُّل
مَهْما يحدث
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Re: [Flashcoders] edit xml in flash

2007-02-15 Thread natalia Vikhtinskaya

I know PHP very little. If you know open source for php code that can do
that please give me a link.

2007/2/15, Omar Fouad [EMAIL PROTECTED]:


i suggest using fWrite and fOpen commands in php

On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:

 Actually flash cannot do it unless you use some server-side script as
 PHP(there are many others but PHP is easier and more powerful). In flash
u
 can only load the xml in an XML object and edit it only within this
object
 but you wont get the xml file edited and saved.

 On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
 
  Hi to all
  I want to create flash file that edit my xml file on server.  Can
  anybody
  give me  some ideas how it can be done? Flash can read xml file,
  make/edit
  but I have no idea how to write it back. What the simple way is for
  that?  If
  anybody know any examples in net please share.
  Thank you for any help.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



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




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


لحب صبور دائماً وهو أبداً ليس غيور
الحبّ أَبَداً ليست متبجّح ولا مغرور
وهو أَبَداً ليس وقح أَو أناني
ولا يعاتب
ولايستاء
لحبُّ لا يسعد
بذنوبِ الناسِ الآخرينِ
لكن المسرّاتَ في الحقيقةِ
هو جاهز دائماً للإعْذار،
للإتِمان، للتَمنّي
وللتَحَمُّل
مَهْما يحدث

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MM tween object in a class, tweening prop not working

2007-02-15 Thread Mike Mountain
OK, this works outside the class:
myJP=new Object()
myJP.n=0;
t1 = new Tween(myJP, n, func, oldnum, numTo, duration, true);
myJP.n tweens just fine.
But if I put it inside a class a cannot tween n , I can tween any
property of an MC etc.
myJP is instantiated as an object and myJP.n is set to 0 in the
constructor - they both exist when the tween is called - which makes me
wonder if this is a scoping issue?
Anyhow, regardless, how do I fix it?
Cheers
M







ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
Tel: 01964 672000 
Fax: 01964 671102
Registered in England no. 01646471 
The information contained within this email expresses the views of the sender 
and not necessarily those of the company. It is private and confidential and 
may be legally privileged. It is intended solely for those authorised to 
receive it. If you are not the intended recipient you are hereby notified that 
any disclosure, copying, distribution or action taken in reliance on its 
contents is strictly prohibited and may be unlawful. If you have received this 
email in error, please telephone us immediately on 01964 672000 or email a 
reply to highlight the error and then delete it from your system. This email 
may contain links to web-sites, the contents of which ECM Systems Ltd have no 
control over and can accept no responsibility for. Any attachments have been 
virus-checked before transmission; however, recipients are strongly advised to 
carry out their own virus checking as ECM Systems Ltd do not warrant that such 
attachments are virus-free. Please note that this email has been created in the 
knowledge that Internet email is not a secure communications medium. We advise 
that you understand and observe this lack of security when emailing us.

ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ

Tel: 01964 672000   
Fax: 01964 671102

Registered in England no. 01646471 

The information contained within this email expresses the views of the sender 
and not necessarily those of the company. 
It is private and confidential and may be legally privileged. It is intended 
solely for those authorised to receive it. If you are 
not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or action taken in reliance on its 
contents is strictly prohibited and may be unlawful. If you have received this 
email in error, please telephone us immediately 
on 01964 672000 or email a reply to highlight the error and then delete it from 
your system. This email may contain links to 
web-sites, the contents of which ECM Systems Ltd have no control over and can 
accept no responsibility for. Any 
attachments have been virus-checked before transmission; however, recipients 
are strongly advised to carry out their own 
virus checking as ECM Systems Ltd do not warrant that such attachments are 
virus-free. 
Please note that this email has been created in the knowledge that Internet 
email is not a secure communications medium. 
We advise that you understand and observe this lack of security when emailing 
us.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MM tween object in a class, tweening prop not working

2007-02-15 Thread Mike Mountain
Never mind, sorted it - had scoped a setinterval incorrectly. The mc's
props tweening correctly was a red herring.

M


ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
Tel: 01964 672000 
Fax: 01964 671102
Registered in England no. 01646471 
The information contained within this email expresses the views of the sender 
and not necessarily those of the company. It is private and confidential and 
may be legally privileged. It is intended solely for those authorised to 
receive it. If you are not the intended recipient you are hereby notified that 
any disclosure, copying, distribution or action taken in reliance on its 
contents is strictly prohibited and may be unlawful. If you have received this 
email in error, please telephone us immediately on 01964 672000 or email a 
reply to highlight the error and then delete it from your system. This email 
may contain links to web-sites, the contents of which ECM Systems Ltd have no 
control over and can accept no responsibility for. Any attachments have been 
virus-checked before transmission; however, recipients are strongly advised to 
carry out their own virus checking as ECM Systems Ltd do not warrant that such 
attachments are virus-free. Please note that this email has been created in the 
knowledge that Internet email is not a secure communications medium. We advise 
that you understand and observe this lack of security when emailing us.

ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ

Tel: 01964 672000   
Fax: 01964 671102

Registered in England no. 01646471 

The information contained within this email expresses the views of the sender 
and not necessarily those of the company. 
It is private and confidential and may be legally privileged. It is intended 
solely for those authorised to receive it. If you are 
not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or action taken in reliance on its 
contents is strictly prohibited and may be unlawful. If you have received this 
email in error, please telephone us immediately 
on 01964 672000 or email a reply to highlight the error and then delete it from 
your system. This email may contain links to 
web-sites, the contents of which ECM Systems Ltd have no control over and can 
accept no responsibility for. Any 
attachments have been virus-checked before transmission; however, recipients 
are strongly advised to carry out their own 
virus checking as ECM Systems Ltd do not warrant that such attachments are 
virus-free. 
Please note that this email has been created in the knowledge that Internet 
email is not a secure communications medium. 
We advise that you understand and observe this lack of security when emailing 
us.



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

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


RE: [Flashcoders] AS2 Question

2007-02-15 Thread Holth, Daniel C.

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

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

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

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

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

Hope that helps!

~D.C. Holth


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

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

assume i have the following class

Class myClass {

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

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

in this class than:

Class myClass {

   function setName(myName:String) {

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

 Class myClass {

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

Thanks in advance

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

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

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

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

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


Re: [Flashcoders] Flash 9 standalone - no fullscreen on Linux

2007-02-15 Thread andrew . lucking

The latest standalone version of the Linux Flash Player can do full screen.

Cheers,
A,




|-+-
| |   August Gresens  |
| |   [EMAIL PROTECTED]|
| |   Sent by:  |
| |   [EMAIL PROTECTED]|
| |   figleaf.com   |
| | |
| | |
| |   2007-02-15 08:04 AM   |
| |   Please respond to Flashcoders |
| |   mailing list  |
| | |
|-+-
  
|
  | 
   |
  |   To:   Flashcoders mailing list 
flashcoders@chattyfig.figleaf.com |
  |   cc:   
   |
  |   Subject:  Re: [Flashcoders] Flash 9 standalone - no fullscreen on 
Linux  |
  
|




It doesn't appear Zinc will have an offering until Q2 2007.. Thanks, A

On 2/15/07, Dennis - I Sioux [EMAIL PROTECTED] wrote:

 Hey August,

 Not sure with Linux and also flash 9.. but can't you use a 3th party for
 that?
 Like Zync/Flash Studio Pro from MDM?

 With kind regards,

 Dennis

 - Original Message -
 From: August Gresens [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, February 15, 2007 9:12 AM
 Subject: [Flashcoders] Flash 9 standalone - no fullscreen on Linux


  Hello
 
  We're developing a kiosk that needs to run on Linux full screen.
 
  The gold release of Flash Player 9 does not support this feature on
  Linux.
 
  Is there  a workaround for this problem -  running the Plugin in a
 browser
  that is in full screen mode?
 
  Thanks,
 
  August
 
  --




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

2007-02-15 Thread Karina Steffens
Hi Michael,

I address the problem of testing cache-busting code in the IDE in my blog:
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm 

Basically, what you need to do is check for System.capabilites.playerType
before adding the cache-buster to the url.

var loader:MovieClipLoader;
var viewLoader:MovieClip;
var url:String = images/catalogue/collection/cat1.jpg;
if (System.capabilities.playerType == PlugIn
|| System.capabilities.playerType == ActiveX){
  url+=?nocache=+new Date().getTime();
}
loader.loadClip (url, viewLoader);


This, of course, won't prevent the other problem you mentioned, large files
downloading multiple times, but it can be quite handy for often-updated
content.

Karina 


 -Original Message-
 From: T. Michael Keesey [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2007 03:56
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit
 
 On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:
  this problem has been discussed before. is this what youre 
 referring to?
 
  
 http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.
  html
 
  seems that MovieClipLoader events do not fire correctly 
 when content 
  is loaded from cache. if this is your problem, would appended a 
  cache-killing query string to the url work? something like:
 
  mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
targetMc
);
 
 Apparently this is a problem, as well as onLoadInit not 
 working correctly all the time when publishing using the 
 Flash 9 alpha. (And in that case, it fails sporadically in 
 Firefox and the IDE as well.)
 
 Cache-busting is not a great solution, since 1) it makes it 
 impossible to test anything anywhere except from a server, 
 and 2) it could cause some large-ish files to download 
 multiple times. I think I'll just have to come up with a 
 customized solution and, in general, learn not to rely on onLoadInit.
 
 Suck.
 --
 Mike Keesey
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] edit xml in flash

2007-02-15 Thread natalia Vikhtinskaya

Thank you so much.

2007/2/15, Omar Fouad [EMAIL PROTECTED]:


http://www.php.net/manual/en/function.fwrite.php
check this


On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:

 I know PHP very little. If you know open source for php code that can do
 that please give me a link.

 2007/2/15, Omar Fouad [EMAIL PROTECTED]:
 
  i suggest using fWrite and fOpen commands in php
 
  On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:
  
   Actually flash cannot do it unless you use some server-side script
as
   PHP(there are many others but PHP is easier and more powerful). In
 flash
  u
   can only load the xml in an XML object and edit it only within this
  object
   but you wont get the xml file edited and saved.
  
   On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
   
Hi to all
I want to create flash file that edit my xml file on server.  Can
anybody
give me  some ideas how it can be done? Flash can read xml file,
make/edit
but I have no idea how to write it back. What the simple way is
for
that?  If
anybody know any examples in net please share.
Thank you for any help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
  
  
  
   --
   Omar Fouad - Digital Emotions...
   -
   Love is always patient and kind. It is never jealous. Love is never
   boastful nor conceited It is never rude or selfish. It does not take
  offense
   and is not resentful. Love takes no pleasure in other people's
  sins...but
   delights in the truth. It is always ready to excuse, to trust, to
  hope...
   and to endure... whatever comes.
   
  
  
 
 
  --
  Omar Fouad - Digital Emotions...
  -
  Love is always patient and kind. It is never jealous. Love is never
  boastful
  nor conceited It is never rude or selfish. It does not take offense
and
 is
  not resentful. Love takes no pleasure in other people's sins...but
  delights
  in the truth. It is always ready to excuse, to trust, to hope... and
to
  endure... whatever comes.
  
 
  لحب صبور دائماً وهو أبداً ليس غيور
  الحبّ أَبَداً ليست متبجّح ولا مغرور
  وهو أَبَداً ليس وقح أَو أناني
  ولا يعاتب
  ولايستاء
  لحبُّ لا يسعد
  بذنوبِ الناسِ الآخرينِ
  لكن المسرّاتَ في الحقيقةِ
  هو جاهز دائماً للإعْذار،
  للإتِمان، للتَمنّي
  وللتَحَمُّل
  مَهْما يحدث
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

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

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




--
Omar Fouad - Digital Emotions...

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

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

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

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

2007-02-15 Thread Omar Fouad

u welcome :)

On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:


Thank you so much.

2007/2/15, Omar Fouad [EMAIL PROTECTED]:

 http://www.php.net/manual/en/function.fwrite.php
 check this


 On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
 
  I know PHP very little. If you know open source for php code that can
do
  that please give me a link.
 
  2007/2/15, Omar Fouad [EMAIL PROTECTED]:
  
   i suggest using fWrite and fOpen commands in php
  
   On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:
   
Actually flash cannot do it unless you use some server-side script
 as
PHP(there are many others but PHP is easier and more powerful). In
  flash
   u
can only load the xml in an XML object and edit it only within
this
   object
but you wont get the xml file edited and saved.
   
On 2/15/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:

 Hi to all
 I want to create flash file that edit my xml file on
server.  Can
 anybody
 give me  some ideas how it can be done? Flash can read xml file,
 make/edit
 but I have no idea how to write it back. What the simple way is
 for
 that?  If
 anybody know any examples in net please share.
 Thank you for any help.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

   
   
  
  
   --
   Omar Fouad - Digital Emotions...
   -
   Love is always patient and kind. It is never jealous. Love is never
   boastful
   nor conceited It is never rude or selfish. It does not take offense
 and
  is
   not resentful. Love takes no pleasure in other people's sins...but
   delights
   in the truth. It is always ready to excuse, to trust, to hope... and
 to
   endure... whatever comes.
   
  
   لحب صبور دائماً وهو أبداً ليس غيور
   الحبّ أَبَداً ليست متبجّح ولا مغرور
   وهو أَبَداً ليس وقح أَو أناني
   ولا يعاتب
   ولايستاء
   لحبُّ لا يسعد
   بذنوبِ الناسِ الآخرينِ
   لكن المسرّاتَ في الحقيقةِ
   هو جاهز دائماً للإعْذار،
   للإتِمان، للتَمنّي
   وللتَحَمُّل
   مَهْما يحدث
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 Omar Fouad - Digital Emotions...

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

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

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


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

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





--
Omar Fouad - Digital Emotions...

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

Re: [Flashcoders] What do you think are the best Flash projects and RIA's

2007-02-15 Thread Ron Wheeler
I do not know if this is the best but if you are looking for a real 
application in Flash...


We built a database and search engine in Flash to provide Personal 
Protective Equipment information for  First Responders. The database 
included pictures, technical specifications, administrative information 
and where and why used information on all of the PPE used by fire, 
police, abulance, paramedics, public works, hospital dispatch and public 
security in a lage city.
It included a search function that allows the first responder to find 
out information such as:


What do the police wear on the heads when responding to a riot?
What do the different first responders carry as antidotes in case of a 
building collapse?

What respirators will firemen have when working on a marine emergency.
Print me a report of all of the headgear that paramedics use, with or 
without photos.


It is designed to be carried in the emergency vehicles and has no server 
component. The database is an XML file which is automatically 
constructed from a spreadsheet maintained by the user.
It fits on a CD and runs when the CD is loaded. It also includes a 
training course on how to use the Search engine which is built using our 
training delivery system which is another real application that has 
been used in many other courses.



We used Flash since we had built a lot of expertise and tools in 
previous projects, it handles images nicely, the player/projector has a 
small footprint, it will run on and portable PC or in-vehicle computer, 
it was easy to make the user interface attractive.


We did this about 3 years ago and the technology is even better and more 
robust today.


Enrique Chávez wrote:

==SelfPromotion== :P

http://desktoptwo.com/

Is a webtop Full-Flash. Check it out

James Deakin wrote:

What do you think are the best Flash projects and RIA's? I'm involved in
lots of project where I work and I am beings asked for examples more and
more as large companies begin to see the advantages of Flash based
interfaces and RIA's.

I want to persuade people that Flash isn't a toy  and I need some really
good examples of solid work. I have a few I always rely on but I 
though I

would put it to the vote. So what are your top ten?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2 to AS3 migration issues?

2007-02-15 Thread Martin Scott Goldberg
Just wondering if anyone else had this problem.  I decided to migrate by
asteroids code to AS3, and found most of the commands I used were either
completely removed or redefined.  It looks like I'm going to have to
rewrite the entire program rather thans simply change a few things.
Really, really dissheartening.


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

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


Re: [Flashcoders] Problem with cascading functions within a class

2007-02-15 Thread Andy Herrman

So, the problem with your initial code is that the scope of the
function (what `this` refers to) is not your class, but instead is the
scope of the object it's being called on.

So, essentially your code is trying to call `html_data.doSomething()`,
which doesn't exist.  You really want it to be using the scope you
have when you created the callback.

Delegate solves this.  The first argument to Delegate is the scope you
want the function to run with (usually `this`).  The second argument
is the function to run.  In this case Delegate takes care of scope
issue, so that when you call `doSomething()` it's being called with
the correct scope.

The other way to do it (though I prefer Delegate) is this:

public function grabHTML():Void {
  // loads the .html
  var html_data:LoadVars = new LoadVars();
  html_data.doSomethingScope = this;

  // once the .html is loaded…
  html_data.onData = function():Void {
  // …run doSomething()
  this.doSomethingScope.doSomething();
  };
  html_data.load(http://somesite.ca/some.html;);
};

In this case you're storing the scope you want it to run as in the
html_data object, so when the callback (onData) is called you can
access the correct scope.  Delegate just removes the need for doing
this.

Note that unlike the code above, Delegate will also cause the
`doSomething` method to be passed the same arguments as are passed to
`onData`.

  -Andy

// does something after the .html has been loaded
public function doSomething():Void {
  trace(doing something);
};

On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:

mmm still don't get the delegate concept

On 2/15/07, Muzak [EMAIL PROTECTED] wrote:

 Look into the Delegate class -- mx.utils.Delegate


 import mx.utils.Delegate;

 class YourClass {
private var __rawHTML:String;

public function grabHTML():Void {
var html_data:LoadVars = new LoadVars();
html_data.onData = Delegate.create(this, this.htmlDataHandler);
html_data.load(http://somesite.ca/some.html;);
}

private function htmlDataHandler(rawData:String):Void {
this.__rawHTML = rawData;
this.doSomething();
}

private function doSomething():Void {
// do something with __rawHTML
}
 }

 regards,
 Muzak

 - Original Message -
 From: Andrew Murphy [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Thursday, February 15, 2007 2:48 AM
 Subject: [Flashcoders] Problem with cascading functions within a class


 Im programming a class which includes something like following methods:


 // grab some .html

 public function grabHTML():Void {

// loads the .html

var html_data:LoadVars = new LoadVars();

// once the .html is loaded

html_data.onData = function():Void {

// run doSomething()

doSomething();

};

html_data.load(http://somesite.ca/some.html;);

 };

 // does something after the .html has been loaded

 public function doSomething():Void {

trace(doing something);

 };











 Unfortunately the second function doSomething never happens.  Can anyone
 clue me in as to what Im doing wrong..?



 Thank you. :)



 -[a]-




 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.441 / Virus Database: 268.17.39/686 - Release Date:
 14/02/2007
 7:54 AM

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

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


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

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




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


لحب صبور دائماً وهو أبداً ليس غيور
الحبّ أَبَداً ليست متبجّح ولا مغرور
وهو أَبَداً ليس وقح أَو أناني
ولا يعاتب
ولايستاء
لحبُّ لا يسعد
بذنوبِ الناسِ الآخرينِ
لكن المسرّاتَ في الحقيقةِ
هو جاهز دائماً للإعْذار،
للإتِمان، للتَمنّي
وللتَحَمُّل
مَهْما يحدث

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:

Re: [Flashcoders] AS2 to AS3 migration issues?

2007-02-15 Thread Zeh Fernando

Just wondering if anyone else had this problem.  I decided to migrate by
asteroids code to AS3, and found most of the commands I used were either
completely removed or redefined.  It looks like I'm going to have to
rewrite the entire program rather thans simply change a few things.
Really, really dissheartening.


I like to believe that's frustrating but necessary. AS1/AS2 had come a 
long way, and it was time for a slight syntax overhaul on the original 
API. For example, what's up with having objects created by special 
commands instead of constructors (for example, createEmptyMovieClip), 
methods that didn't even follow a naming convention (for example, 
createEmptyMovieClip vs attachMovie), no clear naming convention either 
on properties (_stuff versus stuff) and little 'gotchas' on the case of 
a few properties (_currentframe, maxscroll)?


Hence why having .addChild, .removeChild, and renaming many other things 
like that make a lot of sense. There's the initial bump, but after that 
I'm confident the language will look better as a whole instead of just 
being a patch on the previous version.


Also, you probably already have this, but in case you don't, this might 
help:


http://livedocs.macromedia.com/flex/2/langref/migration.html


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] AS2 to AS3 migration issues?

2007-02-15 Thread Merrill, Jason
AS3 is a totally different world. Well, not totally, but you are
targeting a different VM.  Lots of articles on Adobe.com on migrating to
AS3.  It's worth learning and transitioning to.  To say it's
disheartening to find out technology changes and things are not
compatible, is, no disrespect, to not understand the nature and history
of technology.  Adobe did a great thing by completely overhauling
Actionscript.  AS3 in FP9 is so fricking fast.  Check out this Flex app
which is an attempt to recreate Photoshop on a web page - the
performance is amazing and would have been difficult to acheive with AS
1 or 2. 

http://blog.flashgen.com/2006/12/20/fauxto-nice-flex-photoshop-online-ed
itor/

Sometimes you have to sacrifice  backwards compatibilty for product
fidelity.  AS changes in 3.0, totally worth it for the few it will tick
off.
 
Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Martin Scott Goldberg
Sent: Thursday, February 15, 2007 9:42 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AS2 to AS3 migration issues?

Just wondering if anyone else had this problem.  I decided to 
migrate by asteroids code to AS3, and found most of the 
commands I used were either completely removed or redefined.  
It looks like I'm going to have to rewrite the entire program 
rather thans simply change a few things.
Really, really dissheartening.


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

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

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

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


Re: [Flashcoders] AS2 to AS3 migration issues?

2007-02-15 Thread Helen Triolo

No, that's the whole point!  Now it will be much better.

Helen

Martin Scott Goldberg wrote:


Just wondering if anyone else had this problem.  I decided to migrate by
asteroids code to AS3, and found most of the commands I used were either
completely removed or redefined.  It looks like I'm going to have to
rewrite the entire program rather thans simply change a few things.
Really, really dissheartening.


Marty
 



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

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


Re: [Flashcoders] AS2 to AS3 migration issues?

2007-02-15 Thread John Grden

http://www.5etdemi.com/blog/archives/2006/11/as2-to-as3-converter-createtextfield-geturl-handling/

you might try this.  I've used it a few times for quick turnarounds and it
actually works rather well.  Read up on it first and give it a whirl.

On 2/15/07, Martin Scott Goldberg [EMAIL PROTECTED] wrote:


Just wondering if anyone else had this problem.  I decided to migrate by
asteroids code to AS3, and found most of the commands I used were either
completely removed or redefined.  It looks like I'm going to have to
rewrite the entire program rather thans simply change a few things.
Really, really dissheartening.


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

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





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

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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread T. Michael Keesey

On 2/15/07, Karina Steffens [EMAIL PROTECTED] wrote:

Hi Michael,

I address the problem of testing cache-busting code in the IDE in my blog:
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm

Basically, what you need to do is check for System.capabilites.playerType
before adding the cache-buster to the url.

var loader:MovieClipLoader;
var viewLoader:MovieClip;
var url:String = images/catalogue/collection/cat1.jpg;
if (System.capabilities.playerType == PlugIn
|| System.capabilities.playerType == ActiveX){
  url+=?nocache=+new Date().getTime();
}
loader.loadClip (url, viewLoader);


This, of course, won't prevent the other problem you mentioned, large files
downloading multiple times, but it can be quite handy for often-updated
content.


Ah, thanks! That looks like something that could be an option for my
loading package.
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash 9 standalone - no fullscreen on Linux

2007-02-15 Thread August Gresens

Are you sure?

This release note for version 9.0.31.0 says the contrary...

http://www.adobe.com/support/documentation/en/flashplayer/9/releasenotes.html

Flash Player 9.0.31.0 for Linux includes all of the features from Flash
Player 9.0.28.0 except for windowless mode and full-screen mode.

Or is there something I'm missing here? Does the mean just the plugin does
not support full screen mode and the standalone does?

Thanks,

A



On 2/15/07, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:



The latest standalone version of the Linux Flash Player can do full
screen.

Cheers,
A,




|-+-
| |   August Gresens  |
| |   [EMAIL PROTECTED]|
| |   Sent by:  |
| |   [EMAIL PROTECTED]|
| |   figleaf.com   |
| | |
| | |
| |   2007-02-15 08:04 AM   |
| |   Please respond to Flashcoders |
| |   mailing list  |
| | |
|-+-

  
|

  | 
   |
  |   To:   Flashcoders mailing list 
flashcoders@chattyfig.figleaf.com |
  |
cc: 
 |
  |   Subject:  Re: [Flashcoders] Flash 9 standalone - no fullscreen
on Linux  |

  
|




It doesn't appear Zinc will have an offering until Q2 2007.. Thanks, A

On 2/15/07, Dennis - I Sioux [EMAIL PROTECTED] wrote:

 Hey August,

 Not sure with Linux and also flash 9.. but can't you use a 3th party for
 that?
 Like Zync/Flash Studio Pro from MDM?

 With kind regards,

 Dennis

 - Original Message -
 From: August Gresens [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, February 15, 2007 9:12 AM
 Subject: [Flashcoders] Flash 9 standalone - no fullscreen on Linux


  Hello
 
  We're developing a kiosk that needs to run on Linux full screen.
 
  The gold release of Flash Player 9 does not support this feature on
  Linux.
 
  Is there  a workaround for this problem -  running the Plugin in a
 browser
  that is in full screen mode?
 
  Thanks,
 
  August
 
  --




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

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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

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


[Flashcoders] handling non-western characters in Flash

2007-02-15 Thread Donald Desloge
I've got a client who wants to have multiple language support. I was wondering 
if there is a preferred way, for those who have done this before, for handling 
non-western characters in Flash? Any advice?



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] onLoadComplete, but no onLoadInit

2007-02-15 Thread Karina Steffens
You're welcome :)  

 -Original Message-
 From: T. Michael Keesey [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2007 15:28
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit
 
 On 2/15/07, Karina Steffens [EMAIL PROTECTED] wrote:
  Hi Michael,
 
  I address the problem of testing cache-busting code in the 
 IDE in my blog:
  
 http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flas
  h.htm
 
  Basically, what you need to do is check for 
  System.capabilites.playerType before adding the 
 cache-buster to the url.
 
  var loader:MovieClipLoader;
  var viewLoader:MovieClip;
  var url:String = images/catalogue/collection/cat1.jpg;
  if (System.capabilities.playerType == PlugIn
  || System.capabilities.playerType == ActiveX){
url+=?nocache=+new Date().getTime(); } 
 loader.loadClip (url, 
  viewLoader);
 
 
  This, of course, won't prevent the other problem you 
 mentioned, large 
  files downloading multiple times, but it can be quite handy for 
  often-updated content.
 
 Ah, thanks! That looks like something that could be an option 
 for my loading package.
 --
 Mike Keesey
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

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

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


Re: [Flashcoders] AS2 to AS3 migration issues?

2007-02-15 Thread Martin Scott Goldberg
 To say it's
disheartening to find out technology changes and things are not
compatible, is, no disrespect, to not understand the nature and history
of technology.  A

Actually, I understand that quite well.  One of my paid jobs is actually a
historian (in gaming and computing).


Adobe did a great thing by completely overhauling
Actionscript.  

Which is not what was being said.  I'm very happy about the speed
increases, which is why I'm looking to migrate.  However, it doesn't make
it any less dissheartening to find out its more of a complete overhaul of
your code that has to be done rather than an evolution.  No disrespect
either, but not all technological changes are always complete overhauls
;)

It reminds me of the early days of Java coding, when specs and syntax 
would almost completely change every other minute it seemed like.  (Though
to be fair, this has only been one such complete change with AS).

Its especially dissheartening when your client wants a switch over to the
AS3 engine at the *end* of the project, only to realize you have to
rewrite almost everything.

Marty


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

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


RE: [Flashcoders] AS2 to AS3 migration issues?

2007-02-15 Thread Merrill, Jason
No disrespect either, but 
not all technological changes are always complete overhauls
;)

I never said that.  But usually, the really big and good ones are.  I
didn't mean to boo-hoo your post or play a mini-violin, but I realize
it very much came off that way...  I dunno,  you don't HAVE to write AS
3 code, you can keep writing AS2 if you want.  :)  Embrace, don't lose
heart. :)   

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Martin Scott Goldberg
Sent: Thursday, February 15, 2007 11:01 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS2 to AS3 migration issues?

 To say it's
disheartening to find out technology changes and things are not 
compatible, is, no disrespect, to not understand the nature 
and history 
of technology.  A

Actually, I understand that quite well.  One of my paid jobs 
is actually a historian (in gaming and computing).


Adobe did a great thing by completely overhauling Actionscript.

Which is not what was being said.  I'm very happy about the 
speed increases, which is why I'm looking to migrate.  
However, it doesn't make it any less dissheartening to find 
out its more of a complete overhaul of your code that has to 
be done rather than an evolution.  No disrespect either, but 
not all technological changes are always complete overhauls
;)

It reminds me of the early days of Java coding, when specs 
and syntax would almost completely change every other minute 
it seemed like.  (Though to be fair, this has only been one 
such complete change with AS).

Its especially dissheartening when your client wants a switch 
over to the
AS3 engine at the *end* of the project, only to realize you 
have to rewrite almost everything.

Marty


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

2007-02-15 Thread Nick Weekes
Thanks Francis, I didn't know iStock have moved into video.  

Anybody use other footage sites?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Chary
Sent: 15 February 2007 16:57
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Royalty Free Video Footage

Try http://www.istockphoto.com/video.php

Francis

On 2/15/07, Nick Weekes [EMAIL PROTECTED] wrote:

 Im looking for some footage for my next project, and I don't normally 
 do a great deal with video.  Does anyone have a good recommendation 
 for sites they use to buy their creative footage from?

 Thanks,

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

2007-02-15 Thread Merrill, Jason
I have bought video from Corbis - great quality, but expensive.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Francis Chary
Sent: Thursday, February 15, 2007 11:57 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Royalty Free Video Footage

Try http://www.istockphoto.com/video.php

Francis

On 2/15/07, Nick Weekes [EMAIL PROTECTED] wrote:

 Im looking for some footage for my next project, and I 
don't normally 
 do a great deal with video.  Does anyone have a good recommendation 
 for sites they use to buy their creative footage from?

 Thanks,

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

2007-02-15 Thread Ian Thomas

No.

Ian

On 2/15/07, Daniel Snoddas [EMAIL PROTECTED] wrote:

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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Rock Stars Needed - Chicago, IL

2007-02-15 Thread Ingrid McKenzie

We're Avenue A Razorfish, the world's largest interactive agency and a
division of aQuantive, Inc. (NASDAQ: AQNT). We help forward-thinking
companies transform their businesses online. We're more than 1,000 creative
minds in 12 U.S. cities and Europe. Each office is filled with opportunities
for people who want to invent the digital future. It's a big challenge, but
it's a big Internet, and there's work to be done.

We are looking for a Flash Rock Star - the qualified candidate must be able
to work in and bridge the creative with the technical across a variety of
platforms and frameworks. Ultimately, the Front End Technologist is
responsible for all aspects of Presentation Layer development.


We are primarily looking for candidates with extensive expereince with
AS2/AS3, XML, Remoting, Etc.

If you are interested in learning more about this opportunity please send
your resume and salary requirment to [EMAIL PROTECTED]
or feel free to give me a ring at 312-696-5258

Ingrid McKenzie
Senior Recruiter of Flash Rock Stars
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OnRollOver Scrolling Text Problem

2007-02-15 Thread Omar Fouad

Hey list this is my first problem i am posting here, i hope someone could
halp me!!!

i got a movie clip with inside four Key Frames... in each Key Frame i got a
mask called 'mask' (a rectangle) and a masked MC called 'list'.

than in the first layer of each keyframe (which i reserved it for
actionScript only) i put the following code:

maskY = mask._y;
maskY2 = maskY+mask._height
maskX = mask._x;
maskX2 = maskX + mask._width;
var ratio = Math.round(list._height / mask._height);

onEnterFrame = function () {
  if (_ymousemaskY2  _ymousemaskY) {
  list._y = (mask._ymouse-(mask._ymouse*2))*ratio+maskY;
 }
};

it works. But it seems that the 'list' MC overscrolls as it slides up more
than it should do.
can someone help me please in resolving this ???

Regards...


--
Omar Fouad - Digital Emotions...

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

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


Re: [Flashcoders] AGAIN!! AS2 Question

2007-02-15 Thread Hans Wichman

Hi Omar,
i think the best thing todo is to pick up a book, or even two (or websites
for that matter):
one about general object oriented concepts and one about general programming
concepts.

Your questions in particular deal with the concepts of local vs instance vs
global vs method parameters and information hiding.
Google for them and do some reading, thats the easiest way to understand the
differences.

greetz
JC

On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:


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

assume i have the following class

Class myClass {

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

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

in this class than:

Class myClass {

  function setName(myName:String) {

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

Class myClass {

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

Thanks in advance



--
Omar Fouad - Digital Emotions...

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

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


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

2007-02-15 Thread Omar Fouad

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

assume i have the following class

Class myClass {

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

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

in this class than:

Class myClass {

  function setName(myName:String) {

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

Class myClass {

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

Thanks in advance



--
Omar Fouad - Digital Emotions...

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

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


[Flashcoders] Prevent Reading Cached xml Doc?

2007-02-15 Thread Marc Hoffman
When loading an xml doc into an XML object, how can I prevent Flash 
from using a cached version of the xml doc? I've tried adding a 
random query string:


myXML.load(xml/ + page + .xml ?randomArg= + Math.random());

but Flash won't find the xml doc if the query string is there.


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

2007-02-15 Thread Zeh Fernando

now the question is (even if it maight seen silly but i don't get the
concept yet), what is the difference between declaring the variables before
methods (after the class declaration) and declaring them inside the method
itself, or even in the method parameters???


In short, declaring them on the class creates a class property, one that 
lives on. Declaring it inside a method creates a temporary variable that 
is lost once the method/function is over. 'Declaring' it on the 
parameter is the same.


Be careful though:

function setName(name) {
  var myName:String;
  name = myName;
}

I'm not sure what you're trying to achieve, but this method does nothing 
at all. It receives a parameter, creates an empty/undefined String, and 
assigns this empty string to the variable that has received the 
parameter, overwriting the parameter value. I'm not sure what you're 
trying to do, but you're probably not understanding how the scope chain 
works inside actionscript, that names are merely links to a variable, 
and that they aren't global. You could have several variables or 
proprties of the same name accessible from the same scope.



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] Prevent Reading Cached xml Doc?

2007-02-15 Thread Merrill, Jason
I use this:

if(System.capabilities.playerType == External){  //running locally
local = true;
}else if(System.capabilities.playerType == ActiveX ||
System.capabilities.playerType ==PlugIn){  //runnning in a browser
local = false;
}

var contentXML:XML = new XML();
contentXML.ignoreWhite = true;
contentXML.onLoad = xmlLoadHandler
if(local){
contentXML.load(content.xml);
}else{
contentXML.load(content.xml?cb=+getTimer());
}


Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] handling non-western characters in Flash

2007-02-15 Thread Mick G

I did this for a project recently...
- Used XML files (different one for each language)
- Use device fonts (embedding fonts for most languages is not an option...
eg. Japanese font files would add massive file size)

On 2/15/07, Michael Mudge [EMAIL PROTECTED] wrote:


It'll take a ton of space, but try embedding a font that supports all
the characters you need.  Bitstream Cyberbit is a unicode TTF that has
practically everything.  As far as I can tell, Flash supports UTF8,
which is an 8-bit unicode format...  Files, variables, etc should all be
in this format.  Or, you can paste the non-western charaters straight in
to Flash and they'll work fine... You can even save files this way;
they'll be in the UTF-8 format.

I have all manner of oriental characters working on my chat program
without any extra work, except that the viewing machine needs to have
the right font installed.

- Kipp

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Donald Desloge
 Sent: Thursday, February 15, 2007 10:48 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] handling non-western characters in Flash


 I've got a client who wants to have multiple language
 support. I was wondering if there is a preferred way, for
 those who have done this before, for handling non-western
 characters in Flash? Any advice?




 __
 __
 Don't get soaked.  Take a quick peak at the forecast
 with the Yahoo! Search weather shortcut.
 http://tools.search.yahoo.com/shortcuts/ #loc_weather

 ___

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

2007-02-15 Thread Omar Fouad

well i am not trying to do anything it was just an example showing you
different declarations types. anyway i got the concept

Thanks so much


On 2/15/07, Paul Andrews [EMAIL PROTECTED] wrote:


A Class is a template for information (variables, etc) and instructions
(methods/functions) for handling that information.

When the class is initiated as an object (e.g. var myObject:MyClass - the
convention is that Classes start with a capital, objects start in
lowercase),
the object includes the variables declared within the class:

 Class myClass {

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

So now I can refer to myObject.myName.

When I call a method of the class, I may wish to pass information to the
class, in which case I pass named variables:

myObject.setName(Paul);

function setName(myName:String) {

  trace(myName);
}

In this case the variable myName passsed as a parameter is only
accessible
to the code of the function and not elsewhere.

Finally, I can declare a variable for use inside the method/function, but
nowhere else:

 Class myClass {

function setName(name:String) {
  var myName:String;

This variable is different to the one that is accessible to all of the
class
and is used to create variables purely for use within the function.

That's a tiny explanation - hope it helps a bit.

Paul
- Original Message -
From: Omar Fouad [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 15, 2007 6:49 PM
Subject: [Flashcoders] AGAIN!! AS2 Question


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

 assume i have the following class

 Class myClass {

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

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

 in this class than:

 Class myClass {

function setName(myName:String) {

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

 Class myClass {

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

 Thanks in advance



 --
 Omar Fouad - Digital Emotions...

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

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



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

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





--
Omar Fouad - Digital Emotions...

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

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


Re: [Flashcoders] OnRollOver Scrolling Text Problem

2007-02-15 Thread JOR
If you place your contents of the movieclip so that everything is 
registered with the top left corner to 0,0 of the clip the following 
should work:


var maxMouseY:Number = mask._height;
var maxListY:Number  = maxMouseY - list._height;
onEnterFrame = function ():Void {
  if ((_ymouse  maxMouseY)  (_ymouse  0)) {
list._y = maxListY * (mask._ymouse/maxMouseY);
  }
};

Basically, I'm getting the mouse coords as a range from 0 to 1 
(mask._ymouse/maxMouseY) where the _ymouse is located within the mask 
clip.  0 being the top most pixel and 1 being the bottom most.


Once I have that I multiply it by the maximum movement (maxListY) the 
list is allowed to move to get the scroll postion.  The maximum amount 
the list is able to move is 0 for starting position and a negative 
number if it's scrolled up.  The lowest negative number allowed is 
figured by taking the mask height and subtracting the height of the list 
(mask._height - list._height).



James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Omar Fouad wrote:

Hey list this is my first problem i am posting here, i hope someone could
halp me!!!

i got a movie clip with inside four Key Frames... in each Key Frame i got a
mask called 'mask' (a rectangle) and a masked MC called 'list'.

than in the first layer of each keyframe (which i reserved it for
actionScript only) i put the following code:

maskY = mask._y;
maskY2 = maskY+mask._height
maskX = mask._x;
maskX2 = maskX + mask._width;
var ratio = Math.round(list._height / mask._height);

onEnterFrame = function () {
  if (_ymousemaskY2  _ymousemaskY) {
  list._y = (mask._ymouse-(mask._ymouse*2))*ratio+maskY;
 }
};

it works. But it seems that the 'list' MC overscrolls as it slides up more
than it should do.
can someone help me please in resolving this ???

Regards...



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

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


Re: [Flashcoders] Problem with cascading functions within a class

2007-02-15 Thread T. Michael Keesey

Incidentally, in AS3 all functions preserve their scope, so Delegate
is no longer needed. (Yay!) But, in the meantime, Delegate is the best
solution to the problem of associating a function call with a scope.

Also worth mentioning is that since static functions have no scope,
you don't need to use Delegate with them.

class MyClass {
   public function MyClass() {
   var nameData:LoadVars = new LoadVars();
   nameData.onData = sayHelloTo;
   nameData.load(filename.txt);
   }
   public static function sayHelloTo(name:String):Void {
   trace(Hello,  + name + !);
   }
}

On 2/15/07, Andy Herrman [EMAIL PROTECTED] wrote:


[explanation snipped]

On 2/15/07, Omar Fouad [EMAIL PROTECTED] wrote:
 mmm still don't get the delegate concept

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

2007-02-15 Thread Donald Desloge
I like the XML idea, have one for every language. You mentioned using device 
fonts instead of embedding them, have you ever tried this with shared fonts? 
Maybe have on font per shared library and load on demand the font that you 
need? 

Donald
- Original Message 
From: Mick G [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 15, 2007 2:20:20 PM
Subject: Re: [Flashcoders] handling non-western characters in Flash

I did this for a project recently...
- Used XML files (different one for each language)
- Use device fonts (embedding fonts for most languages is not an option...
eg. Japanese font files would add massive file size)

On 2/15/07, Michael Mudge [EMAIL PROTECTED] wrote:

 It'll take a ton of space, but try embedding a font that supports all
 the characters you need.  Bitstream Cyberbit is a unicode TTF that has
 practically everything.  As far as I can tell, Flash supports UTF8,
 which is an 8-bit unicode format...  Files, variables, etc should all be
 in this format.  Or, you can paste the non-western charaters straight in
 to Flash and they'll work fine... You can even save files this way;
 they'll be in the UTF-8 format.

 I have all manner of oriental characters working on my chat program
 without any extra work, except that the viewing machine needs to have
 the right font installed.

 - Kipp

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Donald Desloge
  Sent: Thursday, February 15, 2007 10:48 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] handling non-western characters in Flash
 
 
  I've got a client who wants to have multiple language
  support. I was wondering if there is a preferred way, for
  those who have done this before, for handling non-western
  characters in Flash? Any advice?
 
 
 
 
  __
  __
  Don't get soaked.  Take a quick peak at the forecast
  with the Yahoo! Search weather shortcut.
  http://tools.search.yahoo.com/shortcuts/ #loc_weather
 
  ___
 
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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







 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Prevent Reading Cached xml Doc?

2007-02-15 Thread Marc Hoffman
Thanks, Jason. That not only works, it makes it clear why mine didn't 
work (trying to pass a query string to the local player).


- Marc

At 11:04 AM 2/15/2007, you wrote:

I use this:

if(System.capabilities.playerType == External){  //running locally
local = true;
}else if(System.capabilities.playerType == ActiveX ||
System.capabilities.playerType ==PlugIn){  //runnning in a browser
local = false;
}

var contentXML:XML = new XML();
contentXML.ignoreWhite = true;
contentXML.onLoad = xmlLoadHandler
if(local){
contentXML.load(content.xml);
}else{
contentXML.load(content.xml?cb=+getTimer());
}


Jason Merrill
Bank of America
Learning  Organizational Effectiveness



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

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



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

2007-02-15 Thread Mick G

The problem is that some other asian language fonts for example could be
200K. There's lots of characters in some languages ;)



On 2/15/07, Donald Desloge [EMAIL PROTECTED] wrote:


I like the XML idea, have one for every language. You mentioned using
device fonts instead of embedding them, have you ever tried this with shared
fonts? Maybe have on font per shared library and load on demand the font
that you need?

Donald
- Original Message 
From: Mick G [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 15, 2007 2:20:20 PM
Subject: Re: [Flashcoders] handling non-western characters in Flash

I did this for a project recently...
- Used XML files (different one for each language)
- Use device fonts (embedding fonts for most languages is not an option...
eg. Japanese font files would add massive file size)

On 2/15/07, Michael Mudge [EMAIL PROTECTED] wrote:

 It'll take a ton of space, but try embedding a font that supports all
 the characters you need.  Bitstream Cyberbit is a unicode TTF that has
 practically everything.  As far as I can tell, Flash supports UTF8,
 which is an 8-bit unicode format...  Files, variables, etc should all be
 in this format.  Or, you can paste the non-western charaters straight in
 to Flash and they'll work fine... You can even save files this way;
 they'll be in the UTF-8 format.

 I have all manner of oriental characters working on my chat program
 without any extra work, except that the viewing machine needs to have
 the right font installed.

 - Kipp

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Donald Desloge
  Sent: Thursday, February 15, 2007 10:48 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] handling non-western characters in Flash
 
 
  I've got a client who wants to have multiple language
  support. I was wondering if there is a preferred way, for
  those who have done this before, for handling non-western
  characters in Flash? Any advice?
 
 
 
 
  __
  __
  Don't get soaked.  Take a quick peak at the forecast
  with the Yahoo! Search weather shortcut.
  http://tools.search.yahoo.com/shortcuts/ #loc_weather
 
  ___
 
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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










It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Evaluate string as actionscript?

2007-02-15 Thread Berkay Unal

Hi Coders,

I have a string variable called dummy. i want to evalute it so that the
textfield on _root will have a value of abc. I cannot made it with eval.
How can i do that?

Here is the sample.

dummy = _root.aaa.text= \abc\

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

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


Re: [Flashcoders] What do you think are the best Flash projects and RIA's

2007-02-15 Thread Glen Pike

Hi,

   It might not be a full on application as such, but I really liked 
the way that Pier Inc's site uses Flash to enhance the blog as I see it.


   http://pierinc.com/

   Check it out, there is some nifty ideas and slick stuff in there.  
Then set your user-agent to GoogleBot and see what is served.
  
   G


Enrique Chávez wrote:

==SelfPromotion== :P

http://desktoptwo.com/

Is a webtop Full-Flash. Check it out

James Deakin wrote:

What do you think are the best Flash projects and RIA's? I'm involved in
lots of project where I work and I am beings asked for examples more and
more as large companies begin to see the advantages of Flash based
interfaces and RIA's.

I want to persuade people that Flash isn't a toy  and I need some really
good examples of solid work. I have a few I always rely on but I 
though I

would put it to the vote. So what are your top ten?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Evaluate string as actionscript?

2007-02-15 Thread Michael Mudge
As far as I know, you can't do this.  The Flash player is basically a
virtual machine (runs compiled code); it does not have a compiler, so it
can't take text-code and turn it into compiled code.  One possibility is
breaking up that string, dummy, in to _root.aaa, text and abc.
Then you can do this:

eval(_root.aaa)[text] = abc

- Michael Mudge

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Berkay Unal
 Sent: Thursday, February 15, 2007 6:38 PM
 To: [FlashCoders]
 Subject: [Flashcoders] Evaluate string as actionscript?
 
 
 Hi Coders,
 
 I have a string variable called dummy. i want to evalute it 
 so that the textfield on _root will have a value of abc. I 
 cannot made it with eval. How can i do that?
 
 Here is the sample.
 
 dummy = _root.aaa.text= \abc\
 
 Thanks
 -- 
 Berkay UNAL
 [EMAIL PROTECTED] ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/ flashcoders
 
 
 Brought to you by Fig Leaf Software
 Premier 
 Authorized Adobe Consulting and Training 
 http://www.figleaf.com  http://training.figleaf.com
 

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

2007-02-15 Thread Glen Pike
I love the stuff on this site and the code is available for download too 
(even if it is all procedural).


http://www.liquidjourney.com/

Have a look at some of the winners on the various flash conference / 
festival sites:


http://flashforwardconference.com click on Festival

http://awards.fitc.ca/

There are probably more, but this is my limit...


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

2007-02-15 Thread Corban Baxter

var initObj:Object = new Object();

initObj.downArrowUpName = HonkyTonk_ComboDownArrowDisabled;
initObj.downArrowDownName = HonkyTonk_ComboDownArrowDown;
initObj.downArrowOverName = HonkyTonk_ComboDownArrowOver;
initObj.downArrowDisabledName = HonkyTonk_ComboDownArrowUp;
createClassObject(mx.controls.ComboBox,dob_month,1,initObj);
import mx.controls.List;
import mx.controls.scrollClasses.ScrollBar;
ScrollBar.prototype.downArrowName = HonkyTonk_ScrollDownArrowDisabled;
ScrollBar.prototype.downArrowUpName = HonkyTonk_ScrollDownArrowUp;
ScrollBar.prototype.downArrowOverName = HonkyTonk_ScrollDownArrowOver;
ScrollBar.prototype.downArrowDownName = HonkyTonk_ScrollDownArrowDown;

ScrollBar.prototype.upArrowName = HonkyTonk_ScrollUpArrowDisabled;
ScrollBar.prototype.upArrowUpName = HonkyTonk_ScrollUpArrowUp;
ScrollBar.prototype.upArrowOverName = HonkyTonk_ScrollUpArrowOver;
ScrollBar.prototype.upArrowDownName = HonkyTonk_ScrollUpArrowDown;

Why does this not work and has anyone successfully got this to work? When i
run this it works fine for the combo box aarow but when i try to change the
scroll bar it all goes to hell and peices just don't show up together. Is
there any documention on this anywhere to help out with this process? I am
sure someone has done this and got it to work great for them. Does anyone
have a file or a site that helps to explain the process of completely
skinning a v2 comboBox correctly?

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

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


Re: [Flashcoders] OnRollOver Scrolling Text Problem

2007-02-15 Thread Omar Fouad

mmm nah...
the list scrolls even when the mouse is outside the mask clip


On 2/15/07, JOR [EMAIL PROTECTED] wrote:


If you place your contents of the movieclip so that everything is
registered with the top left corner to 0,0 of the clip the following
should work:

var maxMouseY:Number = mask._height;
var maxListY:Number  = maxMouseY - list._height;
onEnterFrame = function ():Void {
  if ((_ymouse  maxMouseY)  (_ymouse  0)) {
list._y = maxListY * (mask._ymouse/maxMouseY);
  }
};

Basically, I'm getting the mouse coords as a range from 0 to 1
(mask._ymouse/maxMouseY) where the _ymouse is located within the mask
clip.  0 being the top most pixel and 1 being the bottom most.

Once I have that I multiply it by the maximum movement (maxListY) the
list is allowed to move to get the scroll postion.  The maximum amount
the list is able to move is 0 for starting position and a negative
number if it's scrolled up.  The lowest negative number allowed is
figured by taking the mask height and subtracting the height of the list
(mask._height - list._height).


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Omar Fouad wrote:
 Hey list this is my first problem i am posting here, i hope someone
could
 halp me!!!

 i got a movie clip with inside four Key Frames... in each Key Frame i
got a
 mask called 'mask' (a rectangle) and a masked MC called 'list'.

 than in the first layer of each keyframe (which i reserved it for
 actionScript only) i put the following code:

 maskY = mask._y;
 maskY2 = maskY+mask._height
 maskX = mask._x;
 maskX2 = maskX + mask._width;
 var ratio = Math.round(list._height / mask._height);

 onEnterFrame = function () {
   if (_ymousemaskY2  _ymousemaskY) {
   list._y = (mask._ymouse-(mask._ymouse*2))*ratio+maskY;
  }
 };

 it works. But it seems that the 'list' MC overscrolls as it slides up
more
 than it should do.
 can someone help me please in resolving this ???

 Regards...


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

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





--
Omar Fouad - Digital Emotions...

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

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

RE: [Flashcoders] Make your own multiuser flash apps

2007-02-15 Thread Paul Venton
Looks good - had a quick test with a dead cat but ran out of time ... plan
on making a proper visit soon :-)


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

2007-02-15 Thread Thuy
Does anyone have an old Flash Player installer? Flash Player 7 or less 
would be great. (I accidentally upgraded the test PC at work to 9, which 
does us no good).


--
Thuy Nguyen
Web Designer
Angus Journal
816.383.5228

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

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


Re: [Flashcoders] Flash Player 7 Installer?

2007-02-15 Thread Glen Pike

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14266


Thuy wrote:
Does anyone have an old Flash Player installer? Flash Player 7 or less 
would be great. (I accidentally upgraded the test PC at work to 9, 
which does us no good).



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] What do you think are the best Flash projects andRIA's

2007-02-15 Thread Steven Sacks | BLITZ
Looks like they're using DENG or something like it.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Glen Pike
 Sent: Thursday, February 15, 2007 3:44 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] What do you think are the best 
 Flash projects andRIA's
 
 Hi,
 
 It might not be a full on application as such, but I 
 really liked the way that Pier Inc's site uses Flash to 
 enhance the blog as I see it.
 
 http://pierinc.com/
 
 Check it out, there is some nifty ideas and slick stuff 
 in there.  
 Then set your user-agent to GoogleBot and see what is served.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Wages

2007-02-15 Thread tommek
Hello people, I was just wondering if there is any one else in Australia
doing Flash Media Server (or high level Flash work) work in the private
sector, and if so what type
of money is payed for people with such skills. I have looked over sea and
seen what people with FMS skill are getting and just wanted to see what
Australian works are getting.

I have been working for a company doing FMS work for over a year and a
half and am look for some comparisons

thank.
tom.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] for...in property access replacement in AS3?

2007-02-15 Thread Matt Garland

Hi,

I'm converting some AS2 code to AS3. The code manipulates several  
big, complicated data containers to produce an animation.


In AS2, the data container was a vanilla object. In AS3, for  
performance gains, I turned these containers into several classes.


The problem is, at various points, I am transferring all the values  
from one container to another. The variables have the same names, but  
the data containers are different. For instance, in the first  
container, there are points. In the second container,the  
corresponding points are actually a subclass of points, one with more  
properties.


Before, I could just lay the two containers side by side, then use  
recursive for...in loops to transfer all the values. But for...in  
loops don't work for class instances in AS3. Class info is baked into  
the compiled class, and no longer stored in a memory- and cycle- 
wasting object hash.


What to do?

Anyway I can access the compiled class info (looping through a  
class's properties), or is that contra the entire point of AS3?


Save me from writing a long, convoluted one-off conversion function.

Thanks

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

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


Re: [Flashcoders] for...in property access replacement in AS3?

2007-02-15 Thread T. Michael Keesey

You can use Object.setPropertyisEnumerable(propName).

flash.utils.describeType() might be another way.

--
Mike Keesey

On 2/15/07, Matt Garland [EMAIL PROTECTED] wrote:

Hi,

I'm converting some AS2 code to AS3. The code manipulates several
big, complicated data containers to produce an animation.

In AS2, the data container was a vanilla object. In AS3, for
performance gains, I turned these containers into several classes.

The problem is, at various points, I am transferring all the values
from one container to another. The variables have the same names, but
the data containers are different. For instance, in the first
container, there are points. In the second container,the
corresponding points are actually a subclass of points, one with more
properties.

Before, I could just lay the two containers side by side, then use
recursive for...in loops to transfer all the values. But for...in
loops don't work for class instances in AS3. Class info is baked into
the compiled class, and no longer stored in a memory- and cycle-
wasting object hash.

What to do?

Anyway I can access the compiled class info (looping through a
class's properties), or is that contra the entire point of AS3?

Save me from writing a long, convoluted one-off conversion function.

Thanks

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

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


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

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


RE: [Flashcoders] handling non-western characters in Flash

2007-02-15 Thread Danny Kodicek
  Thanks for the info, that really helps on planning this whole 
 thing out.

Don't forget that for some languages you have additional directionality
issues - this is the Arabic family (including Persian and Urdu) and Hebrew.
Regarding fonts, the shared font method is probably doable but depends on
the complexity of your project. 

Danny
 
 - Original Message 
 From: Michael Mudge [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, February 15, 2007 2:08:02 PM
 Subject: RE: [Flashcoders] handling non-western characters in Flash
 
 It'll take a ton of space, but try embedding a font that 
 supports all the characters you need.  Bitstream Cyberbit is 
 a unicode TTF that has practically everything.  As far as I 
 can tell, Flash supports UTF8, which is an 8-bit unicode 
 format...  Files, variables, etc should all be in this 
 format.  Or, you can paste the non-western charaters straight 
 in to Flash and they'll work fine... You can even save files 
 this way; they'll be in the UTF-8 format.
 
 I have all manner of oriental characters working on my chat 
 program without any extra work, except that the viewing 
 machine needs to have the right font installed.
 
 - Kipp
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On 
 Behalf Of Donald 
  Desloge
  Sent: Thursday, February 15, 2007 10:48 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] handling non-western characters in Flash
  
  
  I've got a client who wants to have multiple language 
 support. I was 
  wondering if there is a preferred way, for those who have done this 
  before, for handling non-western characters in Flash? Any advice?
  
  
  
   
  __
  __
  Don't get soaked.  Take a quick peak at the forecast
  with the Yahoo! Search weather shortcut. 
  http://tools.search.yahoo.com/shortcuts/ #loc_weather
  
  ___
  
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive: 
  http://chattyfig.figleaf.com/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
 
 
 
 
 
 
 
  
 __
 __
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail beta.
 http://new.mail.yahoo.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

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

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