Re: [Flashcoders] JSON vs. XML for CDROM configuration

2007-01-30 Thread Ian Thomas

Um - surely there's a third option, which is plain text? It does depend what
you're configuring, but our external configuration files look like
java.properties files:

language=en
useDirectX=true

etc. etc.

We just read them in using LoadVars (overriding onData) and parse them. Very
straightforward.

Security implications etc. - well, that entirely depends what you're trying
to protect against, and what info you're putting in the configuration file.
In general, if the config file is on the CD itself, it's unchangeable, so I
don't see a huge issue?

Unless I've got the wrong end of the stick and you're talking about
configuring a CD-ROM app via a net connection (some sort of activation
system) - in which case ignore me. :-)

Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:


I am creating a CDROM application (Flash 8 PC only) and would like to
control it with an external configuration file.

From what I can see, I have a choice of a XML or JSON solution - can
anyone
recommend one over the other?

Also if anyone has a link to a working version of JSON and JSONConfig,
then
I would appreciate it as the version I downloaded is giving me several
errors.

Any pointers on the use of a configuration file for a CDROM also
appreciated
- such as any problems I could encounter with security etc

Thanks in advance

Paul

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

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


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

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


Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread T. Michael Keesey

On 1/29/07, David Ham [EMAIL PROTECTED] wrote:


startObjectDrag triggered by obj_mc.onPress
checkForSnaptriggered bysetInterval or onEnterFrame type of event,
in this case onObjectDrag
stopObjectDrag  triggered byobj_mc.onRelease


This looks more like the Broadcaster pattern or the Event Dispatcher
(a.k.a. Observer) pattern than Decorator.

(Also, it might be better to tie checkForSnap to mouseMove.)

Personally, I'm not a big fan of mix-ins because, well, they're kind
of sloppy. They involve tinkering with stuff that should be off-limits
(and is in AS3, I think). Using mix-ins, you could accidentally use a
non-function as a function. That can't happen if you stick to
strictly-typed programming.
--
T. Michael 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] JSON vs. XML for CDROM configuration

2007-01-30 Thread Paul Steven
Hmm good point Ian.

Any reason why people would use xml or json files rather than plain text?
Ease of editing, speed of loading etc?

With regards security implications, just wanted to be sure there was no
problem reading data from the CDROM as I am sure I read somewhere about some
issue that arised with Flash 8.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 30 January 2007 08:08
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

Um - surely there's a third option, which is plain text? It does depend what
you're configuring, but our external configuration files look like
java.properties files:

language=en
useDirectX=true

etc. etc.

We just read them in using LoadVars (overriding onData) and parse them. Very
straightforward.

Security implications etc. - well, that entirely depends what you're trying
to protect against, and what info you're putting in the configuration file.
In general, if the config file is on the CD itself, it's unchangeable, so I
don't see a huge issue?

Unless I've got the wrong end of the stick and you're talking about
configuring a CD-ROM app via a net connection (some sort of activation
system) - in which case ignore me. :-)

Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 I am creating a CDROM application (Flash 8 PC only) and would like to
 control it with an external configuration file.

 From what I can see, I have a choice of a XML or JSON solution - can
 anyone
 recommend one over the other?

 Also if anyone has a link to a working version of JSON and JSONConfig,
 then
 I would appreciate it as the version I downloaded is giving me several
 errors.

 Any pointers on the use of a configuration file for a CDROM also
 appreciated
 - such as any problems I could encounter with security etc

 Thanks in advance

 Paul

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

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

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

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

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

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


Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-30 Thread Lois IN

I'm sure that print the _x and the _y from node to the tree component, is
impossible; but now I trying to print some element by roll over the mouse.

I have the same listener, but this traces the atribute in the node of the
xml:

var listenerObject:Object = new Object();
listenerObject.itemRollOver = function(eventObject:Object) {
   //Only works if I click in the node.
   trace (eventObject.target.selectedNode.attributes.idnod);
   //it doesn't work!
   //trace (eventObject.target.itemRollOver.attributes.idnod);
};
menuTree2.addEventListener(itemRollOver, listenerObject);

If I try to trace the atribute idnod from my xml by roll over the mouse,
the result is undefined but if I press on any node it works..

How can I modify this code to works only with on roll over function?


Thanks a lot, and sorry if you don't understand all the message... my
english is too bad.




2007/1/27, Alain Rousseau [EMAIL PROTECTED]:


import mx.utils.Delegate;

var listenerObject:Object = new Object();
listenerObject.itemRollOver = Delegate.create(this, handleRollOver);

function handleRollOver(eventObject:Object) {
trace(menuTree2.selectedNode._y);
}

menuTree2.addEventListener (itemRollOver, listenerObject);



If the selectedNode has a ._y property it will work well. Otherwise
check to see what properties are available to you for that node. I don't
really know the Tree component so I can't be sure.

HTH

Alain


Lois IN wrote:
 I'm sorry, but when I typing the code I forget this 2.
 The code is the same, and the listener is working, but I can't print
 the the
 _x _y:

 var listenerObject:Object = new Object();
 listenerObject.itemRollOver = function(eventObject:Object) {
trace(menuTree2.selectedNode._y);
 };
 menuTree2.addEventListener (itemRollOver, listenerObject);



 2007/1/26, Hans Wichman [EMAIL PROTECTED]:

 Hi,
 i see menuTree*2*.selectedNode and menuTree.addEventListener?
 Beside that, might be a scoping/reference issue, your listener doesnt
 have
 a
 reference to the menuTree.

 greetz
 JC


 On 1/26/07, Lois IN [EMAIL PROTECTED] wrote:
 
  Hello,
  (first of all, sorry for my english)
 
  I have the Tree component in my scene and this is generated by a xml.
 It's
  working fine.
 
  But I want to know the _x and the _y of any tree node or folder, by
  passing
  mouse over them, with the function itemRollOver.
 
  For example, the Tree shows that:
 
  FOLDER
  SubFolder_A
  SubFolder_B
  SubFolder_B1
  SubFolder_B2
  SubFolder_B3
  SubFolder_C
 
  If the mouse is over SubFolder_B1 the _x and the _y are diferent
 than
  SubFolder_A...
 
  I try with a Listener, like this:
 
  var listenerObject:Object = new Object();
  listenerObject.itemRollOver = function(eventObject:Object) {
 trace(menuTree2.selectedNode._y);
  };
  menuTree.addEventListener(itemRollOver, listenerObject);
 
  but the tracer is undefined.
 
 
  Somebody knows about it?
 
  Thanks a lot!
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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



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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-01-30 Thread Hans Wichman

Hi,
maybe a dumm question but would it be off limits to express this
changing-behaviour in the interface?
For example in such an object as you are describing, you could add a method
setResizeBehaviour(r:ResizeBehaviorImpl) (in pseudo then).
Then you can change a certain type of behavior at runtime and it is explicit
in the interface. Assuming you don't want to use decorator that is.
Or is this not done?

greetz
JC


On 1/30/07, T. Michael Keesey [EMAIL PROTECTED] wrote:


On 1/29/07, David Ham [EMAIL PROTECTED] wrote:

 startObjectDrag triggered by obj_mc.onPress
 checkForSnaptriggered bysetInterval or onEnterFrame type of
event,
 in this case onObjectDrag
 stopObjectDrag  triggered byobj_mc.onRelease

This looks more like the Broadcaster pattern or the Event Dispatcher
(a.k.a. Observer) pattern than Decorator.

(Also, it might be better to tie checkForSnap to mouseMove.)

Personally, I'm not a big fan of mix-ins because, well, they're kind
of sloppy. They involve tinkering with stuff that should be off-limits
(and is in AS3, I think). Using mix-ins, you could accidentally use a
non-function as a function. That can't happen if you stick to
strictly-typed programming.
--
T. Michael 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] JSON vs. XML for CDROM configuration

2007-01-30 Thread Ian Thomas

We've had absolutely no problem reading text files from CD-ROM using Flash
8. :-)

XML/JSON wouldn't be any faster to read in.

I'd choose XML if you had a much more complex configuration task that needed
lots of nested config (unlikely unless you've got a huge sprawling app - you
can handle most situations by choosing your key=value keynames
appropriately) or if your config involved chunks of (possibly unicode)
textual data.

I wouldn't use JSON for configuration as I find it far less readable - it's
primarily a serialisation/data interchange format rather than a
configuration file format. Additionally, it ties you to a particular
implementation/data layout in your app; whereas if, for whatever reason, you
wanted other apps to read your key/value pairs plain text file (for example,
for patching or updating or simply cataloguing) then it's very
straightforward.

Cheers,
 Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:


Hmm good point Ian.

Any reason why people would use xml or json files rather than plain text?
Ease of editing, speed of loading etc?

With regards security implications, just wanted to be sure there was no
problem reading data from the CDROM as I am sure I read somewhere about
some
issue that arised with Flash 8.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 30 January 2007 08:08
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

Um - surely there's a third option, which is plain text? It does depend
what
you're configuring, but our external configuration files look like
java.properties files:

language=en
useDirectX=true

etc. etc.

We just read them in using LoadVars (overriding onData) and parse them.
Very
straightforward.

Security implications etc. - well, that entirely depends what you're
trying
to protect against, and what info you're putting in the configuration
file.
In general, if the config file is on the CD itself, it's unchangeable, so
I
don't see a huge issue?

Unless I've got the wrong end of the stick and you're talking about
configuring a CD-ROM app via a net connection (some sort of activation
system) - in which case ignore me. :-)

Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 I am creating a CDROM application (Flash 8 PC only) and would like to
 control it with an external configuration file.

 From what I can see, I have a choice of a XML or JSON solution - can
 anyone
 recommend one over the other?

 Also if anyone has a link to a working version of JSON and JSONConfig,
 then
 I would appreciate it as the version I downloaded is giving me several
 errors.

 Any pointers on the use of a configuration file for a CDROM also
 appreciated
 - such as any problems I could encounter with security etc

 Thanks in advance

 Paul

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

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

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

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

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

2007-01-30 Thread Paul Steven
Thanks Ian for the useful advice. I would appreciate your thoughts and
indeed the thoughts of anyone else,  on my use of a config file for this
project.

Not sure if a config file is the best solution for what I am doing.
Basically the CDROM consists of 60 separate pages / sections. I have just
used 60 labels on the timeline for these

e.g

1_1
1_2
2_1
2_2
Etc

I have not created separate swf files for each of the 60 sections as the
content of most sections is simply a video clip or one sentence of text. I
therefore thought it was more manageable to keep all the sections within one
flash movie. All video clips are external flv files.

I have also set up the navigation menu like this, with 60 labels.

The idea of using a config file is to set various things for each section
such as:

What video clip to play
The Page title
Which label of the navigation menu mc to display
Which buttons to display e.g forward / backward
Which label to navigate to when any button is clicked
Assign actions to visible buttons

etc

The idea of doing it this way is to prevent there being lots of code in all
the 60 labels across the timeline.

Hence the configuration file would have details of what actions to take upon
arriving at each of the 60 sections.

Does the above solution sound like the right way to go? Or can you suggest a
better solution. The application is PC only and is being developed with
Flash 8.

Thanks

Paul





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 30 January 2007 08:27
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

We've had absolutely no problem reading text files from CD-ROM using Flash
8. :-)

XML/JSON wouldn't be any faster to read in.

I'd choose XML if you had a much more complex configuration task that needed
lots of nested config (unlikely unless you've got a huge sprawling app - you
can handle most situations by choosing your key=value keynames
appropriately) or if your config involved chunks of (possibly unicode)
textual data.

I wouldn't use JSON for configuration as I find it far less readable - it's
primarily a serialisation/data interchange format rather than a
configuration file format. Additionally, it ties you to a particular
implementation/data layout in your app; whereas if, for whatever reason, you
wanted other apps to read your key/value pairs plain text file (for example,
for patching or updating or simply cataloguing) then it's very
straightforward.

Cheers,
  Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 Hmm good point Ian.

 Any reason why people would use xml or json files rather than plain text?
 Ease of editing, speed of loading etc?

 With regards security implications, just wanted to be sure there was no
 problem reading data from the CDROM as I am sure I read somewhere about
 some
 issue that arised with Flash 8.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: 30 January 2007 08:08
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

 Um - surely there's a third option, which is plain text? It does depend
 what
 you're configuring, but our external configuration files look like
 java.properties files:

 language=en
 useDirectX=true

 etc. etc.

 We just read them in using LoadVars (overriding onData) and parse them.
 Very
 straightforward.

 Security implications etc. - well, that entirely depends what you're
 trying
 to protect against, and what info you're putting in the configuration
 file.
 In general, if the config file is on the CD itself, it's unchangeable, so
 I
 don't see a huge issue?

 Unless I've got the wrong end of the stick and you're talking about
 configuring a CD-ROM app via a net connection (some sort of activation
 system) - in which case ignore me. :-)

 Ian

 On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:
 
  I am creating a CDROM application (Flash 8 PC only) and would like to
  control it with an external configuration file.
 
  From what I can see, I have a choice of a XML or JSON solution - can
  anyone
  recommend one over the other?
 
  Also if anyone has a link to a working version of JSON and JSONConfig,
  then
  I would appreciate it as the version I downloaded is giving me several
  errors.
 
  Any pointers on the use of a configuration file for a CDROM also
  appreciated
  - such as any problems I could encounter with security etc
 
  Thanks in advance
 
  Paul
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To 

Re: [Flashcoders] Flex vs. Laszlo

2007-01-30 Thread Matthias Dittgen

Nicolas is developer and promotions team for haXe all in one. ;-)

But haXe alone can't compete with Laszlo and Flex in some aspects. For
example, just because these frameworks offer a XUL like attempt for
fast developing GUIs. What I mean is, that both are using a
declarative, xml-based programming language (MXML or LZX) sometimes
mixed with some ECMA-Scripts. Of course Flex generates AS classes out
of the MXML before compiling, but you don't have to bother about that
all the time while you write nice apps.

I have made a comparison of several workflows/frameworks (Laszlo VS.
Flex (1.5 at that time) VS. Flash IDE VS. FAMES VS
DHTML/XmlHttpRequest (AJAX)) in my diploma thesis, which is written in
german. The biggest problem in comparing such workflow/frameworks is
in setting up nice criteria in which one can compare them. I wrote the
same calendar application using all of these workflows/frameworks.
Interesting for me: I finished the application fastest with
OpenLaszlo, which I had never used before.

Don't get me wrong each workflow (also haXe) has its advantages and
disadvantages. It depends on your problem/project definition.

Matthias



2007/1/30, Nicolas Cannasse [EMAIL PROTECTED]:

 At this point, the only runtime Flex 2 targets is Flash Player 9/AS3.
 Laszlo targets FP7/AS2, plus Ajax/DHTML and soon Java ME.  I believe Laszlo
 shows future development targeting FP9/AS3.


BTW there's also haXe which targets FP6-7-8 and FP9 as well.
http://haxe.org

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

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


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

2007-01-30 Thread eka

Hello :)

I use Eden (Ecmascript data exchange notation) write by zwetan to creates
config in my application.

For the moment the Eden page project is down in http://www.burrrn.com/ but
you can try this library in my opensource framework with a little version :

VEGAS my openSource project : http://vegas.riaforge.org/

1 - install the sources (SSAS for Flash Media Server, or AS2 or AS3 in the
src directories.

Example : the AS2 version in the Subversion :

The buRRRn package based on VEGAS and not Core2 :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/buRRRn/eden/
The config and localization tools in my extension ASGard :

  - config :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/config/ (you can
find a JSON config tool too...)
 - localization :
http://svn.riaforge.org/vegas/AS2/trunk/bin/test/asgard/system/(Localization
02 -
Eden.fla)

For me Eden is the best with all primitives and you can instanciate your
custom class etc... I wait the final documentation of this framework.

You can download for the moment the original ASTuce (unit tests) , Core2
(extends the core objects in JS, AS2, AS1, SSAS etc... with ecmascript
tools), and Eden write by zwetan in this web page :
http://download.burrrn.com/

EKA+ :)

2007/1/30, Paul Steven [EMAIL PROTECTED]:


Thanks Ian for the useful advice. I would appreciate your thoughts and
indeed the thoughts of anyone else,  on my use of a config file for this
project.

Not sure if a config file is the best solution for what I am doing.
Basically the CDROM consists of 60 separate pages / sections. I have just
used 60 labels on the timeline for these

e.g

1_1
1_2
2_1
2_2
Etc

I have not created separate swf files for each of the 60 sections as the
content of most sections is simply a video clip or one sentence of text. I
therefore thought it was more manageable to keep all the sections within
one
flash movie. All video clips are external flv files.

I have also set up the navigation menu like this, with 60 labels.

The idea of using a config file is to set various things for each section
such as:

What video clip to play
The Page title
Which label of the navigation menu mc to display
Which buttons to display e.g forward / backward
Which label to navigate to when any button is clicked
Assign actions to visible buttons

etc

The idea of doing it this way is to prevent there being lots of code in
all
the 60 labels across the timeline.

Hence the configuration file would have details of what actions to take
upon
arriving at each of the 60 sections.

Does the above solution sound like the right way to go? Or can you suggest
a
better solution. The application is PC only and is being developed with
Flash 8.

Thanks

Paul





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 30 January 2007 08:27
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

We've had absolutely no problem reading text files from CD-ROM using Flash
8. :-)

XML/JSON wouldn't be any faster to read in.

I'd choose XML if you had a much more complex configuration task that
needed
lots of nested config (unlikely unless you've got a huge sprawling app -
you
can handle most situations by choosing your key=value keynames
appropriately) or if your config involved chunks of (possibly unicode)
textual data.

I wouldn't use JSON for configuration as I find it far less readable -
it's
primarily a serialisation/data interchange format rather than a
configuration file format. Additionally, it ties you to a particular
implementation/data layout in your app; whereas if, for whatever reason,
you
wanted other apps to read your key/value pairs plain text file (for
example,
for patching or updating or simply cataloguing) then it's very
straightforward.

Cheers,
  Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 Hmm good point Ian.

 Any reason why people would use xml or json files rather than plain
text?
 Ease of editing, speed of loading etc?

 With regards security implications, just wanted to be sure there was no
 problem reading data from the CDROM as I am sure I read somewhere about
 some
 issue that arised with Flash 8.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
 Sent: 30 January 2007 08:08
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

 Um - surely there's a third option, which is plain text? It does depend
 what
 you're configuring, but our external configuration files look like
 java.properties files:

 language=en
 useDirectX=true

 etc. etc.

 We just read them in using LoadVars (overriding onData) and parse them.
 Very
 straightforward.

 Security implications etc. - well, that entirely depends what you're
 trying
 to protect against, and what info you're putting in the configuration
 file.
 In general, if the config file is on the CD itself, it's unchangeable,
so
 I
 

Re: [Flashcoders] Tooltip for disabled buttons: Ideas?

2007-01-30 Thread Stefan Thurnherr

Thanks Andy and Hans for sharing your solutions. I like both of them
and will implement one of them...not sure yet which one, though.
stefan.


On 1/26/07, Hans Wichman [EMAIL PROTECTED] wrote:

Hi,
we use a ButtonTooltipWrapper thingy.
Basicly you do:
new Tooltip (myButton, myTooltip, [hitArea])

it creates an empty movieclip, with the button as hitArea. All events that
are not triggered on this clip are used to show/hide tooltip and then
dispatched to lower lying button. Still tweaking it, but the basic principle
works ok for us.

greetz
JC


On 1/26/07, Andy Herrman [EMAIL PROTECTED] wrote:

 For the disabled state for our buttons we actually use a different movie
 clip.

 Basically, each button consists of a Button object and a Movie Clip
 with the image used for the disabled state.  When the button is
 disabled we hide the Button and show the MC, and when it's enabled we
 do the opposite.  Both the MC and the Button have the handlers for the
 tooltip.

   -Andy

 On 1/26/07, Stefan Thurnherr [EMAIL PROTECTED] wrote:
  Hello flashcoders,
 
  How did/would you implement showing a tooltip over a disabled button?
  The onRollOver/onRollOut events seem not to fire when a button is
  disabled. I see two solutions right now:
 
  1. Add an onMouseMove listener (within MyButton extends Button) and
  check whether _xmouse/_ymouse coincide with MyButton's area
  (x+width/y+height).
 
  2. Attach an additional MovieClip to every MyButton instance, set its
  depth to the top and its _alpha=0, and check for the
  onRollOver/onRollOut events on that MovieClip instance.
 
  Any thoughts on which one is better, or any other solutions?
 
  Thanks,
   stefan.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

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


RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
Just to clarify mixins and strategy are a bit different. One is more
structural while the other is more behavioral.

Also mixins aren't really considered a design pattern but it is made up of
composites, proxies / facades (all structural design patterns ) +
interfaces. They are used to emulate multiple inheritance. So something
could have functionality of say a MovieClip and a Sound Object.

The strategy design pattern is used to encapsulate interchangeable logic
(layout, validation, etc).

However, I think what you're really asking is more of an architectural
question so I would take a look at ARP and Cairngorm.

Cairngorm is labeled for Flex but can be easily adapted to Flash
development. Similarly ARP is thought of as being used for slides but can be
adapted to using MovieClips.

Just a note, Cairngorm is less prescriptive about how to structure your
views (which may or may not be a good thing depending on your disposition)
so if you're already pretty far a long in your development check out
Cairngorm

Cairngorm:
http://labs.adobe.com/wiki/index.php/Cairngorm

ARP:
http://www.osflash.org/ARP


If you want want something a bit more fine grained you can do a search on
MVP (Model View Presenter) or MVC (Model View Controller). Both are similar
but have different rules of communication and responsibilities.

-erik

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Ham
Sent: Monday, January 29, 2007 11:40 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

OK, this is helping a lot. And Steven I see what you mean, poor Flair  
is starting to look a little meager now.

In my app, I  have several different states. Each state sets itself  
up by initializing variables and drawing its various pieces, and the  
final piece is to subscribe various parts of the app to events that  
happen in other parts. So in one state I have methods like:

onRoomObjectPress()
onRoomObjectRelease()

that are triggered by onPress and onRelease events in my object  
movieclips. These onSomething() methods contain the core logic of the  
app--code to resize clips or process values or what have you. This  
structure is good because I know where to look to track down where  
things happen, but its bad because sometimes a bunch of things are  
supposed to happen at once and those onSomething() methods get hairy.

So in this new mixin strategy (which does look a lot like Strategy,  
thanks James!), should I design my Snappable class to have methods  
that would map to movieclip events, such as:

startObjectDrag triggered by obj_mc.onPress
checkForSnaptriggered bysetInterval or onEnterFrame type of event,  
in this case onObjectDrag
stopObjectDrag  triggered byobj_mc.onRelease

Am I headed in the right direction?

Thank you again, this

OK
DAH

 The theory of mixins originated from multiple inheritance programming
 languages such as C++.

 So for example: Say you wanted to make an object dragable,  
 clickable and
 resizable. You would then create separate classes called: Dragable,
 Clickable and Resizable (common naming convention for a mixin).

 Then your base class would just inherit form those 3 classes.

 Since AS2 doesn't support multiple inheritances you can emulate a  
 mixin
 using interfaces and composed classes.

 For example:

 IClickable, IDragable, IResizable

 So then your AS2 class would say:

 Class MyClass extends Whatever implements IClickable, IDragable,  
 IResizable

 Those interfaces just specify what methods your class has to support.

 From there you could have a class (or a consolidated class)  
 implement that
 functionality

 private var clickable:Clickable = new Clickable();
 private var dragable:Dragable = new Dragable();
 private var resizeable:Resizeable = new Resizeable();

 from there you just forward / wire the appropriate methods to its
 corresponding instances.

 public function startResize()
 {
   this.resizeable.startResize();
 }

 Or for arguments:

 public function startResize()
 {
   this.resizeable.apply.(this.resizeable.startResize, arguments);
 }

 You could get even more fancy by externalizing those classes so  
 based on
 various rules you could pass in different resize logic, etc.

 Anyhow, hope that gets the gears turning. =)

 DISCLAIMER: Didn't spell check or test anything in the compiler so  
 maybe
 some typos. =)

 -erik


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of  
 David Ham
 Sent: Monday, January 29, 2007 7:12 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

 Anyhow I tend not to use decorators (matter of personal taste). I
 prefer to
 not Frankenstein an object at runtime and rather use mixins
 (composition +
 interfaces).

 Ah, thank you, now we are getting somewhere!

 Tell me about mixins. I have used EventDispatcher before, but I am
 unfamiliar with the theory behind 

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
Actually my definition of a mixin is very strict compared to a decorator; it
uses design by contract, composition and declares type:

Class ClassA implements IClassB, IClassC
{

private var classB:ClassB;
private var classC:ClassC;

private function classBMethod():Boolean{...};

private function classCMethod():Number{...};

}


-erik


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 12:09 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

On 1/29/07, David Ham [EMAIL PROTECTED] wrote:

 startObjectDrag triggered by obj_mc.onPress
 checkForSnaptriggered bysetInterval or onEnterFrame type of event,
 in this case onObjectDrag
 stopObjectDrag  triggered byobj_mc.onRelease

This looks more like the Broadcaster pattern or the Event Dispatcher
(a.k.a. Observer) pattern than Decorator.

(Also, it might be better to tie checkForSnap to mouseMove.)

Personally, I'm not a big fan of mix-ins because, well, they're kind
of sloppy. They involve tinkering with stuff that should be off-limits
(and is in AS3, I think). Using mix-ins, you could accidentally use a
non-function as a function. That can't happen if you stick to
strictly-typed programming.
-- 
T. Michael 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


[Flashcoders] Launch an application from CDROM based projector

2007-01-30 Thread Paul Steven
I am creating an application using Flash 8 (PC only) and need to launch an
application that is installed on the users hard drive. 

I think this can be fairly easily achieved using a third party app such as
Zinc.

However I need to do a bit more than just launch the application. I also
need to get this application to go to a certain exercise. Basically this
application consists of a series of exercises.

I was hoping I could simply pass a parameter to the executable but as I do
not know if this is at all possible or indeed what that parameter would be,
I think this may not be possible to do?

Anyone know if this is possible and how to go about it? 

Many thanks

Paul



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

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


AW: [Flashcoders] Re: IE6 problem with SWFAddress?

2007-01-30 Thread Peter Oliver Geller
Ok i´ll try it out,

thanks for help jason and steven :)

Cheers

Peter 

»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED] 
»» [mailto:[EMAIL PROTECTED] Im 
»» Auftrag von Steven Sacks | BLITZ
»» Gesendet: Dienstag, 30. Januar 2007 00:08
»» An: Flashcoders mailing list
»» Betreff: RE: [Flashcoders] Re: IE6 problem with SWFAddress?
»» 
»» Yes, mixing getURL and ExternalInterface causes problems 
»» with IE6 (and 7 to a lesser extent) when using SWFAddress.  
»» He talks about it on his site and there are also discussions 
»» on his forum, as well.  I didn't see them at first, either.  
»» It took me awhile to figure out why the site was behaving 
»» oddly because the class that I had that used getURL (an 
»» omniture tracking class) wasn't making getURL calls on my 
»» server but was on the client's server.  I didn't put the two 
»» together until I spent an afternoon chatting with Rostislov 
»» (the author of SWFAddress) and he asked me casually about 
»» whether I was using getURL somewhere else.
»» 
»» The solution is to use ExternalInterface instead of 
»» getURL(), which actually performs better anyway.
»» 
»» -Steven
»» ___
»» Flashcoders@chattyfig.figleaf.com
»» To change your subscription options or search the archive:
»» http://chattyfig.figleaf.com/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] File upload in flash

2007-01-30 Thread Claudio M. E. Bastos Iorio
Hi guys, I hope you can help me on this.
I need to add an upload file control inside a flash form, like the one in
html. I'm working with php and MySql in the backend. But I don't really know
how to add such a feature in flash.  Any help/links examples will be much
appreciated. 


___
Claudio M. E. Bastos Iorio 
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

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

2007-01-30 Thread Petro Bochan
Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give
all the info that you need.

Cheers,
Petro

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

2007-01-30 Thread Henry Cooke

Or FileReference, if you just want to save the file out on a server
somewhere..

h.

On 30/01/07, Petro Bochan [EMAIL PROTECTED] wrote:


Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give
all the info that you need.

Cheers,
Petro

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

2007-01-30 Thread Claudio M. E. Bastos Iorio
Thanks for your help Petro and Henry!
This class is for AS3 on Flex2, right?
I'm working with Flash 8 and AS2. The loader class that I found in AS2 seems
to allow me retrieve content from a remote location and pull it into a
Flash application (from help) Is the same class?.
And Henry, yes, I need to save the file in the server.
Looking for Filereference class I found this link:
http://www.flash-db.com/Tutorials/upload/upFiles.php . I think that's what I
needed. Thanks for your help!


___
Claudio M. E. Bastos Iorio 
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petro Bochan
Sent: Tuesday, January 30, 2007 8:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] File upload in flash

Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give all
the info that you need.

Cheers,
Petro

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

2007-01-30 Thread PR Durand

Hi list

Since player 8 is out, it seems to be impossible to make a fluent 
animation if there are more frames than pixels, i.e a simple 100 pix 
tween on _x in 50 frames

It's not really the player, but the compiler.
see example here, it's the same code, juste changed the export player 
version, and it's not related on the textField, as the result is the 
same with a vector or bitmap movieClip:

http://www.foolarts.com/lab/testAnimFP7.swf
http://www.foolarts.com/lab/testAnimFP8.swf

is there a way to have the FP7-like result, exporting in FP8 ?

thx
PiR




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

2007-01-30 Thread Zeh Fernando

 Since player 8 is out, it seems to be impossible to make a fluent
 animation if there are more frames than pixels, i.e a simple 100 pix
 tween on _x in 50 frames
 It's not really the player, but the compiler.
 see example here, it's the same code, juste changed the export player
 version, and it's not related on the textField, as the result is the
 same with a vector or bitmap movieClip:
 http://www.foolarts.com/lab/testAnimFP7.swf
 http://www.foolarts.com/lab/testAnimFP8.swf
 is there a way to have the FP7-like result, exporting in FP8 ?

This is because of the textfield rendering mode. You're probably using 
antialias for readability, which provides better visual rendering but 
which has a necessary snap to pixels. Switch to antialias for 
animation for this textfield, which is equivalent to Flash 7- text 
rendering and takes pixel fractions into account when rendering the text 
antialias.



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] Flash 9 Public Alpha stability issues

2007-01-30 Thread Frederico Ferro Schuh

That's odd, but good to hear that not everyone is having problems. Maybe
with some tweaking I may be able to avoid these crashes.

Do you have any huge images in your project?
I have a 1600x1200 jpeg image that represents the track. Maybe that has
something to do with the crashes, since I don't remember having any problems
when I was just prototyping the car's physics with no assets at all.

I'm also using references to assets in other Fla files, but I don't thing
those should be causing any problems, since Flash just copies them over into
the main Fla file.

On 1/29/07, James Marsden [EMAIL PROTECTED] wrote:


Hey Frederico,

I'm using 9 Alpha for a large game project, and the only problems I've
had have been with my code. It seems just as stable as the Flash 8 IDE.

There are a couple of things I'm not keen on though, and that's the
inability to assign more than one MC to any one Class (which has been
addressed in the Flash 9 IDE) and a 'cannot write to read only property'
error when adding and manipulating display objects whose classes are
loaded from child swfs...

J

Frederico Ferro Schuh wrote:

 Is anyone else developing with Flash 9 Alpha? Maybe you're also having
 such
 crash problems, but were able to find workarounds or know of any common
 pitfalls that can cause these problems? I'd appreciate any help, as I'd
 really like to know if it's too risky to go for developing a full
 product in
 this version of flash, or if it's better to just stay in the
experimental
 phase and wait a little more. But we need the Flash IDE to develop our
 games, it's just not possible to do it with Flex alone. If Flash 9
 alpha is
 really that unstable, we'll just have to keep developing in AS2 for a
 little
 longer.

 Thanks.



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

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





--
Frederico Ferro Schuh
ICQ 20486081
MSN [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] Flash 9 Public Alpha stability issues

2007-01-30 Thread James Marsden

Hey,

We have some enormous images, but we're chopping them up into 256px 
squares and tiling them with a scrolling engine, as the game would chug 
badly on lesser graphics cards throwing images of that size around.


J

Frederico Ferro Schuh wrote:

That's odd, but good to hear that not everyone is having problems. Maybe
with some tweaking I may be able to avoid these crashes.

Do you have any huge images in your project?
I have a 1600x1200 jpeg image that represents the track. Maybe that has
something to do with the crashes, since I don't remember having any 
problems

when I was just prototyping the car's physics with no assets at all.

I'm also using references to assets in other Fla files, but I don't thing
those should be causing any problems, since Flash just copies them 
over into

the main Fla file.

On 1/29/07, James Marsden [EMAIL PROTECTED] wrote:


Hey Frederico,

I'm using 9 Alpha for a large game project, and the only problems I've
had have been with my code. It seems just as stable as the Flash 8 IDE.

There are a couple of things I'm not keen on though, and that's the
inability to assign more than one MC to any one Class (which has been
addressed in the Flash 9 IDE) and a 'cannot write to read only property'
error when adding and manipulating display objects whose classes are
loaded from child swfs...

J

Frederico Ferro Schuh wrote:

 Is anyone else developing with Flash 9 Alpha? Maybe you're also having
 such
 crash problems, but were able to find workarounds or know of any 
common
 pitfalls that can cause these problems? I'd appreciate any help, as 
I'd

 really like to know if it's too risky to go for developing a full
 product in
 this version of flash, or if it's better to just stay in the
experimental
 phase and wait a little more. But we need the Flash IDE to develop our
 games, it's just not possible to do it with Flex alone. If Flash 9
 alpha is
 really that unstable, we'll just have to keep developing in AS2 for a
 little
 longer.

 Thanks.



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

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






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

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


[Flashcoders] AS DTD validation

2007-01-30 Thread Oliver Müller

Hi,

is there any AS2/3 class or script that performs DTD validation on a
xml-document?

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

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


Re: [Flashcoders] File upload in flash

2007-01-30 Thread Henry Cooke

Hmm. I don't think you want a Loader if you just want to pass the file
through (as opposed to loading its content *into* Flash) - if you're just
duplicating the functionality of an HTML file upload form element then
FileReference is definitely what you need - you give it a form catcher to
POST to, exactly the same as an HTML form. It's Flash 8/AS2.

There's a bunch of stuff in Flash's online help on it, or Googling about
throws up loads of relevant stuff, including the one at the always-excellent
Kirupa:
http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm

h.

On 30/01/07, Claudio M. E. Bastos Iorio [EMAIL PROTECTED] wrote:


Thanks for your help Petro and Henry!
This class is for AS3 on Flex2, right?
I'm working with Flash 8 and AS2. The loader class that I found in AS2
seems
to allow me retrieve content from a remote location and pull it into a
Flash application (from help) Is the same class?.
And Henry, yes, I need to save the file in the server.
Looking for Filereference class I found this link:
http://www.flash-db.com/Tutorials/upload/upFiles.php . I think that's what
I
needed. Thanks for your help!


___
Claudio M. E. Bastos Iorio
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petro
Bochan
Sent: Tuesday, January 30, 2007 8:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] File upload in flash

Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give
all
the info that you need.

Cheers,
Petro

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

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

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

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


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

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


[Flashcoders] Using drawing API to draw dotted lines?

2007-01-30 Thread Tom Jackson

quick request really, was wondering if anyone knows a way to use the
flash drawing api to create lines such as those seen when using the
line tool in the IDE, you have many options like dot length and gap
length, wavyness etc in the ide but only thickness from what I can
tell with the api. Anyway to duplicate this functionality?

thanks in advance guys
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Player 8 fluidity

2007-01-30 Thread PR Durand

hi Zeh
thx for answer, but at the end of my mail, I said that it isn't related 
to textfield, as the problem remains the same with a shape or bitmap 
inside a movieClip...

it seems that it's alaways moved on pixels...
++
PiR


Zeh Fernando a écrit :

 Since player 8 is out, it seems to be impossible to make a fluent
 animation if there are more frames than pixels, i.e a simple 100 pix
 tween on _x in 50 frames
 It's not really the player, but the compiler.
 see example here, it's the same code, juste changed the export player
 version, and it's not related on the textField, as the result is the
 same with a vector or bitmap movieClip:
 http://www.foolarts.com/lab/testAnimFP7.swf
 http://www.foolarts.com/lab/testAnimFP8.swf
 is there a way to have the FP7-like result, exporting in FP8 ?

This is because of the textfield rendering mode. You're probably using 
antialias for readability, which provides better visual rendering 
but which has a necessary snap to pixels. Switch to antialias for 
animation for this textfield, which is equivalent to Flash 7- text 
rendering and takes pixel fractions into account when rendering the 
text antialias.



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

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





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

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


Re: [Flashcoders] Launch an application from CDROM based projector

2007-01-30 Thread Shang

why not you try it in DOS commands first. You need to check what kind
of parameters the application supports . If the application does
support a parameter like -o filename, then you can write a bat file
and use fscommand to call it.

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

I am creating an application using Flash 8 (PC only) and need to launch an
application that is installed on the users hard drive.

I think this can be fairly easily achieved using a third party app such as
Zinc.

However I need to do a bit more than just launch the application. I also
need to get this application to go to a certain exercise. Basically this
application consists of a series of exercises.

I was hoping I could simply pass a parameter to the executable but as I do
not know if this is at all possible or indeed what that parameter would be,
I think this may not be possible to do?

Anyone know if this is possible and how to go about it?

Many thanks

Paul



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

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




--
/*
Bored, sometimes.
*/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Using drawing API to draw dotted lines?

2007-01-30 Thread Andy Herrman

well, you can always simulate a dotted line with multiple lines with
spaces between them.  I don't see any way to do it in the API, so you
may need to do it that way (and that may even be the way the IDE does
it, I don't know).

Doing some quick googling I came across this.  Maybe it'll help you:
http://www.flashguru.co.uk/drawing-api-enhancements/

  -Andy

On 1/30/07, Tom Jackson [EMAIL PROTECTED] wrote:

quick request really, was wondering if anyone knows a way to use the
flash drawing api to create lines such as those seen when using the
line tool in the IDE, you have many options like dot length and gap
length, wavyness etc in the ide but only thickness from what I can
tell with the api. Anyway to duplicate this functionality?

thanks in advance guys
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tooltip for disabled buttons: Ideas?

2007-01-30 Thread Shang

I have a third suggestion.

You don't need to set the button enabled=false, instead you create
your own parameter of tracking the status. when the button is
disabled, just set the useHandCursor to false.

onRollOver
if(btnEnabled) showRollOverEffect
else showToolTip

onRelease
if(btnEnabled) doReleaseFunction
else doNothing

On 1/30/07, Stefan Thurnherr [EMAIL PROTECTED] wrote:

Thanks Andy and Hans for sharing your solutions. I like both of them
and will implement one of them...not sure yet which one, though.
 stefan.


On 1/26/07, Hans Wichman [EMAIL PROTECTED] wrote:
 Hi,
 we use a ButtonTooltipWrapper thingy.
 Basicly you do:
 new Tooltip (myButton, myTooltip, [hitArea])

 it creates an empty movieclip, with the button as hitArea. All events that
 are not triggered on this clip are used to show/hide tooltip and then
 dispatched to lower lying button. Still tweaking it, but the basic principle
 works ok for us.

 greetz
 JC


 On 1/26/07, Andy Herrman [EMAIL PROTECTED] wrote:
 
  For the disabled state for our buttons we actually use a different movie
  clip.
 
  Basically, each button consists of a Button object and a Movie Clip
  with the image used for the disabled state.  When the button is
  disabled we hide the Button and show the MC, and when it's enabled we
  do the opposite.  Both the MC and the Button have the handlers for the
  tooltip.
 
-Andy
 
  On 1/26/07, Stefan Thurnherr [EMAIL PROTECTED] wrote:
   Hello flashcoders,
  
   How did/would you implement showing a tooltip over a disabled button?
   The onRollOver/onRollOut events seem not to fire when a button is
   disabled. I see two solutions right now:
  
   1. Add an onMouseMove listener (within MyButton extends Button) and
   check whether _xmouse/_ymouse coincide with MyButton's area
   (x+width/y+height).
  
   2. Attach an additional MovieClip to every MyButton instance, set its
   depth to the top and its _alpha=0, and check for the
   onRollOver/onRollOut events on that MovieClip instance.
  
   Any thoughts on which one is better, or any other solutions?
  
   Thanks,
stefan.
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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




--
/*
Bored, sometimes.
*/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSON vs. XML for CDROM configuration

2007-01-30 Thread Henry Cooke

I'd probably do that in XML, as what you're defining is a bunch of different
sections, each with a number of different properties. A simple text config
is more suitable for basics like screen size, basic interface text strings,
resource locations etc (IMHO)

I'd probably do it something like this:

section name=sectionName navLabel=[nav mc label]
titleSection Title/title
clip name=someMovie.flv
button name=forward display=yes
button name=backward display=no
etc...
/section

And repeat that section node a whole bunch of times for all your sections.
You'll need to read up on the XML class as to how to parse this in a useful
way for you though...

h.


On 30/01/07, Paul Steven [EMAIL PROTECTED] wrote:


Thanks Ian for the useful advice. I would appreciate your thoughts and
indeed the thoughts of anyone else,  on my use of a config file for this
project.

Not sure if a config file is the best solution for what I am doing.
Basically the CDROM consists of 60 separate pages / sections. I have just
used 60 labels on the timeline for these

e.g

1_1
1_2
2_1
2_2
Etc

I have not created separate swf files for each of the 60 sections as the
content of most sections is simply a video clip or one sentence of text. I
therefore thought it was more manageable to keep all the sections within
one
flash movie. All video clips are external flv files.

I have also set up the navigation menu like this, with 60 labels.

The idea of using a config file is to set various things for each section
such as:

What video clip to play
The Page title
Which label of the navigation menu mc to display
Which buttons to display e.g forward / backward
Which label to navigate to when any button is clicked
Assign actions to visible buttons

etc

The idea of doing it this way is to prevent there being lots of code in
all
the 60 labels across the timeline.

Hence the configuration file would have details of what actions to take
upon
arriving at each of the 60 sections.

Does the above solution sound like the right way to go? Or can you suggest
a
better solution. The application is PC only and is being developed with
Flash 8.

Thanks

Paul





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 30 January 2007 08:27
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

We've had absolutely no problem reading text files from CD-ROM using Flash
8. :-)

XML/JSON wouldn't be any faster to read in.

I'd choose XML if you had a much more complex configuration task that
needed
lots of nested config (unlikely unless you've got a huge sprawling app -
you
can handle most situations by choosing your key=value keynames
appropriately) or if your config involved chunks of (possibly unicode)
textual data.

I wouldn't use JSON for configuration as I find it far less readable -
it's
primarily a serialisation/data interchange format rather than a
configuration file format. Additionally, it ties you to a particular
implementation/data layout in your app; whereas if, for whatever reason,
you
wanted other apps to read your key/value pairs plain text file (for
example,
for patching or updating or simply cataloguing) then it's very
straightforward.

Cheers,
  Ian

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 Hmm good point Ian.

 Any reason why people would use xml or json files rather than plain
text?
 Ease of editing, speed of loading etc?

 With regards security implications, just wanted to be sure there was no
 problem reading data from the CDROM as I am sure I read somewhere about
 some
 issue that arised with Flash 8.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
 Sent: 30 January 2007 08:08
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] JSON vs. XML for CDROM configuration

 Um - surely there's a third option, which is plain text? It does depend
 what
 you're configuring, but our external configuration files look like
 java.properties files:

 language=en
 useDirectX=true

 etc. etc.

 We just read them in using LoadVars (overriding onData) and parse them.
 Very
 straightforward.

 Security implications etc. - well, that entirely depends what you're
 trying
 to protect against, and what info you're putting in the configuration
 file.
 In general, if the config file is on the CD itself, it's unchangeable,
so
 I
 don't see a huge issue?

 Unless I've got the wrong end of the stick and you're talking about
 configuring a CD-ROM app via a net connection (some sort of activation
 system) - in which case ignore me. :-)

 Ian

 On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:
 
  I am creating a CDROM application (Flash 8 PC only) and would like to
  control it with an external configuration file.
 
  From what I can see, I have a choice of a XML or JSON solution - can
  anyone
  recommend one over the other?
 
  Also if anyone has a link to a working version of JSON and JSONConfig,

Re: [Flashcoders] Using drawing API to draw dotted lines?

2007-01-30 Thread Tom Jackson

ah thanks for the googling andy, that dashTo class is perfect, thanks

On 30/01/07, Andy Herrman [EMAIL PROTECTED] wrote:

well, you can always simulate a dotted line with multiple lines with
spaces between them.  I don't see any way to do it in the API, so you
may need to do it that way (and that may even be the way the IDE does
it, I don't know).

Doing some quick googling I came across this.  Maybe it'll help you:
http://www.flashguru.co.uk/drawing-api-enhancements/

   -Andy

On 1/30/07, Tom Jackson [EMAIL PROTECTED] wrote:
 quick request really, was wondering if anyone knows a way to use the
 flash drawing api to create lines such as those seen when using the
 line tool in the IDE, you have many options like dot length and gap
 length, wavyness etc in the ide but only thickness from what I can
 tell with the api. Anyway to duplicate this functionality?

 thanks in advance guys
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Player 8 fluidity

2007-01-30 Thread Zeh Fernando
The same can occur with bitmaps because of the different way the players 
treat bitmap smoothing - Flash 8+ actually respects the smoothing 
property from the image (on the library) while Flash 7- depends on your 
global _quality settings first. So you might have to turn on the 
smoothing option on the library for the image you want.


Now, you say you have tested it with shapes, and this makes me 
intrigued. Do you have an example where shapes (not textfields, not 
bitmaps) are moving by 'pixel' positions only?



Zeh



hi Zeh
thx for answer, but at the end of my mail, I said that it isn't related 
to textfield, as the problem remains the same with a shape or bitmap 
inside a movieClip...

it seems that it's alaways moved on pixels...
++
PiR


Zeh Fernando a écrit :

 Since player 8 is out, it seems to be impossible to make a fluent
 animation if there are more frames than pixels, i.e a simple 100 pix
 tween on _x in 50 frames
 It's not really the player, but the compiler.
 see example here, it's the same code, juste changed the export player
 version, and it's not related on the textField, as the result is the
 same with a vector or bitmap movieClip:
 http://www.foolarts.com/lab/testAnimFP7.swf
 http://www.foolarts.com/lab/testAnimFP8.swf
 is there a way to have the FP7-like result, exporting in FP8 ?

This is because of the textfield rendering mode. You're probably using 
antialias for readability, which provides better visual rendering 
but which has a necessary snap to pixels. Switch to antialias for 
animation for this textfield, which is equivalent to Flash 7- text 
rendering and takes pixel fractions into account when rendering the 
text antialias.



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

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





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

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


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

2007-01-30 Thread Ravi Marella
Hi all,

This might be simple but I'm trying this from last 4 hours and got no
answer anywhere.

How can you open a window in full screen mode using JavaScript? I want
to open the same window in full screen mode, I mean with out using any
other window to launch this full screen window or any button to launch
it i.e. something to do with the onLoad event of the body tag.  Thanks
for replies in advance.

cheers,

Ravi 

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

2007-01-30 Thread David Brunswick
This is for a swf 
http://www.kirupa.com/developer/mx2004/fullscreen.htm 
and for a .exe add this to the first frame

fscommand(fullscreen, true);

David Brunswick
Senior Multimedia Developer/OLP Administrator
FedEx Customer Information Services
Customer Service Organizational Learning
901-434-6605
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Marella
Sent: Tuesday, January 30, 2007 9:37 AM
To: Flashcoders mailing list
Subject: [Flashcoders] full screen window

Hi all,

This might be simple but I'm trying this from last 4 hours and got no
answer anywhere.

How can you open a window in full screen mode using JavaScript? I want
to open the same window in full screen mode, I mean with out using any
other window to launch this full screen window or any button to launch
it i.e. something to do with the onLoad event of the body tag.  Thanks
for replies in advance.

cheers,

Ravi 

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

2007-01-30 Thread Danny Kodicek
  This might be simple but I'm trying this from last 4 hours 
 and got no answer anywhere.
 
 How can you open a window in full screen mode using 
 JavaScript? I want to open the same window in full screen 
 mode, I mean with out using any other window to launch this 
 full screen window or any button to launch it i.e. something 
 to do with the onLoad event of the body tag.  Thanks for 
 replies in advance.

Can't be done AFAIK. I'm pretty sure you have to launch a new window (which
is a good thing, as no one wants browsers to be able to resize themselves to
fullscreen)

Danny

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

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


RE: [Flashcoders] full screen window

2007-01-30 Thread David Brunswick
Or this

html
body
script language=JavaScript
!--
window.open (http://yahoo.com;, ,fullscreen=yes)
--
/script
/body
/html

David Brunswick
Senior Multimedia Developer/OLP Administrator
FedEx Customer Information Services
Customer Service Organizational Learning
901-434-6605
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Marella
Sent: Tuesday, January 30, 2007 9:37 AM
To: Flashcoders mailing list
Subject: [Flashcoders] full screen window

Hi all,

This might be simple but I'm trying this from last 4 hours and got no
answer anywhere.

How can you open a window in full screen mode using JavaScript? I want
to open the same window in full screen mode, I mean with out using any
other window to launch this full screen window or any button to launch
it i.e. something to do with the onLoad event of the body tag.  Thanks
for replies in advance.

cheers,

Ravi 

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

2007-01-30 Thread Henry Cooke

Ravi,
It's a tricky one, most modern browsers are specifically designed not to
allow you to size up to fullscreen onLoad, as it was being abused by
scammers and such.

http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_and_dimension_error_correction

Probably explains why you've been having trouble making it work ;)

Sorry to be the bearer of bad news...

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:


Hi all,

This might be simple but I'm trying this from last 4 hours and got no
answer anywhere.

How can you open a window in full screen mode using JavaScript? I want
to open the same window in full screen mode, I mean with out using any
other window to launch this full screen window or any button to launch
it i.e. something to do with the onLoad event of the body tag.  Thanks
for replies in advance.

cheers,

Ravi

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

2007-01-30 Thread Ravi Marella
I cant afford two windows as the window which I have to open will get
opened by a link on client's site which will just launch this window and
so if I use another window, it'll make two popups opening using a single
link which is not desired.
I got this code on net:
self.moveTo(0,0);  
self.resizeTo(screen.width,screen.height);
But this doesn't hide the standard buttons, address and status bar.

 


RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Tuesday, January 30, 2007 9:17 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] full screen window

  This might be simple but I'm trying this from last 4 hours 
 and got no answer anywhere.
 
 How can you open a window in full screen mode using 
 JavaScript? I want to open the same window in full screen 
 mode, I mean with out using any other window to launch this 
 full screen window or any button to launch it i.e. something 
 to do with the onLoad event of the body tag.  Thanks for 
 replies in advance.

Can't be done AFAIK. I'm pretty sure you have to launch a new window
(which
is a good thing, as no one wants browsers to be able to resize
themselves to
fullscreen)

Danny

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

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

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


RE: [Flashcoders] full screen window

2007-01-30 Thread Ravi Marella


Then...can we atleast hide the status bar/address bar and other standard
buttons of the same window?

RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: Tuesday, January 30, 2007 9:20 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] full screen window

Ravi,
It's a tricky one, most modern browsers are specifically designed not to
allow you to size up to fullscreen onLoad, as it was being abused by
scammers and such.

http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_an
d_dimension_error_correction

Probably explains why you've been having trouble making it work ;)

Sorry to be the bearer of bad news...

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:

 Hi all,

 This might be simple but I'm trying this from last 4 hours and got no
 answer anywhere.

 How can you open a window in full screen mode using JavaScript? I want
 to open the same window in full screen mode, I mean with out using any
 other window to launch this full screen window or any button to launch
 it i.e. something to do with the onLoad event of the body tag.  Thanks
 for replies in advance.

 cheers,

 Ravi

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

2007-01-30 Thread eric dolecki

http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

- ericd.

On 1/30/07, Ravi Marella [EMAIL PROTECTED] wrote:




Then...can we atleast hide the status bar/address bar and other standard
buttons of the same window?

RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: Tuesday, January 30, 2007 9:20 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] full screen window

Ravi,
It's a tricky one, most modern browsers are specifically designed not to
allow you to size up to fullscreen onLoad, as it was being abused by
scammers and such.

http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_an
d_dimension_error_correction

Probably explains why you've been having trouble making it work ;)

Sorry to be the bearer of bad news...

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:

 Hi all,

 This might be simple but I'm trying this from last 4 hours and got no
 answer anywhere.

 How can you open a window in full screen mode using JavaScript? I want
 to open the same window in full screen mode, I mean with out using any
 other window to launch this full screen window or any button to launch
 it i.e. something to do with the onLoad event of the body tag.  Thanks
 for replies in advance.

 cheers,

 Ravi

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





--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] full screen window

2007-01-30 Thread Henry Cooke

I'm no JavaScript coder, but I don't think you can change the properties of
an already open window.

Not sure though, Google about a bit, see what you can find..

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:




Then...can we atleast hide the status bar/address bar and other standard
buttons of the same window?

RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: Tuesday, January 30, 2007 9:20 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] full screen window

Ravi,
It's a tricky one, most modern browsers are specifically designed not to
allow you to size up to fullscreen onLoad, as it was being abused by
scammers and such.

http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_an
d_dimension_error_correction

Probably explains why you've been having trouble making it work ;)

Sorry to be the bearer of bad news...

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:

 Hi all,

 This might be simple but I'm trying this from last 4 hours and got no
 answer anywhere.

 How can you open a window in full screen mode using JavaScript? I want
 to open the same window in full screen mode, I mean with out using any
 other window to launch this full screen window or any button to launch
 it i.e. something to do with the onLoad event of the body tag.  Thanks
 for replies in advance.

 cheers,

 Ravi

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

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

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

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

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


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

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


RE: [Flashcoders] full screen window

2007-01-30 Thread David Brunswick
You state there is a link on a page which launches the window then use this

html
body
script
!--
function fullwin(){
window.open(yourswf.html,,fullscreen,scrollbars)
}
//--
/script


A HREF=javascript:onClick=fullwin() Minimize/A



/body
/html




David Brunswick
Senior Multimedia Developer/OLP Administrator
FedEx Customer Information Services
Customer Service Organizational Learning
901-434-6605
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Marella
Sent: Tuesday, January 30, 2007 9:58 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] full screen window



Then...can we atleast hide the status bar/address bar and other standard
buttons of the same window?

RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: Tuesday, January 30, 2007 9:20 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] full screen window

Ravi,
It's a tricky one, most modern browsers are specifically designed not to
allow you to size up to fullscreen onLoad, as it was being abused by
scammers and such.

http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_an
d_dimension_error_correction

Probably explains why you've been having trouble making it work ;)

Sorry to be the bearer of bad news...

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:

 Hi all,

 This might be simple but I'm trying this from last 4 hours and got no
 answer anywhere.

 How can you open a window in full screen mode using JavaScript? I want
 to open the same window in full screen mode, I mean with out using any
 other window to launch this full screen window or any button to launch
 it i.e. something to do with the onLoad event of the body tag.  Thanks
 for replies in advance.

 cheers,

 Ravi

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

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

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

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

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

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

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


Re: [Flashcoders] full screen window

2007-01-30 Thread Jah

i think this is still in the realm of techniques illegitimate designs
used in the early days of the web. additionally... you should probably
consider how many users won't return to your site bc you've messed
with thier primary browser settings, as most users might not have the
knowledge to turn all those things you're turning off, back on.

On 1/30/07, Ravi Marella [EMAIL PROTECTED] wrote:



Then...can we atleast hide the status bar/address bar and other standard
buttons of the same window?

RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: Tuesday, January 30, 2007 9:20 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] full screen window

Ravi,
It's a tricky one, most modern browsers are specifically designed not to
allow you to size up to fullscreen onLoad, as it was being abused by
scammers and such.

http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_an
d_dimension_error_correction

Probably explains why you've been having trouble making it work ;)

Sorry to be the bearer of bad news...

h.

On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:

 Hi all,

 This might be simple but I'm trying this from last 4 hours and got no
 answer anywhere.

 How can you open a window in full screen mode using JavaScript? I want
 to open the same window in full screen mode, I mean with out using any
 other window to launch this full screen window or any button to launch
 it i.e. something to do with the onLoad event of the body tag.  Thanks
 for replies in advance.

 cheers,

 Ravi

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

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

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

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

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


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

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


[Flashcoders] Job opportunity Montreal : Game Flash Programmeur AS2/AS3

2007-01-30 Thread Nicolas Lee
Tribal Nova is a company of development and exploitation of interactive
properties which works in close relationship to the industry of the
media and the entertainment. Our expertise is mainly on the design, the
production and the marketing of interactive products for children based
on the most popular TV series broadcasted worldwide.

 

With a team of programmers, you will share the responsibility of develop
environments and universe of plays which put in scene the favorite
televised characters of the young people (Stone, Toupy and Binoo, Spider
Riders, Di-Gata...)

 

Main tasks:

* To program environments of multi-media diffusion of contents with
Flash ActionScript 2.0 / 3.0

* To program modules of plays Flash

* To program Flex applications intended to the parents

* To take part in the integration of the various visual and sound
elements of the programmed applications

 

In the case or you would be interested by this offer, I invite you has
to take quickly contacts with me.

 

http://www.tribalnova.com http://www.tribalnova.com/  or job@

 

Nicolas Lee

Tribal Nova
(514) 598-0444 #208
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
www.tribalnova.com http://www.tribalnova.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] full screen window

2007-01-30 Thread Ravi Marella
I'll tell you the exact scenario I'm facing:
I'm making a course in flash MX which has to be uploaded on Client's
LMS. The course needs to be compatible with 800*600 screen resolution,
which we have achieved. but the client can't see the course completely
coz the toolbars are not hidden on the client's browser. So I'm trying
to launch the course in a fullscreen. I can do this using two windows
but just wanted to know if this can be done using a single window. if
this is not possible then either I've to add another page which will
make two popups or ask the client to F11 every time.


 


RaviKiran Marella



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jah
Sent: Tuesday, January 30, 2007 9:42 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] full screen window

i think this is still in the realm of techniques illegitimate designs
used in the early days of the web. additionally... you should probably
consider how many users won't return to your site bc you've messed
with thier primary browser settings, as most users might not have the
knowledge to turn all those things you're turning off, back on.

On 1/30/07, Ravi Marella [EMAIL PROTECTED] wrote:


 Then...can we atleast hide the status bar/address bar and other
standard
 buttons of the same window?

 RaviKiran Marella


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Henry
 Cooke
 Sent: Tuesday, January 30, 2007 9:20 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] full screen window

 Ravi,
 It's a tricky one, most modern browsers are specifically designed not
to
 allow you to size up to fullscreen onLoad, as it was being abused by
 scammers and such.


http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_an
 d_dimension_error_correction

 Probably explains why you've been having trouble making it work ;)

 Sorry to be the bearer of bad news...

 h.

 On 30/01/07, Ravi Marella [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  This might be simple but I'm trying this from last 4 hours and got
no
  answer anywhere.
 
  How can you open a window in full screen mode using JavaScript? I
want
  to open the same window in full screen mode, I mean with out using
any
  other window to launch this full screen window or any button to
launch
  it i.e. something to do with the onLoad event of the body tag.
Thanks
  for replies in advance.
 
  cheers,
 
  Ravi
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

2007-01-30 Thread David Ham
The best user experience would be two windows: have a launch page  
with a link that would open a new JavaScript child window, and tell  
the user that the course is going to open in fullscreen. Then you can  
control the size and properties of the window as much as you like,  
and the user doesn't get the surprise of  his/her browser opening way  
up unexpectedly.


OK
DAH


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

2007-01-30 Thread Cortlandt Winters

Warning William ... Brain Dump in Progress...

First I want to mention that I try not to compare them too much on email
lists because what invariably happens is that somebody somewhere reads the
post,  takes a line or two out of context and it becomes overemphasized. Or
somebody compiles all the comparison posts into a horribly simplified and
misleading table and posts it somewhere for managers to use instead of
giving their developers the time to evaluate the options for themselves.

I do think it's appropriate to compare them a little bit here as methods of
flash coding and I do want to offer my summary of current thoughts for
fellow flash developers who are thinking of trying them out. But anybody who
reads this, please consider it light conversation. Like Matthias, I've spent
a lot of time now with them both and think that it really comes down to your
criteria more than anything else. I can see a lot of reasons why even the
same company might use one instead of another on different projects and I'm
certain to miss some of the important points of comparison. I'm interested
in Haxe also, but focus on Flash, Flex and Laszlo because I'm a contractor
in a small city, so a lot of work seems to pop up in mid project, when the
language choice has been made long ago and they need an extra set of hands
or help with a problem.

I should mention that I have less experience with Flex than I do with Flash
or Laszlo, and more with Flex 1 than 2, though I've spent 2 months now
trying to catch up with Flex2.

In general, I prefer them both over Flash for projects where you have more
than one person, but for small programs I think it's quicker to do them in
Flash and they both benefit from Flash as a prototype tool and benefit from
swf vector assets guiding the design, even if you are going to use the
drawing api to draw out the images.

The things that I love about Laszlo and Flex are their maintainability and
how they scale to larger applications and more people. These are the same. I
love the declarative nature of the xml tags, but find xml itself to be a bit
clunky and would be curious to see what declarative layout features in a
language like Haxe might look like. It will also be interesting to see what
Flash 9 does for components and layout.

Language Features: States, Binding, Constraints, Animators
These are all very similar since Flex2. In general, Laszlo's syntax is more
terse and Flex's is more formal. Things happen automatically for you in Lzx
that you have to explicitly type in with mxml. Personally I like the terser
syntax of Laszlo, but realize that Flex's more formal style; which reminds
me of taking my medicine, has some advantages. A good example for comparison
here is the repeaters. With Flex you need to embed things in a repeater
component. Laszlo's views automatically replicate when the view is bound to
more than one data node. In general, the lzx way is nicer, but what do you
do when you want to explicitly reference one of the replicated views after
the fact to do some manipulation? You need to know what's happening behind
the scenes and know that an array of clones has been created for you; that
you can use the array to reference them. Something like that tripped up a
friend of mine when he was learning lzx. It's nice to have things happen for
you invisibly, but it raises the stakes that you know what is happening
behind the scenes. Similarly a new coder given the equivalent code written
in the two languages would have the name of the repeater to go from to look
up what is happening, so there is some benefit to being explicit from the
start - and this probably enables some speed optimization in Flex - it just
ends up also being much more verbose, which gets old.

E4x and Regular expressions are two really nice language features Flex has
at this point that Lzx doesn't. But at some point in the future those will
be incorporated into lzx as well.

Flash Player Features:Drawing Api, Video, Sound, Printing, Fonts and Text
Formatting
This is a mixed bag, but is generally in Flex's favor over both Laszlo and
Flash in that Flex and As3 fixed and improved some fundamentals that laszlo
hasn't incorporated yet. A big one is text formatting. Like with Haxe, the
actionscript api's are still available to you with Laszlo, but in most cases
they've wrapped up functionality into their own classes. In many cases there
is some benefit to this as it allowed them to fix things that were
fundamentally wrong with the early versions of the flash player, but now
that everything seems to work, it does potentially become tougher to track
down problems because you have two layers instead of one to look at. On rare
occasions you still need to actually use actionscript to access some of
these features.

Components
The Out of the Box Lzx components are generally good, but not quite as
good as the Flex ones. I don't think they look as nice, and a few of them
are slower than their Flex counterparts, though I've yet to see a 

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread T. Michael Keesey

How is this any different from a Decorator/Wrapper? Looks like a
double decorator.

On 1/30/07, Erik Bianchi [EMAIL PROTECTED] wrote:

Actually my definition of a mixin is very strict compared to a decorator; it
uses design by contract, composition and declares type:

Class ClassA implements IClassB, IClassC
{

private var classB:ClassB;
private var classC:ClassC;

private function classBMethod():Boolean{...};

private function classCMethod():Number{...};

}


-erik


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 12:09 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

On 1/29/07, David Ham [EMAIL PROTECTED] wrote:

 startObjectDrag triggered by obj_mc.onPress
 checkForSnaptriggered bysetInterval or onEnterFrame type of event,
 in this case onObjectDrag
 stopObjectDrag  triggered byobj_mc.onRelease

This looks more like the Broadcaster pattern or the Event Dispatcher
(a.k.a. Observer) pattern than Decorator.

(Also, it might be better to tie checkForSnap to mouseMove.)

Personally, I'm not a big fan of mix-ins because, well, they're kind
of sloppy. They involve tinkering with stuff that should be off-limits
(and is in AS3, I think). Using mix-ins, you could accidentally use a
non-function as a function. That can't happen if you stick to
strictly-typed programming.
--
T. Michael 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




--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Cannot Access Superclass Static Var from Subclass in FLA

2007-01-30 Thread msgboards
Hi all. It's been a LONG time since I've posted and now I need your help
again.

I have come across something that to me doesn't seem correct and I don't
know why things are behaving this way. I have 2 classes, one a subclass of
the other. Both have public static variables (AS2.0 Flash 7).

class mypackage.Fruit {
public static var COLOR:Number = 0;
}

class mypackage.Orange extends mypackage.Fruit {
   public static var SEEDS:Number = 0;
}

Now in the Orange class or any other class that needs to use Orange. The
following code: Orange.COLOR returns 0.

import mypackage.Orange;
class Table {
   public function Table() {
  trace(Orange.COLOR:  + Orange.COLOR); // outputs 0
   }
}

Things change when this code is applied to the timeline:

Table.fla
import mypackage.Orange;
trace(Orange.COLOR:  + Orange.COLOR); // outputs undefined
trace(Orange.SEEDS:  + Orange.SEEDS); // outputs 0

Tracing Orange.COLOR gives me undefined. But if I import mypackage.Fruit.
Fruit.COLOR traces out 0.

Table.fla
import mypackage.Fruit;
trace(Fruit.COLOR:  + Fruit.COLOR); // outputs 0

Can someone shed some light on why in an FLA that the subclass (in this
case Orange) cannot access its super class static variables
(Orange.COLOR)?

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

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


[Flashcoders] Re: full screen window

2007-01-30 Thread Dan Styles

script language=JavaScript
function fullScreen(theURL) {window.open(theURL, '', 'fullscreen=yes,
scrollbars=auto');
/script
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] (AS3.0) new TextField -- what is wrong?

2007-01-30 Thread John Mueller

Johannes,

at a minimum  the following attributes need to be set for your text field:

[textfield instance].html
[textfield instance].wordwrap
[textfield instance].multiline

'wordwrap' is necessary unless you also include tags like br within your 
text.


jm

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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

2007-01-30 Thread John Mueller

Cladio,

perhaps it is the FileReference class you need.. its in the Help file..used 
to upload/download files from the server...


x



From: Claudio M. E. Bastos Iorio [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] File upload in flash
Date: Tue, 30 Jan 2007 08:35:16 -0300

Thanks for your help Petro and Henry!
This class is for AS3 on Flex2, right?
I'm working with Flash 8 and AS2. The loader class that I found in AS2 
seems

to allow me retrieve content from a remote location and pull it into a
Flash application (from help) Is the same class?.
And Henry, yes, I need to save the file in the server.
Looking for Filereference class I found this link:
http://www.flash-db.com/Tutorials/upload/upFiles.php . I think that's what 
I

needed. Thanks for your help!


___
Claudio M. E. Bastos Iorio
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petro 
Bochan

Sent: Tuesday, January 30, 2007 8:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] File upload in flash

Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give 
all

the info that you need.

Cheers,
Petro

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


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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

2007-01-30 Thread Paul Steven
I have a flash 8 movie that is composed of 60 sections and hence there are
60 labels.

Some of these sections include a video clip playing and I have used the
Flash 8 FLVPlybk component.

What I would like to do is have this on stage in the correct position and
then hide or remove it for sections that do not have an associated video
clip.

I have tried the following with no joy where my_FLVPlybk is the instance
name:

my_FLVPlybk._visible = false;
my_FLVPlybk.contentPath = ;

I would appreciate any advice on how to remove the video for sections that
do not have video.

For sections that do have a video I am setting the content path as follows:

my_FLVPlybk.contentPath = media/video/1_0.flv;

Thanks in advance

Paul

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

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


Re: [Flashcoders] Remove / Hide a video component

2007-01-30 Thread Mick G

I just did a quick test and dragged a component on stage and set
myvid._visible = false;  and it seemed to hide the component just fine

Failing that you could always change it's x or y position to somewhere off
stage like
myvid._x = -1000



On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:


I have a flash 8 movie that is composed of 60 sections and hence there are
60 labels.

Some of these sections include a video clip playing and I have used the
Flash 8 FLVPlybk component.

What I would like to do is have this on stage in the correct position and
then hide or remove it for sections that do not have an associated video
clip.

I have tried the following with no joy where my_FLVPlybk is the instance
name:

my_FLVPlybk._visible = false;
my_FLVPlybk.contentPath = ;

I would appreciate any advice on how to remove the video for sections that
do not have video.

For sections that do have a video I am setting the content path as
follows:

my_FLVPlybk.contentPath = media/video/1_0.flv;

Thanks in advance

Paul

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

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


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

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


RE: [Flashcoders] Launch an application from CDROM based projector

2007-01-30 Thread Alain Rousseau
You cannot send parameters from fscommand to the bat file. Allready tried
once to no avail. It is a security feature If I remember right my readings
on the subject. Zinc would be a better option than fscommand. Or if you want
to avoid Zinc, use fscommand to call a bat file that has all the parameters
inside it. Usually you can just open de needed file with the bat file, and
the System will find the proper app to open it if it's defined in the
Registry.

HTH

Alain 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shang
Sent: 30 janvier 2007 09:55
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Launch an application from CDROM based projector

why not you try it in DOS commands first. You need to check what kind of
parameters the application supports . If the application does support a
parameter like -o filename, then you can write a bat file and use
fscommand to call it.

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:
 I am creating an application using Flash 8 (PC only) and need to 
 launch an application that is installed on the users hard drive.

 I think this can be fairly easily achieved using a third party app 
 such as Zinc.

 However I need to do a bit more than just launch the application. I 
 also need to get this application to go to a certain exercise. 
 Basically this application consists of a series of exercises.

 I was hoping I could simply pass a parameter to the executable but as 
 I do not know if this is at all possible or indeed what that parameter 
 would be, I think this may not be possible to do?

 Anyone know if this is possible and how to go about it?

 Many thanks

 Paul



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

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



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

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.17.15/659 - Release Date: 2007-01-30
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.17.15/659 - Release Date: 2007-01-30
 

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

2007-01-30 Thread Paul Steven
Thanks - yeah you are right, I was mistaken that the video was still there
as I had a black overlay movie clip the same size as the video on a higher
layer.

However I notice that even when the video component is not visible, the
video still plays - so if a user navigates to a section with no video, I can
still hear the video playing. I guess I could just stop the video, but I
wondered if there is a better solution.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mick G
Sent: 30 January 2007 18:07
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Remove / Hide a video component

I just did a quick test and dragged a component on stage and set
myvid._visible = false;  and it seemed to hide the component just fine

Failing that you could always change it's x or y position to somewhere off
stage like
myvid._x = -1000



On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 I have a flash 8 movie that is composed of 60 sections and hence there are
 60 labels.

 Some of these sections include a video clip playing and I have used the
 Flash 8 FLVPlybk component.

 What I would like to do is have this on stage in the correct position and
 then hide or remove it for sections that do not have an associated video
 clip.

 I have tried the following with no joy where my_FLVPlybk is the instance
 name:

 my_FLVPlybk._visible = false;
 my_FLVPlybk.contentPath = ;

 I would appreciate any advice on how to remove the video for sections that
 do not have video.

 For sections that do have a video I am setting the content path as
 follows:

 my_FLVPlybk.contentPath = media/video/1_0.flv;

 Thanks in advance

 Paul

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

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

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Launch an application from CDROM based projector

2007-01-30 Thread Cortlandt Winters

Hi Paul,

I know that swf studio has a shell object that allows you to call an execute
function and pass it parameters , but it's that application that will
determine what it can receive. Generally if you launch an application with
parameters after the app name they will get sent to the app, but whether
that app receives them and does anything with them or not is up to the
individual application.

Are you creating the exercise application or does it exist already?

-Cort


On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:


I am creating an application using Flash 8 (PC only) and need to launch an
application that is installed on the users hard drive.

I think this can be fairly easily achieved using a third party app such as
Zinc.

However I need to do a bit more than just launch the application. I also
need to get this application to go to a certain exercise. Basically this
application consists of a series of exercises.

I was hoping I could simply pass a parameter to the executable but as I do
not know if this is at all possible or indeed what that parameter would
be,
I think this may not be possible to do?

Anyone know if this is possible and how to go about it?

Many thanks

Paul



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

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


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

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


Re: [Flashcoders] Cannot Access Superclass Static Var from Subclass in FLA

2007-01-30 Thread ChrisRM
I was able to have someone test the sample code below and it worked fine
for them. I had their files sent to me but couldn't open the FLA. I'm
using MX2004 and I assume they have 8 or higher. I tested using the sample
that was sent and still had the same errors.

Has anyone heard of this before? Assuming this affects Flash 7 MX2004?

Thanks.
Chris


 Hi all. It's been a LONG time since I've posted and now I need your help
 again.

 I have come across something that to me doesn't seem correct and I don't
 know why things are behaving this way. I have 2 classes, one a subclass of
 the other. Both have public static variables (AS2.0 Flash 7).

 class mypackage.Fruit {
 public static var COLOR:Number = 0;
 }

 class mypackage.Orange extends mypackage.Fruit {
public static var SEEDS:Number = 0;
 }

 Now in the Orange class or any other class that needs to use Orange. The
 following code: Orange.COLOR returns 0.

 import mypackage.Orange;
 class Table {
public function Table() {
   trace(Orange.COLOR:  + Orange.COLOR); // outputs 0
}
 }

 Things change when this code is applied to the timeline:

 Table.fla
 import mypackage.Orange;
 trace(Orange.COLOR:  + Orange.COLOR); // outputs undefined
 trace(Orange.SEEDS:  + Orange.SEEDS); // outputs 0

 Tracing Orange.COLOR gives me undefined. But if I import mypackage.Fruit.
 Fruit.COLOR traces out 0.

 Table.fla
 import mypackage.Fruit;
 trace(Fruit.COLOR:  + Fruit.COLOR); // outputs 0

 Can someone shed some light on why in an FLA that the subclass (in this
 case Orange) cannot access its super class static variables
 (Orange.COLOR)?

 Thanks.
 \m/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Launch an application from CDROM based projector

2007-01-30 Thread Paul Steven
Thanks Alain

Yes Zinc looks promising and has the necessary function. Just need to get
some info on the actual application I want to call and if it can accept
parameters.

Cheers

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alain
Rousseau
Sent: 30 January 2007 18:11
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Launch an application from CDROM based projector

You cannot send parameters from fscommand to the bat file. Allready tried
once to no avail. It is a security feature If I remember right my readings
on the subject. Zinc would be a better option than fscommand. Or if you want
to avoid Zinc, use fscommand to call a bat file that has all the parameters
inside it. Usually you can just open de needed file with the bat file, and
the System will find the proper app to open it if it's defined in the
Registry.

HTH

Alain 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shang
Sent: 30 janvier 2007 09:55
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Launch an application from CDROM based projector

why not you try it in DOS commands first. You need to check what kind of
parameters the application supports . If the application does support a
parameter like -o filename, then you can write a bat file and use
fscommand to call it.

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:
 I am creating an application using Flash 8 (PC only) and need to 
 launch an application that is installed on the users hard drive.

 I think this can be fairly easily achieved using a third party app 
 such as Zinc.

 However I need to do a bit more than just launch the application. I 
 also need to get this application to go to a certain exercise. 
 Basically this application consists of a series of exercises.

 I was hoping I could simply pass a parameter to the executable but as 
 I do not know if this is at all possible or indeed what that parameter 
 would be, I think this may not be possible to do?

 Anyone know if this is possible and how to go about it?

 Many thanks

 Paul



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

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



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

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.17.15/659 - Release Date: 2007-01-30
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.17.15/659 - Release Date: 2007-01-30
 

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

2007-01-30 Thread John Dowdell

Frederico Ferro Schuh wrote:

Do you have any huge images in your project?
I have a 1600x1200 jpeg image that represents the track. Maybe that has
something to do with the crashes, since I don't remember having any 
problems

when I was just prototyping the car's physics with no assets at all.


That sounds like a reasonable candidate... when decompressed into 
working memory that's about 6 megabytes, and the sudden memory request 
could destabilize a browser or system.


I realize that this is an intermittent symptom on that configuration, 
but if you temporarily replace the large image with a much smaller one, 
then does your mean time between failures suddenly decrease...?


jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Launch an application from CDROM based projector

2007-01-30 Thread Paul Steven
Thanks Cort - the application is one that exists already. I have emailed the
developers and fingers crossed the application accepts parameters.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cortlandt
Winters
Sent: 30 January 2007 18:31
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Launch an application from CDROM based projector

Hi Paul,

I know that swf studio has a shell object that allows you to call an execute
function and pass it parameters , but it's that application that will
determine what it can receive. Generally if you launch an application with
parameters after the app name they will get sent to the app, but whether
that app receives them and does anything with them or not is up to the
individual application.

Are you creating the exercise application or does it exist already?

-Cort


On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:

 I am creating an application using Flash 8 (PC only) and need to launch an
 application that is installed on the users hard drive.

 I think this can be fairly easily achieved using a third party app such as
 Zinc.

 However I need to do a bit more than just launch the application. I also
 need to get this application to go to a certain exercise. Basically this
 application consists of a series of exercises.

 I was hoping I could simply pass a parameter to the executable but as I do
 not know if this is at all possible or indeed what that parameter would
 be,
 I think this may not be possible to do?

 Anyone know if this is possible and how to go about it?

 Many thanks

 Paul



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

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

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Launch an application from CDROM based projector

2007-01-30 Thread Ron Wheeler
If you are just trying to run a Flash application and get it to read 
parameters from a file, you can use the projector that comes with flash 
and have it read an XML file or a text file from the CD or hard disk or 
a server.


Sometimes we have a small text file that tells our projector application 
what the client name is and where to find the top level XML files that 
contains the index into the rest of the XML files that contains the rest 
of the data. This helps to get the application to startup quickly 
without making the user wait for all of the data to load.


We have built an eLearning delivery system and a stand-alone 
database/search engine with just the projector that comes with Flash.


You can use a .bat file to write into the text file and then start your 
application if you want to use shortcuts to select what the text file says.


echo exercise1.xml startup.bat
myflashapp.exe

myflashapp.exe is your projector file and it reads startup.bat.


Ron

Alain Rousseau wrote:

You cannot send parameters from fscommand to the bat file. Allready tried
once to no avail. It is a security feature If I remember right my readings
on the subject. Zinc would be a better option than fscommand. Or if you want
to avoid Zinc, use fscommand to call a bat file that has all the parameters
inside it. Usually you can just open de needed file with the bat file, and
the System will find the proper app to open it if it's defined in the
Registry.

HTH

Alain 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shang
Sent: 30 janvier 2007 09:55
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Launch an application from CDROM based projector

why not you try it in DOS commands first. You need to check what kind of
parameters the application supports . If the application does support a
parameter like -o filename, then you can write a bat file and use
fscommand to call it.

On 1/30/07, Paul Steven [EMAIL PROTECTED] wrote:
  
I am creating an application using Flash 8 (PC only) and need to 
launch an application that is installed on the users hard drive.


I think this can be fairly easily achieved using a third party app 
such as Zinc.


However I need to do a bit more than just launch the application. I 
also need to get this application to go to a certain exercise. 
Basically this application consists of a series of exercises.


I was hoping I could simply pass a parameter to the executable but as 
I do not know if this is at all possible or indeed what that parameter 
would be, I think this may not be possible to do?


Anyone know if this is possible and how to go about it?

Many thanks

Paul



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

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






  

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

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


Re: [Flashcoders] Cannot Access Superclass Static Var from Subclass in FLA

2007-01-30 Thread JOR
Static variables are not inherited by subclasses in ECMAScript therefore 
can not be referenced through derived class objects.  This differs from 
Java and C#.



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



[EMAIL PROTECTED] wrote:

Hi all. It's been a LONG time since I've posted and now I need your help
again.

I have come across something that to me doesn't seem correct and I don't
know why things are behaving this way. I have 2 classes, one a subclass of
the other. Both have public static variables (AS2.0 Flash 7).

class mypackage.Fruit {
public static var COLOR:Number = 0;
}

class mypackage.Orange extends mypackage.Fruit {
   public static var SEEDS:Number = 0;
}

Now in the Orange class or any other class that needs to use Orange. The
following code: Orange.COLOR returns 0.

import mypackage.Orange;
class Table {
   public function Table() {
  trace(Orange.COLOR:  + Orange.COLOR); // outputs 0
   }
}

Things change when this code is applied to the timeline:

Table.fla
import mypackage.Orange;
trace(Orange.COLOR:  + Orange.COLOR); // outputs undefined
trace(Orange.SEEDS:  + Orange.SEEDS); // outputs 0

Tracing Orange.COLOR gives me undefined. But if I import mypackage.Fruit.
Fruit.COLOR traces out 0.

Table.fla
import mypackage.Fruit;
trace(Fruit.COLOR:  + Fruit.COLOR); // outputs 0

Can someone shed some light on why in an FLA that the subclass (in this
case Orange) cannot access its super class static variables
(Orange.COLOR)?

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

2007-01-30 Thread Joey Rivera

If I understand correctly, you want users to click on a link that then opens
up a new window that is fullscreen and closes the previous window that is
now behind.

This is what we do:

script language=Javascript
function openWindow()
{   

window.open(**URL**,NewWindow,width=+screen.width+,height=+screen.he
ight+,left = 0,top =
0,fullscreen=yes,navigationbar=no,toolbar=no,location=no,directories=no,stat
us=no,menubar=no,scrollbars=no,resizable=no);  
closeWindow();
}

function closeWindow()
{
window.open('','_parent','');
window.opener = window;
window.close();
}
/script

After playing around with many options, this code seems to work well for us.
Remember, fullscreen is not really fullscreen anymore.  You still have some
browser chrome left behind and in IE 7 there's a bar left behind in
fullscreen that you can't remove by default.  So unless you plan to scale
your content, adjust the area size of your file accordingly.


Joey Rivera
Flash Developer
iLearn, Inc.
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Marella
Sent: Tuesday, January 30, 2007 10:56 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] full screen window

I cant afford two windows as the window which I have to open will get
opened by a link on client's site which will just launch this window and
so if I use another window, it'll make two popups opening using a single
link which is not desired.
I got this code on net:
self.moveTo(0,0);  
self.resizeTo(screen.width,screen.height);
But this doesn't hide the standard buttons, address and status bar.

 


RaviKiran Marella


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Tuesday, January 30, 2007 9:17 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] full screen window

  This might be simple but I'm trying this from last 4 hours 
 and got no answer anywhere.
 
 How can you open a window in full screen mode using 
 JavaScript? I want to open the same window in full screen 
 mode, I mean with out using any other window to launch this 
 full screen window or any button to launch it i.e. something 
 to do with the onLoad event of the body tag.  Thanks for 
 replies in advance.

Can't be done AFAIK. I'm pretty sure you have to launch a new window
(which
is a good thing, as no one wants browsers to be able to resize
themselves to
fullscreen)

Danny

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

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

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

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

2007-01-30 Thread John Dowdell
I'm not in a position to have an opinion (everyone would think I'm 
tainted ;-) , but I just made an interesting observation, when comparing 
the size of the mailing list for creating Laszlo, to that of the mailing 
list for using it:

http://www.openlaszlo.org/pipermail/laszlo-dev/
http://www.openlaszlo.org/pipermail/laszlo-user/

The mailing list volume among people *using* the system has dropped to 
44K in Jan07, compared to 149K in Jan06. Similar year-to-year declines 
are seen in prior months.


But the mailing list volume for *creating* the system itself has 
increased, to 330K in Jan 07, from 139K in Jan 06, with slightly smaller 
increases in the preceding three months.


When the two lists started, in late 2004, users outnumbered its 
developers by 2:1 or 3:1. During 2005 the two mailing lists grew to 
about equal conversational levels, but during 2006 the conversation 
about using the tool dropped to less than half that of writing the tool. 
During the past month, conversation about writing Laszlo was about eight 
times the level of people actually using it.



I don't know of a similar chart of conversational levels for 
FlashCoders, but there's one for FlexCoders:

http://tech.groups.yahoo.com/group/flexcoders/

Here, there were 3200 full messages in Jan07, compared to 1300 in Jan06. 
The highwater mark was in June-Aug 06 (after the release of Flex 2) with 
about 3600 separate messages per month. For the past three months 
conversational volume has been about twice that of the year-ago levels.



How people talk about something doesn't mean everything about a 
technology, but it's one indicator of how people regard things... take 
it for what it's worth. Pretty startling changes, though.


jd




--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Cannot Access Superclass Static Var from Subclass in FLA

2007-01-30 Thread ChrisRM
Thanks for the input James. I understand what you're saying but the fact
that accessing inherited static variables works in another class but not
on the timeline still gets me.

This solution was proposed to me and seems to work.

In Orange.as add:

private static var __proto__:Function = mypackage.Fruit;

Now, Orange.COLOR outputs the proper value.

Chris


 Static variables are not inherited by subclasses in ECMAScript therefore
 can not be referenced through derived class objects.  This differs from
 Java and C#.


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



 [EMAIL PROTECTED] wrote:
 Hi all. It's been a LONG time since I've posted and now I need your help
 again.

 I have come across something that to me doesn't seem correct and I don't
 know why things are behaving this way. I have 2 classes, one a subclass
 of
 the other. Both have public static variables (AS2.0 Flash 7).

 class mypackage.Fruit {
 public static var COLOR:Number = 0;
 }

 class mypackage.Orange extends mypackage.Fruit {
public static var SEEDS:Number = 0;
 }

 Now in the Orange class or any other class that needs to use Orange. The
 following code: Orange.COLOR returns 0.

 import mypackage.Orange;
 class Table {
public function Table() {
   trace(Orange.COLOR:  + Orange.COLOR); // outputs 0
}
 }

 Things change when this code is applied to the timeline:

 Table.fla
 import mypackage.Orange;
 trace(Orange.COLOR:  + Orange.COLOR); // outputs undefined
 trace(Orange.SEEDS:  + Orange.SEEDS); // outputs 0

 Tracing Orange.COLOR gives me undefined. But if I import
 mypackage.Fruit.
 Fruit.COLOR traces out 0.

 Table.fla
 import mypackage.Fruit;
 trace(Fruit.COLOR:  + Fruit.COLOR); // outputs 0

 Can someone shed some light on why in an FLA that the subclass (in this
 case Orange) cannot access its super class static variables
 (Orange.COLOR)?

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

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

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

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


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

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


[Flashcoders] FMS 2.0 Flash 8 Flv Player Continues Playback after Window Close

2007-01-30 Thread Jeff Harrington
Hi, the guys on the FMS list quasi-suggested I contact you guys as you might 
have encountered similar playback enigmae?  

I've been working around some strange errors in NetStream codes (InvalidArg) 
which prevents seeks from working sometimes and now I've created a player that 
just will not stop playing the stream until the complete browser - every window 
- it's in a child window - is closed.  I'm closing 3 windows to get the stream 
to stop playing.  

What can I do to insure that a browser window close will shut down the stream?  
I've created destroy methods in my AS but they don't seem to be getting called 
at least as long as the parent window is open.  The player is in a child 
window. 

Thanks for any suggestions...

Jeff Harrington
[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] Flex vs. Laszlo

2007-01-30 Thread Cortlandt Winters

Hi John,

Yes, I watch the traffic too and find it interesting, but not really
startling. I wouldn't read TOO much into it. Just so you know, at this time
last year Flashcoders traffic was about the same as Flexcoders, but now it's
about a quarter of Flexcoders traffic as well.

I would trust, too, that you really wouldn't be all THAT tainted, maybe in
this case poking a dog with a stick, but I think there is plenty of work to
go around and that such pokes are probably still pretty good natured.

There are a couple of reasons I'd suggest for what you've noticed.

The first is that because it's open source, most serious user's really
become developers at some point, which I think is a part of the juice of
open source. I think I've made more posts in dev than in user, even though
most of the time I'm really just a user.

More significantly, It's just that after some time the use becomes not
that interesting. You figured stuff out. I think the last time I put up a
traditional content question on Flashcoders was in the last millenium, but I
still develop flash applications and stay current with it and stay
subscribed. There just aren't as many questions(problems) to motivate
posting. Similar with Laszlo, there were a lot of questions when 3 was fresh
and new. Now, the questions and problems have more or less been answered,
the docs are more up to date and searches bring answers.

I look forward to flash9 and hope that it reinvigorates flashcoders, but
actionscript references are so much better now that that must be taking a
toll on the flash user lists as well. Once was, if you relied on the docs
you were doomed and needed the folk knowledge of the groups, but the as3
docs seem top notch and has an effect.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] - dynamic content for flash paper?

2007-01-30 Thread nelson ramirez

So I have this quiz app that at the end allows the user to print out their
answers with results plus some static content.
We normally use Flash paper for printing the static assets. I was wondering
if there's a way to incorporate the dynamic user answers into the static
flash paper print content.

Does anyone have any experience with this or perhaps a better approach?

thanks in advance,

-NR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FMS 2.0 Flash 8 Flv Player Continues Playback after Window Close

2007-01-30 Thread Andy Herrman

Could you put some javascript in the window the movie actually plays
in (you said it's a browser window, so I'm guessing javascript is
doable) that detects when the window is closed and sends a message to
the Flash movie?  The flash movie can then detect that and stop
playing?

That is weird that it's not stopping when the window is closed.  I
figured the Flash player would shut down the movie once the window
containing it is gone.

  -Andy

On 1/30/07, Jeff Harrington [EMAIL PROTECTED] wrote:

Hi, the guys on the FMS list quasi-suggested I contact you guys as you might 
have encountered similar playback enigmae?

I've been working around some strange errors in NetStream codes (InvalidArg) 
which prevents seeks from working sometimes and now I've created a player that 
just will not stop playing the stream until the complete browser - every window 
- it's in a child window - is closed.  I'm closing 3 windows to get the stream 
to stop playing.

What can I do to insure that a browser window close will shut down the stream?  
I've created destroy methods in my AS but they don't seem to be getting called 
at least as long as the parent window is open.  The player is in a child window.

Thanks for any suggestions...

Jeff Harrington
[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] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
A decorator is meant to be dynamic. It adds responsibilities to an object at
run time.

You take ComponentA and add methods to it on mouseclick, that's a decorator.

ComponentB is made up of ComponentC and ClassA, that's a composite.

My implementation of a mixin which I borrowed from java is really just using
composites + interfaces to emulate multiple inheritance.

Decorators and composites are similar however in that they are both
structural patterns and define an interface for communicating between parent
and child components / classes.

Best,

-erik







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 9:00 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

How is this any different from a Decorator/Wrapper? Looks like a
double decorator.

On 1/30/07, Erik Bianchi [EMAIL PROTECTED] wrote:
 Actually my definition of a mixin is very strict compared to a decorator;
it
 uses design by contract, composition and declares type:

 Class ClassA implements IClassB, IClassC
 {

 private var classB:ClassB;
 private var classC:ClassC;

 private function classBMethod():Boolean{...};

 private function classCMethod():Number{...};

 }


 -erik


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
 Keesey
 Sent: Tuesday, January 30, 2007 12:09 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

 On 1/29/07, David Ham [EMAIL PROTECTED] wrote:
 
  startObjectDrag triggered by obj_mc.onPress
  checkForSnaptriggered bysetInterval or onEnterFrame type of
event,
  in this case onObjectDrag
  stopObjectDrag  triggered byobj_mc.onRelease

 This looks more like the Broadcaster pattern or the Event Dispatcher
 (a.k.a. Observer) pattern than Decorator.

 (Also, it might be better to tie checkForSnap to mouseMove.)

 Personally, I'm not a big fan of mix-ins because, well, they're kind
 of sloppy. They involve tinkering with stuff that should be off-limits
 (and is in AS3, I think). Using mix-ins, you could accidentally use a
 non-function as a function. That can't happen if you stick to
 strictly-typed programming.
 --
 T. Michael 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



-- 
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread Joseph McHeffey
I normally just create a new movieclip and set it up
with the questions/answers the way that it should
print. 

Then I just use print(my_mc); 


--- nelson ramirez [EMAIL PROTECTED] wrote:

 So I have this quiz app that at the end allows the
 user to print out their
 answers with results plus some static content.
 We normally use Flash paper for printing the static
 assets. I was wondering
 if there's a way to incorporate the dynamic user
 answers into the static
 flash paper print content.
 
 Does anyone have any experience with this or perhaps
 a better approach?
 
 thanks in advance,
 
 -NR
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the
 archive:

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



 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread Andy Herrman

I've never tried any of this, and I'm not really familiar with Flash
Paper, but...

Google gives me this: http://www.blazepdf.com/

It's commercial (you have to buy it), but it looks like it can do what
you want.  Might be worth looking into if you can't find other
solutions.

  -Andy

On 1/30/07, nelson ramirez [EMAIL PROTECTED] wrote:

So I have this quiz app that at the end allows the user to print out their
answers with results plus some static content.
We normally use Flash paper for printing the static assets. I was wondering
if there's a way to incorporate the dynamic user answers into the static
flash paper print content.

Does anyone have any experience with this or perhaps a better approach?

thanks in advance,

-NR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
Opps meant to add: that's my interpretation anyways. I could be wrong. I'm
wrong all the time. In fact I consider myself a professional mistake maker.

-erik

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi
Sent: Tuesday, January 30, 2007 1:49 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flair Pattern bad mixins good (?)

A decorator is meant to be dynamic. It adds responsibilities to an object at
run time.

You take ComponentA and add methods to it on mouseclick, that's a decorator.

ComponentB is made up of ComponentC and ClassA, that's a composite.

My implementation of a mixin which I borrowed from java is really just using
composites + interfaces to emulate multiple inheritance.

Decorators and composites are similar however in that they are both
structural patterns and define an interface for communicating between parent
and child components / classes.

Best,

-erik







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 9:00 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

How is this any different from a Decorator/Wrapper? Looks like a
double decorator.

On 1/30/07, Erik Bianchi [EMAIL PROTECTED] wrote:
 Actually my definition of a mixin is very strict compared to a decorator;
it
 uses design by contract, composition and declares type:

 Class ClassA implements IClassB, IClassC
 {

 private var classB:ClassB;
 private var classC:ClassC;

 private function classBMethod():Boolean{...};

 private function classCMethod():Number{...};

 }


 -erik


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
 Keesey
 Sent: Tuesday, January 30, 2007 12:09 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

 On 1/29/07, David Ham [EMAIL PROTECTED] wrote:
 
  startObjectDrag triggered by obj_mc.onPress
  checkForSnaptriggered bysetInterval or onEnterFrame type of
event,
  in this case onObjectDrag
  stopObjectDrag  triggered byobj_mc.onRelease

 This looks more like the Broadcaster pattern or the Event Dispatcher
 (a.k.a. Observer) pattern than Decorator.

 (Also, it might be better to tie checkForSnap to mouseMove.)

 Personally, I'm not a big fan of mix-ins because, well, they're kind
 of sloppy. They involve tinkering with stuff that should be off-limits
 (and is in AS3, I think). Using mix-ins, you could accidentally use a
 non-function as a function. That can't happen if you stick to
 strictly-typed programming.
 --
 T. Michael 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



-- 
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


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

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


Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread nelson ramirez

Yeah I normally do the same. but sometimes there are issues with the safari
browser on macs.
Plus , i really like flash paper, I guess i'm more wondering wether it can
be done or if there are any better methods than the standard way.

thanks

On 1/30/07, Joseph McHeffey [EMAIL PROTECTED] wrote:


I normally just create a new movieclip and set it up
with the questions/answers the way that it should
print.

Then I just use print(my_mc);


--- nelson ramirez [EMAIL PROTECTED] wrote:

 So I have this quiz app that at the end allows the
 user to print out their
 answers with results plus some static content.
 We normally use Flash paper for printing the static
 assets. I was wondering
 if there's a way to incorporate the dynamic user
 answers into the static
 flash paper print content.

 Does anyone have any experience with this or perhaps
 a better approach?

 thanks in advance,

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

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

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







Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
http://videogames.yahoo.com/platform?platform=120121
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FMS 2.0 Flash 8 Flv Player Continues Playback after Window Close

2007-01-30 Thread Jeff Harrington
Hey Andy,

Wow... and duh...  Thanks for making me look at it again, I was
modifying the onunload code for something which gets pushed into a
sub-div.  That fixed it!  The onunload videoController.destroy method
just wasn't getting called.  Thanks for making me reexamine my code. 

Ouch!  Still a weird problem though.  This video playback must be pretty
deeply-embedded code in the OS.  (This was an IE only problem fwiw). 

Jeff

Andy Herrman wrote:
 Could you put some javascript in the window the movie actually plays
 in (you said it's a browser window, so I'm guessing javascript is
 doable) that detects when the window is closed and sends a message to
 the Flash movie?  The flash movie can then detect that and stop
 playing?

 That is weird that it's not stopping when the window is closed.  I
 figured the Flash player would shut down the movie once the window
 containing it is gone.

   -Andy

 On 1/30/07, Jeff Harrington [EMAIL PROTECTED] wrote:
 Hi, the guys on the FMS list quasi-suggested I contact you guys as
 you might have encountered similar playback enigmae?

 I've been working around some strange errors in NetStream codes
 (InvalidArg) which prevents seeks from working sometimes and now I've
 created a player that just will not stop playing the stream until the
 complete browser - every window - it's in a child window - is
 closed.  I'm closing 3 windows to get the stream to stop playing.

 What can I do to insure that a browser window close will shut down
 the stream?  I've created destroy methods in my AS but they don't
 seem to be getting called at least as long as the parent window is
 open.  The player is in a child window.

 Thanks for any suggestions...

 Jeff Harrington
 [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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] import package

2007-01-30 Thread rc2406
I'm just now trying to wrap my head around AS3.0, so this is a very
basic question. Why is the import statements necessary? The Adobe
site says that in AS2.0 it was a shortcut, so you didn't have to
type the full path, but in AS3.0 it is a requirement.
So why does the following simple code work with and without the
import statements? If I don't create my own classes in an external
.as file because I just want to use Flash's predefined classes, do
I have to use the import statement?


import flash.display.Sprite;
//is the import necessary? works with or without it.
//
// draw a circle and add it to the display list
var circle:Sprite = new Sprite();
circle.graphics.beginFill(0x99);
circle.graphics.drawCircle(50, 50, 50);
circle.graphics.endFill();
addChild(circle);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread Rost, Andrew
The answer is no. We recently tried going down this path, but the FP API
does not support data integration.

Andrew Rost

-Original Message-
From: nelson ramirez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 4:00 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] - dynamic content for flash paper?

Yeah I normally do the same. but sometimes there are issues with the safari
browser on macs.
Plus , i really like flash paper, I guess i'm more wondering wether it can
be done or if there are any better methods than the standard way.

thanks

On 1/30/07, Joseph McHeffey [EMAIL PROTECTED] wrote:

 I normally just create a new movieclip and set it up
 with the questions/answers the way that it should
 print.

 Then I just use print(my_mc);


 --- nelson ramirez [EMAIL PROTECTED] wrote:

  So I have this quiz app that at the end allows the
  user to print out their
  answers with results plus some static content.
  We normally use Flash paper for printing the static
  assets. I was wondering
  if there's a way to incorporate the dynamic user
  answers into the static
  flash paper print content.
 
  Does anyone have any experience with this or perhaps
  a better approach?
 
  thanks in advance,
 
  -NR
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the
  archive:
 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 








 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo!
 Games.
 http://videogames.yahoo.com/platform?platform=120121
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] - dynamic content for flash paper?

2007-01-30 Thread eka

Hello :)

Flash paper is dead... Apollo is the next big project of Adobe and replace
for me FlashPaper to display books etc. With apollo you can display a PDF or
a HTML page in a MovieClip.

For me Digital Edition is baed on Apollo :
http://labs.adobe.com/technologies/digitaleditions/

In 6 month or 1 year this player for me is the better :)

Now with FlashPaper you can't do nothing... FlashPaper use static text
inside with the TextSnapShot class (read the Flash documentation about this
class). But FlashPaper is based on Macromedia V1/2 components (lots of bug
inside !)

If you want create dynamic documents the best way is a dynamic flipbook :
http://www.page-flip.com/?c=12kw=book-flipgclid=COi63uqViYoCFR8OZwod6gv9eQ

EKA+ :)


eKA+ :)

2007/1/30, nelson ramirez [EMAIL PROTECTED]:


Yeah I normally do the same. but sometimes there are issues with the
safari
browser on macs.
Plus , i really like flash paper, I guess i'm more wondering wether it can
be done or if there are any better methods than the standard way.

thanks

On 1/30/07, Joseph McHeffey [EMAIL PROTECTED] wrote:

 I normally just create a new movieclip and set it up
 with the questions/answers the way that it should
 print.

 Then I just use print(my_mc);


 --- nelson ramirez [EMAIL PROTECTED] wrote:

  So I have this quiz app that at the end allows the
  user to print out their
  answers with results plus some static content.
  We normally use Flash paper for printing the static
  assets. I was wondering
  if there's a way to incorporate the dynamic user
  answers into the static
  flash paper print content.
 
  Does anyone have any experience with this or perhaps
  a better approach?
 
  thanks in advance,
 
  -NR
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the
  archive:
 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 







 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo!
 Games.
 http://videogames.yahoo.com/platform?platform=120121
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] - dynamic content for flash paper?

2007-01-30 Thread Merrill, Jason
Flash paper is dead... Apollo is the next big project of 
Adobe and replace for me FlashPaper to display books etc. 

Uh, isn't Apollo going to be a desktop app though?  I understand how
Apollo can render HTML and connect to the internet and the like, what
about users running IE or Firefox?  Wouldn't Flashpaper still be
useful???  I don't understand your argument I suppose. Can you clarify?

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] import package

2007-01-30 Thread Ron Wheeler

If it works without it, it is not required.

Import is a compiler directive.
It does not result in any code being generated.
It merely tells the compiler that If I mention some function or 
class/object/datatype that I do not define, you should also look here to 
see if this code has a definition.


If the compiler is already adding the library automatically to the list 
of places that it looks for things, you do not need it.
For example, the Flash IDE knows about MovieClip and will find any 
method or property that deals with a MovieClip object without being told 
where MovieClip is defined.

It looks like Sprite is also in the list of things that it knows.

If you add the import but never reference anything from it, it will not 
have any effect on your resulting swf file.
It is a shortcut in the sense that if you did not have the import, you 
would have to write the full name with
flash.display.Sprite.xxx every time that you referred to a method or 
property of a Sprite.


I am not even sure of the syntax since no one in their right mind would 
trade an import statement for all that typing and it NEVER appears in 
any code examples that I have seen.


I hope that this helps

Ron




[EMAIL PROTECTED] wrote:

I'm just now trying to wrap my head around AS3.0, so this is a very
basic question. Why is the import statements necessary? The Adobe
site says that in AS2.0 it was a shortcut, so you didn't have to
type the full path, but in AS3.0 it is a requirement.
So why does the following simple code work with and without the
import statements? If I don't create my own classes in an external
.as file because I just want to use Flash's predefined classes, do
I have to use the import statement?


import flash.display.Sprite;
//is the import necessary? works with or without it.
//
// draw a circle and add it to the display list
var circle:Sprite = new Sprite();
circle.graphics.beginFill(0x99);
circle.graphics.drawCircle(50, 50, 50);
circle.graphics.endFill();
addChild(circle);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS DTD validation

2007-01-30 Thread T. Michael Keesey

I don't know of any, but that would be awesome.

It would be easier, actually, to do XML Schema validation, since XML
Schema is itself XML. Thus, you could use Flash's native XML
processing to help validate. But, again, I don't know if anyone's done
this.

Definitely a worthwhile project for anyone with time on their hands!

On 1/30/07, Oliver Müller [EMAIL PROTECTED] wrote:

Hi,

is there any AS2/3 class or script that performs DTD validation on a
xml-document?

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

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




--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread eka

hello :)

About apollo :

read :

http://blogs.zdnet.com/Stewart/?p=234
http://blog.digitalbackcountry.com/?p=75
http://casario.blogs.com/mmworld/2006/10/load_html_pages.html
http://labs.adobe.com/wiki/index.php/Apollo:DeveloperFAQ

watch : http://video.google.com/videoplay?docid=1551903488172905143

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF projects in
Linux/OSX/Windows with all tools to creates rich media application.

EKA+ :)

2007/1/30, Merrill, Jason [EMAIL PROTECTED]:


Flash paper is dead... Apollo is the next big project of
Adobe and replace for me FlashPaper to display books etc.

Uh, isn't Apollo going to be a desktop app though?  I understand how
Apollo can render HTML and connect to the internet and the like, what
about users running IE or Firefox?  Wouldn't Flashpaper still be
useful???  I don't understand your argument I suppose. Can you clarify?

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] - dynamic content for flash paper?

2007-01-30 Thread Merrill, Jason
About apollo :

read :

LOL.  I think you need to read those very links you sent.  Apollo
targets operating systems (Windows and Mac), not browsers.   People
using browsers will not use Apollo in the browser.  Apollo is a desktop
app you download and install, which can load in RIAs.  It's not a
plugin/player.  So Flashpaper will still be used for people not using
Apollo. 

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF 
projects in Linux/OSX/Windows with all tools to creates rich 
media application.

That statement is irrelevant to my question.  Please answer my question
and explain how this is a Flashpaper killer.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent: Tuesday, January 30, 2007 6:02 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] - dynamic content for flash paper?

hello :)

About apollo :

read :

http://blogs.zdnet.com/Stewart/?p=234
http://blog.digitalbackcountry.com/?p=75
http://casario.blogs.com/mmworld/2006/10/load_html_pages.html
http://labs.adobe.com/wiki/index.php/Apollo:DeveloperFAQ

watch : http://video.google.com/videoplay?docid=1551903488172905143

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF 
projects in Linux/OSX/Windows with all tools to creates rich 
media application.

EKA+ :)

2007/1/30, Merrill, Jason [EMAIL PROTECTED]:

 Flash paper is dead... Apollo is the next big project of 
Adobe and 
 replace for me FlashPaper to display books etc.

 Uh, isn't Apollo going to be a desktop app though?  I 
understand how 
 Apollo can render HTML and connect to the internet and the 
like, what 
 about users running IE or Firefox?  Wouldn't Flashpaper still be 
 useful???  I don't understand your argument I suppose. Can 
you clarify?

 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

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

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


Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread eka

helo :)

I think it's very really interesting to speak about the futur of Flash/FLEX
and AS3 ... if you want only ask a question and don't speak about the
question of the future of the Flash technology .. sorry

Now FlashPaper don't work in AS3... and you can't modify the content.

I Use FlashPaper in FMS application with a sharing display of the internal
component in the FlashPaper swf and this component is bugged and very
limit.

Now for me in AS2, i repeat, the good solution is to use a custom flip book
with dynamic content. You can load in a MovieClip : swf/jpg/png/gif/external
datas... FlashPaper is just a little tool with a bad API.

For me if you want extend the FlashPaper.. use ActionScript and external
tools (PHP/JAVA/etc...) and you must create your application. Work with
FlashPaper it's a waste of time.

PS : sorry for my english ... I have evil to render comprehensible my
comment.

EKA+ :)

2007/1/31, Merrill, Jason [EMAIL PROTECTED]:


About apollo :

read :

LOL.  I think you need to read those very links you sent.  Apollo
targets operating systems (Windows and Mac), not browsers.   People
using browsers will not use Apollo in the browser.  Apollo is a desktop
app you download and install, which can load in RIAs.  It's not a
plugin/player.  So Flashpaper will still be used for people not using
Apollo.

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF
projects in Linux/OSX/Windows with all tools to creates rich
media application.

That statement is irrelevant to my question.  Please answer my question
and explain how this is a Flashpaper killer.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent: Tuesday, January 30, 2007 6:02 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] - dynamic content for flash paper?

hello :)

About apollo :

read :

http://blogs.zdnet.com/Stewart/?p=234
http://blog.digitalbackcountry.com/?p=75
http://casario.blogs.com/mmworld/2006/10/load_html_pages.html
http://labs.adobe.com/wiki/index.php/Apollo:DeveloperFAQ

watch : http://video.google.com/videoplay?docid=1551903488172905143

For me with this tools you can create HTML/AJAX/AS3/FLEX/PDF
projects in Linux/OSX/Windows with all tools to creates rich
media application.

EKA+ :)

2007/1/30, Merrill, Jason [EMAIL PROTECTED]:

 Flash paper is dead... Apollo is the next big project of
Adobe and
 replace for me FlashPaper to display books etc.

 Uh, isn't Apollo going to be a desktop app though?  I
understand how
 Apollo can render HTML and connect to the internet and the
like, what
 about users running IE or Firefox?  Wouldn't Flashpaper still be
 useful???  I don't understand your argument I suppose. Can
you clarify?

 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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-01-30 Thread JOR
A decorator object composites the object it wishes to decorate and is 
used in it's place.  Since the decorator inherits from the the same base 
class as the object it decorates they can both be used interchangeably 
through polymorphism.


consider something like this:

var myBagel:Bagel = new Bagel();
trace (myBagel.getCalories()); // 200

// Add creamcheese to my bagel
myBagel = new CreamCheeseDecorator(myBagel);
trace (myBagel.getCalories()); // 300

// Add lox to my bagel
myBagel = new LoxDecorator(myBagel);
trace (myBagel.getCalories()); // 330

//---
// bagel looks something like this
public class Bagel {
  public function getCalories ():uint {
return 200;
  }
}
//inside the decorator is something like this:
public class CreamCheeseDecorator extends Bagel {
  private var _bagel:Bagel;
  public function CreamCheeseDecorator (bagel:Bagel) {
_bagel = bagel;
  }
  public function getCalories ():uint {
return _bagel.getCalories() + 100;
  }
}
//inside the decorator is something like this:
public class LoxDecorator extends Bagel {
  private var _bagel:Bagel;
  public function LoxDecorator (bagel:Bagel) {
_bagel = bagel;
  }
  public function getCalories ():uint {
return _bagel.getCalories() + 30;
  }
}

You can add more Bagel types like EggBagel and EverythingBagel and more 
Decorator objects like Butter and use them all interchangeably.


note, this untested code, I just typed it out in the post so their might 
be typos.



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



Erik Bianchi wrote:

Opps meant to add: that's my interpretation anyways. I could be wrong. I'm
wrong all the time. In fact I consider myself a professional mistake maker.

-erik

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi
Sent: Tuesday, January 30, 2007 1:49 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flair Pattern bad mixins good (?)

A decorator is meant to be dynamic. It adds responsibilities to an object at
run time.

You take ComponentA and add methods to it on mouseclick, that's a decorator.

ComponentB is made up of ComponentC and ClassA, that's a composite.

My implementation of a mixin which I borrowed from java is really just using
composites + interfaces to emulate multiple inheritance.

Decorators and composites are similar however in that they are both
structural patterns and define an interface for communicating between parent
and child components / classes.

Best,

-erik







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 9:00 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

How is this any different from a Decorator/Wrapper? Looks like a
double decorator.

On 1/30/07, Erik Bianchi [EMAIL PROTECTED] wrote:


Actually my definition of a mixin is very strict compared to a decorator;


it


uses design by contract, composition and declares type:

Class ClassA implements IClassB, IClassC
{

private var classB:ClassB;
private var classC:ClassC;

private function classBMethod():Boolean{...};

private function classCMethod():Number{...};

}


-erik


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 12:09 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

On 1/29/07, David Ham [EMAIL PROTECTED] wrote:


startObjectDrag triggered by obj_mc.onPress
checkForSnaptriggered bysetInterval or onEnterFrame type of


event,


in this case onObjectDrag
stopObjectDrag  triggered byobj_mc.onRelease


This looks more like the Broadcaster pattern or the Event Dispatcher
(a.k.a. Observer) pattern than Decorator.

(Also, it might be better to tie checkForSnap to mouseMove.)

Personally, I'm not a big fan of mix-ins because, well, they're kind
of sloppy. They involve tinkering with stuff that should be off-limits
(and is in AS3, I think). Using mix-ins, you could accidentally use a
non-function as a function. That can't happen if you stick to
strictly-typed programming.
--
T. Michael 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







[Flashcoders] set and retrieve a netstream property

2007-01-30 Thread Kelly Smith

Howdy -

I'm upgrading a video application from stage-based code to OO, and have run
into a sticky problem:

Using metadata injection, I am able to read a duration property on the
netStream class, and pass the value to another function, as such:

public function metaDataInfo(obj:Object) {

   times = obj.keyframes.times;

   var vidDuration = Math.ceil(obj.duration);

// pass duration value to another function

   durationTime(vidDuration);
   positions = obj.keyframes.filepositions;

};

However, I can not figure out how to retreive this property via a
'getDuration' or 'get duration' function, because I can't make the value
persist throughout the class. This is important because I also employ a
scrubbing function that requires a duration property, but cannot accept
parameters.

please help

thanks

- kelly
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
I've seen examples of it both ways where a decorated object maintains the
objects interface or it adds additional methods so it breaks polymorphism.

Don't have the GOF book with me to reference so no idea what they actually
outlined. Doing a quick search wikipedia states 1 to 1 where doFactory shows
otherwise.

On a side note I love doFactory as they offer simple UML diagrams and sample
code (both conceptual and real world).

Been a while since I've posted here, a few years I think. I miss the geek
tangents / debates. =)

-erik



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JOR
Sent: Tuesday, January 30, 2007 3:55 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

A decorator object composites the object it wishes to decorate and is 
used in it's place.  Since the decorator inherits from the the same base 
class as the object it decorates they can both be used interchangeably 
through polymorphism.

consider something like this:

var myBagel:Bagel = new Bagel();
trace (myBagel.getCalories()); // 200

// Add creamcheese to my bagel
myBagel = new CreamCheeseDecorator(myBagel);
trace (myBagel.getCalories()); // 300

// Add lox to my bagel
myBagel = new LoxDecorator(myBagel);
trace (myBagel.getCalories()); // 330

//---
// bagel looks something like this
public class Bagel {
   public function getCalories ():uint {
 return 200;
   }
}
//inside the decorator is something like this:
public class CreamCheeseDecorator extends Bagel {
   private var _bagel:Bagel;
   public function CreamCheeseDecorator (bagel:Bagel) {
 _bagel = bagel;
   }
   public function getCalories ():uint {
 return _bagel.getCalories() + 100;
   }
}
//inside the decorator is something like this:
public class LoxDecorator extends Bagel {
   private var _bagel:Bagel;
   public function LoxDecorator (bagel:Bagel) {
 _bagel = bagel;
   }
   public function getCalories ():uint {
 return _bagel.getCalories() + 30;
   }
}

You can add more Bagel types like EggBagel and EverythingBagel and more 
Decorator objects like Butter and use them all interchangeably.

note, this untested code, I just typed it out in the post so their might 
be typos.


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



Erik Bianchi wrote:
 Opps meant to add: that's my interpretation anyways. I could be wrong. I'm
 wrong all the time. In fact I consider myself a professional mistake
maker.
 
 -erik
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Erik
Bianchi
 Sent: Tuesday, January 30, 2007 1:49 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Flair Pattern bad mixins good (?)
 
 A decorator is meant to be dynamic. It adds responsibilities to an object
at
 run time.
 
 You take ComponentA and add methods to it on mouseclick, that's a
decorator.
 
 ComponentB is made up of ComponentC and ClassA, that's a composite.
 
 My implementation of a mixin which I borrowed from java is really just
using
 composites + interfaces to emulate multiple inheritance.
 
 Decorators and composites are similar however in that they are both
 structural patterns and define an interface for communicating between
parent
 and child components / classes.
 
 Best,
 
 -erik
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
 Keesey
 Sent: Tuesday, January 30, 2007 9:00 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)
 
 How is this any different from a Decorator/Wrapper? Looks like a
 double decorator.
 
 On 1/30/07, Erik Bianchi [EMAIL PROTECTED] wrote:
 
Actually my definition of a mixin is very strict compared to a decorator;
 
 it
 
uses design by contract, composition and declares type:

Class ClassA implements IClassB, IClassC
{

private var classB:ClassB;
private var classC:ClassC;

private function classBMethod():Boolean{...};

private function classCMethod():Number{...};

}


-erik


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 12:09 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

On 1/29/07, David Ham [EMAIL PROTECTED] wrote:

startObjectDrag triggered by obj_mc.onPress
checkForSnaptriggered bysetInterval or onEnterFrame type of
 
 event,
 
in this case onObjectDrag
stopObjectDrag  triggered byobj_mc.onRelease

This looks more like the Broadcaster pattern or the Event Dispatcher
(a.k.a. Observer) pattern than Decorator.

(Also, it might be better to tie checkForSnap to mouseMove.)

Personally, I'm not a big fan of mix-ins because, well, they're kind
of sloppy. They involve tinkering with stuff that should be off-limits
(and is in AS3, I think). Using mix-ins, you could accidentally use a

Re: [Flashcoders] Flex vs. Laszlo

2007-01-30 Thread greg h

Cort,

Thank you very much for your very thoughtful and informed post.

This is a great time to be a Flash developer.  It is great watching the
Flash/SWF ecosystem expanding.

I have my hands full with Flash and Flex.  But I appreciate having an
understanding of how others generate swfs.  Your post was very informative
for me in this way.

And with Apollo likely launching sometime this year, wow, look out!

 Best regards,

 g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Caps Lock behaviour inconsistent between Mac and Windows!

2007-01-30 Thread Daniel Barber
I posted about this a while back and didn't get much of a response.  
Am hoping someone might have discovered a workaround as this bug is a  
bit of a show-stopper for the project I am working on.


I am trying to trap whether the Caps Lock key is down at any given  
moment, not toggled, but down. On Windows, the Caps Lock key results  
in the onKeyUp and onKeyDown events being generated whenever the key  
is pressed or released. On the Mac the same is not true. The  
onKeyDown event is only generated when the Caps Lock key is untoggled  
and the user presses the key. The onKeyUp event is only generated  
when the Caps Lock key is toggled and the user presses the key. What  
makes it more frustrating is that the isDown(Key.CAPSLOCK) code on  
the Mac returns true when the key is toggled not whether the key is  
in fact down. It makes accurately tracking the up and down states of  
the Caps Lock key on the Mac impossible.


The project I am working on requires knowing the state of the Caps  
Lock key. Again, it works as expected on Windows, but not on the Mac.  
You can see this in action here:


http://www.aleph-1.com/keyboard/

You can donwload the FLA here:

http://www.aleph-1.com/keyboard/keyboard.fla

The code is as follows:

fscommand('trapallkeys',true);

var frames:Number = 0;
var keyListener:Object = new Object();

keyListener.onKeyUp = function() {
if(Key.getCode() != Key.CAPSLOCK) return;
_txt.text += 'frame ' + frames + ': Caps Lock was released.' + newline;
_txt.scroll = _txt.maxscroll;
}

keyListener.onKeyDown = function() {
if(Key.getCode() != Key.CAPSLOCK) return;
_txt.text += 'frame ' + frames + ': Caps Lock was pressed.' + newline;
_txt.scroll = _txt.maxscroll;
}

Key.addListener(keyListener);

onEnterFrame = function () {
frames++;
if (Key.isDown(Key.CAPSLOCK)) {
_txt.text += 'frame ' + frames + ': Caps Lock is down.' + 
newline;
_txt.scroll = _txt.maxscroll;
}
};

Please, if anyone has had any luck in successfully trapping the up /  
down state of the caps lock key on the Mac, please let me know.


Cheers.

Daniel Barber
aleph1
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tiles Based game engine

2007-01-30 Thread Weyert de Boer

Hello!

I am curious if anyone happen to know a nice AS2 based tiles based game 
engine for use to
create Mario Bros or Commander Keen like games. Somehow I don't get the 
scrolling and/or

ladder stuff working correctly. Stupid games ;)

Yours,
Weyert de Boer
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Known limitation for length for loaded content's path

2007-01-30 Thread Éric Thibault

Hello all!

I have a strange case... i've built a projector for mac and pc with 
external content (images, flashpapers, videos...). Everything works well 
except on some PCs?!? I dont have access to those PCs (student's) but is 
there a known issu regarding path length (every path is relative to the 
main movie)?  I would like to cover all the possibilities before 
debugging directly on those computers!


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

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


Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread Muzak
You can generate flashpaper swf's on the fly with Coldfusion.

Muzak

- Original Message - 
From: Rost, Andrew [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 30, 2007 11:16 PM
Subject: RE: [Flashcoders] - dynamic content for flash paper?


 The answer is no. We recently tried going down this path, but the FP API
 does not support data integration.

 Andrew Rost



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FLV Encoding at 640x480 Frame dropping

2007-01-30 Thread Muzak
Try dropping the framerate (divide by 2 seems to work well)
If original video is 30 fps, encode at 15 fps
If original video is 24 fps, encode at 12 fps.

regards,
Muzak

- Original Message - 
From: Yehia Shouman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 27, 2007 10:51 AM
Subject: [Flashcoders] FLV Encoding at 640x480  Frame dropping


 Hi List,

 We've been frustrated with our client trying to bring the best smoothest
 experience of playing video at 640x480 (stretched to fullscreen). Does
 anyone know what exact encoding settings for a movie with a lot of motion,
 to play fullscreen at that resolution without stalling and dropping frames ?

 I am streaming over FMS, got the latest updates for FMS, FLVPlayback and
 Flash Player.

 I know FMS drops frames when the bandwidth is insuffiecient, and I know it
 favors Audio then netstream calls and then it may drop video frames based on
 whats left of the bandwidth.

 But if I even encoded at 640x480 with NO audio at all it still drop frames,
 we're currently using On2 VP6. Should we try Sorenson ? Any ideas PLEASE
 help !

 Thank you
 Yehia


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-01-30 Thread JOR
Yes, it's very common to add additional methods in your subclasses for 
additional behaviour.  Polymorphism is maintained only through the base 
case's interface.


I'll have to check out doFactory, haven't heard of it before.


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



Erik Bianchi wrote:

I've seen examples of it both ways where a decorated object maintains the
objects interface or it adds additional methods so it breaks polymorphism.

Don't have the GOF book with me to reference so no idea what they actually
outlined. Doing a quick search wikipedia states 1 to 1 where doFactory shows
otherwise.

On a side note I love doFactory as they offer simple UML diagrams and sample
code (both conceptual and real world).

Been a while since I've posted here, a few years I think. I miss the geek
tangents / debates. =)

-erik



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JOR
Sent: Tuesday, January 30, 2007 3:55 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

A decorator object composites the object it wishes to decorate and is 
used in it's place.  Since the decorator inherits from the the same base 
class as the object it decorates they can both be used interchangeably 
through polymorphism.


consider something like this:

var myBagel:Bagel = new Bagel();
trace (myBagel.getCalories()); // 200

// Add creamcheese to my bagel
myBagel = new CreamCheeseDecorator(myBagel);
trace (myBagel.getCalories()); // 300

// Add lox to my bagel
myBagel = new LoxDecorator(myBagel);
trace (myBagel.getCalories()); // 330

//---
// bagel looks something like this
public class Bagel {
   public function getCalories ():uint {
 return 200;
   }
}
//inside the decorator is something like this:
public class CreamCheeseDecorator extends Bagel {
   private var _bagel:Bagel;
   public function CreamCheeseDecorator (bagel:Bagel) {
 _bagel = bagel;
   }
   public function getCalories ():uint {
 return _bagel.getCalories() + 100;
   }
}
//inside the decorator is something like this:
public class LoxDecorator extends Bagel {
   private var _bagel:Bagel;
   public function LoxDecorator (bagel:Bagel) {
 _bagel = bagel;
   }
   public function getCalories ():uint {
 return _bagel.getCalories() + 30;
   }
}

You can add more Bagel types like EggBagel and EverythingBagel and more 
Decorator objects like Butter and use them all interchangeably.


note, this untested code, I just typed it out in the post so their might 
be typos.



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



Erik Bianchi wrote:


Opps meant to add: that's my interpretation anyways. I could be wrong. I'm
wrong all the time. In fact I consider myself a professional mistake


maker.


-erik

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik


Bianchi


Sent: Tuesday, January 30, 2007 1:49 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flair Pattern bad mixins good (?)

A decorator is meant to be dynamic. It adds responsibilities to an object


at


run time.

You take ComponentA and add methods to it on mouseclick, that's a


decorator.


ComponentB is made up of ComponentC and ClassA, that's a composite.

My implementation of a mixin which I borrowed from java is really just


using


composites + interfaces to emulate multiple inheritance.

Decorators and composites are similar however in that they are both
structural patterns and define an interface for communicating between


parent


and child components / classes.

Best,

-erik







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 9:00 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

How is this any different from a Decorator/Wrapper? Looks like a
double decorator.

On 1/30/07, Erik Bianchi [EMAIL PROTECTED] wrote:



Actually my definition of a mixin is very strict compared to a decorator;


it



uses design by contract, composition and declares type:

Class ClassA implements IClassB, IClassC
{

private var classB:ClassB;
private var classC:ClassC;

private function classBMethod():Boolean{...};

private function classCMethod():Number{...};

}


-erik


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: Tuesday, January 30, 2007 12:09 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?)

On 1/29/07, David Ham [EMAIL PROTECTED] wrote:



startObjectDrag triggered by obj_mc.onPress
checkForSnaptriggered bysetInterval or onEnterFrame type of


event,



in this case onObjectDrag
stopObjectDrag  triggered byobj_mc.onRelease


This looks more like the Broadcaster pattern or the 

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread David Ham
Been a while since I've posted here, a few years I think. I miss  
the geek

tangents / debates. =)


Good man! Seriously, the world affords precious few opportunities to  
truly geek out on design patterns and such. Internet mailing lists  
excepted of course.


I have the Head First Design Patterns book, and I have to say I like  
it, in spite of its profusion of clip art and cheesy humor. Despite  
these stylistic affronts, it presents the material in a way that is  
easy to learn.


What's the consensus on the GoF book? I know it's a classic, but so  
is Ulysses and dog if I can read that. I don't have a CS background-- 
Flash is about as far as my programming expertise extends--so the  
Head First style works for me. Is GoF accessible for people who don't  
program in C++?


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

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


[Flashcoders] Q: offset x,y in StartDrag()

2007-01-30 Thread moveup
Hi
I have a nested MovieClip with an onPress handler.
OnPress I create a mirror copy of this nested MovieClip but in _root and 
initiate a StartDrag(false) on this MovieClip.

The problem is this mc ( in _root ) is offset from the Mouse position by the 
x,y coordinates of the nested MovieClip.

How can I update the x,y coordinates of the _root mc so that it 

1-initially mimics the exact position of the nested MC
and
2-follows the mouse using StartDrag


Hope this makes sense...I'm wondering if I should even try simulating a 
StartDrag using Mouse listeners and converting local to global coordinates.

Any help appreciated.



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

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

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


[Flashcoders] Re: set and retrieve a netstream property

2007-01-30 Thread jason vancleave
You just need to declare var vidDuration outside the metaDataInfo function for
it to remain persistent in the instance of the Class containing it.

class WhateverClass{

var vidDuration:Number;
 public function metaDataInfo(obj:Object) {  
times = obj.keyframes.times;

 vidDuration = Math.ceil(obj.duration);
 
 // pass duration value to another function
 
 durationTime(vidDuration);
 positions = obj.keyframes.filepositions;
 
 };

public function getDuration():Number{
return vidDuration;
}
}



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FMS 2.0 Flash 8 Flv Player Continues Playback after Window Close

2007-01-30 Thread Geoff Stearns
this is a sort-of-known issue - i don't think adobe ever posted a  
knowledge base article about it, but they implemented a fix for it in  
flash player 9 (which was buggy)


i replied to your post here:

http://blog.deconcept.com/swfobject/forum/discussion/123/fms-20- 
flash-8-flv-player-continues-playback-after-window-close/





On Jan 30, 2007, at 5:04 PM, Jeff Harrington wrote:


Hey Andy,

Wow... and duh...  Thanks for making me look at it again, I was
modifying the onunload code for something which gets pushed into a
sub-div.  That fixed it!  The onunload videoController.destroy method
just wasn't getting called.  Thanks for making me reexamine my code.

Ouch!  Still a weird problem though.  This video playback must be  
pretty

deeply-embedded code in the OS.  (This was an IE only problem fwiw).

Jeff

Andy Herrman wrote:

Could you put some javascript in the window the movie actually plays
in (you said it's a browser window, so I'm guessing javascript is
doable) that detects when the window is closed and sends a message to
the Flash movie?  The flash movie can then detect that and stop
playing?

That is weird that it's not stopping when the window is closed.  I
figured the Flash player would shut down the movie once the window
containing it is gone.

  -Andy

On 1/30/07, Jeff Harrington [EMAIL PROTECTED] wrote:

Hi, the guys on the FMS list quasi-suggested I contact you guys as
you might have encountered similar playback enigmae?

I've been working around some strange errors in NetStream codes
(InvalidArg) which prevents seeks from working sometimes and now  
I've
created a player that just will not stop playing the stream until  
the

complete browser - every window - it's in a child window - is
closed.  I'm closing 3 windows to get the stream to stop playing.

What can I do to insure that a browser window close will shut down
the stream?  I've created destroy methods in my AS but they don't
seem to be getting called at least as long as the parent window is
open.  The player is in a child window.

Thanks for any suggestions...

Jeff Harrington
[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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-01-30 Thread JOR
The Head First Design Patterns book rocks and I definitely recommend it 
to anyone wanting to learn about design patterns.  I actually got a kick 
out of the clip art and humor but I'm kind of quirky that way I guess. 
The Java examples were trivial to port to ActionScript and a good exercise.


The GoF book reads more like a college textbook.  I use it from time to 
time to compare notes between my different pattern books but it's 
definitely not the one I pick up first.  The introduction section of the 
book is a good read.  However, unlike Java or C#, if you don't know C++ 
you might find the examples difficult to understand.


The ActionScript 3 with Design Patterns is also very good.  It's 
obviously very specific to ActionScript unlike the other two books so 
the samples don't need to be ported.




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



David Ham wrote:
Been a while since I've posted here, a few years I think. I miss  the 
geek

tangents / debates. =)



Good man! Seriously, the world affords precious few opportunities to  
truly geek out on design patterns and such. Internet mailing lists  
excepted of course.


I have the Head First Design Patterns book, and I have to say I like  
it, in spite of its profusion of clip art and cheesy humor. Despite  
these stylistic affronts, it presents the material in a way that is  
easy to learn.


What's the consensus on the GoF book? I know it's a classic, but so  is 
Ulysses and dog if I can read that. I don't have a CS background-- Flash 
is about as far as my programming expertise extends--so the  Head First 
style works for me. Is GoF accessible for people who don't  program in C++?


OK
DAH

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

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


  1   2   >