Re: [Flashcoders] attachMovie fails on embedded clip in a movie, why?

2007-06-22 Thread Matthias Dittgen

Hi Chris,

I can't follow your code snippets too well, but I try to guess your mistake:
You can only attach MovieClips/Symbols with attachMovie, that are
available (exported for AS) within the container SWF.

Example:
MovieClip A.swf contains a MovieClip Symbol S in the library (exported for AS)
then you can attach S to any Movieclip inside of A.swf, that was
created using attachMovie or createEmptyMovieClip.
MovieClip B.swf conatain a MovieClip Symbol R in the library (exported for AS)
When you load B into A via loadMovie, you can then inside of B only
attach R, not S.

(I guess, this example is near to your description when you see
person101 as S.)

Tipp: To be able to attach S as well, you should read about shared at runtime.

hth,
Matthias

2007/6/21, Chris Bell [EMAIL PROTECTED]:

Hi Flash Friends,



attachMovie works on a clip that is inside a clip that has been loaded
by attachMovie but fails on a clip that is inside a clip loaded with
loadMovie.



This should be so easy, but it is simply not working. I'd appreciate any
tips pointing me to the part that I don't understand ...



The setup:

- Main movie (mainMovie)

- A symbol (person1)

- A symbol (template1) that contains a movieClip (chair1)

- A swf (template2) in the same folder as the Main movie that contains a
similar movieClip (chair2)



THIS WORKS:

Load the symbol (template1) using attachMovie

attachMovie(template1, mainMovie, 250); //hardcoded depth here for
clearness



On release of a button, attach a symbol to a the chair1 movieClip inside
template1

template1.chair1.attachMovie(person1, person1, 101); //hardcoded
depth here for clearness





THIS DOESN'T WORK:
(keeping everything the same except loading the movie from an external
source...)

Load the swf (template2.swf) using loadMovie

   mainMovie.loadMovie(chosenTemplate);



On release of a button, attach a symbol to a the chair2 movieClip inside
template1

Template2.chair2.attachMovie(person1, person1, 101); //hardcoded
depth here for clearness





Is there some limitation to attachMovie that I'm missing? Any guesses,
suggestions, ideas?



Thanks,



Chris



Chris Bell
IT Manager
University of Colorado Law School
My home phone which forwards to me while I'm out of town: 303-443-9621
[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] Selecting All in a TextArea

2007-06-22 Thread Darren Bowers

I am trying to create a Select All button for a textArea component and I
cant seem to get the selected text to stay selected. It gains focus, selects
the text and then then unselects itself immediately.

Am I missing something here?

btnSelectAll.onPress = function() {
   Selection.setFocus(txtBox);
   var nBegin:Number = Selection.getBeginIndex();
   var nEnd:Number = Selection.getEndIndex();
   Selection.setSelection(nBegin, nEnd);
};

Cheers,
Darren
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Selecting All in a TextArea

2007-06-22 Thread Danny Kodicek
  I am trying to create a Select All button for a textArea 
 component and I cant seem to get the selected text to stay 
 selected. It gains focus, selects the text and then then 
 unselects itself immediately.
 
 Am I missing something here?
 
 btnSelectAll.onPress = function() {
 Selection.setFocus(txtBox);
 var nBegin:Number = Selection.getBeginIndex();
 var nEnd:Number = Selection.getEndIndex();
 Selection.setSelection(nBegin, nEnd); };
 

Try btnSelectAll.onRelease instead - I suspect the button's getting focus
back when you release it.

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] Selecting All in a TextArea

2007-06-22 Thread Darren Bowers

legend :)

why is it you never try the obvious things first?...

On 22/06/07, Danny Kodicek [EMAIL PROTECTED] wrote:


 I am trying to create a Select All button for a textArea
 component and I cant seem to get the selected text to stay
 selected. It gains focus, selects the text and then then
 unselects itself immediately.

 Am I missing something here?

 btnSelectAll.onPress = function() {
 Selection.setFocus(txtBox);
 var nBegin:Number = Selection.getBeginIndex();
 var nEnd:Number = Selection.getEndIndex();
 Selection.setSelection(nBegin, nEnd); };


Try btnSelectAll.onRelease instead - I suspect the button's getting focus
back when you release it.

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] patching MM classes for mtasc

2007-06-22 Thread Hans Wichman

Hi,
* to get all swc files, search through your programfiles\macromedia\flash
8 for all swc's
* put them in a directory together
* install python 2.5 or higher
* get http://osflash.org/swcextract/

Feel free to contact me offlist if you have any further questions.

greetz
JC



On 6/21/07, quinrou . [EMAIL PROTECTED] wrote:


can u provide a link to that swc - i haven't managed to find it on the
osflash.org site?

thanks

On 6/21/07, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi,
 i think there is some license issues preventing folks from
redistributing
 them, since they wudnt put us through the patching process if it wasnt:)

 I download swc extract from osflash and simply extracted every class i
 could
 find from the components, that solved my problems. It gave me a bunch of
 intrinsic classes, which after 2 or 3 tweaks were mtasc compatible.

 I simply compile with the -mx flag and make sure all the concrete
classes
 i
 need are included in an injection swf.

 greetz
 JC


 On 6/21/07, Muzak [EMAIL PROTECTED] wrote:
 
  http://www.google.com/search?hl=enq=mtasc+mm+classes
 
  - Original Message -
  From: quinrou . [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Thursday, June 21, 2007 1:31 PM
  Subject: [Flashcoders] patching MM classes for mtasc
 
 
   Hi all,
  
   I tried to patch the MM classes to work with MTASC but I haven't
been
   successful. I was wondering if anyone managed to do it and if they
 could
   provide me with the patched set?
  
   Many thanks
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 mask leaks scale of hidden area!

2007-06-22 Thread Peter B

  Is this normal?


Yep. It's always been this way too, rather than this having been
introduced in CS3.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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: Missing characters in XML

2007-06-22 Thread Danny Kodicek
 
Never mind - I had the problem exactly right - I forgot Flash always assumes
UTF-8. That's okay, I can do it a different way.

 I'm having trouble reading and writing some characters to 
 XML. I've got a file with . characters and I'm trying to 
 read them and swap them for  arrows (u2192). But for some 
 reason it's not managing to see them (nodeValue.indexOf(.) 
 is giving -1) 
 
 I think the problem may be something to do with encoding. Is 
 there any way to find out what encoding Flash thinks the file 
 has, or to force it to read the file with a particular 
 encoding? I'm wondering whether it thinks it's UFT8 when it's 
 actually ANSI. 
 
 Thanks
 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] Missing characters in XML

2007-06-22 Thread Danny Kodicek
I'm having trouble reading and writing some characters to XML. I've got a
file with . characters and I'm trying to read them and swap them for
arrows (u2192). But for some reason it's not managing to see them
(nodeValue.indexOf(.) is giving -1) 

I think the problem may be something to do with encoding. Is there any way
to find out what encoding Flash thinks the file has, or to force it to read
the file with a particular encoding? I'm wondering whether it thinks it's
UFT8 when it's actually ANSI. 

Thanks
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] Clashing Class Names

2007-06-22 Thread Michael Trim
Hi Flashcoders,

Can somebody confirm my worst suspicions (think I am answering my own
question here)

swfA loads swfB

Both swfs are compiled from separate classpaths but share a similar
class structure, so

swfA compiles classes like

swfAProject/com/UserInterface/Application.as
swfAProject/com/UserInterface/UIButton.as

and swfB compiles

swfBProject/com/UserInterface/Application.as
swfBProject/com/UserInterface/UIButton.as

I'm presuming that when swfB is loaded the _global.Application class is
overwritten? As when I do this the whole thing spins off into 100% CPU
hell.

To separate these out will I need to restructure them to be...? 

CommonProject/com/A/UserInterface/Application.as
CommonProject/com/B/UserInterface/Application.as

(intergrating the code is not an option at this point).

What would people suggest as best practice here? Apologies if this is a
bit of a newb question on OO.

Many thanks,

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

2007-06-22 Thread Chris Tague

you might have to go nodeValue.toString() first..

c.

On 6/22/07, Danny Kodicek [EMAIL PROTECTED] wrote:


I'm having trouble reading and writing some characters to XML. I've got a
file with . characters and I'm trying to read them and swap them for
arrows (u2192). But for some reason it's not managing to see them
(nodeValue.indexOf(.) is giving -1)

I think the problem may be something to do with encoding. Is there any way
to find out what encoding Flash thinks the file has, or to force it to
read
the file with a particular encoding? I'm wondering whether it thinks it's
UFT8 when it's actually ANSI.

Thanks
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] Clashing Class Names

2007-06-22 Thread David Ngo
You can not have the same classpath/class combinations. So if you were
importing inside SWFA  SWFB:

com.this.is.my.class.path.Class

But on the file system, SWFA points to:
myproject1/com/this/is/my/class/path/Class.as

And SWFB points to:
myproject2/com/this/is/my/class/path/Class.as


You will get errors because Flash would have used the first classpath/class
loaded since it's stored and identified as a string. You would need to
either alter the class path one one of those classes, or have the class path
start from the project name and not 'com'.


David



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Trim
Sent: Friday, June 22, 2007 9:14 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Clashing Class Names

Hi Flashcoders,

Can somebody confirm my worst suspicions (think I am answering my own
question here)

swfA loads swfB

Both swfs are compiled from separate classpaths but share a similar
class structure, so

swfA compiles classes like

swfAProject/com/UserInterface/Application.as
swfAProject/com/UserInterface/UIButton.as

and swfB compiles

swfBProject/com/UserInterface/Application.as
swfBProject/com/UserInterface/UIButton.as

I'm presuming that when swfB is loaded the _global.Application class is
overwritten? As when I do this the whole thing spins off into 100% CPU
hell.

To separate these out will I need to restructure them to be...? 

CommonProject/com/A/UserInterface/Application.as
CommonProject/com/B/UserInterface/Application.as

(intergrating the code is not an option at this point).

What would people suggest as best practice here? Apologies if this is a
bit of a newb question on OO.

Many thanks,

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

2007-06-22 Thread Ian Thomas

Michael,
 No, you have that backwards, but it's a similar problem -- the
_global.Application class _isn't_ overwritten. The flash player
operates a class cache -- it always stores (and uses) the first class
of a particular classpath/name that it encounters.

 So in your case, when swfA loads, Flash caches a class called
com.UserInterface.Application, and uses _that same class_ when swfB
loads, ignoring swfB's implementation. Every attempt on your part
beyond that point to refer to Application() will refer to swfA's
version.

 You can get around this (as a hack) by calling delete
_global.__Packages.com.UserInterface.Application; before loading swfB.
Then swfB will use its own version of Application. But then swfA will
have problems - it's not a brilliant solution in your case.

What you really need is to separate the classpaths out in the way that
you suggest. That'll certainly fix it.

Cheers,
 Ian

On 6/22/07, Michael Trim [EMAIL PROTECTED] wrote:

Hi Flashcoders,

Can somebody confirm my worst suspicions (think I am answering my own
question here)

swfA loads swfB

Both swfs are compiled from separate classpaths but share a similar
class structure, so

swfA compiles classes like

swfAProject/com/UserInterface/Application.as
swfAProject/com/UserInterface/UIButton.as

and swfB compiles

swfBProject/com/UserInterface/Application.as
swfBProject/com/UserInterface/UIButton.as

I'm presuming that when swfB is loaded the _global.Application class is
overwritten? As when I do this the whole thing spins off into 100% CPU
hell.

To separate these out will I need to restructure them to be...?

CommonProject/com/A/UserInterface/Application.as
CommonProject/com/B/UserInterface/Application.as

(intergrating the code is not an option at this point).

What would people suggest as best practice here? Apologies if this is a
bit of a newb question on OO.

Many thanks,

Michael
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] wmode transparent,disappearing cs3 components and Firefox

2007-06-22 Thread Phil Chung
Kevin,

Yes, i've run into this as well.  After some testing, i narrowed it down to
the fact that the mozilla Flash player doesn't capture RENDER events when
wmode = transparent.  A bug has been filed with Adobe.

In the meantime, this is a fairly significant player bug that does break the
CS3 components because they rely on RENDER events for invalidation.  One
quick fix is to change the invalidation setup to use ENTER_FRAME instead of
RENDER.  I've attached an updated UIComponent file that does this (look in
the callLater and callLaterDispatcher functions).  I'm pretty sure this is
kosher under the EULA.

Phil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kevin
Newman
Sent: Thursday, June 21, 2007 1:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] wmode transparent,disappearing cs3 components and
Firefox


Hello all,

Has anyone else experienced a problem with using CS3 components along
with wmode transparent? I tried that recently, and the CS3 widget I was
using (List) simply will not show up if wmode is set to transparent in
Firefox (Firefox 2.0.0.4 on Windows - opaque works fine).

So the questions - why is it doing that, and more inportantly how do I
fix it? :-)

If anyone has experienced this problem, I'd really appreciate the help.

Thanks,

Kevin N.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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.5.472 / Virus Database: 269.9.1/857 - Release Date: 6/20/2007
2:18 PM

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

2007-06-22 Thread Danny Kodicek
 
 you might have to go nodeValue.toString() first..

No, nodeValue is already a string. I fixed the problem by reading the file
in Director and passing it to Flash as a string - one case where Director's
lack of Unicode support turned out to be a virtue...

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] Question on old AS1 code

2007-06-22 Thread Vaughn, David (Contractor) (J6B)
Hello all. This is my first post on the group, but I'm a regular member
of the FlashNewbies list. I'm a fairly new Flash developer using Flash
8, web player 9, and IE6. Hopefully the members of this list can offer
some guidance with a problem.

Background:
I've been asked to review some old Flash 5 or 6 code from another
developer built in 2001 or early 2002. The code is completely
undocumented and the original developer is unavailable. The FLA and AS
files load a few external JSP files and produce a detailed graph from
those files. On an HTTP server the files work as expected and have been
working properly for several years. 

Problem:
Recently the web team moved the files to an HTTPS server. The background
graphics load normally but the external data is completely blank. I have
access to the FLA and AS files and have reviewed the code. Being a new
developer I can't detect any obvious problems with the FLA or AS files. 

The external data files are referenced by name only, not by an explicit
file path. I have been assured by the web team that the necessary files
are all present and located within the same folder.

Question:
Are there any known compatibility or security problems between Flash
player 9, AS1 code and using HTTPS servers? Any ideas what might be
causing this problem?

I do not have direct access to the servers so I cannot give specifics
about how the servers are configured, but I can forward questions to the
web team. Also, the code is proprietary so unfortunately I'm not able to
post or share the actual code.

Any suggestions are welcomed and appreciated.

Regards,

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

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


Re: [Flashcoders] Missing characters in XML

2007-06-22 Thread Steven Sacks
Ha!  That is the best case of It's not a bug, it's a feature! I've 
ever seen.


Danny Kodicek wrote:
 

you might have to go nodeValue.toString() first..


No, nodeValue is already a string. I fixed the problem by reading the file
in Director and passing it to Flash as a string - one case where Director's
lack of Unicode support turned out to be a virtue...

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] patching MM classes for mtasc

2007-06-22 Thread quinrou .

Hans,

I will give it a go thx


On 6/22/07, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,
* to get all swc files, search through your programfiles\macromedia\flash
8 for all swc's
* put them in a directory together
* install python 2.5 or higher
* get http://osflash.org/swcextract/

Feel free to contact me offlist if you have any further questions.

greetz
JC



On 6/21/07, quinrou . [EMAIL PROTECTED] wrote:

 can u provide a link to that swc - i haven't managed to find it on the
 osflash.org site?

 thanks

 On 6/21/07, Hans Wichman [EMAIL PROTECTED] wrote:
 
  Hi,
  i think there is some license issues preventing folks from
 redistributing
  them, since they wudnt put us through the patching process if it
wasnt:)
 
  I download swc extract from osflash and simply extracted every class i
  could
  find from the components, that solved my problems. It gave me a bunch
of
  intrinsic classes, which after 2 or 3 tweaks were mtasc compatible.
 
  I simply compile with the -mx flag and make sure all the concrete
 classes
  i
  need are included in an injection swf.
 
  greetz
  JC
 
 
  On 6/21/07, Muzak [EMAIL PROTECTED] wrote:
  
   http://www.google.com/search?hl=enq=mtasc+mm+classes
  
   - Original Message -
   From: quinrou . [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Sent: Thursday, June 21, 2007 1:31 PM
   Subject: [Flashcoders] patching MM classes for mtasc
  
  
Hi all,
   
I tried to patch the MM classes to work with MTASC but I haven't
 been
successful. I was wondering if anyone managed to do it and if they
  could
provide me with the patched set?
   
Many thanks
  
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

2007-06-22 Thread Michael Trim
Hi Ian,

Yes a quick replace all in the classes for swfb (with careful checking
of the results) has solved the problem for now. (Although having to
update all the class paths in the library manually was a pain, I hope
this is easier in CS3).

Thanks for your reply it's interesting to know that that is the actual
behavior.

Michael



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 22 June 2007 15:04
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Clashing Class Names

Michael,
  No, you have that backwards, but it's a similar problem -- the
_global.Application class _isn't_ overwritten. The flash player
operates a class cache -- it always stores (and uses) the first class
of a particular classpath/name that it encounters.

  So in your case, when swfA loads, Flash caches a class called
com.UserInterface.Application, and uses _that same class_ when swfB
loads, ignoring swfB's implementation. Every attempt on your part
beyond that point to refer to Application() will refer to swfA's
version.

  You can get around this (as a hack) by calling delete
_global.__Packages.com.UserInterface.Application; before loading swfB.
Then swfB will use its own version of Application. But then swfA will
have problems - it's not a brilliant solution in your case.

What you really need is to separate the classpaths out in the way that
you suggest. That'll certainly fix it.

Cheers,
  Ian

On 6/22/07, Michael Trim [EMAIL PROTECTED] wrote:
 Hi Flashcoders,

 Can somebody confirm my worst suspicions (think I am answering my own
 question here)

 swfA loads swfB

 Both swfs are compiled from separate classpaths but share a similar
 class structure, so

 swfA compiles classes like

 swfAProject/com/UserInterface/Application.as
 swfAProject/com/UserInterface/UIButton.as

 and swfB compiles

 swfBProject/com/UserInterface/Application.as
 swfBProject/com/UserInterface/UIButton.as

 I'm presuming that when swfB is loaded the _global.Application class
is
 overwritten? As when I do this the whole thing spins off into 100% CPU
 hell.

 To separate these out will I need to restructure them to be...?

 CommonProject/com/A/UserInterface/Application.as
 CommonProject/com/B/UserInterface/Application.as

 (intergrating the code is not an option at this point).

 What would people suggest as best practice here? Apologies if this is
a
 bit of a newb question on OO.

 Many thanks,

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

2007-06-22 Thread Muzak
It's not different in CS3 or easier to fix if you mess up.
When using as classpath like com.UserInterface you might as well not use one 
at all.
There's nothing unique about it, which it should be.

com.projectA.userInterface.MyClass
com.projectB.userInterface.MyClass

that's what you should aim for.

regards,
Muzak

- Original Message - 
From: Michael Trim [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, June 22, 2007 4:43 PM
Subject: RE: [Flashcoders] Clashing Class Names


Hi Ian,

Yes a quick replace all in the classes for swfb (with careful checking
of the results) has solved the problem for now. (Although having to
update all the class paths in the library manually was a pain, I hope
this is easier in CS3).

Thanks for your reply it's interesting to know that that is the actual
behavior.

Michael


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

2007-06-22 Thread Danny Kodicek
 
 Ha!  That is the best case of It's not a bug, it's a 
 feature! I've ever seen.
 
 Danny Kodicek wrote:
   
  you might have to go nodeValue.toString() first..
  
  No, nodeValue is already a string. I fixed the problem by 
 reading the 
  file in Director and passing it to Flash as a string - one 
 case where 
  Director's lack of Unicode support turned out to be a virtue...

Admittedly, the only readon I had the problem in the first place is having
to spend the last year or so rewriting our software to work around
Director's lack of Unicode support :)

Which ironically is almost certainly due to be fixed in the next release of
Director.

Whenever that happens.

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] wmode transparent, disappearing cs3 components and Firefox

2007-06-22 Thread Kevin Newman

Kevin Newman wrote:
Has anyone else experienced a problem with using CS3 components along 
with wmode transparent? I tried that recently, and the CS3 widget I 
was using (List) simply will not show up if wmode is set to 
transparent in Firefox (Firefox 2.0.0.4 on Windows - opaque works fine).


As it turns out, this seems to be a problem with every browser that uses 
embed (which is all of them but IE) on Windows and on Mac OS X.


Just an update. To fix it, I've switched to using opaque instead of 
transparent, but that is not quite optimal. I'll let you know if I find 
something that fixes it better.


Thanks,

Kevin N.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] wmode transparent,disappearing cs3 components and Firefox

2007-06-22 Thread Kevin Newman

Hey Phil,

Thanks for the info. I think your attachment was stripped, could you 
point me to the class file and line number?


I found a UIComponent.as file here:
C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component 
Source\ActionScript 3.0\User Interface\fl\core


I replaced all three occurrences of Event.RENDER with Event.ENTER_FRAME 
in that file, but it didn't seem to take. Is that the correct file?


Thanks, I really appreciate the help,

Kevin N.



Phil Chung wrote:

Kevin,

Yes, i've run into this as well.  After some testing, i narrowed it down to
the fact that the mozilla Flash player doesn't capture RENDER events when
wmode = transparent.  A bug has been filed with Adobe.

In the meantime, this is a fairly significant player bug that does break the
CS3 components because they rely on RENDER events for invalidation.  One
quick fix is to change the invalidation setup to use ENTER_FRAME instead of
RENDER.  I've attached an updated UIComponent file that does this (look in
the callLater and callLaterDispatcher functions).  I'm pretty sure this is
kosher under the EULA.

Phil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kevin
Newman
Sent: Thursday, June 21, 2007 1:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] wmode transparent,disappearing cs3 components and
Firefox


Hello all,

Has anyone else experienced a problem with using CS3 components along
with wmode transparent? I tried that recently, and the CS3 widget I was
using (List) simply will not show up if wmode is set to transparent in
Firefox (Firefox 2.0.0.4 on Windows - opaque works fine).

So the questions - why is it doing that, and more inportantly how do I
fix it? :-)

If anyone has experienced this problem, I'd really appreciate the help.

Thanks,

Kevin N.


  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] wmode transparent,disappearing cs3 components andFirefox

2007-06-22 Thread Phil Chung
Crap, i should have known.  If you replaced Event.RENDER with
Event.ENTER_FRAME it should work.

If its not taking, try making a copy of UIComponent, and set up the
directory structure (fl/core/) in your project folder and it should use that
version instead of the compiled version.

Phil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kevin
Newman
Sent: Friday, June 22, 2007 10:45 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] wmode transparent,disappearing cs3 components
andFirefox


Hey Phil,

Thanks for the info. I think your attachment was stripped, could you
point me to the class file and line number?

I found a UIComponent.as file here:
C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component
Source\ActionScript 3.0\User Interface\fl\core

I replaced all three occurrences of Event.RENDER with Event.ENTER_FRAME
in that file, but it didn't seem to take. Is that the correct file?

Thanks, I really appreciate the help,

Kevin N.



Phil Chung wrote:
 Kevin,

 Yes, i've run into this as well.  After some testing, i narrowed it down
to
 the fact that the mozilla Flash player doesn't capture RENDER events when
 wmode = transparent.  A bug has been filed with Adobe.

 In the meantime, this is a fairly significant player bug that does break
the
 CS3 components because they rely on RENDER events for invalidation.  One
 quick fix is to change the invalidation setup to use ENTER_FRAME instead
of
 RENDER.  I've attached an updated UIComponent file that does this (look in
 the callLater and callLaterDispatcher functions).  I'm pretty sure this is
 kosher under the EULA.

 Phil

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Kevin
 Newman
 Sent: Thursday, June 21, 2007 1:52 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] wmode transparent,disappearing cs3 components and
 Firefox


 Hello all,

 Has anyone else experienced a problem with using CS3 components along
 with wmode transparent? I tried that recently, and the CS3 widget I was
 using (List) simply will not show up if wmode is set to transparent in
 Firefox (Firefox 2.0.0.4 on Windows - opaque works fine).

 So the questions - why is it doing that, and more inportantly how do I
 fix it? :-)

 If anyone has experienced this problem, I'd really appreciate the help.

 Thanks,

 Kevin N.





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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.5.472 / Virus Database: 269.9.4/860 - Release Date: 6/21/2007
5:53 PM


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

2007-06-22 Thread Andy Herrman

The HTTP vs HTTPS stuff should be completely handled by the browser,
so I don't think the plugin would have any issues.

One thing I find helpful for debugging these kinds of problems is
Fiddler (http://www.fiddlertool.com/fiddler/).  This will log all
requests IE makes and the responses to them.  Try installing it,
starting it up (it adds a button to the IE toolbar), and then loading
your SWF.  You'll be able to see what files are being requested.  You
can see if you're getting 404 errors, or even if they're being
requested properly.  This might help track down the problem.

 -Andy

On 6/22/07, Vaughn, David (Contractor) (J6B) [EMAIL PROTECTED] wrote:

Hello all. This is my first post on the group, but I'm a regular member
of the FlashNewbies list. I'm a fairly new Flash developer using Flash
8, web player 9, and IE6. Hopefully the members of this list can offer
some guidance with a problem.

Background:
I've been asked to review some old Flash 5 or 6 code from another
developer built in 2001 or early 2002. The code is completely
undocumented and the original developer is unavailable. The FLA and AS
files load a few external JSP files and produce a detailed graph from
those files. On an HTTP server the files work as expected and have been
working properly for several years.

Problem:
Recently the web team moved the files to an HTTPS server. The background
graphics load normally but the external data is completely blank. I have
access to the FLA and AS files and have reviewed the code. Being a new
developer I can't detect any obvious problems with the FLA or AS files.

The external data files are referenced by name only, not by an explicit
file path. I have been assured by the web team that the necessary files
are all present and located within the same folder.

Question:
Are there any known compatibility or security problems between Flash
player 9, AS1 code and using HTTPS servers? Any ideas what might be
causing this problem?

I do not have direct access to the servers so I cannot give specifics
about how the servers are configured, but I can forward questions to the
web team. Also, the code is proprietary so unfortunately I'm not able to
post or share the actual code.

Any suggestions are welcomed and appreciated.

Regards,

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

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


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

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